Tomcat Memory usage(Urgent!)

2002-03-08 Thread Galbayar

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. 

Thx

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
Swap: 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
.
.
.



RE: Tomcat Memory usage(Urgent!)

2002-03-08 Thread Chris Pheby

Each of these processes correlates to a /thread/. The processes are sharing
memory for the most part - something that ps or top don't make clear.

Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Galbayar
Sent: 08 March 2002 09:24
To: Tomcat Users List
Subject: Tomcat Memory usage(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.

Thx

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
Swap: 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]




Re: Tomcat Memory usage(Urgent!)

2002-03-08 Thread Boily Sylvain

hi all ,

Well how is possible to give back memory ? Because after 2 days the 
memory is full.
thx

Chris Pheby wrote:

Each of these processes correlates to a /thread/. The processes are sharing
memory for the most part - something that ps or top don't make clear.

Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Galbayar
Sent: 08 March 2002 09:24
To: Tomcat Users List
Subject: Tomcat Memory usage(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.

Thx

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
Swap: 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]



-- 
 
*/Sylvain Boily/*
/Administrateur Linux/

cid:[EMAIL PROTECTED]

/*Adresse :* 39, bd Anatole France -  93200 St-Denis -  France/
/*tel :*0148131814/
/*mail :*[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]   
*web:*http://www.linkbynet.fr/





Re: Tomcat Memory usage(Urgent!)

2002-03-08 Thread David Cassidy

within your program you might want to check out

Runtime runtime = Runtime.getRuntime;
runtime.freeMemory() vs
runtime.totalMemory()

This will let you know what it's really using..
But as top says it's only 59M then I'd be looking at
other processes in your ps list

Hope this helps

D



Boily Sylvain wrote:

 hi all ,

 Well how is possible to give back memory ? Because after 2 days the
 memory is full.
 thx

 Chris Pheby wrote:

 Each of these processes correlates to a /thread/. The processes are
 sharing
 memory for the most part - something that ps or top don't make clear.
 
 Chris
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 ]
 On Behalf Of Galbayar
 Sent: 08 March 2002 09:24
 To: Tomcat Users List
 Subject: Tomcat Memory usage(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.
 
 Thx
 
 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
 Swap: 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]
 

 --

 */Sylvain Boily/*
 /Administrateur Linux/

 cid:[EMAIL PROTECTED]

 /*Adresse :* 39, bd Anatole France -  93200 St-Denis -  France/
 /*tel :*0148131814/
 /*mail :*[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 *web:*http://www.linkbynet.fr/


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




RE: Tomcat Memory usage(Urgent!)

2002-03-08 Thread Arnaud Heritier

Are you sure that there's not old processes.
I saw on AIX with TC4.0.1 that when i shutdowned TC, the java process wasn't killed.
So I needed to kill it manually.

Isn't there the same problem.

Do all these processes disappeare when you stop TC ??

Arno

 -Message d'origine-
 De:   David Cassidy [SMTP:[EMAIL PROTECTED]]
 Date: vendredi 8 mars 2002 12:05
 A:Tomcat Users List
 Objet:Re: Tomcat Memory usage(Urgent!)
 
 within your program you might want to check out
 
 Runtime runtime = Runtime.getRuntime;
 runtime.freeMemory() vs
 runtime.totalMemory()
 
 This will let you know what it's really using..
 But as top says it's only 59M then I'd be looking at
 other processes in your ps list
 
 Hope this helps
 
 D
 
 
 
 Boily Sylvain wrote:
 
  hi all ,
 
  Well how is possible to give back memory ? Because after 2 days the
  memory is full.
  thx
 
  Chris Pheby wrote:
 
  Each of these processes correlates to a /thread/. The processes are
  sharing
  memory for the most part - something that ps or top don't make clear.
  
  Chris
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  ]
  On Behalf Of Galbayar
  Sent: 08 March 2002 09:24
  To: Tomcat Users List
  Subject: Tomcat Memory usage(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.
  
  Thx
  
  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
  Swap: 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]
  
 
  --
 
  */Sylvain Boily/*
  /Administrateur Linux/
 
  cid:[EMAIL PROTECTED]
 
  /*Adresse :* 39, bd Anatole France -  93200 St-Denis -  France/
  /*tel :*0148131814/
  /*mail :*[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  *web:*http://www.linkbynet.fr/
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


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




RE: Tomcat Memory usage(Urgent!)

2002-03-08 Thread Manish Bhatnagar

We faced this problem some time back. The memory usage
seemed to increase to the point where no other application
could be started. Many times we had to restart the NT
machine itself. We did a thorough code-review and fixed the
leaks. But even after that the Tomcat memory usage kept on
increasing, although it came down, all of a sudden, to a
very low value (600K). So garbage collection is being done
more frequently, I would say. When there are more users
connected to the Web server and accessing the Servlets/JSPs,
the memory usage keeps on increasing... just to give
numbers... we accessed our Web application using 50+
instances of browsers (IE, Netscape) and the memory shot to
200M. After some time (not immediately) when we stopped
accessing the Web server it came down to 24M. You can find
more pointers on JDC at http://java.sun.com. I remember
discussing this topic there.
Thanks
-mb-

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf
Of David Cassidy
Sent: Friday, March 08, 2002 4:35 PM
To: Tomcat Users List
Subject: Re: Tomcat Memory usage(Urgent!)


within your program you might want to check out

Runtime runtime = Runtime.getRuntime;
runtime.freeMemory() vs
runtime.totalMemory()

This will let you know what it's really using..
But as top says it's only 59M then I'd be looking at
other processes in your ps list

Hope this helps

D



Boily Sylvain wrote:

 hi all ,

 Well how is possible to give back memory ? Because after 2
days the
 memory is full.
 thx

 Chris Pheby wrote:

 Each of these processes correlates to a /thread/. The
processes are
 sharing
 memory for the most part - something that ps or top don't
make clear.
 
 Chris
 
 -Original Message-
 From:
[EMAIL PROTECTED]
org

[mailto:tomcat-user-return-13170-chris=tfe-group.com@jakart
a.apache.org
 ]
 On Behalf Of Galbayar
 Sent: 08 March 2002 09:24
 To: Tomcat Users List
 Subject: Tomcat Memory usage(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.
 
 Thx
 
 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
 Swap: 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]
 

 --

 */Sylvain Boily/*
 /Administrateur Linux/

 cid:[EMAIL PROTECTED]

 /*Adresse :* 39, bd Anatole France -  93200 St-Denis -
France/
 /*tel :*0148131814/
 /*mail :*[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 *web:*http://www.linkbynet.fr/


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



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