Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on How to know what the "processes" are? in the Shared & Semi-Dedicated forum
Hi, Sometimes, when I do a "Top" command on my VPS, I see the number of processes go up really high. So, it will go ...

  1. #1
    Loyal Client
    Join Date
    Dec 2005
    Location
    Quebec City
    Posts
    128

    Question How to know what the "processes" are?

    Hi,

    Sometimes, when I do a "Top" command on my VPS, I see the number of processes go up really high. So, it will go from something like "65", go up to something like "121" during 5 seconds.. and slowly get back to normal.

    Ex. of a normal top command:
    Code:
     
    19:27:57 up 4 days, 14:20, 1 user, load average: 0.62, 0.84, 0.91
    65 processes: 63 sleeping, 2 running, 0 zombie, 0 stopped
    CPU0 states: 3.2% user 0.4% system	0.0% nice 0.0% iowait 95.3% idle
    CPU1 states: 2.3% user 1.2% system	0.0% nice 0.0% iowait 95.3% idle
    CPU2 states: 3.3% user 2.3% system	0.0% nice 0.0% iowait 93.2% idle
    CPU3 states: 4.0% user 1.0% system	0.0% nice 0.0% iowait 94.4% idle
    Mem: 8268324k av, 8233904k used, 34420k free,	 0k shrd, 820652k buff
    	 4273628k active,			3243472k inactive
    Swap: 8193140k av, 2313792k used, 5879348k free				 3895004k cached
    PID USER	 PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
    7746 root	 8 0 4028 1844 1788 S	11.8 0.0 3:32 3 httpd
    11617 mysql	 9 0 74708 72M 1488 S	 2.9 0.9 72:26 1 mysqld
    6433 root	 19 0 944 944 748 R	 2.7 0.0 0:00 2 top
    7147 root	 9 0 1436 1356 1176 S	 0.1 0.0 1:00 0 antirelayd
    	1 root	 8 0 476 448 428 S	 0.0 0.0 0:09 2 init
    32288 root	 9 0 548 516 468 S	 0.0 0.0 0:04 3 syslogd
    6308 named	 9 0 2720 2328 1880 S	 0.0 0.0 0:35 3 named
    6327 root	 9 0 1456 1316 1240 S	 0.0 0.0 0:13 1 sshd
    6649 root	 9 0 816 736 668 S	 0.0 0.0 0:00 3 xinetd
    7042 root	 8 0 7784 2052 1456 S	 0.0 0.0 0:19 3 chkservd
    7122 mailnull 8 0 1824 1564 1488 S	 0.0 0.0 0:03 3 exim
    7133 mailnull 9 0 1788 1468 1468 S	 0.0 0.0 0:00 1 exim
    7754 root	 8 0 592 580 536 S	 0.0 0.0 0:02 1 crond
    8992 mailnull 9 0 3956 2568 1576 S	 0.0 0.0 1:00 3 eximstats
    9419 root	 19 19 14068 12M 4136 S N 0.0 0.1 1:30 0 cpanellogd
    9475 root	 9 0 5688 2680 1656 S	 0.0 0.0 0:03 2 cppop
    10460 root	 9 0 456 396 396 S	 0.0 0.0 0:00 0 portsentry
    13738 root	 9 0 1604 1392 1340 S	 0.0 0.0 0:01 1 pure-ftpd
    13741 root	 8 0 856 684 684 S	 0.0 0.0 0:00 0 pure-authd
    11404 root	 9 0 1060 1060 896 S	 0.0 0.0 0:00 2 mysqld_safe
    13568 cpanel	 9 0 1620 1616 1348 S	 0.0 0.0 0:00 0 stunnel-4.04loc
    14436 root	 9 0 10052 9.8M 4968 S	 0.0 0.1 0:00 1 cpsrvd
    9138 root	 9 0 1348 1348 984 S	 0.0 0.0 0:00 1 bash

    Ex. of an hight number of processes:
    Code:
     
    19:41:18 up 4 days, 14:34, 1 user, load average: 4.61, 1.89, 1.26
    119 processes: 117 sleeping, 1 running, 1 zombie, 0 stopped
    CPU0 states: 0.0% user 0.2% system	0.0% nice 0.0% iowait 99.2% idle
    CPU1 states: 0.1% user 0.1% system	0.0% nice 0.0% iowait 99.2% idle
    CPU2 states: 0.2% user 0.2% system	0.0% nice 0.0% iowait 99.0% idle
    CPU3 states: 0.2% user 1.3% system	0.0% nice 0.0% iowait 97.4% idle
    Mem: 8268324k av, 6453116k used, 1815208k free,	 0k shrd, 846100k buff
    	 3013956k active,			2718412k inactive
    Swap: 8193140k av, 2360804k used, 5832336k free				 2106584k cached
    PID USER	 PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
    7746 root	 0 0 4024 1840 1784 S	 1.3 0.0 3:17 0 httpd
    2365 root	 19 0 1000 1000 748 R	 1.3 0.0 0:09 3 top
    11617 mysql	 9 0 73660 64M 2536 S	 0.3 0.8 72:49 2 mysqld
    25089 nobody	 9 0	 0	0	 0 Z	 0.1 0.0 0:00 1 httpd <defunct>
    	1 root	 8 0 476 448 428 S	 0.0 0.0 0:09 2 init
    32288 root	 9 0 548 516 468 S	 0.0 0.0 0:04 2 syslogd
    6308 named	 9 0 2692 2288 1840 S	 0.0 0.0 0:35 3 named
    6327 root	 9 0 1456 1316 1240 S	 0.0 0.0 0:13 1 sshd
    6649 root	 9 0 816 736 668 S	 0.0 0.0 0:00 1 xinetd
    7042 root	 8 0 7784 2052 1456 S	 0.0 0.0 0:19 1 chkservd
    7122 mailnull 8 0 1824 1564 1488 S	 0.0 0.0 0:03 0 exim
    7133 mailnull 9 0 1788 1468 1468 S	 0.0 0.0 0:00 1 exim
    7147 root	 9 0 1436 1352 1172 S	 0.0 0.0 1:00 0 antirelayd
    7754 root	 8 0 592 580 536 S	 0.0 0.0 0:02 2 crond
    8992 mailnull 9 0 3956 2568 1576 S	 0.0 0.0 1:00 3 eximstats
    9419 root	 19 19 14068 11M 3084 S N 0.0 0.1 1:31 2 cpanellogd
    9475 root	 9 0 5688 2524 1504 S	 0.0 0.0 0:03 3 cppop
    10460 root	 9 0 456 396 396 S	 0.0 0.0 0:00 0 portsentry
    13738 root	 9 0 1604 1392 1340 S	 0.0 0.0 0:01 0 pure-ftpd
    13741 root	 8 0 856 684 684 S	 0.0 0.0 0:00 0 pure-authd
    11404 root	 9 0 1060 1060 896 S	 0.0 0.0 0:00 2 mysqld_safe
    13568 cpanel	 9 0 1620 1616 1348 S	 0.0 0.0 0:00 0 stunnel-4.04loc
    14436 root	 9 0 10052 9.8M 4968 S	 0.0 0.1 0:00 0 cpsrvd
    9138 root	 9 0 1348 1348 984 S	 0.0 0.0 0:00 0 bash
    Can you tell me how can I identify what are the processes running when this strange behavior happen? In fact, I want to known if this is caused by a script or a special page on my VPS...

    I have try looking at Apache Status and CPU/Memory/MySQL Usage in WHM... but I don't seems to find anything useful there...

  2. #2
    Loyal Client
    Join Date
    Dec 2005
    Location
    Quebec City
    Posts
    128
    One more question...

    I was talking about server optimisation on vbulletin.com, and the subject came to "swap memory". Eva2000 (who work for vbulletin and help people with server configuration), said this:

    definitely not normal.... IF it was normal server... but VPS servers always use alot of swap for some reason...

    i'd probably just request host to move you to a less crowded VPS server
    http://www.vbulletin.com/forum/showt...18#post1063618

    Is it true that VPS tend to use more swap memory?

  3. #3
    consultant Andre's Avatar
    Join Date
    Apr 2005
    Posts
    1,155
    Hi RaZor Edge,

    About your first post: it would be more useful if you could show the output of "ps -aux", during high and low usage, because that will show all processes and more details about it. Most likely during high usage either the mailserver, webserver, or mysql is running more processes than during low usage, but it's hard to tell without seeing the output of ps -aux.

    As for that remark from Eva2000: what you are seeing there is the RAM and swap usage of the entire server, not just of your VPS. Also, due to how linux works, once swap space has been used, the server will just keep those swap pages in use unless there isn't enough additional swap space available. It does that so that in case the swap pages are requested again, the server can access them very fast. So for instance if the server uses 5mb swap on day 1, and 10 days later it uses another 5mb, then it'll seem like 10mb is being used. But that other 5mb won't be used anymore by that time, but until the server gets rebooted it'll just keep those pages in the swap (since there is plenty of swap space available there's not really a need to flush it).

    Furthermore, your guaranteed ram will never use swap, it always uses ram. I can assure you that none of our servers are overbooked, we do not oversell any guaranteed ram.

    In case you have load issues we'd be glad to investigate that for you, feel free to open a support ticket at any time.
    Andre van Vliet

    DEHE.com - Definition of Hosting Experts

  4. #4
    Loyal Client
    Join Date
    Dec 2005
    Location
    Quebec City
    Posts
    128

    Lightbulb

    As for that remark from Eva2000: what you are seeing there is the RAM and swap usage of the entire server, not just of your VPS. Also, due to how linux works, once swap space has been used, the server will just keep those swap pages in use unless there isn't enough additional swap space available. It does that so that in case the swap pages are requested again, the server can access them very fast. So for instance if the server uses 5mb swap on day 1, and 10 days later it uses another 5mb, then it'll seem like 10mb is being used. But that other 5mb won't be used anymore by that time, but until the server gets rebooted it'll just keep those pages in the swap (since there is plenty of swap space available there's not really a need to flush it).

    Furthermore, your guaranteed ram will never use swap, it always uses ram. I can assure you that none of our servers are overbooked, we do not oversell any guaranteed ram.
    I see! So, if I want to see my VPS memory usage... I must go into Virtuozzo?

    Thank you for taking time to explain all this to me. It's really helpful!


    Quote Originally Posted by Andre
    About your first post: it would be more useful if you could show the output of "ps -aux", during high and low usage, because that will show all processes and more details about it. Most likely during high usage either the mailserver, webserver, or mysql is running more processes than during low usage, but it's hard to tell without seeing the output of ps -aux.
    Ps -aux, that's what I was looking for!

    When the number of process is high:

    Code:
    00:21:17  up 4 days, 19:14,  1 user,  load average: 2.83, 2.18, 1.77
    106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
    CPU0 states:   3.3% user   1.2% system	0.0% nice   0.0% iowait  94.3% idle
    CPU1 states:   2.0% user   0.2% system	0.0% nice   0.0% iowait  97.2% idle
    CPU2 states:   2.2% user   0.1% system	0.0% nice   0.0% iowait  97.1% idle
    CPU3 states:   3.3% user   2.1% system	0.0% nice   0.0% iowait  93.4% idle
    Mem:  8268324k av, 8095984k used,  172340k free,	   0k shrd,  968724k buff
    	  4390688k active,			2971120k inactive
    Swap: 8193140k av, 2341460k used, 5851680k free				 3358420k cached
      PID USER	 PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
     7746 root	   0   0  4024 1840  1784 S	99.9  0.0   3:52   2 httpd
    11617 mysql	  9   0 73656  65M  3476 S	 2.7  0.8  97:55   3 mysqld
    28123 root	  17   0  1108 1108   748 R	 1.5  0.0   0:00   3 top
    	1 root	   8   0   476  448   428 S	 0.0  0.0   0:09   3 ini
    root@nation [~]# ps -aux
    USER	   PID %CPU %MEM   VSZ  RSS TTY	  STAT START   TIME COMMAND
    root		 1  0.0  0.0  1304  448 ?		S	Jan26   0:09 init
    root	 32288  0.0  0.0  1372  516 ?		S	Jan26   0:04 syslogd -m 0
    named	 6308  0.0  0.0 20840 2304 ?		S	Jan26   0:37 /usr/sbin/named -u named
    root	  6327  0.0  0.0  3460 1316 ?		S	Jan26   0:14 /usr/sbin/sshd
    root	  6649  0.0  0.0  1972  736 ?		S	Jan26   0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
    root	  7042  0.0  0.0  9048 2076 ?		S	Jan26   0:20 chkservd
    mailnull  7122  0.0  0.0  6640 1564 ?		S	Jan26   0:03 /usr/sbin/exim -bd -q180m
    mailnull  7133  0.0  0.0  6604 1468 ?		S	Jan26   0:00 /usr/sbin/exim -tls-on-connect -bd -oX 465
    root	  7147  0.0  0.0  2768 1356 ?		S	Jan26   1:03 antirelayd
    root	  7746  0.0  0.0 43100 1840 ?		S	Jan26   2:50 /usr/local/apache/bin/httpd -DSSL
    root	  7754  0.0  0.0  1364  580 ?		S	Jan26   0:02 crond
    mailnull  8992  0.0  0.0  5372 2572 ?		S	Jan26   1:03 /usr/bin/perl /usr/local/cpanel/bin/eximstats 
    root	  9419  0.0  0.1 16728 12036 ?	   SN   Jan26   1:36 cpanellogd - sleeping for logs
    root	  9475  0.0  0.0  9884 2628 ?		S	Jan26   0:03 cppop - accepting on port 110
    root	 10460  0.0  0.0  1324  396 ?		S	Jan26   0:00 /usr/sbin/portsentry -tcp
    root	 13738  0.0  0.0  5708 1392 ?		S	Jan26   0:01 pure-ftpd (SERVER)															 
    root	 13741  0.0  0.0  3348  684 ?		S	Jan26   0:00 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureauth
    root	 11404  0.0  0.0  2052 1060 ?		S	Jan30   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql
    mysql	11617  8.8  0.8 100204 67448 ?	  S	Jan30  97:47 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/
    cpanel   13568  0.0  0.0  3780 1616 ?		S	Jan30   0:00 /usr/bin/stunnel-4.04local /usr/local/cpanel/etc/stunnel/default/stunnel.conf.r
    root	 14436  0.0  0.1 11456 10052 ?	   S	Jan30   0:00 cpsrvd - waiting for connections
    sshd	  8577  0.0  0.0  4828 1520 ?		S	Jan30   0:00 /usr/sbin/sshd
    root	 18337  0.0  0.0  6740 2168 ?		S	Jan30   0:00 /usr/sbin/sshd
    root	 19168  0.0  0.0  2232 1332 pts/0	S	Jan30   0:00 -bash
    nobody   12856  0.9  0.2 48176 19108 ?	   S	00:06   0:08 /usr/local/apache/bin/httpd -DSSL
    nobody   13443  1.0  0.2 48400 18304 ?	   S	00:06   0:08 /usr/local/apache/bin/httpd -DSSL
    nobody   17958  1.0  0.2 48388 19040 ?	   S	00:08   0:07 /usr/local/apache/bin/httpd -DSSL
    nobody   18948  1.1  0.2 48200 19536 ?	   S	00:08   0:07 /usr/local/apache/bin/httpd -DSSL
    nobody	1044  1.3  0.2 48352 18920 ?	   S	00:10   0:08 /usr/local/apache/bin/httpd -DSSL
    nobody	1146  1.0  0.2 48608 18068 ?	   S	00:11   0:05 /usr/local/apache/bin/httpd -DSSL
    nobody   15667  1.2  0.1 48164 11792 ?	   S	00:14   0:04 /usr/local/apache/bin/httpd -DSSL
    nobody   22689  1.0  0.1 47652 9492 ?		S	00:18   0:01 /usr/local/apache/bin/httpd -DSSL
    nobody   23776  1.5  0.1 48332 10672 ?	   S	00:18   0:02 /usr/local/apache/bin/httpd -DSSL
    nobody   27008  1.2  0.1 48144 15500 ?	   S	00:18   0:01 /usr/local/apache/bin/httpd -DSSL
    nobody   31662  0.6  0.1 48040 8984 ?		S	00:19   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   31673  1.7  0.1 47756 8860 ?		S	00:19   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   31674  1.1  0.0 47640 8244 ?		S	00:19   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   31890  0.5  0.0 47496 8092 ?		S	00:19   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	 474  0.2  0.0 45920 5744 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	4596  0.4  0.0 47120 7552 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9931  1.1  0.1 47480 8556 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9932  0.2  0.0 45920 5728 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9936  0.2  0.0 45920 5720 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9937  0.4  0.0 46312 6500 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9938  1.7  0.1 47404 13904 ?	   S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9939  0.0  0.0 43140 2616 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9940  0.0  0.0 43140 2612 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9941  1.2  0.1 47288 8272 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9942  0.0  0.0 43212 4184 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9943  0.4  0.0 46312 6552 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9944  0.3  0.0 46312 6460 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9945  0.4  0.0 46312 6556 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9946  0.4  0.0 46312 6504 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9947  0.7  0.0 47872 8192 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9949  0.0  0.0 43140 2612 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9950  0.0  0.0 43140 2676 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9951  0.0  0.0 43124 2564 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9952  1.0  0.0 47272 7548 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9984  0.3  0.0 45916 5712 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10016  0.5  0.0 47508 7768 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10048  0.0  0.0 43140 2612 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10080  0.4  0.0 47040 7484 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10112  1.5  0.1 47684 8328 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10145  0.0  0.0 43140 2628 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10176  0.0  0.0 43124 2560 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10208  0.0  0.0 43140 2612 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10240  0.6  0.0 45904 6212 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10241  0.2  0.0 43212 4184 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10242  0.6  0.0 46880 7064 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10243  0.3  0.0 46312 6476 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10244  0.5  0.0 45904 5912 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10245  0.4  0.0 46312 6472 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10246  0.7  0.0 46880 7116 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10247  0.1  0.0 43212 4180 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10248  0.5  0.0 46312 6472 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10249  0.7  0.0 46312 6504 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10250  0.5  0.0 47044 7408 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10251  0.0  0.0 43140 2608 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10252  0.0  0.0 43140 2612 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10253  0.0  0.0 43140 2608 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10254  0.0  0.0 43140 2612 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10255  0.0  0.0 43124 2560 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10256  1.2  0.0 47508 8128 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10257  1.7  0.1 47660 8292 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10258  0.2  0.0 45920 5720 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10259  0.3  0.0 46544 6400 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10260  1.8  0.0 47532 8128 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   10261  0.0  0.0 43152 2992 ?		S	00:20   0:00 /usr/local/apache/bin/httpd -DSSL
    root	 26446  0.0  0.0  2648  784 pts/0	R	00:20   0:00 ps -aux
    root@nation [~]#
    With an average number of process:

    Code:
    00:34:01  up 4 days, 19:26,  1 user,  load average: 0.77, 1.28, 1.47
    75 processes: 74 sleeping, 1 running, 0 zombie, 0 stopped
    CPU0 states:   9.0% user   1.0% system	0.0% nice   0.0% iowait  89.2% idle
    CPU1 states:   8.0% user   1.0% system	0.0% nice   0.0% iowait  90.2% idle
    CPU2 states:  13.0% user   1.0% system	0.0% nice   0.0% iowait  85.1% idle
    CPU3 states:   5.2% user   5.0% system	0.0% nice   0.0% iowait  89.0% idle
    Mem:  8268324k av, 8184644k used,   83680k free,	   0k shrd,  970808k buff
    	  4502152k active,			2951472k inactive
    Swap: 8193140k av, 2341436k used, 5851704k free				 3497712k cached
    Delay between updates: 
      PID USER	 PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
     7746 root	   0   0  4024 1840  1784 S	16.9  0.0   4:03   0 httpd
    11617 mysql	  9   0 73796  65M  3480 S	 4.1  0.8  99:13   2 mysqld
    13472 root	  19   0   968  968   752 R	 2.4  0.0   0:01   3 top
     
    
    root@nation [~]# ps -aux
    USER	   PID %CPU %MEM   VSZ  RSS TTY	  STAT START   TIME COMMAND
    root		 1  0.0  0.0  1304  448 ?		S	Jan26   0:09 init
    root	 32288  0.0  0.0  1372  516 ?		S	Jan26   0:04 syslogd -m 0
    named	 6308  0.0  0.0 20840 2304 ?		S	Jan26   0:37 /usr/sbin/named -u named
    root	  6327  0.0  0.0  3460 1316 ?		S	Jan26   0:14 /usr/sbin/sshd
    root	  6649  0.0  0.0  1972  736 ?		S	Jan26   0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
    root	  7042  0.0  0.0  9048 2076 ?		S	Jan26   0:20 chkservd
    mailnull  7122  0.0  0.0  6640 1564 ?		S	Jan26   0:03 /usr/sbin/exim -bd -q180m
    mailnull  7133  0.0  0.0  6604 1468 ?		S	Jan26   0:00 /usr/sbin/exim -tls-on-connect -bd -oX 465
    root	  7147  0.0  0.0  2768 1356 ?		S	Jan26   1:03 antirelayd
    root	  7746  0.0  0.0 43100 1840 ?		S	Jan26   2:51 /usr/local/apache/bin/httpd -DSSL
    root	  7754  0.0  0.0  1364  580 ?		S	Jan26   0:02 crond
    mailnull  8992  0.0  0.0  5372 2572 ?		S	Jan26   1:04 /usr/bin/perl /usr/local/cpanel/bin/eximstats 
    root	  9419  0.0  0.1 16728 12036 ?	   SN   Jan26   1:36 cpanellogd - sleeping for logs
    root	  9475  0.0  0.0  9884 2636 ?		S	Jan26   0:03 cppop - accepting on port 110
    root	 10460  0.0  0.0  1324  396 ?		S	Jan26   0:00 /usr/sbin/portsentry -tcp
    root	 13738  0.0  0.0  5708 1392 ?		S	Jan26   0:01 pure-ftpd (SERVER)															 
    root	 13741  0.0  0.0  3348  684 ?		S	Jan26   0:00 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureauth
    root	 11404  0.0  0.0  2052 1060 ?		S	Jan30   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql
    mysql	11617  8.6  0.8 100164 67484 ?	  S	Jan30  99:16 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/
    cpanel   13568  0.0  0.0  3780 1616 ?		S	Jan30   0:00 /usr/bin/stunnel-4.04local /usr/local/cpanel/etc/stunnel/default/stunnel.conf.r
    root	 14436  0.0  0.1 11456 10052 ?	   S	Jan30   0:00 cpsrvd - waiting for connections
    sshd	  8577  0.0  0.0  4828 1520 ?		S	Jan30   0:00 /usr/sbin/sshd
    root	 18337  0.0  0.0  6804 2204 ?		S	Jan30   0:00 /usr/sbin/sshd
    root	 19168  0.0  0.0  2240 1340 pts/0	S	Jan30   0:00 -bash
    nobody	 474  1.1  0.2 48596 18828 ?	   S	00:19   0:09 /usr/local/apache/bin/httpd -DSSL
    nobody	4596  1.2  0.2 48040 19040 ?	   S	00:20   0:10 /usr/local/apache/bin/httpd -DSSL
    nobody   29153  1.1  0.1 48088 12084 ?	   S	00:21   0:08 /usr/local/apache/bin/httpd -DSSL
    nobody	1281  1.1  0.1 48008 11964 ?	   S	00:22   0:08 /usr/local/apache/bin/httpd -DSSL
    nobody	1294  1.1  0.1 48228 12012 ?	   S	00:22   0:08 /usr/local/apache/bin/httpd -DSSL
    nobody   10388  1.2  0.2 48100 17980 ?	   S	00:24   0:07 /usr/local/apache/bin/httpd -DSSL
    nobody   16316  0.8  0.1 48812 11796 ?	   S	00:25   0:04 /usr/local/apache/bin/httpd -DSSL
    nobody	2148  1.2  0.1 48052 10788 ?	   S	00:28   0:04 /usr/local/apache/bin/httpd -DSSL
    nobody	9949  1.2  0.1 48592 10488 ?	   S	00:32   0:01 /usr/local/apache/bin/httpd -DSSL
    nobody   12352  1.2  0.1 47504 9012 ?		S	00:33   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   12566  1.0  0.1 47700 9088 ?		S	00:33   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   16563  1.1  0.0 47268 7560 ?		S	00:34   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody   16570  0.0  0.0 43140 2628 ?		S	00:34   0:00 /usr/local/apache/bin/httpd -DSSL
    root	 17198  0.0  0.0  2600  736 pts/0	R	00:34   0:00 ps -aux
    Some times after I have restart Apache and SQL:

    Code:
    00:38:58  up 4 days, 19:31,  1 user,  load average: 0.41, 0.97, 1.29
    51 processes: 50 sleeping, 1 running, 0 zombie, 0 stopped
    CPU0 states:   0.0% user   0.0% system	0.0% nice   0.0% iowait 100.0% idle
    CPU1 states:   0.1% user   0.0% system	0.0% nice   0.0% iowait  99.3% idle
    CPU2 states:   0.1% user   0.0% system	0.0% nice   0.0% iowait  99.3% idle
    CPU3 states:   0.0% user   0.2% system	0.0% nice   0.0% iowait  99.3% idle
    Mem:  8268324k av, 8082852k used,  185472k free,	   0k shrd,  971848k buff
    	  4435864k active,			2919152k inactive
    Swap: 8193140k av, 2324456k used, 5868684k free				 3467796k cached
      PID USER	 PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
     4546 root	  10   0  5568 5568  5132 S	99.9  0.0   0:07   1 httpd
     3240 root	  12   0   968  968   748 R	 0.3  0.0   0:00   3 top
    	1 root	   8   0   476  448   428 S	 0.0  0.0   0:09   2 init
     
    
    root@nation [~]# ps -aux
    USER	   PID %CPU %MEM   VSZ  RSS TTY	  STAT START   TIME COMMAND
    root		 1  0.0  0.0  1304  448 ?		S	Jan26   0:09 init
    root	 32288  0.0  0.0  1372  516 ?		S	Jan26   0:04 syslogd -m 0
    named	 6308  0.0  0.0 20840 2304 ?		S	Jan26   0:37 /usr/sbin/named -u named
    root	  6327  0.0  0.0  3460 1316 ?		S	Jan26   0:14 /usr/sbin/sshd
    root	  6649  0.0  0.0  1972  736 ?		S	Jan26   0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
    root	  7042  0.0  0.0  9048 2076 ?		S	Jan26   0:20 chkservd
    mailnull  7122  0.0  0.0  6640 1564 ?		S	Jan26   0:03 /usr/sbin/exim -bd -q180m
    mailnull  7133  0.0  0.0  6604 1468 ?		S	Jan26   0:00 /usr/sbin/exim -tls-on-connect -bd -oX 465
    root	  7147  0.0  0.0  2768 1356 ?		S	Jan26   1:03 antirelayd
    root	  7754  0.0  0.0  1364  580 ?		S	Jan26   0:02 crond
    mailnull  8992  0.0  0.0  5372 2572 ?		S	Jan26   1:04 /usr/bin/perl /usr/local/cpanel/bin/eximstats 
    root	  9419  0.0  0.1 16728 12036 ?	   SN   Jan26   1:36 cpanellogd - sleeping for logs
    root	  9475  0.0  0.0  9884 2636 ?		S	Jan26   0:03 cppop - accepting on port 110
    root	 10460  0.0  0.0  1324  396 ?		S	Jan26   0:00 /usr/sbin/portsentry -tcp
    root	 13738  0.0  0.0  5708 1392 ?		S	Jan26   0:01 pure-ftpd (SERVER)															 
    root	 13741  0.0  0.0  3348  684 ?		S	Jan26   0:00 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureauth
    cpanel   13568  0.0  0.0  3780 1616 ?		S	Jan30   0:00 /usr/bin/stunnel-4.04local /usr/local/cpanel/etc/stunnel/default/stunnel.conf.r
    root	 14436  0.0  0.1 11456 10052 ?	   S	Jan30   0:00 cpsrvd - waiting for connections
    sshd	  8577  0.0  0.0  4828 1520 ?		S	Jan30   0:00 /usr/sbin/sshd
    root	 18337  0.0  0.0  6804 2208 ?		S	Jan30   0:01 /usr/sbin/sshd
    root	 19168  0.0  0.0  2240 1344 pts/0	S	Jan30   0:00 -bash
    root	 32458  0.0  0.0  2052 1060 ?		S	00:35   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql
    mysql	32576 16.2  0.1 89916 11912 ?	   S	00:35   0:33 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/
    root	  4546  0.1  0.0 43100 5568 ?		S	00:37   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	4554  1.0  0.1 47664 11588 ?	   S	00:37   0:01 /usr/local/apache/bin/httpd -DSSL
    nobody	4555  2.1  0.1 49292 14124 ?	   S	00:37   0:02 /usr/local/apache/bin/httpd -DSSL
    nobody	4556  0.2  0.1 47208 9580 ?		S	00:37   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	4557  2.4  0.3 54360 25312 ?	   S	00:37   0:02 /usr/local/apache/bin/httpd -DSSL
    nobody	4558  0.7  0.1 47636 10964 ?	   S	00:37   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	4575  0.3  0.1 48064 10788 ?	   S	00:37   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	4592  1.0  0.1 48180 12036 ?	   S	00:37   0:01 /usr/local/apache/bin/httpd -DSSL
    nobody	4593  0.8  0.1 47212 10312 ?	   S	00:37   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	4597  1.3  0.1 48560 12632 ?	   S	00:37   0:01 /usr/local/apache/bin/httpd -DSSL
    nobody	4599  0.7  0.1 47512 10672 ?	   S	00:37   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	7259  1.5  0.1 47812 10676 ?	   S	00:38   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	7904  2.8  0.1 45188 14092 ?	   S	00:39   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	8291  0.1  0.0 43140 5688 ?		S	00:39   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	8420  0.1  0.0 43140 5688 ?		S	00:39   0:00 /usr/local/apache/bin/httpd -DSSL
    nobody	9536  2.0  0.0	 0	0 ?		Z	00:39   0:00 [httpd <defunct>]
    root	  9567  0.0  0.0  2576  712 pts/0	R	00:39   0:00 ps -aux
    The results after I restated Apache and SQL are much better than the previous one (where services was running for about 2 or 3 days)!!!


    In case you have load issues we'd be glad to investigate that for you, feel free to open a support ticket at any time.
    In fact, my VPS "load" are usually not bad... but if you think we can optimize them more (from what I have read, on linux, we are not suppose to restart services often to have good results... so maybe there is something to investigate here), I will open a ticket.

    Thank you very much Andre!! Fast reply on troubletickets and your active participation on the forum are two things I really like about Dehe!!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •