Product: OpenFusion CORBA Services
Version: ALL
Description:
How to add JVM options when the service is running as a windows service?
Resolution:
When the service is run as a Windows service the Java Virtual machine options need to be specified in the registry.
The steps are as follows:
1. Service has not already been installed as a Windows service
If the Service has not already been installed as a Windows service you can change the service_install.bat so that it will add the JVM options on installation. This prevents the need to modify the registry after installation.
To install the service as a windows service you need to do the following:
a) Run the command: node –ntsvc This is in the bin directory of the installation.
b) This generates the service_install.bat and the service_uninstall.bat files in the bin directory of the installation.
c) You can modify the service_install.bat to add any required JVM flags, for example adding the parameter –Xmx256m to increase the JVM memory.
2. Service has already been installed as a Windows service
If you have already installed the service you can modify the registry as follows.
You need to use regedit to edit the windows registry. Care should be taken in doing this.
The keys are found under HKEY_LOCAL_MACHINE/System/ControlSet001/Services/OpenFusion.NotificationService. In the parameters option you will see an option called JVM Option Count which specifies the number of JVM Flags that you are using. You need to modify this to take account of the number of flags you are using.
You will also see a number of different strings called JVM Option Number 1, JVM Option Number 2 etc. You need to add a new JVM Option Number x string which contains the JVM values you want the service to use.
#KnowledgeDocs
#OpenFusion