This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes how many instances can a runtime handle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "how many instances can a runtime handle" Watch "how many instances can a runtime handle" New topic
Author

how many instances can a runtime handle

merwin pinto
Ranch Hand

Joined: Feb 16, 2005
Posts: 39
i have written a small Server program to manage Clients ... and each time a client connects a new class is instantiated.....i want to know ho many instance of a class can a single runtime can handel ..... will the use of threads help ..... i've also heard that a run time can only handle a few hundred threads at a time.... is there a principle to handle a few hundred clients without causing much drain on the system..
thanks a lot,
Regards
Merwin

[ February 16, 2005: Message edited by: merwin pinto ]

[ February 16, 2005: Message edited by: merwin pinto ]
[ February 16, 2005: Message edited by: merwin pinto ]
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1381
JVM can not handle more than 900 Threads
merwin pinto
Ranch Hand

Joined: Feb 16, 2005
Posts: 39
Originally posted by kri shan:
JVM can not handle more than 900 Threads


Hi Kri,... thanks a lot for the answer .... i had another question ... is it safe to instantiate a simple class instead of using a thread can the jvm handel this ... will it be too much of a load on the JVM
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how many instances can a runtime handle