Hello,

I am troubleshooting a servlet which is used to upload files. Small files under 25mb are processed properly.  Large files over 50mb are processed properly.  Files with size in the range of 25mb -- 50mb fail with OutOfMemoryError.

Unfortunately I do not get a Stack Trace.  Instead of a Stack Trace I only get "Java heap space".

I know that the FileUpload component has a threshold with default of 10kb, so that files under 10kb are processed in memory, but files larger than that are processed using the disk to preserve memory.  I do not see anywhere in the code that the threshold is modified from its default value.

Is there anywhere else in Tomcat that might have a 50mb threshold for IO operations?  Specifically in NioEndpoint since I see this in catalina.out:

Jul 11, 2017 1:23:29 PM org.apache.tomcat.util.net.NioEndpoint$SocketProcessor 
doRun
SEVERE:
java.lang.OutOfMemoryError: Java heap space

Running Tomcat 8.0.23 (and yes, I would love to upgrade it but this is for a large organization and I can not update it at this time).

Am I correct to assume that the error is logged from
https://github.com/apache/tomcat80/blob/TOMCAT_8_0_23/java/org/apache/tomcat/util/net/NioEndpoint.java#L1563

?

Thank you,

Igal Sapir
Lucee Core Developer
Lucee.org <http://lucee.org/>

Reply via email to