tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "simon" <si...@lexues.co.jp>
Subject Re: tomcat is crashing
Date Fri, 28 Sep 2001 01:05:44 GMT

Slightly off-topic but...

----- Original Message -----
From: "Haresh Gujarathi" <gharesh@vsnl.com>
To: <tomcat-user@jakarta.apache.org>; <gharesh@vsnl.com>
Sent: Friday, September 28, 2001 2:51 AM
Subject: RE: tomcat is crashing


> 1. I am using xalan and xerces in my server application; With every request
> sent to the server, the server app does lot of xml processing;
> This makes tomcat threads to create lot of java objects and those are not
> getting free immediately. Infact with every request the memory utilized by
> the threads go on increasing;
>
> When I execute TOP command on linux, it shows 60 java threads which start
> with 10MB and reach upto 120Mb
> I have 512MB RAM on my system This eventually gets exausted and then it
> starts using the swap files.
>

When you do this:

> setting following for the JVM
> TOMCAT_OPTS (e.g. -Xmx256m -Xms128m).

you're telling the JVM that it can use 128m of memory before it has to do any garbage collection.
 That's why the memory used
increases to around 120Mb.

simon


Mime
View raw message