CustomWare
 
 

Problem

The webMethods IS Windows service does not pick up the java system properties found in IntegrationServer\bin\server.bat.

Solution

The system properties are actually stored in the registry by IntegrationServer\bin\SaveSvcParams.exe

Edit server.bat and add your java properties at the end of this line:

set JAVA2_MEMSET=-Xms%JAVA_MIN_MEM% -Xmx%JAVA_MAX_MEM% -Xrs -DWM_HOME="%WM_HOME%"

for example,

set JAVA2_MEMSET=-Xms%JAVA_MIN_MEM% -Xmx%JAVA_MAX_MEM% -Xrs -DWM_HOME="%WM_HOME%" -DcwWebMEnvironment="dev"

Now there are two ways you can save the changes:

1) Re-register the service

Re-register the service by running:

IntegrationServer\support\win32\installSvc.bat unreg
IntegrationServer\support\win32\installSvc.bat

2) Run server.bat -service <servicename>

You can look up what the service name is by viewing installSvc.bat and finding the value of "SET SVCNAME="

The run the following command:

IntegrationServer\bin\server.bat -service <servicename>