Configuration
- Install GridGain
- Download Java Service Wrapper for your OS from http://wrapper.tanukisoftware.org

- Unpack it to some folder, i.e. SERVICE_WRAPPER
- Copy SERVICE_WRAPPER/bin/wrapper.exe (or wrapper for Linux) to the GRIDGAIN_HOME/bin
- Copy SERVICE_WRAPPER/lib/wrapper.jar to the GRIDGAIN_HOME/libs
- Copy SERVICE_WRAPPER/lib/wrapper.dll (or libwrapper.so) to the GRIDGAIN_HOME/libs
- For Linux, copy SERVICE_WRAPPER/src/bin/sh.script.in to the GRIDGAIN_HOME/bin and rename to gridgain_daemon.sh
|
Starting from GridGain 2.1.0 we will ship wrapper configuration (see GRIDGAIN_HOME/config/wrapper.conf). If you use older version you can find configuration template here wrapper.conf |
- Edit wrapper configuration JVM parameters if you need. Change the "wrapper.app.parameter.2" parameter to use non default Grid configuration.
Note: You should not miss numbers when count any parameters in wrapper.conf configuration file. All of them should go one by another in proper order (incremented by 1). For example, you can not write "parameter.2" without "parameter.1". Numbers should start from 1.
Running Windows Service
- For Windows you need to install GridGain service before start it. Use that command to install service:
%GRIDGAIN_HOME%/bin/wrapper.exe -i %GRIDGAIN_HOME%/config/wrapper.conf - You can start service in the Control Panel -> Administration -> Services or use that command:
%GRIDGAIN_HOME%/bin/wrapper.exe -t %GRIDGAIN_HOME%/config/wrapper.conf - Use Control Panel or that command for stop GridGain service:
%GRIDGAIN_HOME%/bin/wrapper.exe -p %GRIDGAIN_HOME%/config/wrapper.conf - For uninstall GridGain service use this command:
%GRIDGAIN_HOME%/bin/wrapper.exe -r %GRIDGAIN_HOME%/config/wrapper.conf
Running Linux Service
- You need to edit GRIDGAIN_HOME/gridgain_daemon.sh before run GridGain as daemon. Edit the following lines:
APP_NAME="GridGain-2.0.3"
APP_LONG_NAME="GridGain Node"
WRAPPER_CONF="../config/wrapper.conf"
RUN_AS_USER=[specify user (not root)] - Now you can use "GRIDGAIN_HOME/gridgain_daemon.sh { console | start | stop | restart | status | dump}" command for start and stop GridGain daemon.
Wrapper Version
GridGain has been tested with Java Service Wrapper 3.2.3 version.
