How to Register or Start a TIBCO Host Instance as a Windows Service with clearCache option

How to Register or Start a TIBCO Host Instance as a Windows Service with clearCache option

book

Article ID: KB0075153

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix Service Grid 3.3.0

Description

How to start a TIBCO Host with “-clearCache” option every time restarting the TibcoHost as Windows NT service?

Issue/Introduction

How to Register or Start a TIBCO Host Instance as a Windows Service with clearCache option

Environment

All Supported Windows Operating Systems

Resolution

The "-clearCache" option for the "tibcohost start" command is to wipe out all cached OSGi bundles in the Node JVMs and create new ones when the nodes start. This option is needed when there are changes in the bundles of the nodes. There is no logging in the host/node logs unless additional loggers are enabled at debug/trace level. However, during the node startup, the content of the "<TIBCO_HOME>/tibcohost/<HOST_NAME>/data_3.2.x/nodes\<NODE_NAME>/configuration/org.eclipse.osgi/" directory of every node managed by the tibcohost instance should be wiped out, and all new files should be created with current time stamps once the node starts. 

The "-clean" option for the “tibcohost startNodes” command does the same when starting the nodes specified by the -nodeName option. It is not necessary to start a tibcohost every time with the -clearCache option. 

However, if you prefer to do “-clearCache” every time restarting the TibcoHost NT service, you can follow the steps below 

1. Go to Windows registry by running 'Regedit' command.

2. Manually append the "start -clearCache" to the value of the Windows Registry key "application.args" under:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\<TIBCO ActiveMatrix Service>\Parameters

Example:
 
Parameter Name: application.args

Parameter Value:  -configFile "C:/ProgramData/TIBCO 3.3 New/tibco/tibcohost/Proxy_TIBCO_HOST/host/bin/tibcohost" -type flat  start -clearCache