homepage Welcome to WebmasterWorld Guest from 54.204.94.228
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
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'
PanUK




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

Hi,

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.

 

jpjones




msg:1568861
 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!

HTH,
JP

dmorison




msg:1568862
 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

PanUK




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

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

bakedjake




msg:1568864
 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.

PanUK




msg:1568865
 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.

h**p://fetch4.com/server-var-log/

Thanks for any help.

bcolflesh




msg:1568866
 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.

PanUK




msg:1568867
 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?

bcolflesh




msg:1568868
 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.

PanUK




msg:1568869
 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.

bcolflesh




msg:1568870
 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?

PanUK




msg:1568871
 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