book
Article ID: KB0086297
calendar_today
Updated On:
Description
Resolution:
Description
= = = = = =
Creating a Windows Service for the Coherence Cache Server so that it can be started or stopped as a background process.
Environment:
= = = = = = =
TIBCO Collaborative Information Manager 7.x, 8.x
Operating System(s): All Windows Operating Systems
Symptoms:
= = = = = =
N/A
Cause:
= = = =
N/A
Resolution:
= = = = = =
Steps to install Coherence Cache Server as a Windows Service:
1). Startup the cache server from the command line.
2). Obtain the parameters to run the Java application. When you start up the .bat file, the runtime will launch one Java process with the given parameters. The following explains how to retrieve those parameters on Windows.
If the host is Windows Vista, Windows 7 or Windows 2008, right click to access the Windows Task Manager, turn on the commandline column by selecting View->Select Columns->Command Line.
For Windows XP or Windows 2003 query the WMI . Run WMIC on the command prompt, and key in “process where name=”java.exe” get commandline” .
Example:
"C:\Progra~1\Java\jdk1.5.0_06\bin\java" -server -showversion -Xms512m -Xmx512m -cp C:\TIBCO\cim\7.2\config;C:\TIBCO\cim\7.2\lib\external\coherence.jar;C:\TIBCO\cim\7.2\lib\mq\ECMCounterProcessor.jar" -Dcom.sun.management.jmxremote -Dtangosol.coherence.management=all -Dtangosol.coherence.management.remote=true -Dtangosol.coherence.cacheconfig="C:\TIBCO\cim\7.2\config\coherence-server-cache-config.xml" -Dtangosol.coherence.override="C:\TIBCO\cim\7.2\config\tangosol-coherence-override.xml" -Drecord.cache.size.limit=297795584 -Dprincipalkey.cache.size.limit=1048576 -Dproductkey.cache.size.limit=98566144 -Dgoldencopy.cache.size.limit=2097152 com.tangosol.net.DefaultCacheServer
3). Download the javaservice from the following: http://forge.ow2.org/project/showfiles.php?group_id=137&release_id=1560.
Note, if using the 64-bit JVM, chose the amd64 zip version of javaservice. Unzip the file, copy the javaservice.exe file to the coherence\bin folder. You may rename the file as coherence.exe.
4). Install the Windows Service by assign the parameters to coherence.exe .
C:\coherence\bin>coherence.exe -install CIMCacheServer "C:\jdk1.6.0_20\jre\bin\server\jvm.dll" -server -showversion -Xms512m -Xmx512m -cp "C:\TIBCO\cim\7.2\config;C:\TIBCO\cim\7.2\lib\external\coherence.jar;C:\TIBCO\cim\7.2\lib\mq\ECMCounterProcessor.jar" -Dcom.sun.management.jmxremote -Dtangosol.coherence.management=all -Dtangosol.coherence.management.remote=true -Dtangosol.coherence.cacheconfig="C:\TIBCO\cim\7.2\config\coherence-server-cache-config.xml" -Dtangosol.coherence.override="C:\TIBCO\cim\7.2\config\tangosol-coherence-override.xml" -Drecord.cache.size.limit=297795584 -Dprincipalkey.cache.size.limit=1048576 -Dproductkey.cache.size.limit=98566144 -Dgoldencopy.cache.size.limit=2097152 com.tangosol.net.DefaultCacheServer -err "c:\tangosol-33\coherence\bin\err.log" -start com.tangosol.net.DefaultCacheServer
5). Once completed, you will see a service named CIMCacheServer in the services console (services.msc).
Attachments:
= = = = = = =
None
References:
= = = = = =
http://androidyou.blogspot.com/2010/06/installing-oracle-coherence-bat-file-as.html
Issue/Introduction
Creating a Windows Service for the Coherence Cache Server so that it can be started or stopped as a background process.