The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

repeating services in ps fax

Discussion in 'General Discussion' started by SupermanInNY, Jun 26, 2004.

  1. SupermanInNY

    SupermanInNY Well-Known Member

    Joined:
    Jul 19, 2003
    Messages:
    255
    Likes Received:
    0
    Trophy Points:
    16
    Hi All,

    I typed:

    ps fax

    and noticed that I have several repeating services that I'm not sure why are they running and if that is a valid normal thing.

    Specifically I'm looking at:

    [kjournald]
    /sbin/mingetty tty1
    23534 ? S 0:41 chkservd
    23642 ? SN 4:42 cpanellogd - sleeping for logs


    The last two are running 3 times.
    I'm wondering why.

    Thanks,

    -Alon.




    1 ? S 0:51 init [3]
    2 ? SW 0:04 [keventd]
    3 ? SWN 0:00 [ksoftirqd_CPU0]
    4 ? SWN 0:00 [ksoftirqd_CPU1]
    5 ? SW 32:39 [kswapd]
    6 ? SW 0:09 [bdflush]
    7 ? SW 21:27 [kupdated]
    8 ? SW< 0:00 [mdrecoveryd]
    15 ? SW 20:14 [kjournald]
    73 ? SW 0:00 [khubd]
    253 ? SW 10:14 [kjournald]
    254 ? SW 0:00 [kjournald]
    255 ? SW 28:31 [kjournald]
    256 ? SW 52:35 [kjournald]
    261 ? SW 21:09 [kjournald]
    310 ? SW 0:00 [knodemgrd_0]
    1524 ? S 1:42 gpm -t ps/2 -m /dev/psaux
    1533 ? S 0:13 crond
    1864 ? S 0:00 xfs -droppriv -daemon
    1882 ? S 0:05 /usr/sbin/atd
    2061 ? S 0:00 /usr/sbin/portsentry -tcp
    2100 tty1 S 0:00 /sbin/mingetty tty1
    2101 tty2 S 0:00 /sbin/mingetty tty2
    2102 tty3 S 0:00 /sbin/mingetty tty3
    2103 tty4 S 0:00 /sbin/mingetty tty4
    2104 tty5 S 0:00 /sbin/mingetty tty5
    2105 tty6 S 0:00 /sbin/mingetty tty6
    9788 ? S 0:00 /bin/bash /usr/local/sbin/open_sesame listen
    19278 ? S 0:00 \_ cat /var/run/whm_fifo
    19279 ? S 0:00 \_ /bin/bash /usr/local/sbin/open_sesame listen
    31647 ? S 2:04 chkservd
    10573 ? S 1:10 proftpd: (accepting connections)
    19122 ? S 0:00 \_ proftpd: brasiloc - DSL212-235-72-192.bb.netvision.net.il: IDLE
    16479 ? SN 12:05 cpanellogd - sleeping for logs
    16485 ? S 2:00 cppop - accepting on port 110
    22289 ? S 4:28 syslogd -m 0
    22293 ? S 0:20 klogd -x
    16743 ? S 0:41 chkservd
    16850 ? SN 3:53 cpanellogd - sleeping for logs
    23534 ? S 0:41 chkservd
    23642 ? SN 4:42 cpanellogd - sleeping for logs
    24337 ? S 0:39 chkservd
    24432 ? SN 4:31 cpanellogd - sleeping for logs
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If that's exactly as you see it in full (you should use the CODE tag in the forum post so that we can see it properly) then you definitely have a problem. You should only have one chkservd and cpanellogd process, and cPanel (cpsrvd) isn't even running!
     
  3. SupermanInNY

    SupermanInNY Well-Known Member

    Joined:
    Jul 19, 2003
    Messages:
    255
    Likes Received:
    0
    Trophy Points:
    16
    OK,. here is the list again. .in its entire looks.


    Code:
     ps fax
      PID TTY      STAT   TIME COMMAND
        1 ?        S      0:51 init [3]  
        2 ?        SW     0:04 [keventd]
        3 ?        SWN    0:00 [ksoftirqd_CPU0]
        4 ?        SWN    0:00 [ksoftirqd_CPU1]
        5 ?        SW    32:40 [kswapd]
        6 ?        SW     0:09 [bdflush]
        7 ?        SW    21:31 [kupdated]
        8 ?        SW<    0:00 [mdrecoveryd]
       15 ?        SW    20:17 [kjournald]
       73 ?        SW     0:00 [khubd]
      253 ?        SW    10:14 [kjournald]
      254 ?        SW     0:00 [kjournald]
      255 ?        SW    28:37 [kjournald]
      256 ?        SW    52:43 [kjournald]
      261 ?        SW    21:12 [kjournald]
      310 ?        SW     0:00 [knodemgrd_0]
     1524 ?        S      1:42 gpm -t ps/2 -m /dev/psaux
     1533 ?        S      0:13 crond
     1864 ?        S      0:00 xfs -droppriv -daemon
     1882 ?        S      0:05 /usr/sbin/atd
     2061 ?        S      0:00 /usr/sbin/portsentry -tcp
     2100 tty1     S      0:00 /sbin/mingetty tty1
     2101 tty2     S      0:00 /sbin/mingetty tty2
     2102 tty3     S      0:00 /sbin/mingetty tty3
     2103 tty4     S      0:00 /sbin/mingetty tty4
     2104 tty5     S      0:00 /sbin/mingetty tty5
     2105 tty6     S      0:00 /sbin/mingetty tty6
     9788 ?        S      0:00 /bin/bash /usr/local/sbin/open_sesame listen
    32607 ?        S      0:00  \_ cat /var/run/whm_fifo
    32608 ?        S      0:00  \_ /bin/bash /usr/local/sbin/open_sesame listen
    31647 ?        S      2:04 chkservd
    10573 ?        S      1:11 proftpd: (accepting connections)
    11336 ?        S      0:00  \_ proftpd: connected: localhost (127.0.0.1:44697)
    11345 ?        S      0:00  \_ proftpd: connected: localhost (127.0.0.1:44709)
    16479 ?        SN    12:09 cpanellogd - sleeping for logs
    16485 ?        S      2:00 cppop - accepting on port 110
    22289 ?        S      4:30 syslogd -m 0
    22293 ?        S      0:21 klogd -x
    16743 ?        S      0:42 chkservd
    16850 ?        SN     3:54 cpanellogd - sleeping for logs
    23534 ?        S      0:42 chkservd
    23642 ?        SN     4:46 cpanellogd - sleeping for logs
    24337 ?        S      0:40 chkservd
    24432 ?        SN     4:32 cpanellogd - sleeping for logs
    24439 ?        S     14:16 /usr/sbin/named -u named
    30643 ?        S      0:00 /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl start
    30645 ?        S      2:50  \_ /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
    30646 ?        S      3:03  \_ /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
    30647 ?        S      2:54  \_ /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
    30648 ?        S      2:52  \_ /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
    30649 ?        S      2:50  \_ /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
    30650 ?        S      3:00  \_ /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
    30651 ?        S      2:53  \_ /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
    30652 ?        S      0:04  \_ /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=RetryRunner:0:1 -s
    12331 ?        S      0:05 /usr/sbin/sshd
    17787 ?        S      0:00  \_ /usr/sbin/sshd
    17792 ?        S      0:00      \_ /usr/sbin/sshd
    17793 pts/1    S      0:00          \_ -bash
    17913 pts/1    S      0:00              \_ su -
    17914 pts/1    S      0:00                  \_ -bash
    11459 pts/1    R      0:00                      \_ ps fax
    16928 ?        S      0:10 cupsd
    30970 ?        S      0:02 xinetd -stayalive -pidfile /var/run/xinetd.pid
     9944 ?        S      0:00  \_ imapd
    21447 ?        S      0:03 /usr/bin/perl /usr/local/cpanel/bin/eximstats
    27528 ?        S      0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/bess.shev.com.pid
    27548 ?        S     11:37  \_ /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/bes
     9550 ?        S      0:00 /usr/bin/stunnel-4.04local /usr/local/cpanel/etc/stunnel/default/stunnel.conf
     9566 ?        S      0:01 cpsrvd - waiting for connections
     8416 ?        S      0:00 postsuexecinstall - searching for suexec problems (474 min remain)
     8453 ?        S      0:20 /usr/local/apache/bin/httpd -DSSL
     2627 ?        S      0:04  \_ /usr/local/apache/bin/httpd -DSSL
     2628 ?        S      0:06  \_ /usr/local/apache/bin/httpd -DSSL
     2629 ?        S      0:05  \_ /usr/local/apache/bin/httpd -DSSL
     2630 ?        S      0:06  \_ /usr/local/apache/bin/httpd -DSSL
     2631 ?        S      0:06  \_ /usr/local/apache/bin/httpd -DSSL
     2632 ?        S      0:06  \_ /usr/local/apache/bin/httpd -DSSL
     2633 ?        S      0:06  \_ /usr/local/apache/bin/httpd -DSSL
     2634 ?        S      0:06  \_ /usr/local/apache/bin/httpd -DSSL
     2635 ?        S      0:04  \_ /usr/local/apache/bin/httpd -DSSL
     2636 ?        S      0:04  \_ /usr/local/apache/bin/httpd -DSSL
     2637 ?        S      0:05  \_ /usr/local/apache/bin/httpd -DSSL
     2638 ?        S      0:05  \_ /usr/local/apache/bin/httpd -DSSL
     7870 ?        S      0:04  \_ /usr/local/apache/bin/httpd -DSSL
     9464 ?        S      0:01  \_ /usr/local/apache/bin/httpd -DSSL
    10515 ?        S      0:03  \_ /usr/local/apache/bin/httpd -DSSL
    10516 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    10517 ?        S      0:01  \_ /usr/local/apache/bin/httpd -DSSL
    10519 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11012 ?        S      0:01  \_ /usr/local/apache/bin/httpd -DSSL
    11013 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11014 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11015 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11016 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11018 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11019 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11020 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11044 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11045 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11046 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11073 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11253 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11265 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11292 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11294 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11296 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11353 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11354 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11356 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11396 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11398 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11399 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11438 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    11447 ?        S      0:00  \_ /usr/local/apache/bin/httpd -DSSL
    30902 ?        S      0:00 /usr/sbin/clamd
    30908 ?        S      0:00 /usr/sbin/exim -bd -q60m
    30916 ?        S      0:00 /usr/sbin/exim -tls-on-connect -bd -oX 465
    30923 ?        S      0:04 antirelayd
    30928 ?        S      0:00 /usr/bin/spamd -d
    
    

    Do I need to start killing some processes?

    any particular one of those triplets?

    -Alon.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Aha! That's better ;)

    All seems fine to me except those chkservd and cpanellogd processes.

    It would be better to kill them all off and start again with something like:

    /etc/init.d/chkservd stop
    killall -9 chkservd # I think that's a Linux thing, so be careful with that command on BDS
    /etc/init.d/chkservd start

    For the cpanellogd, you should probably either kill each one individually or, on Linux, do:
    killall -9 cpanellogd

    To restart the log processing:
    /scripts/runstatsonce
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    WRT kjournald, I believe that you have one running per mounted file system. So having more than one running is perfectly normal.
     
  6. SupermanInNY

    SupermanInNY Well-Known Member

    Joined:
    Jul 19, 2003
    Messages:
    255
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    thanks for the help on this.
    I ran the scripts as you said and indeed the redundent

    cpanellogd - sleeping for logs
    chkservd


    have been eliminated.
    However, when I ran the

    /scripts/runstatsonce


    This particular process seems to hang on a domain.
    Mind you,. this particular domain is of zero size as I've only set it few days ago and it has not even been accessed by the user.

    Code:
    24470 pts/3    SN     0:00 cpanellogd - setting up logs for mayalev
    24527 pts/3    SN     0:00  \_ cpanellogd - http logs for mayalev
    24528 ?        SN     0:00      \_ cpanellogd - http logs for mayalev
    24529 ?        SN     0:00          \_ /usr/local/cpanel/bin/logrunner 2.0 /usr/local/cpanel/3rdparty/bin/english/webalizer -
    24530 ?        TN     0:00              \_ /usr/local/cpanel/3rdparty/bin/english/webalizer -N 10 -D /home/mayalev/tmp/webali
    
    
    I've killed that process and ran it again... it got stuck on a different user. By hang I mean over 2 hours of showing the same output in the ps fax.

    -Alon.
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Unless someone else has any ideas, you might have to log it with cPanel and ask them to have a look for you.
     
  8. SupermanInNY

    SupermanInNY Well-Known Member

    Joined:
    Jul 19, 2003
    Messages:
    255
    Likes Received:
    0
    Trophy Points:
    16
    I belive this was a load issue.

    I was running a heavy load on the system - loading up a mysql database via command line.
    It was a pretty heavy database - 560MB in size, of which it had one big table of 460MB.
    As soon as I killed that load run,.. the logs started running and the hanging disappeared on its own.

    My loads were running at 5.41 4.56 4.03 and as soon as I dropped below the 3.00 the logs started kicking/running/changing to the different domains.

    Thanks for your help (and it was a nice lesson to learn about the load and its causes for hanging).

    -Alon.
     
  9. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Glad you got it sorted out :)
     
Loading...

Share This Page