You can use trace to monitor and troubleshoot your environment. You must provide trace for a server when you work with IBM® support.
If your catalog and container servers are in a WebSphere Application Server environment, see WebSphere Application Server: Working with trace for more information.
startOgServer.sh catalogServer -traceSpec ObjectGridPlacement=all=enabled -traceFile /home/user1/logs/trace.log
startXsServer.sh catalogServer -traceSpec ObjectGridPlacement=all=enabled -traceFile /home/user1/logs/trace.log
The -traceFile parameter is optional. If you do not set a -traceFile location, the trace file goes to the same location as the system out log files.
For more information about these parameters, see startOgServer script (ORB) and startXsServer script (XIO).To collect trace from a properties file, create a file, such as a server.properties file, with the following contents:
workingDirectory=<directory>
traceSpec=<trace_specification>
systemStreamToFileEnabled=true
The workingDirectory property
is the root directory for the logs and optional trace file. If the workingDirectory value
is not set, the default working directory is the location used to
start the servers, such as wxs_home/bin.
To use a properties file during server startup, use the -serverProps parameter
with the startOgServer command and provide the
server properties file location.java -DtraceSettingsFile=MyTraceSettings.properties
-Djava.util.logging.manager=com.ibm.ws.bootstrap.WsLogManager
-Djava.util.logging.configureByServer=true com.ibm.samples.MyClientProgram
Fore
more information, see WebSphere Application Server:
Enabling trace on client and stand-alone applications.Trace is not enabled by default for .NET clients. If you want to collect trace for a .NET client, contact the Support team for further assistance. For more information, see Contacting IBM Support.
ObjectGridManager manager = ObjectGridManagerFactory.getObjectGridManager();
...
manager.setTraceEnabled(true);
manager.setTraceFileName("logs/myClient.log");
manager.setTraceSpecification("ObjectGridReplication=all=enabled");
xscmd -c setTraceSpec -spec "ObjectGridReplication=all=enabled"
You can also disable trace by setting the trace specification to *=all=disabled.