9, July 2008

Please help me keep this server alive - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: Please help me keep this server alive
« previous next »
Pages: [1] Print

Author Topic: Please help me keep this server alive  (Read 1343 times)
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7943
40607 credits
Members referred : 3



« on: Feb 11, 2006, 12:18:38 PM »

I have a very strange problem.

The server crashes by Apache(as you've allready noticed).
Even ssh is unreachable when those crashes are done.

Here is the configuration :

Debian stable
Apache/2.0.55
mod_ssl/2.0.55
OpenSSL/0.9.7g
PHP/4.4.1

The error log has these lines :

Quote
[Fri Feb 10 23:16:37 2006] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Sat Feb 11 00:29:52 2006] [notice] child pid 9957 exit signal Segmentation fault (11)
[Sat Feb 11 00:38:23 2006] [notice] child pid 9372 exit signal Segmentation fault (11)
[Sat Feb 11 00:40:38 2006] [notice] child pid 10198 exit signal Bus error (7)
[Sat Feb 11 02:28:08 2006] [notice] child pid 10170 exit signal Segmentation fault (11)
[Sat Feb 11 03:18:37 2006] [notice] child pid 10225 exit signal Segmentation fault (11)
[Sat Feb 11 07:26:33 2006] [notice] child pid 10390 exit signal Segmentation fault (11)
[Sat Feb 11 11:31:43 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Feb 11 11:31:44 2006] [warn] pid file /usr/local/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Feb 11 11:31:44 2006] [notice] Apache/2.0.55 (Unix) mod_ssl/2.0.55 OpenSSL/0.9.7g PHP/4.4.1 configured -- resuming normal operations

I understand the two lines in the end(are after I started again the server), but what about the segmentation fault?

Does anyone knows what can cause this?

The only resource I found is that php 4.x crashes the apache (2.x) when is used in ErrorDocument (.htaccess)(using php error pages) For this I am upgrading the sites to php 5, but I believe that this is not the reason for the problem.

Thanks in advance Smiley

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1517
6803 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #1 on: Feb 11, 2006, 05:59:13 PM »

What have you got the MaxClients set at?


Last blog : Site of the Month - August 2007
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7943
40607 credits
Members referred : 3



« Reply #2 on: Feb 12, 2006, 03:05:04 AM »

MaxClients is set to 150

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #3 on: Feb 12, 2006, 06:53:36 AM »

you should have max clients set to 0, and alsu use htacess files to handle error documents, instead of editing the config file

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7943
40607 credits
Members referred : 3



« Reply #4 on: Feb 12, 2006, 01:07:31 PM »

Having maxClients to 0 will crash the server for sure, because if this machine will not be able to handle those requests. I will try to raise it to 200 or something.

The error documents are handled by htaccess.

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #5 on: Feb 13, 2006, 01:13:19 AM »

ok you put 0 and it doesnt set it to unlimited? i cant even remeber of the top of my head, but you should have a way to use unlimited users (if the machine can handle it) if machine can only handle 200 at a time that is not that many

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1517
6803 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #6 on: Feb 13, 2006, 04:28:21 AM »

Hey Nick, what are the specs of the server? Have you got enough ram for apache to handle more than 150?


Last blog : Site of the Month - August 2007
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7943
40607 credits
Members referred : 3



« Reply #7 on: Feb 13, 2006, 09:41:26 AM »

Hey Nick, what are the specs of the server? Have you got enough ram for apache to handle more than 150?

No I don't think that it can handle more than 150 as it is an amd64 3Ghz with 1gb ram and it is used for all the services (dns, qmail, apache, mysql)

I found some bugs related to eaccelerator, and change them. Hope it will help

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1517
6803 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #8 on: Feb 13, 2006, 10:25:20 AM »

Keep us posted!


Last blog : Site of the Month - August 2007
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7943
40607 credits
Members referred : 3



« Reply #9 on: Feb 13, 2006, 10:36:10 AM »

I just read the eaccelerator Visit through proxy forums, and it seems that eaccelerator produces some fault signals.

So I turned some sites to php5 (with eaccelerator not enabled), and for the rest I turned the eaccelerator caching on. By the way with the caching on, the server seems to load much faster.

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
Supreme Overlord
***
Gender: Male
Posts: 148
900 credits
Members referred : 0


www.centos.org


« Reply #10 on: Feb 14, 2006, 08:39:30 AM »

 Well I dont have a answer to your problem. But you could try www.webhostingtalk.com Visit through proxy and post in their teck forum. People seem to know alot in that forum. They should be able to help.
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7943
40607 credits
Members referred : 3



« Reply #11 on: Feb 14, 2006, 09:15:44 AM »

Well I dont have a answer to your problem. But you could try www.webhostingtalk.com Visit through proxy and post in their teck forum. People seem to know alot in that forum. They should be able to help.

I will try them too. But it seems that the problem solved (at least I hope)

Thanks for the info

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=1472
Tags : php forums apache Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: Please help me keep this server alive
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 09, 2008, 11:28:38 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.587
Total Topics: 7.355
Total Members: 3.661
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: komrad

45 Guests, 5 Users online :

18 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.