M
melissa2015
Guest
How can I determine why my computer crashed? I got kicked out of my ssh session and I can't log back in. I did a hard reboot and got back in, but how do I see the cause? Any ideas?
Welcome, good sir--- Er, madam..... :3 Sorry, I tend to call people "good sir" and stuff..... :3 But when does this happen.....? Sometimes, my old Inspiron 1420 just CRASHES, like "'I'm shutting down now kthxbai".....Thanks Darren!
Hmm..... :/ I'm not sure what Cron Jobs are, but I'd follow what ryanvade said.......I'm running Ubuntu 14.04 LTS. It's an Amazon EC2 instance so there is no desktop. I'm logging in remotely through ssh. The box has a bunch of cron jobs that run throughout the day. Perhaps one of them is crashing the box or at least making it unresponsive enough that I can't log in? It doesn't happen all the time but seems to happen occasionally. Is there any way to see how much CPU and memory the box has left when I'm not logged in? Even better if I can monitor usage per process so I can see which job might be eating up any resources. I know I can do free and top, but these don't work unless I'm logged into the terminal. It'd be better to have a log of these stats I can look at after I reboot the box. Do you have a favorite tool you use for this?
Have you run updates on the system? I ran into a problem with a Debian Testing system a few months ago, and had problems with ssh, until an update cleared up whatever the problem was. Just a suggestion.I'm running Ubuntu 14.04 LTS. It's an Amazon EC2 instance so there is no desktop. I'm logging in remotely through ssh. The box has a bunch of cron jobs that run throughout the day. Perhaps one of them is crashing the box or at least making it unresponsive enough that I can't log in? It doesn't happen all the time but seems to happen occasionally. Is there any way to see how much CPU and memory the box has left when I'm not logged in? Even better if I can monitor usage per process so I can see which job might be eating up any resources. I know I can do free and top, but these don't work unless I'm logged into the terminal. It'd be better to have a log of these stats I can look at after I reboot the box. Do you have a favorite tool you use for this?
Ok!..... :3 Let us know how it went!....... ^^ I know that's why my old Inspiron crashes, because Minecraft and/or KDE REALLY makes it run hot.....Cool thanks everyone! I found a cool utility called sysstats that can track this stuff. I set it up to track CPU and memory every 2 minutes. It's not super easy to setup because you have to install it and then enable it separately. I'm going to let it run in the background and when it happens again I'm going to see what happened to the CPU and memory.
Maybe this site should help....I've been monitoring sysstats and I found out that a few minutes after the cron runs the %memused goes up to 99%. I also checked my system logs as ryanvade suggested and found some out of memory errors from the kernel. Apparently it started killing processes. As I suspected, it's probably the cron that's doing this.
Now I have to go back and debug my script and figure out why it's using so much memory. I think I'm going to add some extra debug logging so I can see what it's doing. Thanks for your help everyone!
Well, if your PC can handle the extra heat, you COULD try Optifine.....Haha so glad I don't run KDEHeadless FTW! Although you're right no Minecraft for me
![]()