Java : how to check current Perm / PermGen Size?

后端 未结 4 1057
星月不相逢
星月不相逢 2021-01-31 19:50

Yesterday when I was running the WebLogic Application Server 11g installer, I encountered a OutOfMemory error, so I Googled for the answer:

java -Xms256m -Xmx512         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 20:49

    You can check the values of any JVM flags of a running JVM by using the jinfo.exe utility.

    %JAVA_HOME%\bin\jinfo.exe -flag

    so to check the value of -XX:PermSize JVM option you can run

    %JAVA_HOME%\bin\jinfo.exe -flag PermSize

提交回复
热议问题