In addtition, after restarting tomcat memory usage of each java processes
decreases until 23M each
and grows up slowly.
Please see output of top that sorted by memory usage. . And after several
days it reaches up to 60M
each and crashes. Apache is working normally all time.

11:47am  up 7 days, 17:15,  2 users,  load average: 0.01, 0.03, 0.08
111 processes: 110 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  0.0% user,  1.7% system,  0.0% nice, 98.2% idle
Mem:  1028860K av,  961188K used,   67672K free,     116K shrd,  139632K
buff
Swap: 1020116K av,       0K used, 1020116K free                  705172K
cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
18492 root       9   0 26536  25M  9576 S     0.0  2.5   0:03 java
18493 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18494 root       9   0 26536  25M  9576 S     0.0  2.5   0:01 java
18495 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18496 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18497 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18498 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18499 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18500 root       9   0 26536  25M  9576 S     0.0  2.5   0:01 java
18503 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18504 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18507 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18508 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18509 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18510 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18511 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18512 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18513 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18514 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18515 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18516 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18517 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18518 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18519 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18520 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18529 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18535 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18538 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18539 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18544 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18545 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18546 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18556 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18557 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18558 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18600 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18602 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18605 root       9   0 26536  25M  9576 S     0.0  2.5   0:00 java
18526 nobody     9   0  4968 4968  4608 S     0.0  0.4   0:00 httpd
18532 nobody     9   0  4780 4780  4368 S     0.0  0.4   0:00 httpd
18531 nobody     9   0  4768 4768  4396 S     0.0  0.4   0:00 httpd
18525 nobody     9   0  4752 4752  4392 S     0.0  0.4   0:00 httpd
18530 nobody     9   0  4480 4480  4260 S     0.0  0.4   0:00 httpd
18524 nobody     9   0  4476 4476  4256 S     0.0  0.4   0:00 httpd
18522 nobody     9   0  4472 4472  4256 S     0.0  0.4   0:00 httpd
18523 nobody     9   0  4472 4472  4256 S     0.0  0.4   0:00 httpd
18528 nobody     9   0  4472 4472  4260 S     0.0  0.4   0:00 httpd
18540 nobody     9   0  4468 4468  4260 S     0.0  0.4   0:00 httpd


After crashing tomcat I see on the browser "Internal server error" and log
file  is fulled by following messages

...
[Sat Mar 09 22:51:13 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
[Sat Mar 09 22:51:13 2002]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Sat Mar 09 22:51:13 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
[Sat Mar 09 22:51:13 2002]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Sat Mar 09 22:51:13 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
[Sat Mar 09 22:51:15 2002]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Sat Mar 09 22:51:15 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
[Sat Mar 09 22:51:15 2002]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
...



----- Original Message -----
From: "Galbayar" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 10:03 AM
Subject: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)


Hello all
Here is part of top output. Is it usual that java
processes eat all of memory? ? At now there are 50 java processes started
that running tomcat and each of them uses 59M memory. There is running
apache
server with tomcat 4 and mysql. OS is Redhat7.2 x86 . JDK 1.4 is installed.
how to solve this problem?

106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff
wap: 1020116K av, 0K used, 1020116K free 762320K cached

3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java




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

Reply via email to