Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in Servlet Request  RSS feed

 
Pratapchandran Ramakrishnan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to Nicholas Cheung , Anusorn Swasdee for the immediate response

when compared to CGI - servlet create one instance for multiple requests.
But for a single server if lakhs of requests are coming to the server then
it is possible for the server to manage all these requests.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12143
255
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pratapchandran,

Welcome to JavaRanch.

We have many forums here, and we try and keep the focus of the forums to a specific area of interest. This particular forum (SCJD) is for those candidates who are attempting to become recognised as Sun Certified Java Developers. This certification does not use any J2EE technologies (so no servlets).

Although some members of this forum may very well be able to answer your question, you would be better off asking about this in the Servlets forum.

I have therefore moved this post to that forum.

Regards, Andrew
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact, due to the architecture of the Servlet specification a servlet engine with its single instance of a Servlet in a single process can handle a lot more simultaneous requests on the same hardware than can a traditional CGI engine which uses a process for each request.

By using multithreading instead of multiprocessing the CPU load (and possibly memory load as well though this is not a given) is reduced, allowing more requests to be processed in any given unit of time.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you read all the threads from the last two weeks in both the Servlet and JSP forums, you will find this same conversation popping up all over the place.

Different people are asking it and other, different people are answering it over and over. If the answer you got in this thread didn't do it for you, take a look at some of the others.

Of course the best place to find answers to questions like this is not in a user forum but in the specs themselves.
http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!