Limit connections from client

Issue #72 invalid
HUNGCUONG NGUYEN created an issue

Hi Peter,

I use Open connection and Single Read (use existing connection) samplers for long running websockets to test my server. With Jmeter I can check the maximum websockets open successful is 256 and no more event I tried to open 1000 connections (I have checked by start the second Jmeter program with same .jmx file but no additional websocket is added at Server side). I check again with a java program in Eclipse the maximum websockets open successful is 676 and no more event I tried to open 1000 websocket connections. If I run same java program again the same number of websocket connections is created.

The results above I have checked with Mac OS High Sierra 10.13.4 and I have updated limit maxfiles to 524288 already. (With no update to limit maxfiles I got an error when I run the second time of java program in eclipse as "Too many open files") Could you please give me some advices for this issue.

Thank you in advance.

Comments (1)

  1. HUNGCUONG NGUYEN reporter

    I found the cause of my problems. With Jmeter I connected to Apache server so maxClients is limited by Apache. With java program I connected direct to Dropwizard app and kern.num_taskthreads of MacOS is reached so "out of memory can't create native threads" error is occurred.

  2. Log in to comment