When troubleshooting various problems on the Content Gateway one might need to capture a Java thread dump. This KB article explains how to do that using jstack.
Prerequisites
jstack needs to be installed, and may not be installed by default. Install jstack as part of the openjdk package with the following example, replacing the version as necessary. To check whether jstack is installed or not please run the following command
Code Block |
---|
if jstack -h 2>/dev/null; then echo "jstack is Installed"; else echo "jstack is Not Installed"; fi |
If jstack is installed, progress to the "Instructions" section below. If not please install the OpenJDK development package according to the current version of Cloud Gateway.
Check your existing CloudGateway server level:
Code Block |
---|
rpm -qa | grep caringo-gateway-[0-9] |
If you are currently running Gateway version 7.10.7 or earlier, then please install using:
Code Block |
---|
yum install java-1.8.0-openjdk-devel |
if you are currently running Gateway version 8.0 or later, then please install using:
Code Block |
---|
yum install java-11-openjdk-devel |
Instructions
...