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. jstack may not be installed by default. Install jstack as part of the openjdk package with the following example, replacing the version as necessary.
Code Block |
---|
yum install java-1.8.0-openjdk-devel |
Instructions
Find out the PID of the Content Gateway process by running this command
Code Block |
---|
ps aux | grep [c]loudgateway.pid | awk '{ print $2 }' |
Capture the thread dump using jstack by running this command using the PID determined at step 1
Code Block |
---|
jstack PID > thread_dump.out |
If the above command does not capture anything, try running this:
Code Block |
---|
jstack -F PID > thread_dump.out |
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@957 |
---|
showSpace | false |
---|
sort | modified |
---|
type | page |
---|
reverse | true |
---|
labels | jstack contentgateway |
---|
cql | label in ( "contentgateway" , "jstack" ) and type = "page" and space = "KB" |
---|
|