From owner-freebsd-java@FreeBSD.ORG Tue Aug 19 07:11:02 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 56F301065700 for ; Tue, 19 Aug 2008 07:11:02 +0000 (UTC) (envelope-from yuri@irfu.se) Received: from atthis.its.uu.se (atthis.its.uu.se [130.238.7.58]) by mx1.freebsd.org (Postfix) with ESMTP id 153E68FC18 for ; Tue, 19 Aug 2008 07:11:01 +0000 (UTC) (envelope-from yuri@irfu.se) Received: from hq.irfu.se (hq.irfu.se [130.238.30.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by atthis.its.uu.se (Postfix) with ESMTP id 1833C100E14; Tue, 19 Aug 2008 08:54:07 +0200 (CEST) Received: from [192.168.115.167] (pd95b2346.dip0.t-ipconnect.de [217.91.35.70]) (authenticated bits=0) by hq.irfu.se (8.14.2/8.14.2) with ESMTP id m7J6s2u7019434 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 19 Aug 2008 08:54:03 +0200 (CEST) (envelope-from yuri@irfu.se) Message-ID: <48AA6E00.7040408@irfu.se> Date: Tue, 19 Aug 2008 08:53:52 +0200 From: Yuri Khotyaintsev User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Nicklas Johnson 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> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=7.0 tests=BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on hq.irfu.se X-Virus-Scanned: Debian amavisd-new at localdomain Cc: freebsd-java@freebsd.org, Sharkie 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 07:11:02 -0000 Nicklas Johnson wrote: > 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. > > You can try reducing kern.maxdsiz and kern.dfldsiz in order to give mmap more space. Yuri -- Dr. Yuri Khotyaintsev Institutet för rymdfysik (IRF), Uppsala