From owner-freebsd-java@FreeBSD.ORG Mon Aug 18 19:44:33 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 049671065678 for ; Mon, 18 Aug 2008 19:44:33 +0000 (UTC) (envelope-from shark.fin.soup@mac.com) Received: from asmtpout019.mac.com (asmtpout019.mac.com [17.148.16.94]) by mx1.freebsd.org (Postfix) with ESMTP id DB5848FC16 for ; Mon, 18 Aug 2008 19:44:32 +0000 (UTC) (envelope-from shark.fin.soup@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from [10.0.1.2] ([124.120.145.216]) by asmtp019.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K5T00A12ATU6UA0@asmtp019.mac.com> for freebsd-java@freebsd.org; Mon, 18 Aug 2008 12:44:32 -0700 (PDT) Message-id: <7B413A97-AC11-4FD4-9BD5-40CC21593488@mac.com> From: Sharkie To: freebsd-java@freebsd.org In-reply-to: <97C57C69-1708-4176-86BC-E2B733BF0ACA@kjkoster.org> Date: Tue, 19 Aug 2008 02:42:28 +0700 References: <2849C2B9-6990-4F51-A430-06E99D745816@mac.com> <97C57C69-1708-4176-86BC-E2B733BF0ACA@kjkoster.org> X-Mailer: Apple Mail (2.919.2) Cc: Kees Jan Koster Subject: Re: Why cannot I allocate more than -Xmx700M 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, 18 Aug 2008 19:44:33 -0000 It's very odd that I have been getting this error. %/usr/local/jruby/bin/jruby -J-Xmx1000M --server /usr/local/bin/ glassfish_rails /home/www/app Error occurred during initialization of VM Could not reserve enough space for object heap # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x88102a19, pid=3183, tid=0x8103200 # # Java VM: Diablo Java HotSpot(TM) Server VM (10.0-b23 mixed mode bsd- x86) # Problematic frame: # C [libc.so.7+0x62a19] free+0x49 # # An error report file with more information is saved as: # /home/www/hs_err_pid3183.log # # Please submit bug reports to freebsd-java@FreeBSD.org # Abort (core dumped) On Aug 19, 2008, at 1:36 AM, Kees Jan Koster wrote: > Dear Sharkie, > >> My machine does have more than 700M available when I try to start >> my Java app, but I could only do at most 700M. > > What error did you get when you tried it? > >> Is there an artificial limit or something that I cannot see here? I >> have 1506M remaining, which I cannot use in this single java app? > > I should not think so. > -- > Kees Jan > > http://java-monitor.com/forum/ > kjkoster@kjkoster.org > 06-51838192 > > Rule 1 for being in a hole: stop digging. >