1. top - 리눅스 프로세스 모니터링
top 명령은 실행되고 활성화된 모든 실시간 프로세스를 정렬된 목록에 표시하고 정기적으로 업데이트 합니다.
CPU 사용량, 메모리 사용량, SWAP 메모리, Cache 크기, Buffer 크기, 프로세스 PID, 사용자 등을 표시합니다.
또한, 실행중인 프로세스의 높은 CPU 및 메모리 사용률을 볼 수 있습니다.
top
자세한 사용법은 아래 링크 참조
https://www.tecmint.com/12-top-command-examples-in-linux/
2. vmstat - 가상 메모리 확인
vmstat 명령은 가상 메모리, 커널, 쓰레드, 디스크, 시스템 프로세스, I/O 블록, 인터럽트, CPU activity 등을 확인할 때 사용합니다.
vmstat 명령은 Linunx에서 사용할 수 없기 때문에 vmstat 프로그램이 포함된 systat 패키지 설치가 필요합니다.
CentOS/REHL
sudo yum install sysstat
Ubuntu
sudo apt-get install sysstat
vmstat
자세한 사용법은 아래 링크 참조
https://www.tecmint.com/linux-performance-monitoring-with-vmstat-and-iostat-commands/
3. lsof - 열린 파일 확인
lsof 명령은 Linux 시스템에서 열려 있는 모든 파일과 프로세스 목록을 표시하는데 사용합니다.
열려 있는 파일에는 디스크 파일, 네트워크 소켓, 파이프, 장치 및 프로세스를 확인할 수 있습니다.
이 명령은 디스크를 마운트 해제할 수 없고 파일이 사용중이거나 열려 있다는 오류가 표시되는 경우 사용합니다.
lsof
자세한 사용법은 아래 링크 참조
https://www.tecmint.com/10-lsof-command-examples-in-linux/
4. netstat - 네트워크 통계 확인
netstat는 네트워크 패킷 통계와 인터페이스 통계를 모니터링하기 위한 명령이다.
netstat
자세한 사용법은 아래 링크 참조
https://www.tecmint.com/20-netstat-commands-for-linux-network-management/
5. htop - 리눅스 프로세스 모니터링
htop 명령은 top 명령과 유사하지만 사용자가 보기 편하게 만들어졌다.
CentOS/REHL
sudo yum install htop
Ubuntu
sudo apt-get install htop
htop
자세한 사용법은 아래 링크 참조
https://www.tecmint.com/htop-linux-process-monitoring/
6. iotop - 리눅스 Disk I/O 모니터링
iotop 명령은 실시간 Disk I/O 및 프로세스 모니터링 하는 계정 정보가 표시됩니다.
프로세스에서 많이 사용되는 Disk I/O를 찾는데 유용합니다.
CentOS/REHL
sudo yum install iotop
Ubuntu
sudo apt-get install iotop
iotop
자세한 사용법은 아래 링크 참조
https://www.tecmint.com/iotop-monitor-linux-disk-io-activity-per-process/
7. iostat - Input/Output 성능 모니터링
iostat 명령은 시스템 입력 및 출력 저장 장치 성능을 수집하고 표시하는 도구 입니다.
CentOS/REHL
sudo yum install sysstat
Ubuntu
sudo apt-get install sysstat
iostat
자세한 사용법은 아래 링크 참조
https://www.tecmint.com/linux-performance-monitoring-with-vmstat-and-iostat-commands/
[참고]
- https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/
'Server > Linux' 카테고리의 다른 글
[Linux] 리눅스 패스워드 만료 기간 확인 및 만료일 설정 (0) | 2022.02.03 |
---|---|
[Linux] 대상 서버의 방화벽 오픈 확인 (0) | 2022.02.03 |
[Linux] 리눅스 커널 업데이트 방법 (0) | 2022.01.21 |
[Linux] 리눅스 파일 시스템 계층 구조 (0) | 2022.01.19 |
[Linux] Ubuntu GUI 모드/Text 모드 전환 방법 (0) | 2022.01.15 |