From owner-freebsd-java@FreeBSD.ORG Thu Aug 21 09:52:13 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 BFE91106567E for ; Thu, 21 Aug 2008 09:52:13 +0000 (UTC) (envelope-from fazaeli@sepehrs.com) Received: from sepehrs.com (mail2.sepehrs.com [213.217.59.98]) by mx1.freebsd.org (Postfix) with ESMTP id F413F8FC12 for ; Thu, 21 Aug 2008 09:52:12 +0000 (UTC) (envelope-from fazaeli@sepehrs.com) Received: from [192.168.1.180] ([192.168.1.180]) by sepehrs.com (8.13.6/8.13.6) with ESMTP id m7L9WiDW008495; Thu, 21 Aug 2008 14:02:45 +0430 (IRDT) (envelope-from fazaeli@sepehrs.com) Message-ID: <48AD3639.4060607@sepehrs.com> Date: Thu, 21 Aug 2008 13:02:41 +0330 From: "H.fazaeli" User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Sharkie References: <2849C2B9-6990-4F51-A430-06E99D745816@mac.com> In-Reply-To: <2849C2B9-6990-4F51-A430-06E99D745816@mac.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Sepehr-MailScanner-Information: Please contact the ISP for more information X-Sepehr-MailScanner: Found to be clean X-Sepehr-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.399, required 5, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-MailScanner-From: fazaeli@sepehrs.com X-Spam-Status: No 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: Thu, 21 Aug 2008 09:52:13 -0000 try increasing kern.maxdsiz to 1G in /boot/load.conf: kern.maxdsiz="1073741824" Sharkie wrote: > last pid: 1526; load averages: 1.17, 0.90, 0.47 up 0+00:09:36 00:31:59 > 105 processes: 1 running, 104 sleeping > CPU: 10.0% user, 0.0% nice, 1.1% system, 0.0% interrupt, 88.9% idle > Mem: 948M Active, 422M Inact, 126M Wired, 1516K Cache, 112M Buf, 1506M > Free > Swap: 16G Total, 16G Free > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 1500 root 56 49 0 904M 552M ucond 5 0:06 77.20% java > 757 mysql 12 4 0 1156M 436M sbwait 1 0:26 15.72% mysqld > > > My machine does have more than 700M available when I try to start my > Java app, but I could only do at most 700M. > > 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? > > However, if I launch 5 Java app each getting 300M heap, then I have no > problem. > > It's really odd. > > Is there a way I can override FreeBSD and assign to this Java app all > that I think it deserve? > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > -- Best regards. Hooman Fazaeli Sepehr S. T. Co. Ltd. Web: http://www.sepehrs.com Tel: (9821)88975701-2 Fax: (9821)88983352