리눅스 top
From IT Wiki
시스템의 전체적인 운영상황을 모니터링할 수 있는 명령어
- 시스템의 CPU, 메모리, 디스크 이용 상황 뿐만 아니라 전체 프로세스의 운영상황을 실시간으로 모니터링할 수 있다.
- 특정 프로세스를 종료하고자 하는 경우 k키를 입력하고 해당 PID를 입력한다.
실행 결과 예시
# top top - 19:42:29 up 117 days, 9:36, 1 user, load average: 0.03, 0.08, 0.08 Tasks: 129 total, 2 running, 127 sleeping, 0 stopped, 0 zombie Cpu(s): 3.0%us, 0.3%sy, 0.0%ni, 96.5%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 1019860k total, 926480k used, 93380k free, 24008k buffers Swap: 2097148k total, 426756k used, 1670392k free, 206336k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 14276 apache 20 0 455m 25m 4808 R 4.7 2.6 0:01.80 httpd 19065 mysql 20 0 1692m 390m 5880 S 1.0 39.2 1220:25 mysqld 1 root 20 0 19356 372 200 S 0.0 0.0 0:07.10 init 2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd 3 root RT 0 0 0 0 S 0.0 0.0 0:04.93 migration/0 4 root 20 0 0 0 0 S 0.0 0.0 0:07.41 ksoftirqd/0 5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/0 6 root RT 0 0 0 0 S 0.0 0.0 0:13.24 watchdog/0 7 root RT 0 0 0 0 S 0.0 0.0 0:04.58 migration/1 8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/1 9 root 20 0 0 0 0 S 0.0 0.0 0:07.55 ksoftirqd/1 10 root RT 0 0 0 0 S 0.0 0.0 0:11.79 watchdog/1 11 root 20 0 0 0 0 S 0.0 0.0 88:38.36 events/0 12 root 20 0 0 0 0 S 0.0 0.0 67:35.22 events/1 13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 events/0 14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 events/1 15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 events_long/0 16 root 20 0 0 0 0 S 0.0 0.0 0:00.00 events_long/1 17 root 20 0 0 0 0 S 0.0 0.0 0:00.00 events_power_ef 18 root 20 0 0 0 0 S 0.0 0.0 0:00.00 events_power_ef 19 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cgroup 20 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khelper 21 root 20 0 0 0 0 S 0.0 0.0 0:00.00 netns 22 root 20 0 0 0 0 S 0.0 0.0 0:00.00 async/mgr 23 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pm 24 root 20 0 0 0 0 S 0.0 0.0 0:30.08 sync_supers 25 root 20 0 0 0 0 S 0.0 0.0 0:33.74 bdi-default 26 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kintegrityd/0 27 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kintegrityd/1 ... (이하 생략) ...