JMeter issues when running large number of threads

前端 未结 6 649
無奈伤痛
無奈伤痛 2020-12-10 04:30

I\'m testing using Apache\'s Jmeter, I\'m simply accessing one page of my companies website and turning up the number of users until it reaches a threshold, the problem is t

6条回答
  •  长情又很酷
    2020-12-10 05:21

    JVM is simply not capable of running so many threads. And even if it is, JMeter will consume a lot of CPU resources to purely switch contexts. In other words, above some point you are not benchmarking your web application but the client computer, hosting JMeter.

    You have few choices:

    • experiment with JVM options, e.g. decrease default -Xss512K to something smaller

    • run JMeter in a cluster

    • use tools taking radically different approach like Gatling

提交回复
热议问题