On 20/12/17 18:04, Igal @ Lucee.org wrote:
> 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.

How consistently?

> 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?

Not that I am aware of.

What, exactly, is performing this upload?

> 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

Seems reasonable.

Maybe time to attach a profiler and see what happens during a single
upload on a test system?

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to