You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Richard Correia <ri...@ugamsolutions.com> on 2003/11/18 01:52:17 UTC

[users@httpd] Apache Tomcat Memory issue

Hi,

My "top" is showing me following statistics. At this time, my webserver
is getting 2400 hits per minutes for one JSP page.

Now my question is, this java process shows 11.7% memory usage.
Does this mean each java process is using 11.7% memory or my jsp engine
is taking 11.7% memory.


  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME
COMMAND
13983 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:01 java
13984 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:57 java
13985 root       0   0 63956  59M 19440 S      60  0.0 11.7   8:13 java
13986 root       0   0 63956  59M 19440 S      60  0.0 11.7   2:01 java
13987 root       0   0 63956  59M 19440 S      60  0.0 11.7   5:58 java
13988 root       0   0 63956  59M 19440 S      60  0.0 11.7  71:36 java
13989 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:00 java
13990 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:00 java
13991 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:04 java
13993 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:01 java
13994 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:38 java
13996 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:00 java
.
.
.

Please let me. This will solve my huge problem

Sincerely,
Richard


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache Tomcat Memory issue

Posted by Aaron Morris <aa...@mindspring.com>.

Richard Correia wrote:

> Hi,
> 
> My "top" is showing me following statistics. At this time, my webserver
> is getting 2400 hits per minutes for one JSP page.
> 
> Now my question is, this java process shows 11.7% memory usage.
> Does this mean each java process is using 11.7% memory or my jsp engine
> is taking 11.7% memory.
> 
> 
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME
> COMMAND
> 13983 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:01 java
> 13984 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:57 java
> 13985 root       0   0 63956  59M 19440 S      60  0.0 11.7   8:13 java
> 13986 root       0   0 63956  59M 19440 S      60  0.0 11.7   2:01 java
> 13987 root       0   0 63956  59M 19440 S      60  0.0 11.7   5:58 java
> 13988 root       0   0 63956  59M 19440 S      60  0.0 11.7  71:36 java
> 13989 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:00 java
> 13990 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:00 java
> 13991 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:04 java
> 13993 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:01 java
> 13994 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:38 java
> 13996 root       0   0 63956  59M 19440 S      60  0.0 11.7   0:00 java
> .
> .
> .
> 
> Please let me. This will solve my huge problem
> 
> Sincerely,
> Richard
> 

Under Linux (I assume you are using Linux) each thread is assigned a PID 
and pretty much looks like any other process.  Usually, each thread 
displays the same stats as the "parent" process so it is safe to say 
that the engine is taking 11.7% of memory as a whole.

"ps -ef --forest" will give a good graphical representation of the PIDs 
and threads.

-- 
Aaron W Morris <aa...@mindspring.com> (decep)




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org