Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20401
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2012-12-17 15:38 -0800 |
| References | <7f80256a-03d0-4ecd-b20f-164547e4f573@googlegroups.com> <50ce8cd7$0$287$14726298@news.sunsite.dk> <sa23q9-rkb.ln1@tempest.fredriksson.dy.fi> <50cf9ebd$0$281$14726298@news.sunsite.dk> |
| Message-ID | <69b7ccde-6a63-452b-a14d-38e7eef0804d@googlegroups.com> (permalink) |
| Subject | Re: 32G ram |
| From | Lew <lewbloch@gmail.com> |
Arne Vajhøj wrote: > Donkey Hottie wrote: >> Arne Vajhøj kirjoitti: >>> mcheung63 wrote: >>>> i [sic] got 32GB ram, why i [sic] can't -Xmx2G, it got an error "Could not >>>> create the Java Virtual Machine" Because you allocated all the available memory to the heap, and none to the JVM or class space, stack, ... . How much RAM you have is irrelevant; it's how much RAM you are allowed to allocate per process with a 32-bit Java. Assuming the other posters are correct and you're using a 32-bit system. Are you? That might have been good to tell us in the beginning. >>>> /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? > >> Apparently 32 bit, as the i686 OS is 32 bit PAE too. > > Then that explains it. > > 32 bit Java on x86 usually only allows for around 1.7 GB > of heap space. Bear in mind, OP, that "2 GB" is the maximum allocation for the *entire process*, not just the heap. If you allocate the whole amount for heap, that leaves nothing for stack or the interpreter. That's why it fails. So the 1.7 GB or so is all you can get and still leave room for Java itself. But why, pray tell, are you using a 32-bit system? -- Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
32G ram mcheung63@gmail.com - 2012-12-16 19:05 -0800
Re: 32G ram Arne Vajhøj <arne@vajhoej.dk> - 2012-12-16 22:09 -0500
Re: 32G ram Donkey Hottie <donkey@fredriksson.dy.fi> - 2012-12-17 10:39 +0200
Re: 32G ram Arne Vajhøj <arne@vajhoej.dk> - 2012-12-17 17:37 -0500
Re: 32G ram Lew <lewbloch@gmail.com> - 2012-12-17 15:38 -0800
Re: 32G ram Nigel Wade <nmw@ion.le.ac.uk> - 2012-12-18 09:19 +0000
Re: 32G ram BGB <cr88192@hotmail.com> - 2012-12-18 14:57 -0600
Re: 32G ram Arne Vajhøj <arne@vajhoej.dk> - 2012-12-18 20:22 -0500
Re: 32G ram Nigel Wade <nmw@ion.le.ac.uk> - 2012-12-19 11:28 +0000
Re: 32G ram BGB <cr88192@hotmail.com> - 2012-12-19 07:19 -0600
Re: 32G ram Arne Vajhøj <arne@vajhoej.dk> - 2012-12-19 09:17 -0500
Re: 32G ram Tim Slattery <Slattery_T@bls.gov> - 2012-12-19 12:51 -0500
Re: 32G ram Arne Vajhøj <arne@vajhoej.dk> - 2012-12-19 13:20 -0500
Re: 32G ram BGB <cr88192@hotmail.com> - 2012-12-19 12:40 -0600
Re: 32G ram Arne Vajhøj <arne@vajhoej.dk> - 2012-12-19 13:56 -0500
Re: 32G ram Roedy Green <see_website@mindprod.com.invalid> - 2012-12-17 00:31 -0800
Re: 32G ram Arne Vajhøj <arne@vajhoej.dk> - 2012-12-17 20:37 -0500
Re: 32G ram Sven Köhler <remove-sven.koehler@gmail.com> - 2012-12-19 20:40 +0100
csiph-web