You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Robert J Morman <bo...@asminternational.org> on 2008/10/28 19:19:35 UTC
Questions regarding MaxPermGen
Good afternoon. We run a portal solution on top of Tomcat 6.0.16 (and
Java 1_5_16). We are running out of PermGen space for several instances
of tomcat, which I believe could be some bad code we've received from
our development team.
To test a theory, I'd like to expand the size of our PermGen memory
space from the 64m default to 128m (and possibly higher). I know by
increasing this setting, I could just be delaying the inevitable. I am
running Lambda Probe (LP), allowing me to see the various memory
allocations and I see (as well in the logs), PermGen cap out and then
continuous GC occurring.
I have a 2-part question.
1. In Tomcat6w.exe, I set one java_opt to include -XX:MaxPermGen=128m,
but the tomcat service then does not start up. When I change it to be
-DXX:MaxPermGen=128m (like a lot of our other settings , it starts up
just fine. Yet.. Lambda probe still shows that I only have a 64m cap on
PermGen. Am I setting this properly? (everything I read says yes, but
I'm not getting confirmation via LP).
2. How can I verify PermGen max size has been increased other than
using Lambda probe (to keep LP honest).
Below are all the java_opts I currently have set. Some are specific to
the portal environment we run.
-Dcatalina.home=E:\apache\Tomcat6
-Dcatalina.base=E:\apache\Tomcat6
-Djava.endorsed.dirs=E:\apache\Tomcat6\common\endorsed
-Djava.io.tmpdir=E:\apache\Tomcat6\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=E:\apache\Tomcat6\conf\logging.propertie
s
-Dcom.vignette.workingDir=E:\Vignette\cds\inst-vgninst\vcm-vgninst\cdsvc
s\stage-prod\cds-prod\as\conf
-Dcom.vignette.portal.installdir.path=C:\Vignette\Portal
-Dcom.sun.management.jmxremote
-DXX:MaxPermGen=256m
For perspective, I am an administrator, not a developer.
Bob Morman
EMCSA, MCSA
Enterprise Systems Manager
ASM International Headquarters
http://www.asminternational.org
<blocked::http://www.asminternational.org/>
It's the microelectronics FA event of the year in "North America's Best Big City," as Portland welcomes the International Symposium for Testing and Failure Analysis (ISTFA), sponsored by the Electronic Device Failure Analysis Society. Dates are Nov. 2-6, 2008. For details: www.istfa.org.
Please consider the environment before printing this e-mail.
RE: Questions regarding MaxPermGen
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Robert J Morman [mailto:bob.morman@asminternational.org]
> Subject: Questions regarding MaxPermGen
>
> 1. In Tomcat6w.exe, I set one java_opt to include -XX:MaxPermGen=128m,
> but the tomcat service then does not start up.
It's MaxPermSize, not MaxPermGen; invalid options will stop the JVM during initialization.
> When I change it to be -DXX:MaxPermGen=128m
All that does is set a system property with the name "XX:MaxPermGen" - not terribly useful.
> 2. How can I verify PermGen max size has been increased other than
> using Lambda probe (to keep LP honest).
Try JConsole - shows more heap information than LambdaProbe, and doesn't require installation of an additional webapp. You'll find it in your JDK bin directory.
- 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Questions regarding MaxPermGen
Posted by Robert J Morman <bo...@asminternational.org>.
Thank you (Charles/Ranier) for your help. I had mt'd the option name,
but found that I just had it set too high. It wasn't taking 256m and
would start if I set it lower. I understand '-D' now as well.
Now to see if we have some bad leaks or we just needed more breathing
room.
Bob
-----Original Message-----
From: Rainer Jung [mailto:rainer.jung@kippdata.de]
Sent: Tuesday, October 28, 2008 2:52 PM
To: Tomcat Users List
Subject: Re: Questions regarding MaxPermGen
Hi,
Robert J Morman schrieb:
> Good afternoon. We run a portal solution on top of Tomcat 6.0.16 (and
> Java 1_5_16). We are running out of PermGen space for several
> instances of tomcat, which I believe could be some bad code we've
> received from our development team.
>
> To test a theory, I'd like to expand the size of our PermGen memory
> space from the 64m default to 128m (and possibly higher). I know by
> increasing this setting, I could just be delaying the inevitable. I
> am running Lambda Probe (LP), allowing me to see the various memory
> allocations and I see (as well in the logs), PermGen cap out and then
> continuous GC occurring.
>
> I have a 2-part question.
>
> 1. In Tomcat6w.exe, I set one java_opt to include -XX:MaxPermGen=128m,
MaxPermGen is wrong, MaxPermSize is right.
Have fun with
http://blogs.sun.com/watt/resource/jvm-options-list.html
> but the tomcat service then does not start up. When I change it to be
> -DXX:MaxPermGen=128m (like a lot of our other settings , it starts up
-D sets system properties (an analogy of environment variables in the
platform independant Java world), but there will be no code interested
in the system property you used, so it simply won't change anything.
> just fine. Yet.. Lambda probe still shows that I only have a 64m cap
> on PermGen. Am I setting this properly? (everything I read says yes,
> but I'm not getting confirmation via LP).
Since -D... doesn't change memory settings, you will still run with 64MB
max.
Regards,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
It's the microelectronics FA event of the year in "North America's Best Big City," as Portland welcomes the International Symposium for Testing and Failure Analysis (ISTFA), sponsored by the Electronic Device Failure Analysis Society. Dates are Nov. 2-6, 2008. For details: www.istfa.org.
Please consider the environment before printing this e-mail.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Questions regarding MaxPermGen
Posted by Rainer Jung <ra...@kippdata.de>.
Hi,
Robert J Morman schrieb:
> Good afternoon. We run a portal solution on top of Tomcat 6.0.16 (and
> Java 1_5_16). We are running out of PermGen space for several instances
> of tomcat, which I believe could be some bad code we've received from
> our development team.
>
> To test a theory, I'd like to expand the size of our PermGen memory
> space from the 64m default to 128m (and possibly higher). I know by
> increasing this setting, I could just be delaying the inevitable. I am
> running Lambda Probe (LP), allowing me to see the various memory
> allocations and I see (as well in the logs), PermGen cap out and then
> continuous GC occurring.
>
> I have a 2-part question.
>
> 1. In Tomcat6w.exe, I set one java_opt to include -XX:MaxPermGen=128m,
MaxPermGen is wrong, MaxPermSize is right.
Have fun with
http://blogs.sun.com/watt/resource/jvm-options-list.html
> but the tomcat service then does not start up. When I change it to be
> -DXX:MaxPermGen=128m (like a lot of our other settings , it starts up
-D sets system properties (an analogy of environment variables in the
platform independant Java world), but there will be no code interested
in the system property you used, so it simply won't change anything.
> just fine. Yet.. Lambda probe still shows that I only have a 64m cap on
> PermGen. Am I setting this properly? (everything I read says yes, but
> I'm not getting confirmation via LP).
Since -D... doesn't change memory settings, you will still run with 64MB
max.
Regards,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org