Results 1 to 2 of 2
Hi, We have a server application in java using nio running on linux. We have 20000 open sockets and when we send traffic only to one of them we saw ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-27-2010 #1
- Join Date
- Oct 2010
high software interrupt usage
We have a server application in java using nio running on linux.
We have 20000 open sockets and when we send traffic only to one of them we saw when running top that the software interrupt (si) cpu usage is high.
Is there a limit to number of open sockets ? How can we decrease the si usage ?
- 10-28-2010 #2
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
There are limits to the number of file descriptors that a system can support, which is configurable, but then your configuration may exceed practical limits, resulting in degraded performance as you are apparently experiencing. In any case 20K open sockets is a VERY large (in my experience) number. Why so many? If that many client applications are trying to communicate with your server, you may be better served by use of a message bus such as TIB, MQ-Series, or even simple Posix message queues.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!