When running 10.7 APM, the traces directory got full.
So we have run indexRebuilder.sh to clear old traces.
However, it is running for long time. We are losing data as the EM is stopped.
Can we stop the re indexing, would there be a risk of losing trace data?
Release : 10.7.0 (valid for any previous release)
Component : APM Enterprise Manager
In terms of Enterprise Manager heap memory configuration, running on Linux, it will be set in Introscope_Enterprise_Manager.lax, here set to 8GB
lax.nl.java.option.additional=-Xms8192m -Xmx8192m -Djava.awt.headless=true -Dmail.mime.charset=UTF-8 -Dorg.owasp.esapi.resources=./config/esapi -XX:+UseG1GC - XX:MaxGCPauseMillis=200 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./logs/ -Xss512k -Djava.io.tmpdir=./work
Checking the -Xms and -Xmx values in there to set in the index rebuilder script.
For a Windows service, you would check EMService.conf in the bin folder of the software for these settings. This example again sets the memory at 8GB
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=8192
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=8192
If you have a Linux machine, with file IndexRebuilder.sh you will have the line:
"$JAVA_HOME/bin/java" -Declipse.consoleLog=false -jar "$installDir/launcher.jar" -install "$installDir/product/enterprisemanager" -application com.wily.introscope.eclipseapp.IndexRebuilder "$1"
If you have a Windows machine, with file IndexRebuilder.bat, you will have the line:
"%JAVA_HOME%\bin\java.exe" -Declipse.consoleLog=false -jar "%INSTALLDIR%\launcher.jar" -install "%INSTALLDIR%\product\enterprisemanager" -application com.wily.introscope.eclipseapp.IndexRebuilder %1
For the index rebuilding to run more quickly, as suggested, increase the heap, allocating usually the same amount of heap you give to the Enterprise Manager, using -Xms and -Xmx settings
As an example, to allocate 8GB heap, you would change the line so it looks like this:
Linux:
"$JAVA_HOME/bin/java" -Xms8192m -Xmx8192m -Declipse.consoleLog=false -jar "$installDir/launcher.jar" -install "$installDir/product/enterprisemanager" -application com.wily.introscope.eclipseapp.IndexRebuilder "$1"
Windows:
"%JAVA_HOME%\bin\java.exe" -Xms8192m -Xmx8192m -Declipse.consoleLog=false -jar "%INSTALLDIR%\launcher.jar" -install "%INSTALLDIR%\product\enterprisemanager" -application com.wily.introscope.eclipseapp.IndexRebuilder %1