ps command taking a lot of time

ps command taking a lot of time

Post by Karen Abgaria » Fri, 30 Aug 2002 08:22:45



Did anybody ever see "ps" command to run for several seconds or even
minutes?

I have this on one of my systems.

Apparently it is related to a bunch of processes created at the time
when this is happening.

Could it be a configuration issue?

Thanks in advance,
Karen Abgarian.

 
 
 

ps command taking a lot of time

Post by Maarten Kreug » Sat, 31 Aug 2002 03:59:01




Quote:>Did anybody ever see "ps" command to run for several seconds or even
>minutes?

>Apparently it is related to a bunch of processes created at the time
>when this is happening.

I have never seen it happen. A cause for this could be a very large
number of processes, like more then say 10.000, or the userid
conversion to names is slow. Are you using NIS? Or maybe have a lot of
users defined on the system?

Try the following commands:

ps naux              # The n flag prevents uid --> username conversion
mkpasswd -f   # This creates a new hash of the /etc/passwd file

Maarten Kreuger

 
 
 

ps command taking a lot of time

Post by Norman Levi » Sat, 31 Aug 2002 13:47:56



| Did anybody ever see "ps" command to run for several seconds or even
| minutes?
|
| I have this on one of my systems.
|
| Apparently it is related to a bunch of processes created at the time
| when this is happening.
|
| Could it be a configuration issue?
|
| Thanks in advance,
| Karen Abgarian.
|
You could be compromised.  A typical 'root kit' will replace the ps command so as
to NOT show processes that are part of your exploitation.
norm

 
 
 

ps command taking a lot of time

Post by Dan Fost » Sun, 01 Sep 2002 03:03:11






>| Did anybody ever see "ps" command to run for several seconds or even
>| minutes?
>|
>| I have this on one of my systems.
>|
>| Apparently it is related to a bunch of processes created at the time
>| when this is happening.
>|
>| Could it be a configuration issue?
>|
>| Thanks in advance,
>| Karen Abgarian.
>|
>You could be compromised.  A typical 'root kit' will replace the ps
>command so as
>to NOT show processes that are part of your exploitation.

Alternatively, it could be DCE/LDAP/NIS access being broken, causing
a delay in every single getpw* lookup -- which a ps generate a lot of.

-Dan

 
 
 

ps command taking a lot of time

Post by Crepald » Sun, 01 Sep 2002 04:50:02


Karen,

the ps commando in many situations be slow because NFS that no answer.
The system wait for a answer before continue the command.

hugs
Crepaldi
System Administrator

--
Posted via http://dbforums.com

 
 
 

ps command taking a lot of time

Post by Peter Puc » Wed, 04 Sep 2002 07:35:44


Your system could be heavily loaded ie. CPU = 100%.. That would cause all
commands to take longer..


Quote:> Did anybody ever see "ps" command to run for several seconds or even
> minutes?

> I have this on one of my systems.

> Apparently it is related to a bunch of processes created at the time
> when this is happening.

> Could it be a configuration issue?

> Thanks in advance,
> Karen Abgarian.