Hello Everyone,
I am having CPU resource problem on my VPS server. When I login via SSH root and type "# top" I get the following screen:
00:26:36 up 3 days, 14:47, 1 user, load average: 58.81, 57.81, 55.62
286 processes: 225 sleeping, 60 running, 1 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 98.7% 0.0% 1.2% 0.0% 0.0% 0.0% 0.0%
cpu00 99.5% 0.0% 0.4% 0.0% 0.0% 0.0% 0.0%
cpu01 96.3% 0.0% 3.6% 0.0% 0.0% 0.0% 0.0%
cpu02 100.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0%
cpu03 99.3% 0.0% 0.6% 0.0% 0.0% 0.0% 0.0%
Mem: 6156504k av, 5959036k used, 197468k free, 0k shrd, 39268k buff
3912760k active, 1132040k inactive
Swap: 2048152k av, 1325452k used, 722700k free 2100612k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
23562 apache 25 0 57680 24M 50160 R 2.4 0.4 13:18 1 httpd
15441 apache 25 0 57604 29M 50160 R 2.0 0.4 0:52 2 httpd
13500 apache 25 0 57408 19M 50160 R 1.9 0.3 10:57 3 httpd
30669 apache 25 0 57404 18M 50160 R 1.9 0.3 10:22 2 httpd
13593 apache 25 0 57540 26M 50184 R 1.9 0.4 4:36 2 httpd
13652 apache 25 0 57488 26M 50160 R 1.9 0.4 4:04 0 httpd
17541 apache 25 0 57520 26M 50160 R 1.9 0.4 1:30 3 httpd
32064 apache 25 0 57416 23M 50160 R 1.7 0.3 18:12 1 httpd
13761 apache 25 0 57384 20M 50160 R 1.7 0.3 6:57 0 httpd
25878 apache 25 0 57396 17M 50160 R 1.6 0.2 2:19 2 httpd
5402 apache 25 0 57488 21M 50160 R 1.6 0.3 0:09 0 httpd
24292 apache 25 0 57540 24M 50184 R 1.5 0.4 9:29 3 httpd
17657 apache 25 0 57744 18M 50160 R 1.5 0.3 7:40 2 httpd
15546 apache 25 0 57772 32M 50160 R 1.4 0.5 43:03 2 httpd
7277 apache 25 0 57500 25M 50160 R 1.4 0.4 37:42 1 httpd
12115 apache 25 0 57464 25M 50160 R 1.4 0.4 29:42 2 httpd
11285 apache 25 0 57472 23M 50160 R 1.4 0.3 27:08 3 httpd
11296 apache 25 0 57552 25M 50160 R 1.4 0.4 21:58 2 httpd
25996 apache 25 0 57388 21M 50160 R 1.4 0.3 20:31 0 httpd
5662 apache 25 0 57616 28M 50184 R 1.4 0.4 12:10 3 httpd
5672 apache 25 0 57560 28M 50160 R 1.4 0.4 16:00 0 httpd
19909 apache 25 0 57480 19M 50160 R 1.4 0.3 17:36 2 httpd
21741 apache 25 0 57512 26M 50160 R 1.4 0.4 14:20 0 httpd
17466 apache 25 0 57356 20M 50160 R 1.4 0.3 15:06 0 httpd
13799 apache 25 0 57540 22M 50184 R 1.4 0.3 12:36 0 httpd
13492 apache 25 0 57304 18M 50160 R 1.4 0.3 11:25 0 httpd
15792 apache 25 0 57512 26M 50184 R 1.4 0.4 8:33 0 httpd
16140 apache 25 0 57792 23M 50184 R 1.4 0.3 7:18 1 httpd
20000 apache 25 0 57304 16M 50160 R 1.4 0.2 7:57 0 httpd
13571 apache 25 0 57600 25M 50184 R 1.4 0.4 4:57 2 httpd
13651 apache 25 0 57380 19M 50160 R 1.4 0.3 5:30 2 httpd
22482 apache 25 0 57520 22M 50160 R 1.4 0.3 3:33 3 httpd
22483 apache 25 0 57476 25M 50160 R 1.4 0.4 3:39 3 httpd
9605 apache 25 0 57584 27M 50184 R 1.4 0.4 1:58 0 httpd
17563 apache 25 0 57488 25M 50184 R 1.4 0.4 2:08 1 httpd
18294 apache 25 0 57364 20M 50160 R 1.4 0.3 2:28 3 httpd
24484 apache 25 0 57544 27M 50160 R 1.4 0.4 1:36 0 httpd
27790 apache 25 0 57580 23M 50160 R 1.4 0.3 1:01 0 httpd
32470 apache 25 0 57480 23M 50160 R 1.4 0.3 0:54 3 httpd
32488 apache 25 0 57516 26M 50160 R 1.4 0.4 0:45 1 httpd
9631 apache 25 0 57624 22M 50160 R 1.4 0.3 0:23 2 httpd
22410 apache 25 0 57488 26M 50184 R 1.2 0.4 23:26 1 httpd
1512 apache 25 0 57720 32M 50160 R 1.0 0.5 25:38 0 httpd
18199 apache 25 0 57480 23M 50160 R 1.0 0.3 19:21 1 httpd
28043 apache 25 0 57604 26M 50184 R 1.0 0.4 16:44 3 httpd
13622 apache 25 0 57492 22M 50184 R 1.0 0.3 5:13 2 httpd
13379 apache 25 0 57304 16M 50160 R 1.0 0.2 2:48 1 httpd
30031 apache 25 0 57416 21M 50160 R 0.9 0.3 33:33 3 httpd
5275 apache 25 0 57352 17M 50160 R 0.9 0.2 13:29 3 httpd
13501 apache 25 0 57484 22M 50160 R 0.9 0.3 10:00 2 httpd
13493 apache 25 0 57552 26M 50184 R 0.9 0.4 6:37 2 httpd
17652 apache 25 0 57492 21M 50184 R 0.9 0.3 9:01 1 httpd
17558 apache 25 0 57428 22M 50160 R 0.9 0.3 6:10 3 httpd
9863 apache 25 0 57376 16M 50160 R 0.9 0.2 5:48 1 httpd
28253 apache 25 0 57488 20M 50160 R 0.9 0.3 4:16 1 httpd
As you can see, all my 4 CPUs are 100% loaded and there are lots of HTTPD processes. This makes my website and other server services unavailable.
I wonder how can I learn the URL of each one of these processes?
For example, I wonder what PID #28253 httpd points to (ex:
http://www.mysite.com/myscript.php)?Is it possible?
Thanks.