[jdom-interest] Out of memory Error!

Ian Lea ian.lea at blackwell.co.uk
Tue Mar 19 00:57:34 PST 2002


You can give java more memory by using the -Xmx command
line option e.g. java -Xmx64m. Type java -X for details.
To get this to work with tomcat 3 on unix add this:

TOMCAT_OPTS="-Xmx64m"; export TOMCAT_OPTS

to the tomcat startup script.  I imagine there is a
similar solution for tomcat 4 on win 2000.



--
Ian.


> alex_pchome wrote:
> 
> Hi  All
>      I am writing a jsp for dealing with an xml schema to show its xml
> structure.
> But I got "out of memory error".
> I think it is because of using a loop to deal with the xml schema which may a
> little big.
> However I noticed that my system memory didn't run dry.
> I am sure it's not a dead loop.
> How can I allocate more memory for my jsp.
> Or have a suggestion of salving this problem?
> 
> Window 2000 server
> Tom cat 4.0
> jdom 0.7
> 
> Thanks!
>                           Alex



More information about the jdom-interest mailing list