Windows. How to add PermGen space?

纵然是瞬间 提交于 2019-12-11 01:09:08

问题


How to add PermGen space for jvm in windows? I found many link about it? but I don't understand where I must click and write new value


回答1:


You can increase size of PermGen Space by using JVM param -XX:MaxPermSize and -XX:PermSize.




回答2:


It is more of a Java runtime (JVM) setting than a Windows one. You configure it by adding the below parameters (example only) to your Java command line.

-XX:PermSize=256m 
-XX:MaxPermSize=512m

For example, if you were doing java -jar someapp.jar, you might have to do java -jar someapp.jar -XX:PermSize=256m -XX:MaxPermSize=512m.

A common practice is to define the -X parameters in an environment variable called JAVA_OPTS and using it in the command lines.

On unix,

export JAVA_OPTS="-XX:PermSize=256m -XX:MaxPermSize=512m"

java $JAVA_OPTS -jar someapp.jar

On Windows,

you can define a Local / System variable similarly.

java %JAVA_OPTS% -jar someapp.jar



来源:https://stackoverflow.com/questions/18143155/windows-how-to-add-permgen-space

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!