JMeter - out of memory on linux

前端 未结 2 1838
离开以前
离开以前 2021-02-09 06:53

I am trying to run a load test for a application. For this i am using JMeter (v.2.13) on an Ubuntu Vm with 60GB Ram and more than enough CPU power. Goal is to reach 10k Users co

2条回答
  •  面向向阳花
    2021-02-09 07:14

    First of all check if you can allocate as much as 50G heap by the following command:

    java -Xms50G -version
    

    If it doesn't succeed - try reducing minimum heap size unless you see your Java version information without errors.

    As long as you're NOT getting java.lang.OutOfMemoryError: Java heap space error I believe that your heap size tunings are successfully applied.

    Perhaps you have a memory-intensive listener enabled, like View Results Tree or View Results in Table? If so - disable them (as well as any other listeners)

    If possible try switching to Oracle JDK as at least for Java 6 there were immense performance differences.

    Also make sure that you following recommendations from JMeter Performance and Tuning Tips guide.

提交回复
热议问题