Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-15-2015, 01:07 AM   #1
Registered: Mar 2015
Posts: 79

Rep: Reputation: Disabled
How to list processes that were run that might have temporarily crashed my machine?

Hi. I am running Ubuntu 12.04.5 LAMP webserver. Today, my users complained that they could not access the website for a few minutes. I am trying to study the log files on what the machine was engaged in.

1. Which log files would I look at?

2.Is there a command that lists all processes that transpired today, sort of like ps aux?
Old 05-15-2015, 09:20 AM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
1. try the apache logs: traditionally /var/log/httpd/... (to start with)
2. not unless you switched on psacct eg
(basically excessive logging can kill your performance and disk space, so use it sparingly)

I strongly advise just looking at all the files/dirs under /var/log and getting to know them well; see also the logwatch tool
Old 05-15-2015, 09:43 AM   #3
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
On the system side, you could start with /var/log/messages (it's big but it is time-stamped so it's easy to see what may have happened around the time people were complaining about).

/var/log/secure is worth a look, so is /var/log/syslog (they are also time-stamped).

If you're running big data bases, you might want to look at /var/log/postgresql-9.3 (or whatever version you're using). If you're using MariaDB/MySQL, look for a file named systerm_name.err, where "system_name" is the name of your system. If you don't know its name,
uname -n
will show you that.

MariaDB/MySQL is installed in /var/lib/mysql, you're may (and probably will) vary, so look for that ".err" file.

Keep in mind that if you're doing big updates or inserts in a data base they can take time and a web page may sit there for a few or many seconds while that's taking place.

Then go look at the logs in /var/log/httpd (that may be different on your system). The file names are access_log and error_log. Look for them if they're not in /var/log/httpd.

When I say "look for them," that means use the find utility or the locate utility.

When I say "look at them," that means look at them in an editor; e.g., vi.

Hope this helps some.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need software to monitor and check for crashed processes jmc1987 Linux - Software 4 04-13-2013 11:10 AM
[SOLVED] Partial list with ls-l in bash script run in cron but full list run from command line redgshost Linux - General 29 01-16-2011 01:14 PM
adding proc list and task list of active processes. pravin.embedded Linux - Newbie 1 09-02-2008 02:20 PM
WEP crashed machine piercy007 Linux - Wireless Networking 1 11-25-2007 10:39 AM
A lot of processes run automatically when I run a single process. dalvirgautam Linux - Enterprise 4 12-01-2006 07:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration