Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

Problem with ubuntu

Hi,

I am having an issue with my ubuntu server, is seems its stuck running a cron job, and because of it my whole kernel seems to be hanging. i cant get into the internal web site or i cant even terminal into it, any suggestions?without having to reboot?
0
jonathanduane2010
Asked:
jonathanduane2010
  • 6
  • 4
  • 2
3 Solutions
 
BlackAdderDKCommented:
Hi

You can't access the GUI and the "Physical" terminal? - can you ssh to the server?

regards
'Adder
0
 
farzanjCommented:
You have to get the console some how.  If you are at a remote location, you need to know one of the remote console technologies if working in your company, like iLow (Typically in HP servers) or KVM  or any other technology.  If you can physically access the system, you should able to get the console, see the processes running, and kill -9 the troublesome processes.
0
 
jonathanduane2010Author Commented:
i am at the physical server now... and at the console how can i check the processes?
0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
farzanjCommented:
Issue command
top
Then
n 10 (inside top gives you top ten busy processes)

You can also do
ps -ef

This is show you are lot of processes and you need to grep on something
0
 
BlackAdderDKCommented:
top
0
 
BlackAdderDKCommented:
There you should be able to see the process eating up your resources... you kan kill it via its pid you see in top
0
 
jonathanduane2010Author Commented:
when  i issue the top command it still hangs...
0
 
BlackAdderDKCommented:
Do you know the command the cron-job has executed? if so you could execute pgrep <command> and get the pid... and then kill it... else I'm beginning to think you are fresh out of luck.

remember you have 6 text consoles - <CTRL><ALT><F1-6>
0
 
farzanjCommented:
Do Ctrl + c

This should hopefully bring you out of it.

do:
 ps -ef

Better grep on something that you suspect
0
 
farzanjCommented:
This may give you top 20 CPU hungry processes
ps aux | sort +2n | tail -20
0
 
farzanjCommented:
If above doesn't work, try this:
ps -eo pid,comm,%cpu

This should show you CPU percent of each process
0
 
farzanjCommented:
This gives you top 10 CPU intensive
ps -eo pid,comm,%cpu | sort -rk 3 | head
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

  • 6
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now