Nathan Smith <[EMAIL PROTECTED]> wrote:
>
> The problem can be fixed by increasing your -XX:MaxPermSize value to
> more than 256.

I've increased it to 512m now. I'll see.

> Download and use a program called visualgc available here
> http://java.sun.com/performance/jvmstat. You can have it running
> during the day and monitor what the garbage collector is doing and
> how the
> Eden, Old and Perm Gen heap spaces are growing. If Tomcat is not
> throwing an OOM error then the Garbage Collector could be trying to do
> Full GC's causing Tomcat to hang and become unresponsive. There is a
> flow on affect here, which makes it look as though the problem is
> caused by something else.

Looks like no way I can run it on headless box.
Setting the deamon up fails because it can't write somewhere.
# /usr/lib/java5/bin/jstatd
Could not create remote object
access denied (java.util.PropertyPermission
java.rmi.server.ignoreSubClasses write)
java.security.AccessControlException: access denied
(java.util.PropertyPermission java.rmi.server.ignoreSubClasses write)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.
java:264)
        at
java.security.AccessController.checkPermission(AccessController.java:427
)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.lang.System.setProperty(System.java:698)
        at sun.tools.jstatd.Jstatd.main(Jstatd.java:122)
Thanks to Java I still don't know where.. :>

Anyway:

a) I've added -Xloggc:/home/tomcat/logs/gc.log
I logs sth such inputs:

1489.487: [GC 219875K->151505K(1018496K), 0.0292590 secs]
1546.088: [GC 225745K->152608K(1031744K), 0.0268240 secs]
1591.348: [GC 241696K->152348K(1023296K), 0.0198200 secs]
1635.863: [GC 241052K->156605K(1030656K), 0.0218510 secs]
1653.314: [GC 244925K->155047K(1022272K), 0.0205590 secs]
1727.156: [GC 243047K->157627K(1029632K), 0.0215210 secs]
1730.679: [GC 245307K->163738K(1030016K), 0.0263340 secs]
1740.791: [GC 251098K->165299K(1030016K), 0.0266920 secs]
1750.912: [GC 252275K->162599K(1022592K), 0.0220800 secs]
1790.949: [GC 249255K->163285K(1028672K), 0.0179890 secs]

b) These values do not mean ANYTHING to me but percheps
they will be readable by someone from the list:

# /usr/lib/java5/bin/jstat -gc 28923
 S0C    S1C    S0U    S1U      EC       EU        OC         OU       PC
PU    YGC     YGCT    FGC    FGCT     GCT
9984.0 12352.0 9975.6  0.0   83008.0  21940.2   932096.0   168376.4
48640.0 48550.7     82    2.150   0      0.000    2.150
# /usr/lib/java5/bin/jstat -gcutil 28923
  S0     S1     E      O      P     YGC     YGCT    FGC    FGCT     GCT
 99.92   0.00  58.27  18.06  99.82     82    2.150     0    0.000
2.150
# /usr/lib/java5/bin/jstat -gccapacity 28923
 NGCMN    NGCMX     NGC     S0C   S1C       EC      OGCMN      OGCMX
OGC         OC      PGCMN    PGCMX     PGC       PC     YGC    FGC
116480.0 116480.0 106368.0 11840.0 4736.0  82688.0   932096.0   932096.0
932096.0   932096.0  16384.0 524288.0  48640.0  48640.0     83     0
# /usr/lib/java5/bin/jstat -gcpermcapacity 28923
  PGCMN      PGCMX       PGC         PC      YGC   FGC    FGCT     GCT
   16384.0   524288.0    48640.0    48640.0    83     0    0.000
2.172

28923 is the PID of jvm I'm focused on

-- 
T.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to