• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cannot initialize heap size greater than 1280 MB.

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am on a 32 bit Windows Server 2003 machine with 4 GB of RAM. I get "error occurred during initialization of VM
Could not reserve enough space for object heap" message everytime i try to allocate more than 1280 MB (i need to allocate 1536 MB) of heap space. Tomcat 5.5 is running as a windows service on this machine.
Can anyone suggest anything on this?
Thanks.
 
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this is a known issue on 32bit windows.

Even with 4Gb of physical memory, windows can only address (again I think) 3Gb ish.
It then allocates another chunk for itself, leaving the rest to applications (which in your case is Java).

If this is really a concern, do some google searching and present to your IT group an upgrade.

WP
 
lochan serma
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply but the thing is we are running with 1536MB of heap memory on another identical machine. Only in this machine, we are having this issue. Is virtual memory fragmentation in play here?
Any idea about defragmenting virtual memory?
 
lochan serma
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can't we use 1.5G of heap memory in Windows Server 2003(32 bit) with 4G of RAM?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic