This content has been marked as final.
Show 3 replies
-
1. Re: GC statistics/info
jaikiran Jul 25, 2006 5:01 AM (in response to nabieh)You will have to add the java option -Xloggc:filename to the run.bat. Something like:
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Xloggc:D:/log/myLogFile.log
You will then see the GC logs in D:/log/myLogFile.log file -
2. Re: GC statistics/info
jaikiran Jul 25, 2006 5:06 AM (in response to nabieh)Along with the -Xloggc:filename you might also want to add
-XX:+PrintGCDetails to get the details of GC.set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Xloggc:D:/log/myLogFile.log -XX:+PrintGCDetails
-
3. Re: GC statistics/info
nabieh Jul 25, 2006 8:10 AM (in response to nabieh)Dear Jaikiran,
Your reply was so helpful, I really appreciate that. Thanks.
Nabieh.