JMeter Java.lang.OutOfMemoryError:PermGen Space Error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.