Linux-related use, linux-related

Source: Internet
Author: User

Linux-related use, linux-related



View the tomat process ps-ef | grep tomcat

View java-related jps

Finding the tomcat directory find/-name tomcat seems okay, but new users may feel helpless. If you install tomcat, it is estimated that tomcat cannot be found in linux for a simple reason: linux is very case sensitive, so you have to look for the tomcat directory to do this: find/-name "* [Tt] omcat *" there will be the desired results in the list

Ls to list current files and folders

Understanding "ls-l"

The first field-rwxr-xr-x indicates the permission of the special file. The first character (-) in this field specifies the file type. In this example, it is a regular file. Other possible first characters include:
"D" Directory
"L" Symbolic Link
"C" character dedicated Device File
"B" Special Device Files
"P" first-in-first-out
"S" socket
Three productkey, devicename, and devicesecret
Rw-r -- 1 root 19103658 5 Records? 4 2011 src.zip
The rest of the field consists of three triple characters. The first three-character group represents the permissions of the file owner, the second represents the permissions of the file group, 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. You can check the processes occupied by tomcat.

View the current java memory situation jstat-gcutil 1942 view the memory situation of java Process 1942

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 uses the space proportion, O old uses the space proportion YGC ygc collection times, YGCT ygc collection time FGC time

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.