Re: Memory usage in Tomcat 6

2008-06-17 Thread Billy Ng
9 out of 10 are the heap size problem.  Changing the -Xmsnm and -Xmxnm 
in the tomcatw.exe if you are using Windows.  On the 32-bit Windows, you can 
only allocate 1.2 GB max.  If you still have problem, check all the static 
vars to see any objects are growing forever.  If you still have problem, 
there must be some huge objects created from time to time.  You need to use 
tool like figure it out.


Billy Ng

- Original Message - 
From: Tuan Quan [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, June 16, 2008 9:11 AM
Subject: Memory usage in Tomcat 6


Hi all, how do I adjust Memory allocation Tomcat 6, running as service in 
Windows? I ran into out of memory error.
thanks. 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Memory usage in Tomcat 6

2008-06-17 Thread Caldarale, Charles R
 From: Billy Ng [mailto:[EMAIL PROTECTED]
 Subject: Re: Memory usage in Tomcat 6

 Changing the -Xmsnm and -Xmxnm in the tomcatw.exe

That's tomcat6w.exe, not tomcatw.exe.

 If you still have problem, there must be some huge
 objects created from time to time.

It can also be PermGen space (classes) that is full, rather than the normal 
heap.  Other resource exhaustion (e.g., file handles) can also cause OOMEs on 
occasion.

 You need to use tool like figure it out.

Yes, a profiler - or even JConsole - is very useful here.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Memory usage in Tomcat 6

2008-06-16 Thread Caldarale, Charles R
 From: Tuan Quan [mailto:[EMAIL PROTECTED]
 Subject: Memory usage in Tomcat 6

 Hi all, how do I adjust Memory allocation Tomcat 6, running
 as service in Windows?

Use the tomcat6w.exe program in Tomcat's bin directory.

Read the FAQ for memory usage information:
http://wiki.apache.org/tomcat/FAQ/Memory

JConsole (part of the HotSpot JVM SDK) is a good tool for monitoring memory 
usage on the fly.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]