<service>
    <id>tb-monitoring</id>
    <name>ThingsBoard Monitoring Service</name>
    <description>${project.description}</description>
    <workingdirectory>%BASE%\conf</workingdirectory>
    <logpath>%BASE%\logs</logpath>
    <logmode>rotate</logmode>
    <env name="LOADER_PATH" value="%BASE%\conf,%BASE%\extensions" />
    <env name="SQL_DATA_FOLDER" value="%BASE%\data\sql" />
    <executable>java</executable>
    <startargument>-Dplatform=windows</startargument>
    <startargument>-Dinstall.data_dir=%BASE%\data</startargument>
    <startargument>-Xlog:gc*,heap*,age*,safepoint=debug:file=%BASE%\logs\gc.log:time,uptime,level,tags:filecount=10,filesize=10M</startargument>
    <startargument>-XX:+HeapDumpOnOutOfMemoryError</startargument>
    <startargument>-XX:-UseBiasedLocking</startargument>
    <startargument>-XX:+UseTLAB</startargument>
    <startargument>-XX:+ResizeTLAB</startargument>
    <startargument>-XX:+PerfDisableSharedMem</startargument>
    <startargument>-XX:+UseCondCardMark</startargument>
    <startargument>-XX:+UseG1GC</startargument>
    <startargument>-XX:MaxGCPauseMillis=500</startargument>
    <startargument>-XX:+UseStringDeduplication</startargument>
    <startargument>-XX:+ParallelRefProcEnabled</startargument>
    <startargument>-XX:MaxTenuringThreshold=10</startargument>
    <startargument>-Xms512m</startargument>
    <startargument>-Xmx1024m</startargument>
    <startargument>-jar</startargument>
    <startargument>%BASE%\lib\tb-monitoring.jar</startargument>

</service>
