When migrating jmeter to another machine, running JMeter (my version is JMeter2.13) has the following error:
Java.lang.OutOfMemoryError:PermGen Space
first come to understand, what is PermGen. ***************************
PermGen space is the full name of the permanent Generation spaces, refers to the memory of the permanent storage area,
This memory is primarily stored in class and meta information by the JVM, and class is placed in PermGen space when it is loader.
Unlike the heap region where the class instance (Instance) is stored, the GC (garbage Collection) does not
PermGen space for cleaning, so if your application has a lot of class, it is likely to appear permgen space error,
This error is common when the Web server is pre compile the JSP. If your web app uses a lot of third-party jars, its size
This error message is generated if the JVM default size (4M) is exceeded.
Workaround: Manually set the MaxPermSize size
online solution, my problem unresolved. **************************************
Modify in Jmeter.bat: Set heap=-xms512m-xmx1024m set new=-xx:newsize=128m-xx:maxnewsize=128m set Survivor=-xx:survivorr atio=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=512m Personal modification, problem solving ****************************************
I found myself in the JMeter startup perm related to the following:
If%current_minor% Leq "8" (
REM Increase MaxPermSize If use a lot's Javascript in your Test plan:
Set perm=-xx:permsize=64m-xx:maxpermsize=128m
)
It is probable that the setting is not valid (after all, the setting in the IF)
So, just add this sentence directly outside, and then start OK.
Set perm=-xx:permsize=64m-xx:maxpermsize=128m