• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Maximum Number of Sockets

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What are the maximum number of sockets that can be accepted by
ServerSocket on Solaris ?
When I try to run server application on Window-NT, serversocket can accept upto 65 K client connections & maintain it.
But the same application on Solaris only allows 53 client socket connection.Then afterwards, it gives the error--- "too many files open". My server application which is to be run on Solaris requires to maintain atleast 50K sockets.
Is there any way around for this. Also is this limit is per process or per machine.
Help is eagarly awaited.
Regards,
Abhijeet

 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is UNIX, not Java thing.
Type 'ulimit -n' at your shell prompt to see how many
open file descriptors can you have at once. I bet you'll see '64' there. To enable you server app to open 50K connections, you should raise this limit (that can't be done from the shell)
To do this, you have to find where you got this restrictions up to small number of descriptors and change it (perhaps this is in some scripts in /etc). I don't know Solaris this well, may be you should ask this in Unix/Linux forum.

------------------
With best of best regards, Pawel S. Veselov ( aka Black Angel )
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This has to be done at the kernel level. Ask your Unix systems administrator to do it. Solaris can be customised by changing parameters without recompiling the kernel most of the time. However, the machine may need to be rebooted.
 
reply
    Bookmark Topic Watch Topic
  • New Topic