[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    RE: Do anyone know how to set PermGen space ? [was RE: Latest stable version of Tomcat]
From:       "George Sexton" <gsexton () mhsoftware ! com>
Date:       2006-01-18 23:50:49
Message-ID: 20060118235050.112604CA24 () mail ! mhsoftware ! com
[Download RAW message or body]

Here's my complete startup script. Its all I can offer:

#!/bin/sh
. /etc/sysconfig/tomcat

export CATALINA_VER CATALINA_BASE CATALINA_HOME
export JDK_HOME=/etc/alternatives/java_sdk
export JRE_HOME=/etc/alternatives/jre
#
#	Get the manager apps clean up
#
cd $CATALINA_BASE


cp -f /dev/null $CATALINA_BASE/logs/catalina.out
export JAVA_OPTS="-server -Xms512m -Xmx768m -XX:PermSize=128m
-XX:MaxPermSize=192m -Djava.awt.headless=true"
$CATALINA_HOME/bin/catalina.sh $1 $2 $3 $4 $5 $6 $7 $8 $9




George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -----Original Message-----
> From: Aparna_Maddireddy@Countrywide.Com 
> [mailto:Aparna_Maddireddy@Countrywide.Com] 
> Sent: Wednesday, January 18, 2006 4:41 PM
> To: Tomcat Users List
> Subject: RE: Do anyone know how to set PermGen space ? [was 
> RE: Latest stable version of Tomcat]
> 
> HI George,
> 
> Thank you for the reply.
> I tried to use this option in my service.bat but when I start 
> the service 
> its giving error.(FYI:  I am using Tomcat 5.5.12.)
> Then I set in CATALINA_OPTS but its not taking the 
> PermSize/MaxPermSize 
> values.
> 
> Thank you,
> Aparna.
> 
> 
> 
> 
> 
> "George Sexton" <gsexton@mhsoftware.com> 
> 01/18/2006 03:09 PM
> Please respond to
> "Tomcat Users List" <users@tomcat.apache.org>
> 
> 
> To
> "'Tomcat Users List'" <users@tomcat.apache.org>
> cc
> 
> Subject
> RE: Do anyone know how to set PermGen space ? [was RE: Latest stable 
> version of Tomcat]
> 
> 
> 
> 
> 
> 
> Here's what I use:
> 
> -server -Xms512m -Xmx768m -XX:PermSize=128m 
>   -XX:MaxPermSize=192m -Djava.awt.headless=true 
> 
> Unless you specify "PermSize", it will default 
> to 64MB, and grow to MaxPermSize
> 
> George Sexton
> MH Software, Inc.
> http://www.mhsoftware.com/
> Voice: 303 438 9585
>  
> 
> > -----Original Message-----
> > From: Aparna_Maddireddy@Countrywide.Com 
> > [mailto:Aparna_Maddireddy@Countrywide.Com] 
> > Sent: Wednesday, January 18, 2006 3:57 PM
> > To: Tomcat Users List
> > Subject: RE: Do anyone know how to set PermGen space ? [was 
> > RE: Latest stable version of Tomcat]
> > 
> > I tried with -XX:MaxPermSize=128m too.
> > but, its not working. any other suggestions ??
> > 
> > Thank you,
> > Aparna
> > 
> > 
> > 
> > 
> > 
> > "Tim Lucia" <timlucia@yahoo.com> 
> > 01/18/2006 12:26 PM
> > Please respond to
> > "Tomcat Users List" <users@tomcat.apache.org>
> > 
> > 
> > To
> > "'Tomcat Users List'" <users@tomcat.apache.org>
> > cc
> > 
> > Subject
> > RE: Do anyone know how to set PermGen space ? [was RE: 
> Latest stable 
> > version of Tomcat]
> > 
> > 
> > 
> > 
> > 
> > 
> > PermGen Max is 128m
> > 
> > -----Original Message-----
> > From: Aparna_Maddireddy@Countrywide.Com
> > [mailto:Aparna_Maddireddy@Countrywide.Com] 
> > Sent: Wednesday, January 18, 2006 2:43 PM
> > To: Tomcat Users List
> > Subject: RE: Do anyone know how to set PermGen space ? [was 
> RE: Latest
> > stable version of Tomcat]
> > 
> > hi,
> > 
> > As you said, I set on service manger's Java tab like this :
> > 
> > -Dcatalina.opts=-XX:MaxPermSize=256m
> > 
> > I ran a jsp which shows the Memery usage.
> > Its showing correct values for Xmx, Xms but for PermGen it 
> > still showing 
> > the default 64mb.
> > Do you have any idea ? Is PermGen setting working for you>
> > 
> > Thank you,
> > Aparna. 
> > 
> > 
> > 
> > 
> > "Tim Lucia" <timlucia@yahoo.com> 
> > 01/18/2006 10:30 AM
> > Please respond to
> > "Tomcat Users List" <users@tomcat.apache.org>
> > 
> > 
> > To
> > "'Tomcat Users List'" <users@tomcat.apache.org>
> > cc
> > 
> > Subject
> > RE: Do anyone know how to set PermGen space ? [was RE: 
> Latest stable 
> > version of Tomcat]
> > 
> > 
> > 
> > 
> > 
> > 
> > Wherever/however you start your JVM.  In line with -Xmx -XMs 
> > should work
> > fine.  I set mine (under Windows) on the service manager, 
> > under the Java 
> > tab
> > and (under Linux) in bin/setenv.sh by adding it to CATALINA_OPTS.
> > 
> > 
> > -----Original Message-----
> > From: Aparna_Maddireddy@Countrywide.Com
> > [mailto:Aparna_Maddireddy@Countrywide.Com] 
> > Sent: Wednesday, January 18, 2006 1:24 PM
> > To: Tomcat Users List
> > Subject: RE: Do anyone know how to set PermGen space ? [was 
> RE: Latest
> > stable version of Tomcat]
> > 
> > Hi Tim,
> > 
> > Thank you for the reply.
> > 
> > But, where should I set this.
> > Is it in service.bat file ? If so is the following line correct ??
> > 
> > "%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions 
> > "-Djava.io.tmpdir=%CATALINA_BASE%\temp" --JvmMs 512 --JvmMx 512 
> > --JvmX:MaxPermSize=512m
> > 
> > And how to check if jvm is taking these values? Will they be 
> > inserted in 
> > the registry ? 
> > I set JvmMs, JvnMx and --JvmX:MaxPermSize and then started 
> > the service. 
> > Now, how to make sure if JVM is taking these values ?
> > 
> > Any help would be greatly appericiated.
> > 
> > Thank you,
> > Aparna
> > 
> > 
> > 
> > 
> > 
> > 
> > "Tim Lucia" <timlucia@yahoo.com> 
> > 01/18/2006 10:09 AM
> > Please respond to
> > "Tomcat Users List" <users@tomcat.apache.org>
> > 
> > 
> > To
> > "'Tomcat Users List'" <users@tomcat.apache.org>
> > cc
> > 
> > Subject
> > RE: Do anyone know how to set PermGen space ? [was RE: 
> Latest stable 
> > version of Tomcat]
> > 
> > 
> > 
> > 
> > 
> > 
> > -XX:MaxPermSize=... [128m, for example]
> > 
> > -----Original Message-----
> > From: Aparna_Maddireddy@Countrywide.Com
> > [mailto:Aparna_Maddireddy@Countrywide.Com] 
> > Sent: Wednesday, January 18, 2006 1:02 PM
> > To: Tomcat Users List
> > Subject: Re: Latest stable version of Tomcat
> > 
> > Thank you for the reply.
> > 
> >  Do anyone  know how  to set PermGen space ? 
> > 
> > 
> > Thank you,
> > Aparna
> > 
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> > 
> > 
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic