The default for the ibm and sun jdk is that the memory is limited
to some extend.

The limitation can be set through the option -Xms -Xmx for the jvm.

This just limits the heap size. What you can't restrict is the memory 
for the code and data segments. (To be honest I don't have a clear 
idea how memory is managed in a VM. E.G. if a class is loaded at 
runtime, will the code and static data be allocated on the heap of 
the VM? If not, the memory usage can be quite unlimited if you have
enough classes or static data in the classes)

The sun vm has an additional option to set the thread stacksize: -ss

> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 27. Februar 2002 07:29
> An: [EMAIL PROTECTED]
> Betreff: Limiting Memory usage with Tomcat 3.2.2
> 
> 
> 
>   Hi, there is any way to limit the Memory usage in tomcat 3.2.2?
>   I'm getting troubles with 2 GB RAM server, tomcat eat almost all the
>   resources, and now the server its in swap.
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to