Subject: Configuration for socket enhancement/ How to improve concurrent connection on server
Currently, on every request we assign a new socket to the request, when the user request increased up to 400 login attempts get failed.
we load test from JMETER connect
Login user to Server:Connect Error %32.85%
are we missing some configuration? before digging down in to code? is their any limit on socket creation ? any configuration which can improve the connect successfully?
- private void Listen()
- {
- socket.Listen(10000);
- isListening = true;
- while (isListening)
- {
- allDone.Reset();
- allDone.WaitOne();
- }
- }
- private void AcceptCallBack(IAsyncResult arg)
- {
- allDone.Set();
- Socket newSocket = socket.EndAccept(arg);
- Task.Factory.StartNew(() =>
- {
- });
- }
we load test from JMETER connect
Login user to Server:Connect Error %32.85%
are we missing some configuration? before digging down in to code? is their any limit on socket creation ? any configuration which can improve the connect successfully?
This post was edited on 2017-08-24, 13:15 by Alex.