View server hardware configuration information and service usage resource commands in a Linux environment

Source: Internet
Author: User
Tags server memory

View Machine Model:

Dmidecode | grep "Product Name"
To View network card information:

DMESG | Grep-ieth

To view CPU information:

Cat/proc/cpuinfo

only Look CPU Model:

Cat/proc/cpuinfo | grep name | Cut-f2-d: | Uniq-c

To view the number of physical CPUs:

grep "Physical ID"/proc/cpuinfo|sort-u|wc-l

To view the number of cores per physical CPU:

grep "CPU Cores"/proc/cpuinfo|uniq

To view the number of logical CPUs on each physical CPU:

grep "siblings"/proc/cpuinfo|uniq

To view the number of logical CPUs:

Cat/proc/cpuinfo |grep "Processor" |sort-u|wc-l

To view memory information:

Cat/proc/meminfo

To view hard disk information:

Fdisk-l

To view system kernel information:

Uname-a

To view system release information:

cat/etc/issue| grep Linux

Total Server CPU Utilization (Safety range/threshold <=90%):

Top

Server Memory Utilization (Safety range/threshold <=90%):

Cat/proc/meminfo       --"Memory usage Calculation formula: 100* (memtotal-memfree-buffers-cached)/memtotal"

System hard Drive utilization (Safety range/threshold <= 7 0%):

Df-lm

J Ava CPU usage of the service:

jconsole Tool View - Select the appropriate service entry in the local process

Service Memory Usage:

jstat-heap pid "pid is process ID"

Domain GC Reclamation:

JSTAT-GCUTILPID 10000- -"10000 indicates once in 10 seconds" -represents the execution -Times "

View server hardware configuration information and service usage resource commands in a Linux environment

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.