LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-22-2004, 10:09 AM   #1
burnham
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Rep: Reputation: 0
Unhappy Apache server keeps going down


Hello,


I am running apache in linux, and about twice a day my apache server goes down. I have a site with php and mysql where people log onto a web page and reply to messages.
When the server goes down they can not load the page.

At the moment I am going through my apache logs (error_log and access_log) but there is no error reported in the error_log and the data in the access_log looks normal (all the GETS and POSTS with HTTP 200, or a few 304's).

How do you find out what file or process is causing this behaviour? Are there any other logs I can be looking into to see what stops the server?

Thank you in advance

Jay
 
Old 07-22-2004, 10:32 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Which Linux distro and Apache version? A bad page request should never crash the server assuming you're keeping it up to date and bug free. Are there any patterns as to when it occurs? Problems like this can be difficult to diagnose, so you're best bet is to look for patterns of behavior. Has anything else been flaky on the machine?
 
Old 07-22-2004, 11:05 AM   #3
burnham
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Original Poster
Rep: Reputation: 0
No patterns I can see.
Its kept down to mainly one file being called, but by a few users. This page has quite a lot of processing to do with the database.
I only ever had this problem once in a while, but now the traffic has increased dramatically its happening much more.
I found this http://www.webhostgear.com/49_print.html on High Traffic Servers which is quite interesting and is a possibility.
I will try these techniques and see if it improves.


Thank you

jay
 
Old 07-22-2004, 11:32 AM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Does the httpd process actually die or just quit responding? It could be something as simple as a resources issue. Try looking at netstat output to find suspicious processes, then start debugging from there.
 
Old 07-22-2004, 12:11 PM   #5
ozar
Member
 
Registered: May 2004
Location: USA
Distribution: Arch Linux
Posts: 415

Rep: Reputation: 85
The same thing was happening with Apache on my box about a year ago. Couldn't figure it out for a while, but after adding additional RAM, no more shutdown.

Just another idea to throw your way. Let us know!
 
Old 07-22-2004, 12:27 PM   #6
burnham
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Original Poster
Rep: Reputation: 0
How do i tell if the processes die or quit responding? I have looked in the access_log and when the server goes down there are no more access's written to the file until I restart apache.
Is a GET or a POST a httpd process?

I have tried running netstat from the root in my ssh but it says the cmd is not found. Do I have to run this from a certain directory?

Thank you

Jay
 
Old 07-22-2004, 02:14 PM   #7
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Try looking at the output of ps then. See if the process is still running. No, netstat does not need to be run from a certain directory. You might try using find to locate it if it's not in the usual spots like /bin. You could also try adjusting the Apache LogLevel to see if that gives you any more clues.
 
  


Reply



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
setting up a slack, apache server with php and a sql server. caged Slackware 1 10-25-2004 04:45 AM
problems setting up apache and vsftp server behind a router that serves as a server xone Linux - Security 1 04-08-2004 10:46 AM
Setup linux-apache server to access documents on NT server josephswagner Linux - Software 11 04-11-2003 08:35 AM
Apache Server Config, Mail Server, & Uploading johan the olive Linux - Networking 5 03-14-2003 11:42 PM
Apache server and MySQL server won't run at startup! dday007 Linux - General 2 02-07-2003 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:49 AM.

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