W3C home > Mailing lists > Public > www-jigsaw@w3.org > November to December 1999

SV: Something is using all CPU-time

From: Anders Meyer <Anders_Meyer@pol.dk>
Date: Tue, 9 Nov 1999 16:34:28 +0100
Message-ID: <81485FE4A1E9D111847400805F592CF20165CE58@polhus-exchange.aixdom01>
To: "'Yves Lafon'" <ylafon@w3.org>, Anders Meyer </O=POLITIKENS.HUS/OU=POLHUS-EXCH/CN=RECIPIENTS/CN=Anders.Meyer@pol.dk>
Cc: Jigsaw Mailing List <www-jigsaw@w3.org>
Hi again!

After upgrading AIX the problem disappeared! - scary.


Anders Meyer

-----Oprindelig meddelelse-----
Fra:	Yves Lafon [SMTP:ylafon@w3.org]
Sendt:	8. november 1999 18:18
Til:	Anders Meyer
Cc:	Jigsaw Mailing List
Emne:	Re: Something is using all CPU-time

On Thu, 4 Nov 1999, Anders Meyer wrote:

> Hi there!
> I have got a problem with my system. I am running jigsaw - the only 
> application running is a servlet. When we have a heavi load the the java 
> process suddenly starts to use a lot of CPU time. Everything is running 
> fine - but slow!
> I made some thead dumps - it revealed 2 threads (in suspended mode) "stuck" 
> in the servlet. Has anyone got i good idea how to solve this?
> The threads stuck looks similar to this:
>       java.net.SocketInputStream.read(Compiled Code)
>         java.net.SocketInputStream.read(Compiled Code)
>         java.io.InputStreamReader.fill(Compiled Code)
>         java.io.InputStreamReader.read(Compiled Code)
>         java.io.BufferedReader.fill(Compiled Code)
>         java.io.BufferedReader.read(Compiled Code)
>         com.Polinfo.Polinfo.sendBrsCmd(Compiled Code)
> Could this be a problem running jdk 1.1.6 on AIX?

You can add timeouts if it is related to socket streams, you will be
notified then if there is a problem on the socket (stuck connection).
Also check that you detect well the end of connection (-1 on the stream or
IO error), then, verify that the jdk itself is not the culprit (ie: bad
detection of EOF in some cases)
Hope this helps

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \        Architecture Domain - Jigsaw Activity Leader
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Tuesday, 9 November 1999 10:39:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:35 UTC