From owner-freebsd-java@FreeBSD.ORG Thu Sep 16 09:52:20 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E84B16A4CE for ; Thu, 16 Sep 2004 09:52:20 +0000 (GMT) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71FD643D53 for ; Thu, 16 Sep 2004 09:52:17 +0000 (GMT) (envelope-from ml@FreeBSD.org.ua) Received: from phantom.cris.net (ml@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id i8G9sVaF011440; Thu, 16 Sep 2004 12:54:31 +0300 (EEST) (envelope-from ml@FreeBSD.org.ua) Received: (from ml@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id i8G9sVmr011439; Thu, 16 Sep 2004 12:54:31 +0300 (EEST) (envelope-from ml) Date: Thu, 16 Sep 2004 12:54:31 +0300 From: Alexey Zelkin To: Achilleus Mantzios Message-ID: <20040916095431.GC11080@phantom.cris.net> References: <20040916091725.GA11080@phantom.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 4.9-STABLE i386 User-Agent: Mutt/1.5.5.1i cc: Alexey Zelkin cc: Palle Girgensohn cc: freebsd-java@freebsd.org Subject: Re: WARNING: -server JVM on recent 5.x/6.x (was: Re: jdk14 & tomcat-5.0, JVM stops and consumes 100% CPU) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 09:52:20 -0000 On Thu, Sep 16, 2004 at 11:50:03AM +0300, Achilleus Mantzios wrote: > O Alexey Zelkin ?????? ???? Sep 16, 2004 : > > > Gentelmen, > > > > Since gcc 3.4 import -server JVM is imfunctionable. It fails very early > > and very hard to debug. Most likely it is some gcc optiomization related > > problem. I am working on this now, but very slowly (because of > > requirement to recompile everything on every change). > > > > Conclusion: Do not use -server switch for any java applications while > > running CURRENT or RELENG_5 now! > > Right, > but what about eclipse? > On my gcc 3.4.2 5.3-BETA2, a freshly built jdk1.4.2-p6 > will also fail to run eclipse where no -server issue is involved. Hmm.. I have set up clean machine for BETA2, built all ports from scratch and see what java -server -version locks up on handled signal (SIGBUS). Previously I had similar situations related to incorect optimization code produced by gcc. So, if you've it working you're lucky. > Maybe the whole gcc34 situation is somehow problematic. > > > > > On Mon, Sep 13, 2004 at 03:05:31PM +0200, Palle Girgensohn wrote: > > > 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 > > > > > ;; 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) = 0 (0x0) > > > sigprocmask(0x3,0x28105818,0x0) = 0 (0x0) > > > poll(0x805f000,0x3,0x0) = 0 (0x0) > > > sigreturn(0x88ab8e0) ERR#185360396 'Unknown error: 185360396' > > > SIGNAL 27 > > > SIGNAL 27 > > > gettimeofday(0x281057a8,0x0) = 0 (0x0) > > > sigprocmask(0x3,0x28105818,0x0) = 0 (0x0) > > > poll(0x805f000,0x3,0x0) = 0 (0x0) > > > sigreturn(0x88ab8e0) ERR#185360396 'Unknown error: 185360396' > > > SIGNAL 27 > > > SIGNAL 27 > > > gettimeofday(0x281057a8,0x0) = 0 (0x0) > > > sigprocmask(0x3,0x28105818,0x0) = 0 (0x0) > > > poll(0x805f000,0x3,0x0) = 0 (0x0) > > > sigreturn(0x88ab8e0) = 17548 (0x448c) > > > SIGNAL 27 > > > SIGNAL 27 > > > gettimeofday(0x281057a8,0x0) = 0 (0x0) > > > sigprocmask(0x3,0x28105818,0x0) = 0 (0x0) > > > poll(0x805f000,0x3,0x0) = 0 (0x0) > > > sigreturn(0x88ab8e0) ERR#185360396 'Unknown error: 185360396' > > > SIGNAL 27 > > > SIGNAL 27 > > > gettimeofday(0x281057a8,0x0) = 0 (0x0) > > > sigprocmask(0x3,0x28105818,0x0) = 0 (0x0) > > > poll(0x805f000,0x3,0x0) = 0 (0x0) > > > gettimeofday(0x88eee44,0x0) = 0 (0x0) > > > gettimeofday(0x88eeeb4,0x0) = 0 (0x0) > > > poll(0x88f0400,0x0,0x0) = 0 (0x0) > > > sigreturn(0x88ab8e0) = 185446412 (0xb0db00c) > > > SIGNAL 27 > > > SIGNAL 27 > > > gettimeofday(0x281057a8,0x0) = 0 (0x0) > > > sigprocmask(0x3,0x28105818,0x0) = 0 (0x0) > > > poll(0x805f000,0x3,0x0) = 0 (0x0) > > > sigreturn(0x88ab8e0) ERR#185360396 'Unknown error: 185360396' > > > SIGNAL 27 > > > SIGNAL 27 > > > gettimeofday(0x281057a8,0x0) = 0 (0x0) > > > sigprocmask(0x3,0x28105818,0x0) = 0 (0x0) > > > poll(0x805f000,0x3,0x0) = 0 (0x0) > > > sigreturn(0x88ab8e0) = 185446412 (0xb0db00c) > > > SIGNAL 27 > > > SIGNAL 27 > > > gettimeofday(0x281057a8,0x0) = 0 (0x0) > > > sigprocmask(0x3,0x28105818,0x0) = 0 (0x0) > > > poll(0x805f000,0x3,0x0) = 0 (0x0) > > > sigreturn(0x88ab8e0) ERR#185360396 'Unknown error: 185360396' > > > SIGNAL 27 > > > SIGNAL 27 > > > gettimeofday(0x281057a8,0x0) = 0 (0x0) > > > sigprocmask(0x3,0x28105818,0x0) = 0 (0x0) > > > poll(0x805f000,0x3,0x0) = 0 (0x0) > > > sigreturn(0x88ab8e0) ERR#185360396 'Unknown error: 185360396' > > > SIGNAL 27 > > > SIGNAL 27 > > > gettimeofday(0x281057a8,0x0) = 0 (0x0) > > > sigprocmask(0x3,0x28105818,0x0) = 0 (0x0) > > > poll(0x805f000,0x3,0x0) = 0 (0x0) > > > sigreturn(0x88ab8e0) ERR#185360396 'Unknown error: 185360396' > > > SIGNAL 27 > > > SIGNAL 27 > > > gettimeofday(0x281057a8,0x0) = 0 (0x0) > > > sigprocmask(0x3,0x28105818,0x0) = 0 (0x0) > > > poll(0x805f000,0x3,0x0) = 0 (0x0) > > > gettimeofday(0x88eee44,0x0) = 0 (0x0) > > > gettimeofday(0x88eeeb4,0x0) = 0 (0x0) > > > poll(0x88f0400,0x0,0x0) = 0 (0x0) > > > sigreturn(0x88ab8e0) ERR#185360396 'Unknown error: 185360396' > > > SIGNAL 27 > > > SIGNAL 27 > > > gettimeofday(0x281057a8,0x0) = 0 (0x0) > > > sigprocmask(0x3,0x28105818,0x0) = 0 (0x0) > > > poll(0x805f000,0x3,0x0) = 0 (0x0) > > > sigreturn(0x88ab8e0) ERR#185360396 'Unknown error: 185360396' > > > > > _______________________________________________ > > > freebsd-java@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-java > > > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > > > _______________________________________________ > > freebsd-java@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-java > > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > > > -- > -Achilleus > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"