3 Replies Latest reply on Jul 25, 2006 8:10 AM by nabieh

    GC statistics/info

    nabieh

      Dears,
      When the GC performs its processes, it has been all logged some where, do you know how can I get the GC or DGC process logs in order to know when those processes ran and how long is the gap between one and another. Thanks in advance.

      Nabieh.

        • 1. Re: GC statistics/info
          jaikiran

          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

            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

              Dear Jaikiran,

              Your reply was so helpful, I really appreciate that. Thanks.

              Nabieh.