Bug #68400 | useCompression=true and connect to server, zip native method cause out of memory | ||
---|---|---|---|
Submitted: | 16 Feb 2013 8:06 | Modified: | 10 Jul 2013 21:26 |
Reporter: | aaron liu | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 5.1.X | OS: | Solaris |
Assigned to: | Alexander Soklakov | CPU Architecture: | Any |
Tags: | OutOfMemory, useCompression, zip native |
If the data you need to attach is more than 50MB, you should create a compressed archive of the data, split it to 50MB chunks, and upload each of them as a separate attachment.
To split a large file:
- On *nix platforms use the split command e.g.
split -b 50MB <my_large_archive> <my_split_archive_prefix>
- On windows use WinZip or a similar utility to split the large file
[1 Mar 2013 3:36]
aaron liu
[1 Mar 2013 6:23]
aaron liu
Connector/J
Attachment: mysql-connector-java-5.1.13-bin.jar (application/octet-stream, text), 749.50 KiB.
[13 May 2013 10:02]
Alexander Soklakov
Patch for bug#68400
Attachment: bug68400.diff (text/x-patch), 2.57 KiB.
[14 May 2013 13:47]
Alexander Soklakov
Patch with WeakReference
Attachment: bug68400.diff (text/x-patch), 9.53 KiB.