Solved

Problem with ubuntu

Posted on 2013-01-22
12
372 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
 
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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux "time" command output redirection 16 121
My bash alias isn't executing 5 49
Sendmail STARTTLS error 37 84
How code a 301 redirect for folder files -> 1 file 2 22
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now