>I have just written a java servlet using threads, with
>LOW_PRIORITY. However, here is what I get after I run top:

> PID       PGRP USERNAME PRI  SIZE   RES STATE    TIME WCPU% CPU%
> 161818  161406 root      20   82M   14M ready    0:56 39.3 95.15

>Is this a normal behavior expected of threads in java. The number
>that concerns me is CPU%. And this was consistent until thread died,
>hovering between 85 - 95. I may be doing something wrong!! but the
>problem is that I just made a single request and had most of my CPU
>resources consumed by the thread. Has anyone else observed the same
>results? Am I paying attention to wrong numbers? can some one shed
>some light on this matter?

You don't give us enough information to answer the question.

Because:

- different OSes use different threading implementations
- different VMs use different threading models

You need to tell us what your OS and VM are and (possibly) what thread
model you have selected at runtime.


Nic Ferrier

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to