homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Webmaster Hardware
Forum Library, Charter, Moderator: open

Webmaster Hardware Forum

Server Messages
Where are 'var/log/messages'

 7:36 pm on Nov 1, 2004 (gmt 0)


I have a server that's stopped on me twice in the last three days. I have been told to check the 'var/log/messages' for clues but having never checked them before I can't work out where i'm supposed to be looking for them.

Server has WHM/Cpanel, any help would be great.



 8:08 pm on Nov 1, 2004 (gmt 0)

Log in as the root user using telnet or (preferbly) SSH.

Then type:
more /var/log/messages

That will let you see the contents of the file one page at a time!



 8:10 pm on Nov 1, 2004 (gmt 0)

Or handy if they're big files:

tail /var/log/messages

You can also view the last n lines with:

tail -n /var/log/messages


 9:06 pm on Nov 1, 2004 (gmt 0)

Thanks Guys, unfortunately there is nothing pointing to why it is shutting down.


 9:08 pm on Nov 1, 2004 (gmt 0)

Pan, there should be other logfiles in /var/log...

If you can post snippets of the logs leading up to the shutdown, we may be able to help you.


 9:42 pm on Nov 4, 2004 (gmt 0)

Sorry about taking time to respond.

Having discovered 0% more actually meant there was more and a lot more. I was unable to copy anything so have taken a series of snapshots as I scrolled (with my staple gun wedging down the return key) for an hour through the logs.

The last image, 39 was taken after re-boot all the others at different stages before reboot.


Thanks for any help.


 9:50 pm on Nov 4, 2004 (gmt 0)

In Image20.jpg, you can see that the swap file is full, then httpd gets killed.

Increase the swap / find out what is using/leaking memory.


 9:58 pm on Nov 4, 2004 (gmt 0)

Thanks for the fast responce.

Sorry but I have had to up three servers before i'd even had time to learn how the first one works.

>>>Increase the swap
How do I do that?


 10:02 pm on Nov 4, 2004 (gmt 0)

Are you the server admin? - since you mentioned WHM/Cpanel, I'm guessing the answer is no.


 10:06 pm on Nov 4, 2004 (gmt 0)

They are my servers, there is no one else on them.

Puzzles me why this one the last one I set up is causing problems when it was set up the same way as the others.


 10:09 pm on Nov 4, 2004 (gmt 0)

Is this particular one running something more heavy-duty web wise than the others? Have you also looked at the Apache error log?


 10:28 pm on Nov 4, 2004 (gmt 0)

I'm basically using it as a file store.

There are at max 92mb of files i'm pulling off for use on another site, nothing technical.

I'm probably only pulling 40mb of them off at that, around 20gig a day total.

There is 1024mb of ram and a 100mbps uplink so it shouldn't struggle.

>>>Apache error log?
As I say i'm not up to speed, if WHM has no button for it I haven't been there. I have 'Apache Status' but not seen the error log. I thought that was what the images were from. :)

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Webmaster Hardware
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved