Run sudo is with another user
su username
is switched to another user command in the environment and
-ef PS | grep java // get the java process 123456
// jstat use the java command to execute their user exmobi
su exmobi
jstat -gc 123456 5000 // Check once every 5s
S0C: size of the first surviving area
S1C: surviving the size of the second zone
S0U: using the size of the first surviving area
S1U: Use the size of the second zone of surviving
EC: the size of the area of the Garden of Eden
EU: Use the size of the area of the Garden of Eden
OC: Size years old
OU: Use old's size
MC: method area size
MU: Method using size region
CCSC: compression class space
CCSU: compression class size space usage
YGC: the number of the young generation garbage recycling
YGCT: the young generation garbage collection time-consuming
FGC: the number of years the old garbage collection
FGCT: old's garbage collection time-consuming
GCT: Total time consuming garbage collection
// view the process uptime
PS -EO pid, TTY, the User, COMM, lstart, etime | grep 123456
ADMIN the Java Thu Dec 13 11:17:14 2018 01:29:43
Process id process name starting time duration
jmap -heap 123456 // tomcat view the current settings