Hello,

We implemented a few servlets yesterday on a dual processor 
Redhat 5.2 linux (515MB RAM) running Apache-JServ-1.0b3 
with Apache/1.3.6. Apache is configured to start 50 processes.

Upon start up, using top, the httpd processes look like this:
PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
988 nobody    l0  0   1424 1424  1100 S     0    0.1  0.2   0:00 httpd

After running for a few hours of testing, top shows that all of the 
machine's RAM is gone and that the machine is swapping. The httpd processes
have grown considerably.
PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
260 nobody     0   0 13704  11M   512 S       0  0.0  2.1   0:03 httpd

Why have the httpd processes grown? Could it be related to the servlet's code?
Another odd thing is that the apache processes' normal amount of shared
memory has decreased by half.  The memory taken by the java process (JVM) 
stays level at about 12MB regardless of how long the machine is up.
I had MaxRequestsPerChild set at 10000 but have now changed it to 1000 
because of the problem.

Any ideas?

Thanks in advance.

Mark


----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to