473,326 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

100 % cpu utilization

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
Jul 17 '05 #1
4 6763
"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.
Jul 17 '05 #2
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.

Jul 17 '05 #3
isn't there some sort of profile option you can run
is it "java -Xprof"
that will tell you where the time is being spent

"Anks" <an*****@indiatimes.com> wrote in message
news:23**************************@posting.google.c om...
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.

Jul 17 '05 #4
an*****@indiatimes.com (Anks) wrote in message news:<23**************************@posting.google. com>...
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.


You said it was the applet causing the problem. What I was asking is
how does it know to poll every three seconds? Do you run any kind of
loop? Like:

while (appletRunning) { ... }

If so, do you have a Thread.sleep() call inside it?
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Patrick Moore | last post by:
We have a SQL 7.0 Standard Server running on a Windows 2000 Server machine with 2 800mhz Pentium III with 2GB memory. Our front end is Access 97 and 2000 with most ADO connections for the scripts...
3
by: Dathon | last post by:
I have a Windows service that's built with .NET. The process is meant to run in the background and not suck up too much CPU time. I set the thread priority for the various threads in the service...
3
by: john | last post by:
I don't want to know what the CPU utilization is right now. I want to get the average utilization over the last, for example, hour. So I came up with a method where I would get a Process object...
0
by: dtp | last post by:
This one has got me stumped. Is there a way to figure out the utilization of each processor in an MP system? (2P and above) Right now I use the NtQuerySystemInformation API to get busy and idle...
0
by: bimalendug | last post by:
Hi All, I'm using the .NET performance counters to calculate the network utilization. But this value exceeds 100%. In most of the cases, it is very similar to the one shown in the task-manager....
0
by: spider007 | last post by:
i want to find out the CPU Utilization per application in my DB. The problem is that we have OLTP and DSS transactions happening on the same server and we are not able to convince the client that the...
0
by: PRR | last post by:
with WMI class Win32_Process i can get most details of Processes running one Pc.. except CPU utilization... THe class for CPU utilization u need to use Win32_PerfFormattedData_PerfProc_Process ...
1
by: Kaheru | last post by:
memory utilization increase? This is because when i try to keep track of the CPU utilization and memory utilization of my FTP server process (ftpserver.exe), the CPU utilization increase, but the...
7
by: balach | last post by:
hi all, i am new in .NET, some body please help me regarding calculating total cpu utilization and RAM memory utilization in percentage (Accurately) on page load event of ASP.NET. i found the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.