Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Nigel Wade Newsgroups: comp.lang.java.programmer Subject: Re: 32G ram Date: Tue, 18 Dec 2012 09:19:51 +0000 Lines: 38 Message-ID: References: <7f80256a-03d0-4ecd-b20f-164547e4f573@googlegroups.com> <50ce8cd7$0$287$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net Px6Jy83G4xSA2PDBK3jyBwyN3eVTnsg1JaTVqHQa2167Q9BUqzL5q7ZBidf7I+ryJs Cancel-Lock: sha1:RIhAJ1vzrpMJD+4tldaTXlF3qaA= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120421 Thunderbird/12.0 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:20432 On 17/12/12 08:39, Donkey Hottie wrote: > 17.12.2012 05:09, Arne Vajhøj kirjoitti: >> On 12/16/2012 10:05 PM, mcheung63@gmail.com wrote: >>> i got 32GB ram, why i can't -Xmx2G, it got an error "Could not >>> create the Java Virtual Machine" >>> >>> /root>free -m >>> total used free shared buffers >>> cached >>> Mem: 32387 16973 15413 0 243 11906 >>> -/+ buffers/cache: 4823 27563 >>> Swap: 1906 0 1906 >>> /root>uname -a >>> Linux localhost.localdomain 3.6.9-2.fc17.i686.PAE #1 SMP Tue Dec 4 >>> 14:15:28 UTC 2012 i686 i686 i386 GNU/Linux >> >> 32 bit or 64 bit Java? >> >> Arne >> >> > > Apparently 32 bit, as the i686 OS is 32 bit PAE too. > 32bit Java on 32bit Linux should allow an application of up to 4GB. How much can of that can be allocated to the heap depends on the particular application. I've allocated more than 2G to heap on a 32bit Linux system, see this old thread on Google Groups: https://groups.google.com/forum/?hl=en-GB&fromgroups=#!topic/comp.lang.java.programmer/iGr3bxL9ZCA There may be a per-process limit. Try "ulimit -a" to see what limits the sysadmin has set. -- Nigel Wade