Question

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

Was it helpful?

Solution 2

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

enter image description here

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top