You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jakov Sosic <js...@gmail.com> on 2014/10/05 22:22:55 UTC

[users@httpd] Too many vhosts?!?!

Hi guys.

I'm running CentOS 6 with latest httpd (2.2.15-31.el6).


I've noticed a very peculiar problem with Apache. I have a very high 
number of virtual hosts set up - it's around 501.

Problems started occuring after vhost number 493. First 493 vhosts work 
as expected, but as soon as I add vhost number 494, PHP stops 
communicating with memcache, and it times out on every read/write access.

Actually, I'm using memcache as a backend sessions store, so, php function:

session_start();

simply times out after 30 sec.

If I delete the random one of the 494 vhosts and restart apache, it 
starts working again.

I've set ulimit really high (65k) but it doesn't help. I've tried 
switching off ulimits completely, but no luck.

Do you guys have any ideas what more could I try?

I've tried stracing the httpd process to which I'm connected to, after I 
hit the enter in browser and after 30 sec wait commences.

This is the strace output:

select(1170, [1024 1169], [], NULL, {1, 0}) = 2 (in [1024 1169], left 
{0, 999998})
select(1170, [1024 1169], [], NULL, {1, 0}) = 2 (in [1024 1169], left 
{0, 999998})
select(1170, [1024 1169], [], NULL, {1, 0}) = 2 (in [1024 1169], left 
{0, 999998})
select(1170, [1024 1169], [], NULL, {1, 0}) = 2 (in [1024 1169], left 
{0, 999998})
select(1170, [1024 1169], [], NULL, {1, 0}) = 2 (in [1024 1169], left 
{0, 999998})

So basically apache is stuck on select(), and that's it, it repeats the 
select() system call indefinitely.


More info (including GDB output) on:

http://serverfault.com/questions/633216/apache-stops-communicating-with-memcache-after-creating-too-many-vhosts


The most difficult part is that I cannot reproduce this specific error 
on another hardware, so it's some kind of apache-linux-hw combo...



Do you have any ideas what can I do to debug the issue further?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] downing

Posted by georg chambert <ge...@telia.com>.
The server mening the PC as with no httpd started, no it seems to be up 
without problems,
on the other hand nothing is really running on it, more than maint,
on the third hand that could be a coincidence, since some of the 
up-and-running periods
with the deamon running has sometimes been very long and i suspect the 
longest to have been
broken by power outage. But gut feeling statistics says against.
(and possibly that it could be some factor that is random during start of 
the httpd)

which of the logfiles in var/logs would be relevant to check ?

BR Georg

----- Original Message ----- 
From: "Edgar Pettijohn" <ed...@pettijohn.no-ip.biz>
To: <us...@httpd.apache.org>
Sent: Tuesday, October 14, 2014 1:31 AM
Subject: Re: [users@httpd] downing


> /var/log will have your logs.
>
> Does the server crash when apache is disabled?
>
> On 10/13/2014 08:45 AM, georg chambert wrote:
>> The machine goes into some unreachable state, where it has to be
>> hard-reset
>> to boot again. So has anyone a pointer to where in the linux some useful
>> eventlogg couldbefournd ?  (ok linux is not on list, but I suspect the
>> downing is via httpd)
>>
>> Regrds
>> Georg
>>
>>
>> ----- Original Message ----- From: "georg chambert"
>> <ge...@telia.com>
>> To: <us...@httpd.apache.org>
>> Sent: Sunday, October 12, 2014 5:06 PM
>> Subject: Re: [users@httpd] downing
>>
>>
>>> Ok, thanks,
>>> was this  a result of me not letting a robot create files on my
>>> machine ?
>>> see if i can produce a snapp of the log
>>> br
>>> georg
>>> ----- Original Message ----- From: "Edgar Pettijohn"
>>> <ed...@pettijohn.no-ip.biz>
>>> To: <us...@httpd.apache.org>
>>> Sent: Sunday, October 12, 2014 4:38 PM
>>> Subject: Re: [users@httpd] downing
>>>
>>>
>>>>
>>>>
>>>> On 10/12/2014 09:27 AM, georg chambert wrote:
>>>>> error-log last  (at /etc/httpd/logs )
>>>>> says as last entry:
>>>>>
>>>>> File does not exist
>>>>>
>>>>> /var/www/html/robots.txt
>>>> www.robotstxt.org
>>>>>
>>>>> which I guess is result of some provocation since I have never issued
>>>>> or indicated  any such file
>>>>>
>>>>> (this is marked  with  a timestamp some past 1-a clock in morning)
>>>>>
>>>>> there are also some previous such "file does not exist" in the log
>>>>>
>>>>> what request that generated the logging of the error I however cannot
>>>>> figure out
>>>>>
>>>>> the preceeding logg entry is:
>>>>>
>>>>> Undefined index; and then a name of one of  my .html "normal" pages
>>>>> (generated by PHP)
>>>>>
>>>>> BR
>>>>> Georg
>>>>
>>>> The actual logs would be more useful.
>>>>>
>>>>> ----- Original Message ----- From: "Edgar Pettijohn"
>>>>> <ed...@pettijohn.no-ip.biz>
>>>>> To: <us...@httpd.apache.org>
>>>>> Sent: Sunday, October 12, 2014 3:25 PM
>>>>> Subject: Re: [users@httpd] downing
>>>>>
>>>>>
>>>>>> What does the error log show?
>>>>>> On 10/12/2014 05:59 AM, georg chambert wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> Im a bit of server rookie, have made a server out of an old del
>>>>>>> dimension 5000 PC,
>>>>>>> put fedora on it, and an appache server, have some pages with html,
>>>>>>> php, and some SQL generation from PHP
>>>>>>>
>>>>>>> now, this site goes down, totally indeterministically, it can
>>>>>>> stay up
>>>>>>> for a month, then  go down in less than 24h,
>>>>>>> repeatedly....
>>>>>>>
>>>>>>> anyone has a  list of "CHECK of whats" for me, dont  know where to
>>>>>>> start (with OS...,  or  server, hacked or bugged,...)
>>>>>>> there  is not very much traffic on the server, some folks coming in
>>>>>>> now an then
>>>>>>>
>>>>>>> thanks
>>>>>>> Georg
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] downing

Posted by georg chambert <ge...@telia.com>.
Hi again,

now I have had the PC running, connected to the net, however no httpd in 
service,
and the bastard stays up, stable, no crashing,
so its the deamon that seem to be the entry for crashing, either by it own 
power or from provocation
from outside.

kind regards
Georg

----- Original Message ----- 
From: "Edgar Pettijohn" <ed...@pettijohn.no-ip.biz>
To: <us...@httpd.apache.org>
Sent: Tuesday, October 14, 2014 1:31 AM
Subject: Re: [users@httpd] downing


> /var/log will have your logs.
>
> Does the server crash when apache is disabled?
>
> On 10/13/2014 08:45 AM, georg chambert wrote:
>> The machine goes into some unreachable state, where it has to be
>> hard-reset
>> to boot again. So has anyone a pointer to where in the linux some useful
>> eventlogg couldbefournd ?  (ok linux is not on list, but I suspect the
>> downing is via httpd)
>>
>> Regrds
>> Georg
>>
>>
>> ----- Original Message ----- From: "georg chambert"
>> <ge...@telia.com>
>> To: <us...@httpd.apache.org>
>> Sent: Sunday, October 12, 2014 5:06 PM
>> Subject: Re: [users@httpd] downing
>>
>>
>>> Ok, thanks,
>>> was this  a result of me not letting a robot create files on my
>>> machine ?
>>> see if i can produce a snapp of the log
>>> br
>>> georg
>>> ----- Original Message ----- From: "Edgar Pettijohn"
>>> <ed...@pettijohn.no-ip.biz>
>>> To: <us...@httpd.apache.org>
>>> Sent: Sunday, October 12, 2014 4:38 PM
>>> Subject: Re: [users@httpd] downing
>>>
>>>
>>>>
>>>>
>>>> On 10/12/2014 09:27 AM, georg chambert wrote:
>>>>> error-log last  (at /etc/httpd/logs )
>>>>> says as last entry:
>>>>>
>>>>> File does not exist
>>>>>
>>>>> /var/www/html/robots.txt
>>>> www.robotstxt.org
>>>>>
>>>>> which I guess is result of some provocation since I have never issued
>>>>> or indicated  any such file
>>>>>
>>>>> (this is marked  with  a timestamp some past 1-a clock in morning)
>>>>>
>>>>> there are also some previous such "file does not exist" in the log
>>>>>
>>>>> what request that generated the logging of the error I however cannot
>>>>> figure out
>>>>>
>>>>> the preceeding logg entry is:
>>>>>
>>>>> Undefined index; and then a name of one of  my .html "normal" pages
>>>>> (generated by PHP)
>>>>>
>>>>> BR
>>>>> Georg
>>>>
>>>> The actual logs would be more useful.
>>>>>
>>>>> ----- Original Message ----- From: "Edgar Pettijohn"
>>>>> <ed...@pettijohn.no-ip.biz>
>>>>> To: <us...@httpd.apache.org>
>>>>> Sent: Sunday, October 12, 2014 3:25 PM
>>>>> Subject: Re: [users@httpd] downing
>>>>>
>>>>>
>>>>>> What does the error log show?
>>>>>> On 10/12/2014 05:59 AM, georg chambert wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> Im a bit of server rookie, have made a server out of an old del
>>>>>>> dimension 5000 PC,
>>>>>>> put fedora on it, and an appache server, have some pages with html,
>>>>>>> php, and some SQL generation from PHP
>>>>>>>
>>>>>>> now, this site goes down, totally indeterministically, it can
>>>>>>> stay up
>>>>>>> for a month, then  go down in less than 24h,
>>>>>>> repeatedly....
>>>>>>>
>>>>>>> anyone has a  list of "CHECK of whats" for me, dont  know where to
>>>>>>> start (with OS...,  or  server, hacked or bugged,...)
>>>>>>> there  is not very much traffic on the server, some folks coming in
>>>>>>> now an then
>>>>>>>
>>>>>>> thanks
>>>>>>> Georg
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] downing

Posted by Edgar Pettijohn <ed...@pettijohn.no-ip.biz>.
/var/log will have your logs.

Does the server crash when apache is disabled?

On 10/13/2014 08:45 AM, georg chambert wrote:
> The machine goes into some unreachable state, where it has to be
> hard-reset
> to boot again. So has anyone a pointer to where in the linux some useful
> eventlogg couldbefournd ?  (ok linux is not on list, but I suspect the
> downing is via httpd)
>
> Regrds
> Georg
>
>
> ----- Original Message ----- From: "georg chambert"
> <ge...@telia.com>
> To: <us...@httpd.apache.org>
> Sent: Sunday, October 12, 2014 5:06 PM
> Subject: Re: [users@httpd] downing
>
>
>> Ok, thanks,
>> was this  a result of me not letting a robot create files on my
>> machine ?
>> see if i can produce a snapp of the log
>> br
>> georg
>> ----- Original Message ----- From: "Edgar Pettijohn"
>> <ed...@pettijohn.no-ip.biz>
>> To: <us...@httpd.apache.org>
>> Sent: Sunday, October 12, 2014 4:38 PM
>> Subject: Re: [users@httpd] downing
>>
>>
>>>
>>>
>>> On 10/12/2014 09:27 AM, georg chambert wrote:
>>>> error-log last  (at /etc/httpd/logs )
>>>> says as last entry:
>>>>
>>>> File does not exist
>>>>
>>>> /var/www/html/robots.txt
>>> www.robotstxt.org
>>>>
>>>> which I guess is result of some provocation since I have never issued
>>>> or indicated  any such file
>>>>
>>>> (this is marked  with  a timestamp some past 1-a clock in morning)
>>>>
>>>> there are also some previous such "file does not exist" in the log
>>>>
>>>> what request that generated the logging of the error I however cannot
>>>> figure out
>>>>
>>>> the preceeding logg entry is:
>>>>
>>>> Undefined index; and then a name of one of  my .html "normal" pages
>>>> (generated by PHP)
>>>>
>>>> BR
>>>> Georg
>>>
>>> The actual logs would be more useful.
>>>>
>>>> ----- Original Message ----- From: "Edgar Pettijohn"
>>>> <ed...@pettijohn.no-ip.biz>
>>>> To: <us...@httpd.apache.org>
>>>> Sent: Sunday, October 12, 2014 3:25 PM
>>>> Subject: Re: [users@httpd] downing
>>>>
>>>>
>>>>> What does the error log show?
>>>>> On 10/12/2014 05:59 AM, georg chambert wrote:
>>>>>> Hi,
>>>>>>
>>>>>> Im a bit of server rookie, have made a server out of an old del
>>>>>> dimension 5000 PC,
>>>>>> put fedora on it, and an appache server, have some pages with html,
>>>>>> php, and some SQL generation from PHP
>>>>>>
>>>>>> now, this site goes down, totally indeterministically, it can
>>>>>> stay up
>>>>>> for a month, then  go down in less than 24h,
>>>>>> repeatedly....
>>>>>>
>>>>>> anyone has a  list of "CHECK of whats" for me, dont  know where to
>>>>>> start (with OS...,  or  server, hacked or bugged,...)
>>>>>> there  is not very much traffic on the server, some folks coming in
>>>>>> now an then
>>>>>>
>>>>>> thanks
>>>>>> Georg
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] downing

Posted by georg chambert <ge...@telia.com>.
The machine goes into some unreachable state, where it has to be hard-reset
to boot again. So has anyone a pointer to where in the linux some useful
eventlogg couldbefournd ?  (ok linux is not on list, but I suspect the 
downing is via httpd)

Regrds
Georg


----- Original Message ----- 
From: "georg chambert" <ge...@telia.com>
To: <us...@httpd.apache.org>
Sent: Sunday, October 12, 2014 5:06 PM
Subject: Re: [users@httpd] downing


> Ok, thanks,
> was this  a result of me not letting a robot create files on my machine ?
> see if i can produce a snapp of the log
> br
> georg
> ----- Original Message ----- 
> From: "Edgar Pettijohn" <ed...@pettijohn.no-ip.biz>
> To: <us...@httpd.apache.org>
> Sent: Sunday, October 12, 2014 4:38 PM
> Subject: Re: [users@httpd] downing
>
>
>>
>>
>> On 10/12/2014 09:27 AM, georg chambert wrote:
>>> error-log last  (at /etc/httpd/logs )
>>> says as last entry:
>>>
>>> File does not exist
>>>
>>> /var/www/html/robots.txt
>> www.robotstxt.org
>>>
>>> which I guess is result of some provocation since I have never issued
>>> or indicated  any such file
>>>
>>> (this is marked  with  a timestamp some past 1-a clock in morning)
>>>
>>> there are also some previous such "file does not exist" in the log
>>>
>>> what request that generated the logging of the error I however cannot
>>> figure out
>>>
>>> the preceeding logg entry is:
>>>
>>> Undefined index; and then a name of one of  my .html "normal" pages
>>> (generated by PHP)
>>>
>>> BR
>>> Georg
>>
>> The actual logs would be more useful.
>>>
>>> ----- Original Message ----- From: "Edgar Pettijohn"
>>> <ed...@pettijohn.no-ip.biz>
>>> To: <us...@httpd.apache.org>
>>> Sent: Sunday, October 12, 2014 3:25 PM
>>> Subject: Re: [users@httpd] downing
>>>
>>>
>>>> What does the error log show?
>>>> On 10/12/2014 05:59 AM, georg chambert wrote:
>>>>> Hi,
>>>>>
>>>>> Im a bit of server rookie, have made a server out of an old del
>>>>> dimension 5000 PC,
>>>>> put fedora on it, and an appache server, have some pages with html,
>>>>> php, and some SQL generation from PHP
>>>>>
>>>>> now, this site goes down, totally indeterministically, it can stay up
>>>>> for a month, then  go down in less than 24h,
>>>>> repeatedly....
>>>>>
>>>>> anyone has a  list of "CHECK of whats" for me, dont  know where to
>>>>> start (with OS...,  or  server, hacked or bugged,...)
>>>>> there  is not very much traffic on the server, some folks coming in
>>>>> now an then
>>>>>
>>>>> thanks
>>>>> Georg
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] downing

Posted by georg chambert <ge...@telia.com>.
Ok, thanks,
was this  a result of me not letting a robot create files on my machine ?
see if i can produce a snapp of the log
br
georg
----- Original Message ----- 
From: "Edgar Pettijohn" <ed...@pettijohn.no-ip.biz>
To: <us...@httpd.apache.org>
Sent: Sunday, October 12, 2014 4:38 PM
Subject: Re: [users@httpd] downing


> 
> 
> On 10/12/2014 09:27 AM, georg chambert wrote:
>> error-log last  (at /etc/httpd/logs )
>> says as last entry:
>>
>> File does not exist
>>
>> /var/www/html/robots.txt 
> www.robotstxt.org
>>
>> which I guess is result of some provocation since I have never issued
>> or indicated  any such file
>>
>> (this is marked  with  a timestamp some past 1-a clock in morning)
>>
>> there are also some previous such "file does not exist" in the log
>>
>> what request that generated the logging of the error I however cannot
>> figure out
>>
>> the preceeding logg entry is:
>>
>> Undefined index; and then a name of one of  my .html "normal" pages
>> (generated by PHP)
>>
>> BR
>> Georg
> 
> The actual logs would be more useful.
>>
>> ----- Original Message ----- From: "Edgar Pettijohn"
>> <ed...@pettijohn.no-ip.biz>
>> To: <us...@httpd.apache.org>
>> Sent: Sunday, October 12, 2014 3:25 PM
>> Subject: Re: [users@httpd] downing
>>
>>
>>> What does the error log show?
>>> On 10/12/2014 05:59 AM, georg chambert wrote:
>>>> Hi,
>>>>
>>>> Im a bit of server rookie, have made a server out of an old del
>>>> dimension 5000 PC,
>>>> put fedora on it, and an appache server, have some pages with html,
>>>> php, and some SQL generation from PHP
>>>>
>>>> now, this site goes down, totally indeterministically, it can stay up
>>>> for a month, then  go down in less than 24h,
>>>> repeatedly....
>>>>
>>>> anyone has a  list of "CHECK of whats" for me, dont  know where to
>>>> start (with OS...,  or  server, hacked or bugged,...)
>>>> there  is not very much traffic on the server, some folks coming in
>>>> now an then
>>>>
>>>> thanks
>>>> Georg
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] downing

Posted by Edgar Pettijohn <ed...@pettijohn.no-ip.biz>.

On 10/12/2014 09:27 AM, georg chambert wrote:
> error-log last  (at /etc/httpd/logs )
> says as last entry:
>
> File does not exist
>
> /var/www/html/robots.txt 
www.robotstxt.org
>
> which I guess is result of some provocation since I have never issued
> or indicated  any such file
>
> (this is marked  with  a timestamp some past 1-a clock in morning)
>
> there are also some previous such "file does not exist" in the log
>
> what request that generated the logging of the error I however cannot
> figure out
>
> the preceeding logg entry is:
>
> Undefined index; and then a name of one of  my .html "normal" pages
> (generated by PHP)
>
> BR
> Georg

The actual logs would be more useful.
>
> ----- Original Message ----- From: "Edgar Pettijohn"
> <ed...@pettijohn.no-ip.biz>
> To: <us...@httpd.apache.org>
> Sent: Sunday, October 12, 2014 3:25 PM
> Subject: Re: [users@httpd] downing
>
>
>> What does the error log show?
>> On 10/12/2014 05:59 AM, georg chambert wrote:
>>> Hi,
>>>
>>> Im a bit of server rookie, have made a server out of an old del
>>> dimension 5000 PC,
>>> put fedora on it, and an appache server, have some pages with html,
>>> php, and some SQL generation from PHP
>>>
>>> now, this site goes down, totally indeterministically, it can stay up
>>> for a month, then  go down in less than 24h,
>>> repeatedly....
>>>
>>> anyone has a  list of "CHECK of whats" for me, dont  know where to
>>> start (with OS...,  or  server, hacked or bugged,...)
>>> there  is not very much traffic on the server, some folks coming in
>>> now an then
>>>
>>> thanks
>>> Georg
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] downing

Posted by georg chambert <ge...@telia.com>.
error-log last  (at /etc/httpd/logs )
says as last entry:

File does not exist

/var/www/html/robots.txt

which I guess is result of some provocation since I have never issued or 
indicated  any such file

(this is marked  with  a timestamp some past 1-a clock in morning)

there are also some previous such "file does not exist" in the log

what request that generated the logging of the error I however cannot figure 
out

the preceeding logg entry is:

Undefined index; and then a name of one of  my .html "normal" pages 
(generated by PHP)

BR
Georg


----- Original Message ----- 
From: "Edgar Pettijohn" <ed...@pettijohn.no-ip.biz>
To: <us...@httpd.apache.org>
Sent: Sunday, October 12, 2014 3:25 PM
Subject: Re: [users@httpd] downing


> What does the error log show?
> On 10/12/2014 05:59 AM, georg chambert wrote:
>> Hi,
>>
>> Im a bit of server rookie, have made a server out of an old del
>> dimension 5000 PC,
>> put fedora on it, and an appache server, have some pages with html,
>> php, and some SQL generation from PHP
>>
>> now, this site goes down, totally indeterministically, it can stay up
>> for a month, then  go down in less than 24h,
>> repeatedly....
>>
>> anyone has a  list of "CHECK of whats" for me, dont  know where to
>> start (with OS...,  or  server, hacked or bugged,...)
>> there  is not very much traffic on the server, some folks coming in
>> now an then
>>
>> thanks
>> Georg
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] downing

Posted by Edgar Pettijohn <ed...@pettijohn.no-ip.biz>.
What does the error log show?
On 10/12/2014 05:59 AM, georg chambert wrote:
> Hi,
>
> Im a bit of server rookie, have made a server out of an old del
> dimension 5000 PC,
> put fedora on it, and an appache server, have some pages with html,
> php, and some SQL generation from PHP
>
> now, this site goes down, totally indeterministically, it can stay up 
> for a month, then  go down in less than 24h,
> repeatedly....
>
> anyone has a  list of "CHECK of whats" for me, dont  know where to
> start (with OS...,  or  server, hacked or bugged,...)
> there  is not very much traffic on the server, some folks coming in
> now an then
>
> thanks
> Georg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] downing

Posted by georg chambert <ge...@telia.com>.
Hi,

Im a bit of server rookie, have made a server out of an old del dimension 
5000 PC,
put fedora on it, and an appache server, have some pages with html, php, and 
some SQL generation from PHP

now, this site goes down, totally indeterministically, it can stay up  for a 
month, then  go down in less than 24h,
repeatedly....

anyone has a  list of "CHECK of whats" for me, dont  know where to start 
(with OS...,  or  server, hacked or bugged,...)
there  is not very much traffic on the server, some folks coming in now an 
then

thanks
Georg 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Too many vhosts?!?!

Posted by Jakov Sosic <js...@gmail.com>.
On 10/09/2014 06:22 AM, Paul Silevitch wrote:
> I had a similar issue years ago with a large number of vhosts and apache
> hanging (apache 2.2 prefork mpm on linux like you).  The problem for me
> was with the number of Listen directives.  When I cut the list down,
> everything worked.  Do you have a lot of Listen directives?  If so,
> maybe part of the problem.

Nope, only *:80 and *:443 ...

But thank you for an idea!


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Too many vhosts?!?!

Posted by Paul Silevitch <pa...@silevitch.com>.
I had a similar issue years ago with a large number of vhosts and apache
hanging (apache 2.2 prefork mpm on linux like you).  The problem for me was
with the number of Listen directives.  When I cut the list down, everything
worked.  Do you have a lot of Listen directives?  If so, maybe part of the
problem.

On Mon, Oct 6, 2014 at 9:47 AM, Nick Kew <ni...@webthing.com> wrote:

>
> On 6 Oct 2014, at 14:16, Jakov Sosic wrote:
>
> > There isn't a large number of clients, it's only a large number of
> vhosts - which translates in large number of FDs in use.
>
> So you've made the most obvious diagnosis yourself.
>
> To test that, why not try it with a logger that doesn't
> involve an FD for each vhost?  If the same happens
> then FDs aren't the issue and you're looking for
> some other resource.
>
> --
> Nick Kew
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Too many vhosts?!?!

Posted by Nick Kew <ni...@webthing.com>.
On 6 Oct 2014, at 14:16, Jakov Sosic wrote:

> There isn't a large number of clients, it's only a large number of vhosts - which translates in large number of FDs in use.

So you've made the most obvious diagnosis yourself.

To test that, why not try it with a logger that doesn't
involve an FD for each vhost?  If the same happens
then FDs aren't the issue and you're looking for
some other resource.

-- 
Nick Kew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Too many vhosts?!?!

Posted by Jakov Sosic <js...@gmail.com>.
On 10/06/2014 03:06 PM, Tom Evans wrote:

> Why do you think it has anything to do with httpd? This is firmly a
> "When I do things with PHP, PHP doesn't work .... therefore httpd has
> a problem" type diagnosis.

I'm sorry that I pointed my finger at httpd. It could be anything in the 
chain (HW - kernel - httpd - php ...).

I just asked here because I though people would have ideas how can I 
debug this further. I'm sorry if I upset anyone with my post. That was 
not my intention.


> The first thing I would suggest is asking on a PHP list why using a
> memcached session backend stops working with large numbers of clients.

There isn't a large number of clients, it's only a large number of 
vhosts - which translates in large number of FDs in use.


> The second thing I would suggest is not running mod_php (I am
> assuming; you don't mention, but you are stracing httpd to see PHP's
> select()s...) but run php-fpm, which separates out PHP from httpd. It
> also performs a lot better.

I will take a look into it, thanx.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Too many vhosts?!?!

Posted by Tom Evans <te...@googlemail.com>.
On Sun, Oct 5, 2014 at 9:22 PM, Jakov Sosic <js...@gmail.com> wrote:
> Hi guys.
>
> I'm running CentOS 6 with latest httpd (2.2.15-31.el6).
>
>
> I've noticed a very peculiar problem with Apache. I have a very high number
> of virtual hosts set up - it's around 501.
>
> Problems started occuring after vhost number 493. First 493 vhosts work as
> expected, but as soon as I add vhost number 494, PHP stops communicating
> with memcache, and it times out on every read/write access.
>
> Actually, I'm using memcache as a backend sessions store, so, php function:
>
> session_start();
>
> simply times out after 30 sec.
>
> If I delete the random one of the 494 vhosts and restart apache, it starts
> working again.
>
> I've set ulimit really high (65k) but it doesn't help. I've tried switching
> off ulimits completely, but no luck.
>
> Do you guys have any ideas what more could I try?
>
> I've tried stracing the httpd process to which I'm connected to, after I hit
> the enter in browser and after 30 sec wait commences.
>
> This is the strace output:
>
> select(1170, [1024 1169], [], NULL, {1, 0}) = 2 (in [1024 1169], left {0,
> 999998})
> select(1170, [1024 1169], [], NULL, {1, 0}) = 2 (in [1024 1169], left {0,
> 999998})
> select(1170, [1024 1169], [], NULL, {1, 0}) = 2 (in [1024 1169], left {0,
> 999998})
> select(1170, [1024 1169], [], NULL, {1, 0}) = 2 (in [1024 1169], left {0,
> 999998})
> select(1170, [1024 1169], [], NULL, {1, 0}) = 2 (in [1024 1169], left {0,
> 999998})
>
> So basically apache is stuck on select(), and that's it, it repeats the
> select() system call indefinitely.
>
>
> More info (including GDB output) on:
>
> http://serverfault.com/questions/633216/apache-stops-communicating-with-memcache-after-creating-too-many-vhosts
>
>
> The most difficult part is that I cannot reproduce this specific error on
> another hardware, so it's some kind of apache-linux-hw combo...
>
>
>
> Do you have any ideas what can I do to debug the issue further?
>

Why do you think it has anything to do with httpd? This is firmly a
"When I do things with PHP, PHP doesn't work .... therefore httpd has
a problem" type diagnosis.

The first thing I would suggest is asking on a PHP list why using a
memcached session backend stops working with large numbers of clients.

The second thing I would suggest is not running mod_php (I am
assuming; you don't mention, but you are stracing httpd to see PHP's
select()s...) but run php-fpm, which separates out PHP from httpd. It
also performs a lot better.

Cheers

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org