问题
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