sessioncan examine the current session, get the values of JAVA_PID and SESSION_ID.
session
session{{execute T2}}
[arthas@37]$ session Name Value -------------------------------------------------- JAVA_PID 37 SESSION_ID d90541f0-d245-422c-92fa-39d4ae288107