• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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?
 
I do some of my very best work in water. Like this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic