28, May 2012

Please help me keep this server alive - webmaster forum

 
Webdigity webmaster forums
[ 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
Instabuck - The easy way to sell digital products online

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



« on: Feb 11, 2006, 11:18:38 am »

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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #1 on: Feb 11, 2006, 04:59:13 pm »

What have you got the MaxClients set at?


Last blog : Canonical URL Links / Tags
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #2 on: Feb 12, 2006, 02:05:04 am »

MaxClients is set to 150

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 886
1148 credits
Members referred : 4



« Reply #3 on: Feb 12, 2006, 05: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


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



« Reply #4 on: Feb 12, 2006, 12: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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 886
1148 credits
Members referred : 4



« Reply #5 on: Feb 13, 2006, 12: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


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


Gimme all your cookies!!!


« Reply #6 on: Feb 13, 2006, 03: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 : Canonical URL Links / Tags
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #7 on: Feb 13, 2006, 08: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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #8 on: Feb 13, 2006, 09:25:20 am »

Keep us posted!


Last blog : Canonical URL Links / Tags
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



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

I just read the eaccelerator 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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
World Wide Whale
***
Gender: Male
Posts: 154
952 credits
Members referred : 0


www.centos.org


« Reply #10 on: Feb 14, 2006, 07:39:30 am »

 Well I dont have a answer to your problem. But you could try www.webhostingtalk.com 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: 5799
46391 credits
Members referred : 3



« Reply #11 on: Feb 14, 2006, 08:15:44 am »

Well I dont have a answer to your problem. But you could try www.webhostingtalk.com 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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
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....

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?
May 28, 2012, 08:49:54 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: 62.852
Total Topics: 11.033
Total Members: 21.457
Tutorials : 58
Resources : 929
Designs : 395
Latest Member: kenyon

127 Guests, 5 Users online :

21 users online today:




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