Hi Leon,
----- Original Message -----
From: "Leon Daanen" <[EMAIL PROTECTED]>
> I am using the Tomcat server. If the tomcat server is started 64 Mb of
> memory is allocated (which seems to be default). I use an upload jsp file
> through which I will be able to upload big files (perhaps 100Mb or more).
I
> changed the tomcat.bat file by adding the java -Xmx100m piece (which
should
> allocate 100Mb of memory for the jvm). But this is not working. I am
getting
> an OutOfMemory error when I am uploading a file which is bigger than 50
Mb.
I believe that the JVM *is* working as expected. The problem is working
with a single object that's larger than 50% of the free space in the heap.
This will make some garbage collectors very unhappy, when they need to
move stuff around. You may succeed using a different JVM or even bigger
-mx, but you should really change your code -- loading a 50-megger to
memory in a single chunk is insane (for a single upload, anyway).
> Below the piece of the tomcat.bat file where the jvm is started and should
> allocate 100Mb for the java virtual machine.
>
> :startServer
> echo Starting tomcat in new window
> echo Using classpath: %CLASSPATH%
> start java -Xmx100m -Dtomcat.home=%TOMCAT_HOME%
> org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
> goto cleanup
>
>
> Can anybody tell me what I am doing wrong.
>
> Thank in advance,
>
> Leon
>
> ---------------------------------------------------------------
> name: Leon Daanen
> E-mail: [EMAIL PROTECTED]
> Tel.: +31 77 359 5172
> Fax.: +31 77 359 5337
> Location: 3G20
>
> Oce Technologies B.V.
> www: http://www.oce.com
> Tel.: +31 77 359 2222
> P.O. Box 101
> 5900 MA Venlo
> The Netherlands
> ---------------------------------------------------------------
> Opinions and views expressed in this message
> are my own, they do not necessarily represent
> those of Océ
> ---------------------------------------------------------------
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets