Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > "Error occurred during initialization of VM" Error Message

Reply
Thread Tools

"Error occurred during initialization of VM" Error Message

 
 
Hugo
Guest
Posts: n/a
 
      04-01-2008

Hi:

I am receiving the following error message when I shutdown Tomcat:

"Error occurred during initialization of VM
Could not reserve enough space for object heap"

The server has 4GB of RAM and the Tomcat has been set to claim upto
2GB of memory.

Any clues on why this message is being received?
 
Reply With Quote
 
 
 
 
Steve W. Jackson
Guest
Posts: n/a
 
      04-01-2008
In article
<71d45ce6-2318-4b0d-8239->,
Hugo <> wrote:

> Hi:
>
> I am receiving the following error message when I shutdown Tomcat:
>
> "Error occurred during initialization of VM
> Could not reserve enough space for object heap"
>
> The server has 4GB of RAM and the Tomcat has been set to claim upto
> 2GB of memory.
>
> Any clues on why this message is being received?


The amount of RAM the server has isn't relevant, it's the amount you try
to allocate to the JVM's heap. You don't say what platform, but Java
can't get a full 2GB on most platforms. On Windows, it's something in
the area of 1600 MB or thereabouts.
--
Steve W. Jackson
Montgomery, Alabama
 
Reply With Quote
 
 
 
 
Manish Pandit
Guest
Posts: n/a
 
      04-01-2008
On Apr 1, 10:54 am, Hugo <hari...@gmail.com> wrote:
> Hi:
>
> I am receiving the following error message when I shutdown Tomcat:
>
> "Error occurred during initialization of VM
> Could not reserve enough space for object heap"
>
> The server has 4GB of RAM and the Tomcat has been set to claim upto
> 2GB of memory.
>
> Any clues on why this message is being received?


Are you using windows? Then this link may help : http://support.microsoft.com/kb/924054

Also, try reducing it from 2GB to 1GB and retry.

-cheers,
Manish
 
Reply With Quote
 
Hugo
Guest
Posts: n/a
 
      04-01-2008
On Apr 1, 11:19 am, "Steve W. Jackson" <stevewjack...@knology.net>
wrote:
> In article
> <71d45ce6-2318-4b0d-8239-ae9f4ed5b...@b5g2000pri.googlegroups.com>,
>
> Hugo <hari...@gmail.com> wrote:
> > Hi:

>
> > I am receiving the following error message when I shutdown Tomcat:

>
> > "Error occurred during initialization of VM
> > Could not reserve enough space for object heap"

>
> > The server has 4GB of RAM and the Tomcat has been set to claim upto
> > 2GB of memory.

>
> > Any clues on why this message is being received?

>
> The amount of RAM the server has isn't relevant, it's the amount you try
> to allocate to the JVM's heap. You don't say what platform, but Java
> can't get a full 2GB on most platforms. On Windows, it's something in
> the area of 1600 MB or thereabouts.
> --
> Steve W. Jackson
> Montgomery, Alabama


Hi:

I am using a Sun V240 with Solaris 9.0 as the operating system.

Is there a spec document on Sun's website which shows the maximum
memory Java can claim on various OS? I could not find the data via
Googling.

Thanks.
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      04-01-2008
On Tue, 1 Apr 2008 10:54:18 -0700 (PDT), Hugo <>
wrote, quoted or indirectly quoted someone who said :

>The server has 4GB of RAM and the Tomcat has been set to claim upto
>2GB of memory.


Try cutting that back. Unless you have a 64-bit Java, is not your
entire address space only 2GB? Your heap could be nowhere near that
big since so much other junk including DLLs must fit in that same
address space.

--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
Hugo
Guest
Posts: n/a
 
      04-01-2008
On Apr 1, 11:23 am, Manish Pandit <pandit.man...@gmail.com> wrote:
> On Apr 1, 10:54 am, Hugo <hari...@gmail.com> wrote:
>
> > Hi:

>
> > I am receiving the following error message when I shutdown Tomcat:

>
> > "Error occurred during initialization of VM
> > Could not reserve enough space for object heap"

>
> > The server has 4GB of RAM and the Tomcat has been set to claim upto
> > 2GB of memory.

>
> > Any clues on why this message is being received?

>
> Are you using windows? Then this link may help :http://support.microsoft.com/kb/924054
>
> Also, try reducing it from 2GB to 1GB and retry.
>
> -cheers,
> Manish


The JVM is on a Sun V240 server with Solaris 9.0.

I am currently using 1GB; I would like to increase the memory
available to the JVM.
 
Reply With Quote
 
Logan Shaw
Guest
Posts: n/a
 
      04-02-2008
Hugo wrote:
> On Apr 1, 11:23 am, Manish Pandit <pandit.man...@gmail.com> wrote:
>> On Apr 1, 10:54 am, Hugo <hari...@gmail.com> wrote:


>>> I am receiving the following error message when I shutdown Tomcat:
>>> "Error occurred during initialization of VM
>>> Could not reserve enough space for object heap"
>>> The server has 4GB of RAM and the Tomcat has been set to claim upto
>>> 2GB of memory.


> The JVM is on a Sun V240 server with Solaris 9.0.


32-bit or 64-bit JVM? Both seem to be available for SPARC/Solaris
systems.

Also, it has been a while since I have used Solaris regularly, but I
suppose it may still be possible to boot into a 32-bit kernel on that
OS and hardware. If so, that would be worth checking.

- Logan
 
Reply With Quote
 
Nigel Wade
Guest
Posts: n/a
 
      04-02-2008
Hugo wrote:

> On Apr 1, 11:19 am, "Steve W. Jackson" <stevewjack...@knology.net>
> wrote:
>> In article
>> <71d45ce6-2318-4b0d-8239-ae9f4ed5b...@b5g2000pri.googlegroups.com>,
>>
>> Hugo <hari...@gmail.com> wrote:
>> > Hi:

>>
>> > I am receiving the following error message when I shutdown Tomcat:

>>
>> > "Error occurred during initialization of VM
>> > Could not reserve enough space for object heap"

>>
>> > The server has 4GB of RAM and the Tomcat has been set to claim upto
>> > 2GB of memory.

>>
>> > Any clues on why this message is being received?

>>
>> The amount of RAM the server has isn't relevant, it's the amount you try
>> to allocate to the JVM's heap. You don't say what platform, but Java
>> can't get a full 2GB on most platforms. On Windows, it's something in
>> the area of 1600 MB or thereabouts.
>> --
>> Steve W. Jackson
>> Montgomery, Alabama

>
> Hi:
>
> I am using a Sun V240 with Solaris 9.0 as the operating system.
>
> Is there a spec document on Sun's website which shows the maximum
> memory Java can claim on various OS? I could not find the data via
> Googling.
>


It won't be on the Sun Java site, it's an OS feature not a JVM feature. If it's
32bit Solaris I don't know what the maximum vm is that you can allocate to a
process, probably 4GB.

Besides the overriding OS limitation, there are also limits set by your system
administrator. These are defined by ulimit. You may need to modify ulimit for
the Tomcat process to allow it to allocate more virtual memory space. You can
test it from the command line by running:
$ java -Xmx2G -version
it will fail until you set the correct ulimit value.

E.g. on my system:
$ ulimit -S -v 2000000
$ java -Xmx2G -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

$ ulimit -S -v 3000000
$ java -Xmx2G -version
java version "1.6.0_01"
....

To increase your ulimit above the hard limit you will need root access.

--
Nigel Wade
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error occurred during initialization of VM Man Alive Java 6 04-25-2008 08:53 AM
Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object (ant/tomcat/spring) courtney.machi@gmail.com Java 0 12-08-2006 07:37 PM
Error occurred during initialization of VM (in RDP session) mattdevine@gmail.com Java 0 08-25-2006 03:06 PM
Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/ emerald Software 3 05-14-2006 03:47 AM
Error occurred during initialization of VM onali1811@gmail.com Java 2 04-25-2006 02:49 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57