LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   CPU/RAM Problem (http://www.linuxquestions.org/questions/linux-general-1/cpu-ram-problem-15815/)

sakkie 03-08-2002 03:57 AM

CPU/RAM Problem
 
I am having a machine that with no clear reason just freezes and i have to do restart before getting everything going again. Is there a way to log the cpu and RAM usage to enable me to check which processes used the most cpu and ram at the point before the machine freezes. I think one of my programs just start using all the cpu available. Do you know about a problem in Mysql using up all cpu available?

Isak

jharris 03-08-2002 05:07 AM

If you haven't changed anything and this just suddenly started then I'd be looking at hardware not software. Even with a fullyloaded system you shouldn't get freezes for no reason. Nothing is listed in /var/log/messages?

If you do what to try to find out whats going on with your processes you can always run something like
Code:

ps aux >> /tmp/someFile
every minute from roots crontab, but this still may not show you the problem as it will use resources itself.

HTH

Jamie...

finegan 03-10-2002 12:51 PM

'top' of course gives you a running view of every processes RAM and processor usage. If the freezes happen with enough warning, you may also want a terminal running with:

tail -f /var/log/messages

Honestly if its a sudden hard freeze, that's typically a hardware issue: dead fans, bad memory, etc.

Cheers,

Finegan

crashmeister 03-10-2002 02:23 PM

I had a problem that sounds something like that. In my case the
browser just ate up the whole RAM and swap until everything
- well not really crashed - but it took about 3 minutes just to get
a shell up to kill the browser.
If you running KDE or Gnome try to run a systemmonitor in the
taskbar that shows what is going on with your memory.

Stephanie 03-11-2002 11:46 AM

I had problems with that also.

In my case, it was a bad memory card. It would work on boot testing, but once Linux started trying to use it, BAM! Freeze.


All times are GMT -5. The time now is 03:19 PM.