JMeter OutOfMemoryError

后端 未结 11 1935
北荒
北荒 2020-12-25 14:20

I am facing below OutOfMemor errors, and JMeter stops working....

java.lang.OutOfMemoryError: Java heap space Dumping heap to
    java_pid4412.hprof ... Heap         


        
11条回答
  •  半阙折子戏
    2020-12-25 15:14

    I also had this problem and it did not matter how much I adjusted the configuration java -Xms -Xmx, as I always ran out of memory. In the end I found out that running JMeter in GUI mode (especially with listeners) causes a bottleneck. The best way to use JMeter, especially for extended testing or running multiple slave servers, is in non-GUI mode, which looks something like this:

    jmeter -n -t testplan.jmx -r
    

    Check out this link and read how to do remote testing the proper way: http://wiki.apache.org/jmeter/JMeterFAQ#How_to_do_remote_testing_the_.27proper_way.27.3F. Read the section on remote testing the 'proper way'.

    Hope this helps.

提交回复
热议问题