Date: Mon, 13 Sep 2004 15:05:31 +0200 From: Palle Girgensohn <girgen@pingpong.net> To: freebsd-java@freebsd.org Subject: jdk14 & tomcat-5.0, JVM stops and consumes 100% CPU Message-ID: <20603517059D47771C8E39D1@rambutan.pingpong.net>
next in thread | raw e-mail | index | archive | help
--==========08A5DE28433407BD18F7========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! I have a problem with jdk14 + tomcat, and believe it is the HotSpot Server VM that fails. We're running jdk + tomcat. After running for hours or days, suddenly the JVM stop and consumes 100% CPU cycles. This can go on for a minute, sometimes ten, then its back to normal. All access are routed via apache & mod_jk, and mod_jk's log says: [Mon Sep 13 11:38:49 2004] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems repeatedly when the problem occurs. I log apache with %T (service time in seconds) and it reveals that apache has to wait for the JVM. I suspected Garbage collection, but a log of GC (-Xloggc:/tmp/filename) reveals nothing special. top reveals 100% CPU usage for java. I truss:ed a JVM before restarting, output attached, although it doesn't really make any sense... There is no extra load on the machine at the time, it can happen to an almost idle system. I've seen it happen when the first request after an idle period happens, and also under normal, pretty constant load. Removing `-server' from java's option list seems to also remove the problem, so I guess there's a bug in the HotSpot Server VM? Any ideas, how can I help debugging? jdk-1.4.2p6_4 tomcat-5.0.24 FreeBSD-4.10 apache+mod_ssl-1.3.31+2.8.18_4 mod_jk-1.2.5_1,1 This happens on several different machines, same setup /Palle --==========08A5DE28433407BD18F7========== Content-Type: text/plain; charset=iso-8859-1; name="jvm.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="jvm.txt"; size=3927 ;; This buffer is for notes you don't want to save, and for Lisp = evaluation. ;; If you want to create a file, first visit that file with C-x C-f, ;; then enter the text in that file's own buffer. SIGNAL 27 gettimeofday(0x281057a8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28105818,0x0) =3D 0 (0x0) poll(0x805f000,0x3,0x0) =3D 0 (0x0) sigreturn(0x88ab8e0) ERR#185360396 'Unknown = error: 185360396' SIGNAL 27 SIGNAL 27 gettimeofday(0x281057a8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28105818,0x0) =3D 0 (0x0) poll(0x805f000,0x3,0x0) =3D 0 (0x0) sigreturn(0x88ab8e0) ERR#185360396 'Unknown = error: 185360396' SIGNAL 27 SIGNAL 27 gettimeofday(0x281057a8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28105818,0x0) =3D 0 (0x0) poll(0x805f000,0x3,0x0) =3D 0 (0x0) sigreturn(0x88ab8e0) =3D 17548 (0x448c) SIGNAL 27 SIGNAL 27 gettimeofday(0x281057a8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28105818,0x0) =3D 0 (0x0) poll(0x805f000,0x3,0x0) =3D 0 (0x0) sigreturn(0x88ab8e0) ERR#185360396 'Unknown = error: 185360396' SIGNAL 27 SIGNAL 27 gettimeofday(0x281057a8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28105818,0x0) =3D 0 (0x0) poll(0x805f000,0x3,0x0) =3D 0 (0x0) gettimeofday(0x88eee44,0x0) =3D 0 (0x0) gettimeofday(0x88eeeb4,0x0) =3D 0 (0x0) poll(0x88f0400,0x0,0x0) =3D 0 (0x0) sigreturn(0x88ab8e0) =3D 185446412 (0xb0db00c) SIGNAL 27 SIGNAL 27 gettimeofday(0x281057a8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28105818,0x0) =3D 0 (0x0) poll(0x805f000,0x3,0x0) =3D 0 (0x0) sigreturn(0x88ab8e0) ERR#185360396 'Unknown = error: 185360396' SIGNAL 27 SIGNAL 27 gettimeofday(0x281057a8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28105818,0x0) =3D 0 (0x0) poll(0x805f000,0x3,0x0) =3D 0 (0x0) sigreturn(0x88ab8e0) =3D 185446412 (0xb0db00c) SIGNAL 27 SIGNAL 27 gettimeofday(0x281057a8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28105818,0x0) =3D 0 (0x0) poll(0x805f000,0x3,0x0) =3D 0 (0x0) sigreturn(0x88ab8e0) ERR#185360396 'Unknown = error: 185360396' SIGNAL 27 SIGNAL 27 gettimeofday(0x281057a8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28105818,0x0) =3D 0 (0x0) poll(0x805f000,0x3,0x0) =3D 0 (0x0) sigreturn(0x88ab8e0) ERR#185360396 'Unknown = error: 185360396' SIGNAL 27 SIGNAL 27 gettimeofday(0x281057a8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28105818,0x0) =3D 0 (0x0) poll(0x805f000,0x3,0x0) =3D 0 (0x0) sigreturn(0x88ab8e0) ERR#185360396 'Unknown = error: 185360396' SIGNAL 27 SIGNAL 27 gettimeofday(0x281057a8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28105818,0x0) =3D 0 (0x0) poll(0x805f000,0x3,0x0) =3D 0 (0x0) gettimeofday(0x88eee44,0x0) =3D 0 (0x0) gettimeofday(0x88eeeb4,0x0) =3D 0 (0x0) poll(0x88f0400,0x0,0x0) =3D 0 (0x0) sigreturn(0x88ab8e0) ERR#185360396 'Unknown = error: 185360396' SIGNAL 27 SIGNAL 27 gettimeofday(0x281057a8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28105818,0x0) =3D 0 (0x0) poll(0x805f000,0x3,0x0) =3D 0 (0x0) sigreturn(0x88ab8e0) ERR#185360396 'Unknown = error: 185360396' --==========08A5DE28433407BD18F7==========--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20603517059D47771C8E39D1>