Creating a thread dump with ion

How can we create a thread dump on an Ion deployment? We connect as ec2-user to the instance, but the java process is running as datomic, which we don’t have access to.

Cheers,
Dean

Found the answer: sudo su