Solved

Problem with ubuntu

Posted on 2013-01-22
12
373 Views
Last Modified: 2013-02-06
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
Comment
Question by:jonathanduane2010
  • 6
  • 4
  • 2
12 Comments
 
LVL 3

Expert Comment

by:BlackAdderDK
ID: 38805248
Hi

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

regards
'Adder
0
 
LVL 31

Expert Comment

by:farzanj
ID: 38805273
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
 

Author Comment

by:jonathanduane2010
ID: 38805440
i am at the physical server now... and at the console how can i check the processes?
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 500 total points
ID: 38805477
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
 
LVL 3

Expert Comment

by:BlackAdderDK
ID: 38805478
top
0
 
LVL 3

Expert Comment

by:BlackAdderDK
ID: 38805485
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
 

Author Comment

by:jonathanduane2010
ID: 38805516
when  i issue the top command it still hangs...
0
 
LVL 3

Expert Comment

by:BlackAdderDK
ID: 38805538
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
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 500 total points
ID: 38805543
Do Ctrl + c

This should hopefully bring you out of it.

do:
 ps -ef

Better grep on something that you suspect
0
 
LVL 31

Expert Comment

by:farzanj
ID: 38805555
This may give you top 20 CPU hungry processes
ps aux | sort +2n | tail -20
0
 
LVL 31

Expert Comment

by:farzanj
ID: 38805574
If above doesn't work, try this:
ps -eo pid,comm,%cpu

This should show you CPU percent of each process
0
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 38805587
This gives you top 10 CPU intensive
ps -eo pid,comm,%cpu | sort -rk 3 | head
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Weird Samba Connectivity Issue... 7 40
AWS - HAProxy- KeepAlived 5 43
Can't ping New Linux Servers 40 69
Using Linux to replace Windows Server 2008 R2 for network drives 5 82
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question