Barry and Ibrahim,

> I thought maybe it was done in the startup.bat file by changing the 
> properties and the initial environment space (defaulted usually to
> Auto to 4096). Is this not correct? You might try right-clicking
> startup.bat, and under the Memory tab try changing the expanded
> memory or extended memory values if they're defaulted to a certain
> value?

No, this isn't right: the properties you are talking about are for the
batch process itself (on a win32 machine). When startup.bat calls
"java", those values are not inherited by the VM.

> Do I simply increase the value after 'Xmx' in the JAVA_OPTS variable 
> in catalina.sh file?

This ought to work for you.

Although it is not unheard of to legitimately run out of memory (i.e.
get OutOfMemoryErrors), you ought to think about whether or not
increasing your heap size is actually going to fix your problem: often,
you have a memory leak and it's better to test your app with a small
heap because you can find it more quickly (i.e. less memory to burn
through before you run out).

I strongly advise you to critically examine your code to determine if
the OutOfMemoryErrors are being caused by you, or if you really do just
need more memory allocated to the JVM.

-chris


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to