|
From: Leif M. <le...@ta...> - 2003-01-29 03:21:50
|
Ashish,
The Wrapper does not do anything special in the event of
OutOfMemoryErrors.
This is because in most cases, while a single thread may terminate, the
JVM as
a whole will continue to function. It is actually possible to catch
out of memory
errors and continue just as can be done with any other error or exception.
Java by default sets a maximum memory limit of 65MB. The Wrapper
preserves
this default. If, as in this case, you find it necessary to make use of
more memory then
you can do so by passing a -Xmx64m parameter to the JVM. The Wrapper
provides
a pair of parameters to make it easier to set the maximum and initial
memory settings.
wrapper.java.initmemory=16
wrapper.java.maxmemory=64
I usually run Tomcat myself with only 64MB of memory. But have a
few other apps
that run with a setting of 256. Be aware that this is the maximum
memory setting, the
JVM will not use that much memory unless it is necessary. Giving the
JVM more
room to work with can make garbage collection run a little more smoothly.
The initial memory setting defines how much memory the JVM allocates
at startup.
If you know that your application always takes 96MB of memory, then
setting this to
a large initial value will make the app startup a little faster..
Please see the documentation for more info on these properties.
Cheers,
Leif
Ashish Gawarikar wrote:
> Hi,
>
> I seem to get the following error in my wrapper log and the wrapper
> doesnt seem to restart the JVM.
>
> [ERROR] ThreadPool - -Caught exception executing
> org.apache.tomcat.util.net.TcpWorkerThread@198fa95f, terminating
> thread <java.lang.OutOfMemoryError>java.lang.OutOfMemoryError
>
> [ERROR] PoolTcpEndpoint - -Unexpected error
> <java.lang.OutOfMemoryError>java.lang.OutOfMemoryError
>
> Any help regarding this would be helpful.
> I am running wrapper 2.2.8, and tomcat version 4.1.15 and java 1.3.1
>
> Thank you,
>
> Ashish
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
|