yichao firstname, zeaster nickname, zhang lastname

several ways to monitor the jvm

  • using jconsole in jdk1.5
    • Runtime.getRuntime().freeMemory() returns current freeMemory
    • using -Xloggc: para
      • add '-Xloggc:gc.log' to vm parameters and the file gc.log shows detail memory usage from startup
      • there is many tools to analyze the file to show you figures.
      • 1 comment:

        Yichao said...

        email test