When migrating jmeter to another machine, run JMeter (my version is JMeter2.13) with the following error:
Java.lang.OutOfMemoryError:PermGen Space
first to understand, what is PermGen? ***************************
the full name of PermGen space is permanent Generation space, which refers to the permanent storage area of memory,
this memory is primarily stored by the JVM with class and meta information, and class is placed in PermGen space when it is loader .
Unlike the heap area where the class instance (Instance) is stored, the GC (garbage Collection) does not operate on the main program
PermGen space for cleanup, so if you have a lot of classes in your app, you're likely to have permgen space errors,
This error is common when the Web server pre-compile the JSP. If you use a large number of third-party jars under your web app, its size
The default size of the JVM (4M) is exceeded, and this error message is generated.
Workaround: Manually set the MaxPermSize size
Online solution, my problem is not solved! **************************************
Modified in Jmeter.bat: Set heap=-xms512m-xmx1024m set new=-xx:newsize=128m-xx:maxnewsize=128m set Survivor=-xx:survivorrati o=8-xx:targetsurvivorratio=50% Set tenuring=-xx:maxtenuringthreshold=2 Set rmigc=-dsun.rmi.dgc.client.gcinterval= 600000-dsun.rmi.dgc.server.gcinterval=600000 Set perm=-xx:permsize=256m-xx:maxpermsize=512mpersonal modification, problem solving ****************************************
I found that my JMeter startup perm related to the following:
If%current_minor% LEQ "8" (
rem Increase MaxPermSize If you use a lot of Javascript in your Test Plan:
Set perm=-xx:permsize=64m-xx:maxpermsize=128m
)
It may be that the setting is not in effect (after all, the setting in the IF)
So, add this sentence directly outside, then start OK.
Set perm=-xx:permsize=64m-xx:maxpermsize=128m
JMeter Java.lang.OutOfMemoryError:PermGen Space Error