RE: [Echo-list] File upload - out of memory
Brought to you by:
tliebeck
From: Tod L. <tli...@ne...> - 2003-12-02 03:21:51
|
Hi Felix, 50M might not be quite enough. I would try upping the heap size to 256M and see if it solves the problem. I'm not suggesting this as the solution, just curious to see if the problem is "not enough memory" or if the the file upload piece is malfunctioning such that it will simply take all available memory and then some. If I recall correctly, a JVM running a good-sized Echo app will use about 16 megs or so by default (I could be off on that though). So if you have a 17 meg file going up, you might easily break out of 50M if you (for example) had to have two copies of it in memory momentarily. Best regards --Tod Liebeck NextApp, Inc. On Mon, 2003-12-01 at 03:16, Felix Sima wrote: > Hello, Ciaran. > > I have already tried to increase the heap size of java vm > from 16M to 50M. Unfortunately the result is the same. > > Thank you. > Felix > > > On Mon, 1 Dec 2003, Ciaran Jessup wrote: > > > Have you tried increasing the max heap size of the java vm you're using to > > run your Tomcat in ? > > I think the default is 64Meg (but I could easily be wrong) > > > > - Ciaran > > > > -----Original Message----- > > From: Felix Sima [mailto:fe...@me...] > > Sent: 01 December 2003 11:09 > > To: ech...@li... > > Subject: [Echo-list] File upload - out of memory > > > > > > Hello. > > > > In my form I have included a UploadSelect component. > > The upload works well for relatively small files, but > > for a file of ~17M it gives me an "out of memory" error > > ( see below ). > > > > I have no ideea about how to solve this problem, so any hint > > will be highly appreciated. > > > > > > Thank you, > > Felix > > > > > > *********************************************************** > > HTTP Status 500 - Internal Server Error > > > > type Exception report > > > > message Internal Server Error > > > > description The server encountered an internal error (Internal Server Error) > > that prevented it from fulfilling this request. > > > > exception > > > > javax.servlet.ServletException: Servlet execution threw an exception > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > > FilterChain.java:269) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > > ain.java:193) > > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > > va:256) > > at > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > eNext(StandardPipeline.java:643) > > at > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > > at > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > at > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > > va:191) > > at > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > eNext(StandardPipeline.java:643) > > at > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > > at > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > at > > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417) > > at > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 > > ) > > at > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > eNext(StandardPipeline.java:643) > > at > > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. > > java:171) > > at > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > eNext(StandardPipeline.java:641) > > at > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 > > ) > > at > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > eNext(StandardPipeline.java:641) > > at > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577) > > at > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > eNext(StandardPipeline.java:641) > > at > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > > at > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > at > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > > :174) > > at > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok > > eNext(StandardPipeline.java:643) > > at > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > > at > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > at > > org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: > > 1040) > > at > > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151 > > ) > > at java.lang.Thread.run(Thread.java:536) > > > > root cause > > > > java.lang.OutOfMemoryError > > > > Apache Tomcat/4.1.29 > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SF.net Giveback Program. > > Does SourceForge.net help you be more productive? Does it > > help you create better code? SHARE THE LOVE, and help us help > > YOU! Click Here: http://sourceforge.net/donate/ > > _______________________________________________ > > Echo-list mailing list > > Ech...@li... > > https://lists.sourceforge.net/lists/listinfo/echo-list > > > > > > ******************************************** > > Any opinions expressed in this email are those of the individual and not > > necessarily the Company. This email and any files transmitted with it, > > including replies and forwarded copies (which may contain alterations) > > subsequently transmitted from the company, are confidential and solely > > for the use of the intended recipient. > > > > If you are not the intended recipient or the person responsible for > > delivering to the intended recipient, be advised that you have received > > this email in error and that any use is strictly prohibited. > > > > If you have received this email in error please notify the IT Dept. via > > email to IT....@Te..., including a copy of the message. Please > > then delete this email and destroy any copies of it. > > ********************************************* > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Echo-list mailing list > Ech...@li... > https://lists.sourceforge.net/lists/listinfo/echo-list |