2015/1/8
View Tomat Process Ps-ef|grep Tomcat
View Java related JPS
Find Tomcat directory Find/-name tomcat This seems to be no problem, but novice will feel very helpless, if you installed Tomcat, it is estimated that in Linux can not find Tomcat reason is simple: Linux is sensitive to case, So you're looking for the Tomcat directory to play this way: Find/-name "*[tt]omcat*" in the list will have the results of the request
LS lists the current file and folder
Understanding "Ls-l"
The first field-rwxr-xr-x a symbolic representation of the permission that contains the special file. The first character in the field (-) specifies the type of the file, in this case it is a regular file. Other possible first characters are:
"D" Directory
"L" symbolic link
"C" character specialized device file
"B" block specialized equipment files
"P" Advanced first Out
"S" sockets
Three ternary groups
rw-r--r--1 root root 19103658 5 link? 4 Src.zip
The remainder of the field consists of three ternary characters. The first ternary character group represents the permissions of the file owner, the second represents the permissions of the group for the file, and the third represents the permissions of all other users:
"Rw-"
"r--"
"r--"
Netstat-net lists active Internet connections (w/o servers) to list the number of active Internet connections, and you can see the processes that Tomcat occupies
View current Java Memory Situation jstat-gcutil 1942 view Java process 1942 memory condition
S0 S1 E O P ygc ygct FGC fgct GCT
0.05 0.00 2.04 1.28 9.91 170 0.187 338 1.314 1.501
E Elden Use spatial proportions, O old area uses spatial proportions YGC YGC collection times, YGCT YGC collect time spent FGC FGC
Linux related uses--The great god flitted