The Mapviewer service cannot be started. The error that we are receiving in the error logs is:
Error occurred during initialization of VMCould not reserve enough space for object heap
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 application server. You have three options available:
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:
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:
If you now 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