tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: OutOfMemoryError: PermGen space!!!! Dont know why?
Date Thu, 16 Sep 2010 17:44:57 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

abhi,

On 9/16/2010 3:21 AM, abhishek jain wrote:
> hi
> ps axf --cols 1000 | grep java returns
> 
> 29807 pts/2    S+     0:00          \_ grep java
> 19511 ?        Ss     0:00 jsvc.exec -user tomcat -cp ./bootstrap.jar
> -Djava.endorsed.dirs=../common/endorsed -outfile ../logs/catalina.out
> -errfile ../logs/catalina.err -verbose org.apache.catalina.startup.Bootstrap
> -security
> 19512 ?        Sl    11:57  \_ jsvc.exec -user tomcat -cp ./bootstrap.jar
> -Djava.endorsed.dirs=../common/endorsed -outfile ../logs/catalina.out
> -errfile ../logs/catalina.err -verbose org.apache.catalina.startup.Bootstrap
> -security
> 
> and echo $JAVA_OPTS
> 
> returns a blank line
> Pl advice what should i do,

Try these:

$ jps
(sample output)
13747 Bootstrap
3254 Bootstrap
31762 Bootstrap
32352 Jps

Then, choose which one you want to inspect and do:

$ jinfo 13747
Attaching to process ID 13747, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 16.3-b01
Java System Properties:

java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386
java.vm.version = 16.3-b01
shared.loader =
java.vm.vendor = Sun Microsystems Inc.
java.vendor.url = http://java.sun.com/
path.separator = :
tomcat.util.buf.StringCache.byte.enabled = true
java.vm.name = Java HotSpot(TM) Server VM
file.encoding.pkg = sun.io
sun.java.launcher = SUN_STANDARD
user.country = US
sun.os.patch.level = unknown
java.vm.specification.name = Java Virtual Machine Specification
user.dir = /...
java.runtime.version = 1.6.0_20-b02
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.endorsed.dirs = /usr/local/apache-tomcat-6.0.26/endorsed
os.arch = i386
java.io.tmpdir = /...
line.separator =

java.vm.specification.vendor = Sun Microsystems Inc.
java.naming.factory.url.pkgs = org.apache.naming
java.util.logging.manager = org.apache.juli.ClassLoaderLogManager
os.name = Linux
sun.jnu.encoding = UTF-8
java.library.path = /usr/local/apache-tomcat-6.0.26/server/lib
java.specification.name = Java Platform API Specification
java.class.version = 50.0
org.apache.catalina.STRICT_SERVLET_COMPLIANCE = true
sun.management.compiler = HotSpot Tiered Compilers
os.version = 2.6.18-14-fza-686-bigmem
user.home = /home/cschultz
catalina.useNaming = true
user.timezone = America/New_York
java.awt.printerjob = sun.print.PSPrinterJob
file.encoding = UTF-8
java.specification.version = 1.6
catalina.home = /usr/local/apache-tomcat-6.0.26
java.class.path = /usr/local/apache-tomcat-6.0.26/bin/bootstrap.jar
user.name = cschultz
java.naming.factory.initial = org.apache.naming.java.javaURLContextFactory
package.definition =
sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
java.vm.specification.version = 1.0
java.home = /usr/lib/jvm/java-6-sun-1.6.0.20/jre
sun.arch.data.model = 32
user.language = en
java.specification.vendor = Sun Microsystems Inc.
java.vm.info = mixed mode
java.version = 1.6.0_20
java.ext.dirs =
/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path =
/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/classes
server.loader =
java.vendor = Sun Microsystems Inc.
catalina.base = /...
nop =
file.separator = /
java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
common.loader = ${catalina.home}/lib,${catalina.home}/lib/*.jar
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
package.access =
sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
sun.cpu.isalist =

VM Flags:

- -Dnop -Xmx64M
- -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
- -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true
- -Djava.library.path=/usr/local/apache-tomcat-6.0.26/server/lib
- -Djava.endorsed.dirs=/usr/local/apache-tomcat-6.0.26/endorsed
- -Dcatalina.base=/... -Dcatalina.home=/usr/local/apache-tomcat-6.0.26
- -Djava.io.tmpdir=/...


And try this one:

$ jmap -heap 13747
Attaching to process ID 13747, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 16.3-b01

using thread-local object allocation.
Parallel GC with 4 thread(s)

Heap Configuration:
   MinHeapFreeRatio = 40
   MaxHeapFreeRatio = 70
   MaxHeapSize      = 67108864 (64.0MB)
   NewSize          = 4194304 (4.0MB)
   MaxNewSize       = 4294901760 (4095.9375MB)
   OldSize          = 4194304 (4.0MB)
   NewRatio         = 2
   SurvivorRatio    = 8
   PermSize         = 16777216 (16.0MB)
   MaxPermSize      = 67108864 (64.0MB)

Heap Usage:
PS Young Generation
Eden Space:
   capacity = 1900544 (1.8125MB)
   used     = 384080 (0.3662872314453125MB)
   free     = 1516464 (1.4462127685546875MB)
   20.208950700431036% used
- From Space:
   capacity = 2424832 (2.3125MB)
   used     = 1949696 (1.859375MB)
   free     = 475136 (0.453125MB)
   80.4054054054054% used
To Space:
   capacity = 2686976 (2.5625MB)
   used     = 0 (0.0MB)
   free     = 2686976 (2.5625MB)
   0.0% used
PS Old Generation
   capacity = 30146560 (28.75MB)
   used     = 28228576 (26.920867919921875MB)
   free     = 1917984 (1.829132080078125MB)
   93.63780146059783% used
PS Perm Generation
   capacity = 42598400 (40.625MB)
   used     = 42462368 (40.495269775390625MB)
   free     = 136032 (0.129730224609375MB)
   99.6806640625% used

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkySV5kACgkQ9CaO5/Lv0PCC0gCfS6EjhI/+OPJwutJ+ws6eAVrh
hHIAnjAYTna9CkbG5+ivYkgszhN9mC1F
=Aitg
-----END PGP SIGNATURE-----

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


Mime
View raw message