From owner-freebsd-java@FreeBSD.ORG Tue Aug 19 06:36:36 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 567A1106566C for ; Tue, 19 Aug 2008 06:36:36 +0000 (UTC) (envelope-from spatula@spatula.net) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id E59C18FC15 for ; Tue, 19 Aug 2008 06:36:35 +0000 (UTC) (envelope-from spatula@spatula.net) Received: by ug-out-1314.google.com with SMTP id o4so372803uge.39 for ; Mon, 18 Aug 2008 23:36:34 -0700 (PDT) Received: by 10.103.221.13 with SMTP id y13mr4535070muq.41.1219127794415; Mon, 18 Aug 2008 23:36:34 -0700 (PDT) Received: by 10.102.253.7 with HTTP; Mon, 18 Aug 2008 23:36:34 -0700 (PDT) Message-ID: Date: Mon, 18 Aug 2008 23:36:34 -0700 From: "Nicklas Johnson" Sender: spatula@spatula.net To: Sharkie In-Reply-To: <5AD97FD4-50C1-4C43-93FE-4EA7F782D03E@mac.com> MIME-Version: 1.0 References: <2849C2B9-6990-4F51-A430-06E99D745816@mac.com> <97C57C69-1708-4176-86BC-E2B733BF0ACA@kjkoster.org> <7B413A97-AC11-4FD4-9BD5-40CC21593488@mac.com> <6E041876-88CC-45CB-9739-C3EB5686EEF5@mac.com> <5AD97FD4-50C1-4C43-93FE-4EA7F782D03E@mac.com> X-Google-Sender-Auth: f7bf339171db8600 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-java@freebsd.org 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: Tue, 19 Aug 2008 06:36:36 -0000 2008/8/18 Sharkie > > I get the following, which I have no idea how to read > > %kdump -t csu | grep -B 1 errno > > 1038 java CALL > mmap(0,0x42800000,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_NORESERVE|MAP_ANON,0xffffffff,0,0) > 1038 java RET mmap -1 errno 12 Cannot allocate memory > There's your answer. The JVM is trying to mmap 1064MB of contiguous virtual memory, and the OS says "no". The limitation isn't coming from the JVM. It's coming from the OS. The problem you'll need to solve is why you can't mmap more. Either there isn't that much contiguous virtual memory left, or you're hitting some other system limitation. Nick -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." -- Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/