From owner-freebsd-java@FreeBSD.ORG Mon Feb 11 18:59:28 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA67B16A417 for ; Mon, 11 Feb 2008 18:59:28 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out2.tiscali.nl (smtp-out2.tiscali.nl [195.241.79.177]) by mx1.freebsd.org (Postfix) with ESMTP id 56EEA13C45A for ; Mon, 11 Feb 2008 18:59:27 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [212.123.145.58] (helo=guido.klop.ws) by smtp-out2.tiscali.nl with smtp (Tiscali http://www.tiscali.nl) id 1JOdsE-0000gb-Cg for ; Mon, 11 Feb 2008 19:59:26 +0100 Received: (qmail 1319 invoked from network); 11 Feb 2008 18:59:25 -0000 Received: from localhost (HELO guido.klop.ws) (127.0.0.1) by localhost with SMTP; 11 Feb 2008 18:59:25 -0000 Date: Mon, 11 Feb 2008 19:59:23 +0100 To: "Eelco den Heijer" , freebsd-java@freebsd.org From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <20080211120013.D126216A4A9@hub.freebsd.org> <47B05677.7080901@objectivation.nl> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <47B05677.7080901@objectivation.nl> User-Agent: Opera Mail/9.25 (FreeBSD) Cc: Subject: Re: Current problem reports assigned to freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2008 18:59:28 -0000 On Mon, 11 Feb 2008 15:06:47 +0100, Eelco den Heijer = wrote: > >> Current FreeBSD problem reports >> Critical problems >> Serious problems >> >> S Tracker Resp. Description >> ---------------------------------------------------------------------= ----------- >> o java/114644 java tomcat goes out of PermSpace, jvm crashes > Hi, does anyone know whether anyone is working/looking > at this issue? Apparantly it has been open since July 17th, 2007. > I looked on = > http://lists.freebsd.org/pipermail/freebsd-java/2007-July/006476.html > and 'State' is on 'open'. > > This issue is a bit of a showstopper for us at the moment; we are > considering to move to another OS or another servlet container. > Neither option appeals to us, but the 'random' crashes are getting > annoying :-/ > > Any info/advice will be appreciated, > Best regards, > Eelco den Heijer This problem also happens on Linux and Windows. Looking at your issue I think you are running with the default settings.= ** copy-paste from the issue: Heap def new generation total 4544K, used 0K [0x2d670000, 0x2db50000, = 0x2db50000) eden space 4096K, 0% used [0x2d670000, 0x2d670000, 0x2da70000) from space 448K, 0% used [0x2da70000, 0x2da70000, 0x2dae0000) to space 448K, 0% used [0x2dae0000, 0x2dae0000, 0x2db50000) tenured generation total 60544K, used 30895K [0x2db50000, 0x31670000, = 0x31670000) the space 60544K, 51% used [0x2db50000, 0x2f97bc18, 0x2f97be00, 0x316700= 00) compacting perm gen total 65536K, used 65535K [0x31670000, 0x35670000, = 0x35670000) the space 65536K, 99% used [0x31670000, 0x3566fef8, 0x35670000, 0x356700= 00) No shared spaces configured. ** 64MB for tenured and 64MB for perm gen. Try increasing perm gen to 128MB and see what happens. With the tool 'jstat -gc 1000' you watch memory usage of the = different object generations in java. Do you reload your context sometimes in Tomcat? It is a known issue that with some singleton constructions you can keep = = the classloader referenced, so classes (which are in the perm gen) are n= ot = garbage collected. Is this expected behaviour. You have more than one QuartzScheduler runni= ng. ** copy-paste from the issue: 0x0820b600 JavaThread "QuartzScheduler_Worker-1" [_thread_blocked, = id=3D136361984] ... 0x08457000 JavaThread "QuartzScheduler_Worker-1" [_thread_blocked, = id=3D138768896] ** It might be that reloading the context in Tomcat doesn't stop the Quartz= = threads, so all previous class remain referenced in memory. Ronald. -- = Ronald Klop Amsterdam, The Netherlands