Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 49119 invoked from network); 20 Jan 2010 19:15:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2010 19:15:49 -0000 Received: (qmail 67795 invoked by uid 500); 20 Jan 2010 19:15:45 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 67715 invoked by uid 500); 20 Jan 2010 19:15:45 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 67704 invoked by uid 99); 20 Jan 2010 19:15:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 19:15:45 +0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.219.55.141] (HELO mail.polydyne.com) (66.219.55.141) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 19:15:36 +0000 Received: from postoffice.polydyne.com [10.1.1.8] by mail.polydyne.com - Websense Email Security (7.0.0); Wed, 20 Jan 2010 13:15:14 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: PermGen question Date: Wed, 20 Jan 2010 13:05:18 -0600 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: PermGen question Thread-Index: AcqaAc8gSsw7zZqcTSebicIk2O/6VgAAadNQ References: From: "Jeffrey Janner" To: "Tomcat Users List" X-SEF-7853D99-ADF1-478E-8894-213D316B8FFA: 1 X-SEF-Processed: 7_0_0_00242__2010_01_20_13_15_15 And no, I'm not seeing out of PermGen errors -- yet.=0D=0A=0D=0A-----Origin= al Message-----=0D=0AFrom: Jeffrey Janner [mailto:Jeffrey.Janner@PolyDyne.c= om]=20=0D=0ASent: Wednesday, January 20, 2010 12:53 PM=0D=0ATo: Tomcat User= s List=0D=0ASubject: PermGen question=0D=0A=0D=0AI've got a really odd situ= ation that I'm not understanding. I figured=0D=0Athe gurus could explain i= t to me.=0D=0A=0D=0AI have two Tomcat instances deployed as services on the= same 64bit=0D=0AWindows 2008 machine with Sun JDK 1.6.0=5F13 64bit.=0D=0A=0D= =0AThey are running the same apps but for different user bases and were=0D=0A= deployed per the Tomcat doc on running multiple instances.=0D=0A=0D=0AThe o= nly difference in their configs, besides the obvious file pointers,=0D=0Ais= the memory settings.=0D=0A=0D=0A=20=0D=0A=0D=0AInstance 1 is -Xmx=3D5000M = -Xms5000M=0D=0A=0D=0AInstance 2 is -Xmx=3D4096M -Xms3092M (yes, I know, it= 's best to make them=0D=0Athe same)=0D=0A=0D=0ANeither has a Thread Stack S= ize set.=0D=0A=0D=0A=20=0D=0A=0D=0AWhen I did a thread dump on each instanc= e, I noticed that the PermGen=0D=0Aspace for each instance was different. = Even more interesting, the=0D=0Ainstance with the smaller memory settings h= ad the larger PermGen.=0D=0A=0D=0A=20=0D=0A=0D=0AInstance 1:=0D=0A=0D=0AHea= p=0D=0A=0D=0A PSYoungGen total 1622976K, used 714557K [0x0000000155950= 000,=0D=0A0x00000001bdbf0000, 0x00000001bdbf0000)=0D=0A=0D=0A eden space 1= 534528K, 44% used=0D=0A[0x0000000155950000,0x000000017f3795b0,0x00000001b33= e0000)=0D=0A=0D=0A from space 88448K, 36% used=0D=0A[0x00000001b8590000,0x= 00000001ba536148,0x00000001bdbf0000)=0D=0A=0D=0A to space 83648K, 0% use= d=0D=0A[0x00000001b33e0000,0x00000001b33e0000,0x00000001b8590000)=0D=0A=0D=0A= PSOldGen total 3413376K, used 867706K [0x00000000853f0000,=0D=0A0x0= 000000155950000, 0x0000000155950000)=0D=0A=0D=0A object space 3413376K, 25= % used=0D=0A[0x00000000853f0000,0x00000000ba34ead0,0x0000000155950000)=0D=0A=0D= =0A PSPermGen total 43712K, used 43613K [0x000000007fff0000,=0D=0A0x0= 000000082aa0000, 0x00000000853f0000)=0D=0A=0D=0A object space 43712K, 99% = used=0D=0A[0x000000007fff0000,0x0000000082a875d8,0x0000000082aa0000)=0D=0A=0D= =0A=20=0D=0A=0D=0AInstance 2:=0D=0A=0D=0AHeap=0D=0A=0D=0A PSYoungGen t= otal 989312K, used 149224K [0x000000012fea0000,=0D=0A0x000000016fea0000, 0x= 00000001853f0000)=0D=0A=0D=0A eden space 932544K, 15% used=0D=0A[0x0000000= 12fea0000,0x0000000138c55de0,0x0000000168d50000)=0D=0A=0D=0A from space 56= 768K, 7% used=0D=0A[0x0000000168d50000,0x0000000169154480,0x000000016c4c000= 0)=0D=0A=0D=0A to space 54400K, 0% used=0D=0A[0x000000016c980000,0x00000= 0016c980000,0x000000016fea0000)=0D=0A=0D=0A PSOldGen total 2097152K,= used 174926K [0x00000000853f0000,=0D=0A0x00000001053f0000, 0x000000012fea0= 000)=0D=0A=0D=0A object space 2097152K, 8% used=0D=0A[0x00000000853f0000,0= x000000008fec3a20,0x00000001053f0000)=0D=0A=0D=0A PSPermGen total 860= 16K, used 45979K [0x000000007fff0000,=0D=0A0x00000000853f0000, 0x0000000085= 3f0000)=0D=0A=0D=0A object space 86016K, 53% used=0D=0A[0x000000007fff0000= ,0x0000000082cd6ef8,0x00000000853f0000)=0D=0A=0D=0A=20=0D=0A=0D=0AObviously= , I'm concerned about that 99% used value in the first=0D=0Ainstance, and w= ill be going back to address it. However, I would have=0D=0Athought that i= t would have the same size as instance 2.=20=0D=0A=0D=0A=20=0D=0A=0D=0ACan= someone explain what's happening here that I'm not seeing=3F I didn't=0D=0A= think that the PermGen grew or shrunk over time.=0D=0A=0D=0A=20=0D=0A=0D=0A= Other than the heap size differences, the only other thing that's=0D=0Adiff= erent is that #1 has been running a day or two longer than #2.=0D=0A=0D=0A =0D= =0A=0D=0A=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0D=0AJeffrey W. Jann= er e-mail: Jeffrey.Janner@PolyDyne.com=0D=0A=20=0D=0APolyDyne Software Inc. web: http://www.po= lydyne.com/=0D=0A=20=0D=0A9390 Research Blvd. = phone: (512) 343-9100 x8930=0D=0ABuilding 1, Suite 400 fax= : (512) 343-9297=0D=0AAustin, TX 78759=0D=0A=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=0D=0A=0D=0A=20=0D=0A=0D=0A=0D=0A******************************= * NOTICE=0D=0A*********************************=0D=0AThis message is inten= ded for the use of the individual or entity to=0D=0Awhich=20=0D=0Ait is add= ressed and may contain information that is privileged,=20=0D=0Aconfidential= , and exempt from disclosure under applicable law. If the=20=0D=0Areader o= f this message is not the intended recipient or the employee or=20=0D=0Aage= nt responsible for delivering this message to the intended recipient,=0D=0A=0D= =0Ayou are hereby notified that any dissemination, distribution, or copying=0D= =0A=0D=0Aof this communication is strictly prohibited. If you have receive= d this=0D=0A=0D=0Acommunication in error, please notify us immediately by r= eply or by=20=0D=0Atelephone (call us collect at 512-343-9100) and immediat= ely delete this=20=0D=0Amessage and all its attachments.=0D=0A=0D=0A*******= ************************ NOTICE *********************************=0D=0ATh= is message is intended for the use of the individual or entity to which=20=0D= =0Ait is addressed and may contain information that is privileged,=20=0D=0A= confidential, and exempt from disclosure under applicable law. If the=20=0D= =0Areader of this message is not the intended recipient or the employee or =0D= =0Aagent responsible for delivering this message to the intended recipient,= =20=0D=0Ayou are hereby notified that any dissemination, distribution, or c= opying=20=0D=0Aof this communication is strictly prohibited. If you have r= eceived this=20=0D=0Acommunication in error, please notify us immediately b= y reply or by=20=0D=0Atelephone (call us collect at 512-343-9100) and immed= iately delete this=20=0D=0Amessage and all its attachments.=0D=0A --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org