I am not using any loop in my servlet.For any messages all the running
applets poll after some 3 seconds to the servlet.If something has to
be stoted in database ,it is stored and the change is passed to all
other applets who are polling.(service method is executed for all
request ,so i dont require a loop here).
if I m not getting ur point please specify.
Anks
"Ryan Stewart" <za****@no.texas.spam.net> wrote in message news:<ao********************@texas.net>...
"Anks" <an*****@indiatimes.com> wrote in message
news:23**************************@posting.google.c om... hi
I am testing my applet to servlet communication program using
appletviewer.
as soon as i start the applet the cpu utilization reaches to 100%.I am
using apache tomcat 4.1 application server.the os is windows 2000
professional.
the same problem occurs online as more people open there applet
(ultimately it hangs).
in servlet do we need to do something to keep cpu utilization low.
please help
Anks
Depends on how you have it written. If there's a loop involved for listening
for messages and you have no Thread.sleep() calls, that's your problem.