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:
None 
Category:Connector / J Severity:S2 (Serious)
Version:5.1.X OS:Solaris
Assigned to: Alexander Soklakov CPU Architecture:Any
Tags: OutOfMemory, useCompression, zip native

File: Maximum allowed size is 50MB.
Description:
Privacy:

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:

[1 Mar 2013 3:36] aaron liu
Test Case

Attachment: JDBCCompressTest.java (application/octet-stream, text), 1.56 KiB.

[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.