Why am I receiving Response code: Non HTTP response code: java.net.SocketException?

前端 未结 2 708
北海茫月
北海茫月 2020-12-11 08:04

I am trying to send requests using JMeter to my application that is running on localhost but many of the requests get failed due to java.net.SocketException

相关标签:
2条回答
  • 2020-12-11 08:13

    From Screenshots you provided, I think either you thought your system/localhost as super computer or you have mis-configured the jmeter settings.

    Screenshot shows, 10000 users/threads will start in 1 second which is completely unreal for application running on a localhost. Jmeter alone will eat most CPU, memory i.e. system resources.

    If your Jmeter is eating all resources will your application will get anything (Simple answer is NO) Thus application will go down and you will start getting timeout errors or socket exceptions.

    If you have jmeter and application on diff machines then still 10000 users in 1 second is very high load for a normal application and it is obvious that you will face such errors. Try running test with realistic load that is expected for your application with given hw. Maybe 100 users in 1 second and gradually increase them to expected value.

    I hope you understood it now :)

    0 讨论(0)
  • 2020-12-11 08:23

    SocketException means network problem. check you running server status.

    0 讨论(0)
提交回复
热议问题