How often does the letter o occur in:
Q: top does not run Sorry that I cant be very specific, only symtoms are provided:


*

*Monday morning

*a CentOS box, 1GB ram, Pentium 4

*web server (thin, rails) does not response (too slow) to a browser of another PC

*ping it, ok

*ssh into it, ok

*a few minutes later, the web server is back to normal speed, serving web requests well

*ping it, ok

*ssh into it, ok

*however, top does not run 


what should I look at, about this top does not run symptom? thx

A: You might try to strace top and take a look at its output:
strace -f -o strace.out top
You might as well take a look at the shared libraries dependencies with ldd. Maybe libncurses is missing.
Hope this helps.

A: Sounds like the serve could be swapping furiously would be one thought.  Also, do you have sufficient swap space reserved?
You can cat /proc/meminfo and find these things out.

A: when you try to run run top; whats the msg it spit out? please copy and paste that msg here..so we can look into it and provide you the result.

A: did you try if ps works? for example
ps axOpcpu k-pcpu  | head


A: Which top?  That is, run which top to make sure youve got what you expect in your path.

user
There are eighty-nine "o"s.
assistant