GeeCON Prague 2014*
The moose likes JSP and the fly likes How many Instances will be created? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "How many Instances will be created?" Watch "How many Instances will be created?" New topic
Author

How many Instances will be created?

sirisha makkapati
Ranch Hand

Joined: Dec 10, 2006
Posts: 83
How many Instances will be created for one Servelt when 100 users will send 100 requests to server && How many servlets will be created.
Any one please tell me.
[ January 10, 2007: Message edited by: Bear Bibeault ]
Rohitt Vermaa
Ranch Hand

Joined: Oct 12, 2006
Posts: 232
There will be only one Servlet instance. Each request will be processed by a thread.


SCJP ,SCWCD
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

And just to be a nasty stickler, I might add one instance per JVM. In a clustered environment, you may have three or four JVMs working to keep up with the workload. In that case, you'd have one instance per JVM.

And we could always talk about the SingleThreadModel as well, but that's another story.



-Cameron McKenzie
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61304
    
  66

Originally posted by Cameron W. McKenzie:

And we could always talk about the SingleThreadModel as well, but that's another story.


Let's not confuse the new-comers with deprecated concepts.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
GeeCON Prague 2014
 
subject: How many Instances will be created?