aspose file tools*
The moose likes Tomcat and the fly likes Cannot initialize heap size greater than 1280 MB. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Cannot initialize heap size greater than 1280 MB." Watch "Cannot initialize heap size greater than 1280 MB." New topic
Author

Cannot initialize heap size greater than 1280 MB.

lochan serma
Greenhorn

Joined: Apr 22, 2011
Posts: 23
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.
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

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

Joined: Apr 22, 2011
Posts: 23
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

Joined: Apr 22, 2011
Posts: 23
Can't we use 1.5G of heap memory in Windows Server 2003(32 bit) with 4G of RAM?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot initialize heap size greater than 1280 MB.
 
Similar Threads
Tomcat as Windows service - I can't set more than 768 Mb of memory
Large amounts of data ... again ...
how to calculate total memory after which i will be getting out-of memory error???
error occurred during intialization of VM could not reserve enough space for object heap & ant
JVM heap size limit under Windows