Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
'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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.