Page 1 of 2

App to show and monitor load

Posted: Sun Oct 02, 2011 8:24 pm
by jonathankonrad
Is there an app to show or monitor the load on my server? I'm starting to load this up with a lot of background stuff, like a minecraft server, squid proxy server, DNLA server, Amahitunes, etc. Any thoughts to watch this box?

Jon

Re: App to show and monitor load

Posted: Mon Oct 03, 2011 4:45 am
by bigfoot65
There are a few you can try. phpSysInfo and Linfo should do it.

http://www.amahi.org/apps/phpsysinfo

http://www.amahi.org/apps/linfo

Re: App to show and monitor load

Posted: Wed Oct 05, 2011 7:07 pm
by jonathankonrad
Those apps a great to have, but not the type I'm looking for. I purchased the VNC solution (for some reason I could not get my own install to work ) and just used the system monitor included with Fedora. Now I'm wondering if the monitor works, or if I have set something incorrectly on my server. The two cores show 100% use all the time.

Any thoughts on how to check if this monitor is correct, and if it is, any thoughts on what would be eating up the CPU cycles?

At the time of the shot, no file transfers where occurring, now streaming of media, and no greyhole activity (I waited till that was all finished). The only thing that should have been working was DNS as my family was online at the time.

http://dl.dropbox.com/u/1471889/photos/IMG_1353.PNG

Re: App to show and monitor load

Posted: Wed Oct 05, 2011 7:13 pm
by radioz
Open up a terminal on your hda and type: top
That should show what process(es) are using the cpu.

A better tool is htop. It is a small terminal application like top that uses color and is a little easier to use (and it has more features).
Install it with:
yum install htop

then type: htop

Re: App to show and monitor load

Posted: Wed Oct 05, 2011 8:30 pm
by jonathankonrad
Awesome. So now I would like to know what "/usr/libexec/pk-command-not-found lsb_release" is. See the attached screen shot.

Thanks again for this great tool.

http://dl.dropbox.com/u/1471889/photos/hda-cpu-use.png

Re: App to show and monitor load

Posted: Wed Oct 05, 2011 10:17 pm
by radioz
Wow, that is interesting. I did a little Googling and found this thread: http://forums.fedoraforum.org/showthread.php?t=239865

It turns out to be a harmless 'feature' that try's to find a new package to intstall when you type a command it doesn't recognize!

You should be able to kill all of those processes by opening a terminal and typing:

sudo killall pk-command-not-found

Re: App to show and monitor load

Posted: Thu Oct 06, 2011 6:16 pm
by jonathankonrad
The kill worked. Do you think I should go as far as this guy did in that forum reference;

"Simple solution: rpm -e PackageKit-command-not-found and then log out and in (so bash forgets it too). Things start behaving themselves then, letting me make mistakes, and not trying to be too helpful."


Or should I just manually monitor and kill as needed? Any easy way to have the server email or notify me if it's at max for a certain period of time?

Re: App to show and monitor load

Posted: Thu Oct 06, 2011 10:42 pm
by radioz
I'm not sure.

Do you recall what you did that might have triggered those processes?

I thought the problem was caused when you type a command in the terminal but the software package for it is not installed. The pk-command-not-found is supposed to ask you if you want it installed. It sounded like a bug.

I couldn't reproduce it on my system, so I don't know where those processes came from.

Re: App to show and monitor load

Posted: Thu Oct 06, 2011 10:49 pm
by jonathankonrad
I'm not at all sure what I typed to create this error. I guess I'll wait and see on un-installing then. I tried to mistype a command on purpose and this time the pk-command-not-found kicked back right away and said it could not find anything in the time specified.

My server is much snappier now, I'll be sure to keep an eye on htop every now and then in the future. Thanks.

Re: App to show and monitor load

Posted: Sat Oct 15, 2011 2:21 pm
by jonathankonrad
In case anyone is reading this and has a similar problem, I now need to run htop every couple of days and kill the "/usr/libexec/pk-command-not-found lsb_release" processes that build up there and take over my HDA (usually four of them with 25% CPU each).

If I cannot find was is causing it I will try the removal mentioned in the fedora forum. Frustrating that my HDA grinds to a halt on this.