From owner-freebsd-java@FreeBSD.ORG Thu Oct 27 07:26:38 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org 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 D9C5A16A41F for ; Thu, 27 Oct 2005 07:26:38 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6DC643D45 for ; Thu, 27 Oct 2005 07:26:37 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id j9R7QZ9V077885; Thu, 27 Oct 2005 10:26:35 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.158] (pc158.ebs.gr [10.1.1.158]) by ebs.gr (8.13.3/8.12.11) with ESMTP id j9R7QhJT022365; Thu, 27 Oct 2005 10:26:48 +0300 (EEST) (envelope-from past@ebs.gr) Message-ID: <43608123.4070901@ebs.gr> Date: Thu, 27 Oct 2005 10:26:27 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051008) X-Accept-Language: en-us, en MIME-Version: 1.0 To: YiaNan References: <000801c5daba$7b561b20$69e218ac@citegroup.corp> In-Reply-To: <000801c5daba$7b561b20$69e218ac@citegroup.corp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: about JVM error 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: Thu, 27 Oct 2005 07:26:39 -0000 YiaNan wrote: > Resin 2.1.16 (built Tue Feb 15 11:12:27 PST 2005) > Copyright(c) 1998-2003 Caucho Technology. All rights reserved. > > Starting Resin on Wed, 26 Oct 2005 19:22:31 +0800 (CST) > [2005-10-26 19:22:32.477] initializing application http://nol.gamebase.com.tw/ > 2005-10-26 19:22:32:null hds is up > 2005-10-26 19:22:32:null /home/conf/config.conf > [2005-10-26 19:22:32.571] initializing application http://wow.gamebase.com.tw/ > 2005-10-26 19:22:32:null hds is up > 2005-10-26 19:22:32:null /home/conf/config.conf > [2005-10-26 19:22:32.614] initializing application http://www.wowbase.com.tw/ > 2005-10-26 19:22:32:null hds is up > 2005-10-26 19:22:32:null /home/conf/config.conf > [2005-10-26 19:22:32.636] initializing application http://localhost/ > srun listening to 127.0.0.1:6802 > java.lang.OutOfMemoryError > java.lang.OutOfMemoryError > java.lang.OutOfMemoryError > java.lang.OutOfMemoryError > java.lang.OutOfMemoryError > java.lang.OutOfMemoryError > > Unexpected Signal : 11 occurred at PC=0x28372994 > Function=allocate_permanent__C13instanceKlassR11KlassHandleiP6Thread+0x30 > Library=/usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so > > Current Java thread: > at java.lang.ClassLoader.defineClass0(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:537) > at java.lang.ClassLoader.defineClass(ClassLoader.java:448) > at com.caucho.util.DynamicClassLoader.loadClass(DynamicClassLoader.java:654) > at com.caucho.util.DynamicClassLoader.findClass(DynamicClassLoader.java:573) > - locked <0x3dce4300> (a com.caucho.util.SimpleClassLoader) > at com.caucho.util.DynamicClassLoader.loadClass(DynamicClassLoader.java:518) > - locked <0x3dce4300> (a com.caucho.util.SimpleClassLoader) > at java.lang.ClassLoader.loadClass(ClassLoader.java:235) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) > - locked <0x3dce4300> (a com.caucho.util.SimpleClassLoader) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:219) > at com.caucho.util.CauchoSystem.loadClass(CauchoSystem.java:395) > at com.caucho.jsp.JspManager.preloadIsValid(JspManager.java:210) > at com.caucho.jsp.JspManager.createPage(JspManager.java:147) > at com.caucho.jsp.PageManager.getPage(PageManager.java:351) > - locked <0x3dce3ff8> (a com.caucho.jsp.PageManager$Entry) > at com.caucho.jsp.PageManager.getPage(PageManager.java:196) > at com.caucho.jsp.QServlet.getPage(QServlet.java:220) > at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:129) > at com.caucho.server.http.Invocation.service(Invocation.java:315) > at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:346) > at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274) > at com.caucho.server.TcpConnection.run(TcpConnection.java:139) > at java.lang.Thread.run(Thread.java:534) > > Dynamic libraries: > 0x8048000 /usr/local/jdk1.4.2/bin/java > 0x2806d000 /usr/lib/libc_r.so.4 > 0x2812a000 /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so > 0x28677000 /usr/lib/libstdc++.so.3 > 0x286be000 /usr/lib/libm.so.2 > 0x286db000 /usr/local/jdk1.4.2/jre/lib/i386/native_threads/libhpi.so > 0x286e9000 /usr/local/jdk1.4.2/jre/lib/i386/libverify.so > 0x28704000 /usr/local/jdk1.4.2/jre/lib/i386/libjava.so > 0x28725000 /usr/local/jdk1.4.2/jre/lib/i386/libzip.so > 0x710d2000 /usr/local/jdk1.4.2/jre/lib/i386/libnet.so > 0x2804e000 /usr/libexec/ld-elf.so.1 > > Heap at VM Abort: > Heap > def new generation total 184320K, used 47K [0x2c4c0000, 0x38cc0000, 0x38cc0000) > eden space 163840K, 0% used [0x2c4c0000, 0x2c4cbff0, 0x364c0000) > from space 20480K, 0% used [0x378c0000, 0x378c0000, 0x38cc0000) > to space 20480K, 0% used [0x364c0000, 0x364c0000, 0x378c0000) > tenured generation total 581632K, used 82131K [0x38cc0000, 0x5c4c0000, 0x6c4c0000) > the space 581632K, 14% used [0x38cc0000, 0x3dcf4ea8, 0x3dcf5000, 0x5c4c0000) > compacting perm gen total 65536K, used 65535K [0x6c4c0000, 0x704c0000, 0x704c0000) > the space 65536K, 99% used [0x6c4c0000, 0x704bff60, 0x704c0000, 0x704c0000) > > Local Time = Wed Oct 26 23:08:19 2005 > Elapsed Time = 14207 > # > # HotSpot Virtual Machine Error : 11 > # Error ID : 4F530E43505002F1 > # Please report this error to > # freebsd-java@FreeBSD.org mailing list > # > # Java VM: Java HotSpot(TM) Client VM (1.4.2-p6-root_22_sep_2004_20_08 mixed mode) > # > # An error report file has been saved as hs_err_pid16940.log. > # Please refer to the file for further information. > # > ================================================================== > plz teach me how to do,thanks a lot.. You are running out of memory, as you can see from the messages displayed by Resin. I'd suggest to start the jvm with as much heap size as you can give it (say, 80% of your physical memory) and use the -server option, too. Cheers, Panagiotis