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.
Instructions
Find out the PID of the Content Gateway process by running this command
ps -ef | grep --max-count 1 "cloudgateway" | awk '{print $2}'
Capture the thread dump using jstack by running this command using the PID determined at step 1
jstack PID > thread_dump.out
If the above command does not capture anything, try running this:
jstack -F PID > thread_dump.out