Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 11. Troubleshooting Data Grid Servers
Gather diagnostic information about Data Grid server deployments and perform troubleshooting steps to resolve issues.
11.1. Getting Diagnostic Reports for Data Grid Servers Link kopierenLink in die Zwischenablage kopiert!
Data Grid servers provide aggregated reports in tar.gz archives that contain diagnostic information about both the Data Grid server and the host. The report provides details about CPU, memory, open files, network sockets and routing, threads, in addition to configuration and log files.
Procedure
- Create a CLI connection to Data Grid.
Use the
server reportcommand to download atar.gzarchive:[//containers/default]> server report Downloaded report 'infinispan-<hostname>-<timestamp>-report.tar.gz'
[//containers/default]> server report Downloaded report 'infinispan-<hostname>-<timestamp>-report.tar.gz'Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Move the
tar.gzfile to a suitable location on your filesystem. -
Extract the
tar.gzfile with any archiving tool.
11.2. Changing Data Grid Server Logging Configuration at Runtime Link kopierenLink in die Zwischenablage kopiert!
Modify the logging configuration for Data Grid servers at runtime to temporarily adjust logging to troubleshoot issues and perform root cause analysis.
Modifying the logging configuration through the CLI is a runtime-only operation, which means that changes:
-
Are not saved to the
log4j2.xmlfile. Restarting server nodes or the entire cluster resets the logging configuration to the default properties in thelog4j2.xmlfile. - Apply only to the nodes in the cluster when you invoke the CLI. Nodes that join the cluster after you change the logging configuration use the default properties.
Procedure
- Create a CLI connection to Data Grid.
Use the
loggingto make the required adjustments.- List all appenders defined on the server:
[//containers/default]> logging list-appenders
[//containers/default]> logging list-appenders
The preceding command returns:
- List all logger configurations defined on the server:
[//containers/default]> logging list-loggers
[//containers/default]> logging list-loggers
The preceding command returns:
-
Add and modify logger configurations with the
setsubcommand
For example, the following command sets the logging level for the org.infinispan package to DEBUG:
[//containers/default]> logging set --level=DEBUG org.infinispan
[//containers/default]> logging set --level=DEBUG org.infinispan
-
Remove existing logger configurations with the
removesubcommand.
For example, the following command removes the org.infinispan logger configuration, which means the root configuration is used instead:
[//containers/default]> logging remove org.infinispan
[//containers/default]> logging remove org.infinispan
11.3. Resource Statistics Link kopierenLink in die Zwischenablage kopiert!
You can inspect server-collected statistics for some of the resources within a Data Grid server using the stats command.
Use the stats command either from the context of a resource which collects statistics (containers, caches) or with a path to such a resource: