You are currently reviewing an older revision of this page.
Mapviewer service cannot start. The error that we are receiving in the error logs :
Error occurred during initialization of VM
Could not reserve enough space for object heap
The error you are getting indicates that there is not enough memory available to Mapviewer on the app server. You have three options available, allocate more memory to Mapviewer by changing the start up parameters, increase the memory available on the app server or try and reduce the load (map layers) that Mapviewer has to deal with.
Whenever JVM starts for any program it normally allocates a specific amount of memory in the heap. This is normally specified by the -Xms runtime parameter. If by any chance JVM is not able to allocate that amount of memory then it will stop loading the classes and throw an exception. Similarly there is another parameter Xmx that specifies the maximum amount of memory that can be allocated to JVM during execution. By specifying -J-Xms256m -J-Xmx256m, you are telling the JVM to start with 256m of memory and keep to that limit during runtime as well.
To increase the amount of memory available to Mapviewer please read the information below:
1.1 Setting the memory for MapViewer
Make sure you backup the OPMN.XML file first. The procedure below will make changes to that file.
The best way to do this is through the Enterprise Manager console on the application server. To do this, use a URL like this:
Then login as ias_admin - with whatever password you have set. Once in the console, click on the link that points at the Middle Tier.
Then you should see a list of middle tier OC4J components. Click on the Mapviewer component.
Then, click on the Administration option / tab
Then, click on Server Properties
On the Server Options page, look down for Command Line options. Then for the entry for Java Options.
You need to add this to the options line before the ones that exist already: -Xmx256M -Xms128M
In general each mapviewer instance requires atleast 512MB of memory and preferably more (1GB).
Therefore consider setting this to -Xmx1512MB -Xms1024MB
You should also add the -server command i.e. –server -Xmx1480m -Xm1024m
If you now save the Apply the changes and restart the component, it should have the correct amount of memory reserved.
Product TechNotes and FAQs
Bentley Technical Support KnowledgeBase
Bentley LEARN Server
Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!