Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2003
    Posts
    84

    Question Top shows 2 Users : How to find out who?

    I use this machine by myself for one domain. I used to remember "top" shows only 1 user in the Users part. Now, it shows 2 users. How would I find out who are they?

    I'm curious because now my site is so slow and the number of processes drop to 100s to 200s

    Here is my top:

    18:26:36 up 19:59, 2 users, load average: 2.57, 2.45, 2.25
    128 processes: 123 sleeping, 3 running, 1 zombie, 1 stopped
    CPU states: 35.0% user 12.8% system 0.0% nice 0.0% iowait 52.0% idle
    Mem: 1032320k av, 946024k used, 86296k free, 0k shrd, 53080k buff
    155796k active, 663324k inactive
    Swap: 2104504k av, 2396k used, 2102108k free 524036k cached

    PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
    14663 root 0 0 4688 4516 4352 S 99.9 0.4 2:17 0 httpd
    24653 mysql 9 0 29852 29M 1380 S 21.5 2.8 16:49 0 mysqld
    13257 root 14 0 1156 1156 868 R 1.1 0.1 0:10 0 top
    30100 nobody 17 0 0 0 0 Z 0.9 0.0 0:00 0 httpd <defunct>
    1 root 8 0 472 472 424 S 0.0 0.0 0:06 0 init
    2 root 8 0 0 0 0 SW 0.0 0.0 0:00 0 keventd
    3 root 9 0 0 0 0 SW 0.0 0.0 0:02 0 kapmd
    4 root 19 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd_CPU0
    5 root 9 0 0 0 0 SW 0.0 0.0 0:02 0 kswapd
    6 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
    7 root 9 0 0 0 0 SW 0.0 0.0 0:01 0 kupdated
    8 root 18446744073709551615 -20 0 0 0 SW< 0.0 0.0 0:00 0 mdrecove
    61 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
    282 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
    283 root 9 0 0 0 0 SW 0.0 0.0 0:02 0 kjournald
    284 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
    285 root 9 0 0 0 0 SW 0.0 0.0 0:01 0 kjournald
    286 root 9 0 0 0 0 SW 0.0 0.0 0:08 0 kjournald
    758 root 9 0 556 556 476 S 0.0 0.0 0:01 0 syslogd
    762 root 9 0 432 432 380 S 0.0 0.0 0:00 0 klogd
    839 nobody 9 0 2052 2052 1868 S 0.0 0.1 0:00 0 proftpd
    847 root 9 0 1204 1204 984 S 0.0 0.1 0:00 0 bash
    850 root 9 0 1444 1444 1308 S 0.0 0.1 0:04 0 sshd
    864 root 9 0 840 840 692 S 0.0 0.0 0:00 0 xinetd
    884 root 9 0 2728 2728 1464 S 0.0 0.2 0:01 0 chkservd
    920 root 8 0 584 584 516 S 0.0 0.0 0:00 0 crond
    1193 root 19 19 18220 17M 17748 S N 0.0 1.7 0:27 0 cpanellogd
    1194 root 9 0 4508 4508 2484 S 0.0 0.4 0:00 0 cpaneld
    1201 root 9 0 3184 3184 1960 S 0.0 0.3 0:00 0 webmaild
    1528 root 9 0 4164 4164 2412 S 0.0 0.4 0:00 0 cppop
    1789 named 9 0 11052 10M 2088 S 0.0 1.0 0:38 0 named
    1880 cpanel 9 0 1936 1936 1512 S 0.0 0.1 0:00 0 stunnel-4.04loc
    1940 root 9 0 3656 3656 2184 S 0.0 0.3 0:00 0 whostmgrd
    2048 root 9 0 648 648 560 S 0.0 0.0 0:00 0 portsentry
    2064 root 9 0 380 380 332 S 0.0 0.0 0:00 0 mingetty
    2065 root 9 0 380 380 332 S 0.0 0.0 0:00 0 mingetty

  2. #2
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    8,910
    You could run: who , to see who is logged in.

  3. #3
    Join Date
    Mar 2003
    Posts
    84
    Why am I listed twice?

    root pts/0 Mar 2 16:11 (c-24-18-149-xxx.client.comcast.net)
    root pts/1 Mar 2 18:03 (c-24-18-149-xxx.client.comcast.net)

  4. #4
    Join Date
    Oct 2003
    Location
    Georgetown, Ontario
    Posts
    1,761
    maybe you have 2 terminals open?

    Type "w" to see more information.
    ии Repeat after me... ProSupport is the best... Prosupport is... ии
    ProSupport Host Support System - OUT NOW! Grab a copy yourself and see what the hype is about!
    VertiHost Inc. - We run a quality business. Do you?

  5. #5
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    8,910
    Originally posted by xp101
    Why am I listed twice?

    root pts/0 Mar 2 16:11 (c-24-18-149-xxx.client.comcast.net)
    root pts/1 Mar 2 18:03 (c-24-18-149-xxx.client.comcast.net)
    Could be a few reasons.

    You could try killing the old login, just do a ps aux and find the process that started at 16:11 and then kill the pid.

    Example:

    pat 414 0.0 0.7 4944 1924 ?? S 7:39PM 0:00.15 sshd: [email protected] (sshd)

    414 would be the pid for my login, and I would just do a: kill 414 , make sure you kill the right pid though.

  6. #6
    Join Date
    Mar 2003
    Posts
    84
    Thank you. I killed it and now back to 1 user.

    One more question.

    133 processes: 127 sleeping, 3 running, 2 zombie, 1 stopped

    Which control the number of processes in "top"? I experiencing that when the processes bigger (in 300s), my site response fast; and when it get lower ( in 100s), my site is extreamly slow. And this number get very low (in 100s) in peak traffic.

    What may be the cause and how to control it?

    Thank you.

Posting Permissions

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