Re: MaxPermSize / Threads

2010-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ozgur, On 5/17/2010 5:28 AM, Ozgur Ozdemircili wrote: > I have the default server.conf file with : > > maxThreads="250" >connectionTimeout="2" >redirectPort="8443" /> > > I do not have any Executo

RE: MaxPermSize / Threads

2010-05-17 Thread Peter_Ford
gmail.com] > > Subject: Re: MaxPermSize / Threads > > > > You can see the server giving error every 3-4 minutes until it dies. > > By "it dies", do you mean you have to restart Tomcat? > > Turn on GC logging (-verbose:gc) and use a heap profiler to see if > you

RE: MaxPermSize / Threads

2010-05-17 Thread Caldarale, Charles R
> From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com] > Subject: Re: MaxPermSize / Threads > > You can see the server giving error every 3-4 minutes until it dies. By "it dies", do you mean you have to restart Tomcat? Turn on GC logging (-verbose:gc) and use a h

Re: MaxPermSize / Threads

2010-05-17 Thread Ozgur Ozdemircili
t > > > > > > On Mon, May 17, 2010 at 3:17 PM, Caldarale, Charles R > > mailto:chuck.caldar...@unisys.com>> wrote: > > > > > From: André Warnier [mailto:a...@ice-sa.com <mailto:a...@ice-sa.com>] > > > Subject: Re: MaxPermSize / Threads

Re: MaxPermSize / Threads

2010-05-17 Thread Pid
n, May 17, 2010 at 3:17 PM, Caldarale, Charles R > mailto:chuck.caldar...@unisys.com>> wrote: > > > From: André Warnier [mailto:a...@ice-sa.com <mailto:a...@ice-sa.com>] > > Subject: Re: MaxPermSize / Threads > > > > So, while I am not sayin

Re: MaxPermSize / Threads

2010-05-17 Thread Ozgur Ozdemircili
dar...@unisys.com> wrote: > > From: André Warnier [mailto:a...@ice-sa.com] > > Subject: Re: MaxPermSize / Threads > > > > So, while I am not saying that there are not circumstances where a 2 GB > > Heap is justified, it is still a very high number, and maybe you should

RE: MaxPermSize / Threads

2010-05-17 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:mgai...@hotmail.com] > Subject: RE: MaxPermSize / Threads > > could you describe compressed object pointers and how implementation > will reduce allocations from JVM heap?thx, It doesn't reduce the number of allocations, but it does reduce

RE: MaxPermSize / Threads

2010-05-17 Thread Martin Gainty
urni. > From: chuck.caldar...@unisys.com > To: users@tomcat.apache.org > Date: Mon, 17 May 2010 08:17:06 -0500 > Subject: RE: MaxPermSize / Threads > > > From: André Warnier [mailto:a...@ice-sa.com] > > Subject: Re: MaxPermSize / Threads > > > > So

Re: MaxPermSize / Threads

2010-05-17 Thread Antonio Vidal Ferrer
Can you paste the original error from your catalina.out log? Best Toni El 17/05/2010 10:25, Ozgur Ozdemircili escribió: > Hi, > > I am having a lot of Java Heap OutOfMemory issues. The first change I did > was to add more memory to JVM: > > export CATALINA_OPTS="-XX:MaxPermSize=512m -Xms512m -X

RE: MaxPermSize / Threads

2010-05-17 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: MaxPermSize / Threads > > So, while I am not saying that there are not circumstances where a 2 GB > Heap is justified, it is still a very high number, and maybe you should > have a look at which application really n

Re: MaxPermSize / Threads

2010-05-17 Thread Mercy
Thank you. Mercy On 05/17/2010 08:58 PM, Pid wrote: On 17/05/2010 13:18, Mercy wrote: Hi, Please take a look at this: http://java.sun.com/javase/6/docs/technotes/guides/vm/gc-ergonomics.html *maximum heap size:* Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0,

Re: MaxPermSize / Threads

2010-05-17 Thread Peter Crowther
On 17 May 2010 13:18, Mercy wrote: > Hi, > >Please take a look at this: > http://java.sun.com/javase/6/docs/technotes/guides/vm/gc-ergonomics.html > > *maximum heap size:* > > Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0, the > default maximum heap size was 64MB. You ca

Re: MaxPermSize / Threads

2010-05-17 Thread Pid
On 17/05/2010 13:18, Mercy wrote: > Hi, > > Please take a look at this: > http://java.sun.com/javase/6/docs/technotes/guides/vm/gc-ergonomics.html > > *maximum heap size:* > > Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0, the > default maximum heap size was 64MB. Y

Re: MaxPermSize / Threads

2010-05-17 Thread Mercy
Hi, Please take a look at this: http://java.sun.com/javase/6/docs/technotes/guides/vm/gc-ergonomics.html *maximum heap size:* Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0, the default maximum heap size was 64MB. You can override this default using the |-Xmx| co

Re: MaxPermSize / Threads

2010-05-17 Thread André Warnier
Ozgur Ozdemircili wrote: Hi, I have the default server.conf file with : I do not have any Executor. When I check the manager status in detail I see the threads with ? in front and nothing else. The ones being used do have the data. Just wondering is it normal to have that much open threads

Re: MaxPermSize / Threads

2010-05-17 Thread Pid
On 17/05/2010 10:29, Mercy wrote: > Hi, > > You could set the one fourth of physical memory size(the recommended > heap size) for -Xms,-Xmx arguments. Where does this recommendation come from? It would mean that with 16Gb of RAM one should only use 4Gb for the heap. p > What's more, you a

Re: MaxPermSize / Threads

2010-05-17 Thread Ozgur Ozdemircili
Hi, I have the default server.conf file with : I do not have any Executor. When I check the manager status in detail I see the threads with ? in front and nothing else. The ones being used do have the data. Just wondering is it normal to have that much open threads waiting? And André I hav

Re: MaxPermSize / Threads

2010-05-17 Thread Mercy
Hi, You could set the one fourth of physical memory size(the recommended heap size) for -Xms,-Xmx arguments. What's more, you also analyze the heap using jmap. Mercy On 05/17/2010 05:16 PM, André Warnier wrote: Ozgur Ozdemircili wrote: Hi, -Rhel 5.3 x64 -java version "1.6.0_16" Java(

Re: MaxPermSize / Threads

2010-05-17 Thread Pid
On 17/05/2010 10:15, Pid wrote: > On 17/05/2010 09:56, Ozgur Ozdemircili wrote: >> Hi, >> >> -Rhel 5.3 x64 >> >> -java version "1.6.0_16" >> Java(TM) SE Runtime Environment (build 1.6.0_16-b01) >> Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode) >> >> -Apache tomcat 6.0.26 >> >> -Dual

Re: MaxPermSize / Threads

2010-05-17 Thread André Warnier
Ozgur Ozdemircili wrote: Hi, -Rhel 5.3 x64 -java version "1.6.0_16" Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode) -Apache tomcat 6.0.26 -Dual core Intel(R) Xeon(R) CPU E3110 @ 3.00GHz and 4 GB memory each. Hè ? do you m

Re: MaxPermSize / Threads

2010-05-17 Thread Pid
On 17/05/2010 09:56, Ozgur Ozdemircili wrote: > Hi, > > -Rhel 5.3 x64 > > -java version "1.6.0_16" > Java(TM) SE Runtime Environment (build 1.6.0_16-b01) > Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode) > > -Apache tomcat 6.0.26 > > -Dual core Intel(R) Xeon(R) CPU E3110 @ 3.00G

Re: MaxPermSize / Threads

2010-05-17 Thread Ozgur Ozdemircili
Hi, -Rhel 5.3 x64 -java version "1.6.0_16" Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode) -Apache tomcat 6.0.26 -Dual core Intel(R) Xeon(R) CPU E3110 @ 3.00GHz and 4 GB memory each. Thanks. Özgür Özdemircili http://www.ac

Re: MaxPermSize / Threads

2010-05-17 Thread Pid
On 17/05/2010 09:25, Ozgur Ozdemircili wrote: > Hi, > > I am having a lot of Java Heap OutOfMemory issues. The first change I did > was to add more memory to JVM: > > export CATALINA_OPTS="-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server" > > Yet I have 2 questions > > - What are you real life c

MaxPermSize / Threads

2010-05-17 Thread Ozgur Ozdemircili
Hi, I am having a lot of Java Heap OutOfMemory issues. The first change I did was to add more memory to JVM: export CATALINA_OPTS="-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server" Yet I have 2 questions - What are you real life configurations? In a very busy prod environment what parameters do