OutOfMemoryError exception occurs when deploying a large amount of data

Description

When tries to upload large amount of data then the buffer will became grow larger than heap size and the following message appears "java.lang.OutOfMemoryError: Java heap space".
The related duscussion topics and listed bugs:
http://www.velocityreviews.com/forums/t149076-leaking-memory-when-writing-to-url.html
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5026745
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4212479
The issue has been fixed in java 1.5 using setChunkedStreamingMode method.

Patch has been attached.

Assignee

Vincent Massol

Reporter

Juri Artamonov

Components

Fix versions

Affects versions

Priority

Minor
Configure