Search code examples
websockettcpjmeterperformance-testing

How to do performance WebSocket testing at home


I have written WebSocket server and wanted to make performance test for it (how many users sending messages to every connected users can I handle at max on my PC). I use JMeter to do it. After running first test, it stopped after about 16500 samples and next test didn't even run. I think It's because my PC opened too many TCP connections (one TCP connection for one WebSocket connection).

So I'm interested in how can I test it at home? Is there a way to open something like "fake" TCP connections so I can have unlimited number of it?


Solution

  • Performance testing on scaled down environments doesn't make a lot of sense because you cannot extrapolate the results and predict how the performance will look like in the real production environment.

    Of course you can use profiler tools and try optimizing your code however the code might behave differently in the production environment due to higher amount of resources available.

    If you still want to proceed there are no "fake" connections you could use, but you can increase the limits on your operating system level. For MS Windows:

    From JMeter perspective