[users@httpd] Re: mod_echo configuration

2019-03-28 Thread Marion & Christophe JAILLET

Le 28/03/2019 à 15:37, anthony a écrit :

Hello,

I am new on this mailing list and I hope to find an answer on my 
apache2 configuration problem.


My OS : Linux openSUSE 15.2 64 bit
Apache : apache2 2.4.33 standard install
   browser url : local host --> It works!

I try to use apache as a echo server for telnet.

reading https://httpd.apache.org/docs/2.4/mod/mod_echo.html
"It provides a simple echo server. Telnet to it and type stuff, and it 
will echo it."


What I did : # a2enmod echo
# apache2ctl -M  --> see : echo_module (shared)
# edit /etc/apache2/global.conf --> add : ProtocolEcho On
# apache2ctl restart

Test:
# telnet localhost --> connection refused
# telnet localhost 80 --> ... Bad request! ...

The firewall is disabled.

Reading the manual and google I am not able to correctly configure this.
Can you assist me or give a hint?
Anthony


Hi

just tested locally and it works as expected with:
   telnet localhost 80

When ProtocolEcho is not defined, I get the bad request you get.


What system are you running?
What httpd version are you using?

Base on https://wiki.apache.org/httpd/DistrosDefaultLayout, using 
/etc/apache2/global.conf looks unusual.

Are you sure that it is loaded?
(an easy way to check is to write a bogus directive (ProtocolEchoX 
On) and check if apache2ctl restart works or not)


CJ


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



Re: [users@httpd] Re: Apache web server devouring resources

2019-03-28 Thread Darryl Philip Baker
Thank you for your response but if this was an ongoing issue, I would have more 
places to look and tools available. After rebooting the system, it just went 
back to normal. The network team reviewed the load balancer and firewall logs. 
I have reviewed the Apache log and system messages. We are reviewing activity 
using the Splunk logs for the network elements but still no gun smoking or not.

Darryl Baker  (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
1800 Sherman Ave.
Suite 6-600 – Box #39
Evanston, IL  60201-3715
darryl.ba...@northwestern.edu
(847) 467-6674


From: "Muggeridge, Matt" 
Reply-To: "users@httpd.apache.org" 
Date: Thursday, March 28, 2019 at 1:36 PM
To: "users@httpd.apache.org" 
Subject: RE: [users@httpd] Re: Apache web server devouring resources

You will need to do some more triaging.  Suggestions for things to investigate 
more deeply:  http Log files, system log files, system performance monitoring, 
connection statistics, source of traffic, TCP performance tuning, firewall 
control, protection against DOS attacks… and that’s just off the top.

You will need to profile the system using a myriad of tools that suit your need 
(e.g. tcpdump, lsof, top, netstat, ss, and a large variety of others, depending 
on what you learn along the way).

Matt.

From: Rose, John B 
Sent: Friday, 29 March 2019 3:56 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Re: Apache web server devouring resources


I don't think the TCP buffer would be clear if there was a continuing flow of 
http requests during that time, whether the web server software was down, or 
maxed out



But maybe I am wrong.






From: Darryl Philip Baker 
mailto:darryl.ba...@northwestern.edu>>
Sent: Thursday, March 28, 2019 1:22:59 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Re: Apache web server devouring resources


No PHP on the system at all. The web server was down for 15-20 minutes so 
anything in the queue should have cleared, right?



Darryl Baker  (he/him/his)

Sr. System Administrator

Distributed Application Platform Services

Northwestern University

1800 Sherman Ave.

Suite 6-600 – Box #39

Evanston, IL  60201-3715

darryl.ba...@northwestern.edu

(847) 467-6674





From: "Rose, John B" mailto:jbr...@utk.edu>>
Reply-To: "users@httpd.apache.org" 
mailto:users@httpd.apache.org>>
Date: Thursday, March 28, 2019 at 11:32 AM
To: "users@httpd.apache.org" 
mailto:users@httpd.apache.org>>
Subject: [users@httpd] Re: Apache web server devouring resources



Regarding the "load increasing quickly after restarting the daemons" ...



I do not believe just restarting the daemons clears the TCP queue. Nor does it 
prevent new TCP requests. If it is an attack, then the load would ramp back up 
immediately. That is why you have to reboot I am guessing.

Do you utilize PHP? PHP-FPM? Do you use TCP or Unix Domain sockets?



Are there a preponderance of http connections or PHP-FPM processes, or both?



If PHP-FPM do you use "static" "dynamic" or "ondemand"?



From: Darryl Philip Baker 
mailto:darryl.ba...@northwestern.edu>>
Sent: Thursday, March 28, 2019 12:11:27 PM
To: users@httpd.apache.org
Subject: [users@httpd] Apache web server devouring resources



Gentlefolk,

I had an incident yesterday where the Apache web server host had a load average 
of over 170 and was performing very slowly. Stopping the web server did fix the 
issue but when I restarted the daemons the load started to increase very 
quickly. I ended up having to reboot the system to fix the issue. I don’t like 
that one bit, this is a Linux system not a Windows server. (Editorial remark: I 
have found that systems need reboots to fix stuff much more frequently since 
the adoption of systemd) I have been asked to do a root cause analysis, but I 
have not found anything as of yet. I am reaching out for help in this matter.



The system is a RHEL7 ESX VM with the Red Hat’s main line distribution of 
Apache 2.4 as opposed to the RHSCL version. The configuration is quite complex 
and a bit sensitive so I cannot share all of that. What I’m looking for is 
technics to look at what happened rather than being given the answer anyway.



Darryl Baker  (he/him/his)

Sr. System Administrator

Distributed Application Platform Services

Northwestern University

1800 Sherman Ave.

Suite 6-600 – Box #39

Evanston, IL  60201-3715

darryl.ba...@northwestern.edu

(847) 467-6674




Re: [users@httpd] Re: Apache web server devouring resources

2019-03-28 Thread Darryl Philip Baker
It does strike me odd if there were continued request why didn’t pick right 
back up after the reboot. The reboot would take less than 3 minutes.

Also a connection attaching to the load balancer, the servers are not directly 
addressable, would have been routed to one of the other servers while Apache 
was down.

Darryl Baker  (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
1800 Sherman Ave.
Suite 6-600 – Box #39
Evanston, IL  60201-3715
darryl.ba...@northwestern.edu
(847) 467-6674


From: "Rose, John B" 
Reply-To: "users@httpd.apache.org" 
Date: Thursday, March 28, 2019 at 12:57 PM
To: "users@httpd.apache.org" 
Subject: Re: [users@httpd] Re: Apache web server devouring resources


I don't think the TCP buffer would be clear if there was a continuing flow of 
http requests during that time, whether the web server software was down, or 
maxed out



But maybe I am wrong.






From: Darryl Philip Baker 
Sent: Thursday, March 28, 2019 1:22:59 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Re: Apache web server devouring resources


No PHP on the system at all. The web server was down for 15-20 minutes so 
anything in the queue should have cleared, right?



Darryl Baker  (he/him/his)

Sr. System Administrator

Distributed Application Platform Services

Northwestern University

1800 Sherman Ave.

Suite 6-600 – Box #39

Evanston, IL  60201-3715

darryl.ba...@northwestern.edu

(847) 467-6674





From: "Rose, John B" 
Reply-To: "users@httpd.apache.org" 
Date: Thursday, March 28, 2019 at 11:32 AM
To: "users@httpd.apache.org" 
Subject: [users@httpd] Re: Apache web server devouring resources



Regarding the "load increasing quickly after restarting the daemons" ...



I do not believe just restarting the daemons clears the TCP queue. Nor does it 
prevent new TCP requests. If it is an attack, then the load would ramp back up 
immediately. That is why you have to reboot I am guessing.

Do you utilize PHP? PHP-FPM? Do you use TCP or Unix Domain sockets?



Are there a preponderance of http connections or PHP-FPM processes, or both?



If PHP-FPM do you use "static" "dynamic" or "ondemand"?



From: Darryl Philip Baker 
Sent: Thursday, March 28, 2019 12:11:27 PM
To: users@httpd.apache.org
Subject: [users@httpd] Apache web server devouring resources



Gentlefolk,

I had an incident yesterday where the Apache web server host had a load average 
of over 170 and was performing very slowly. Stopping the web server did fix the 
issue but when I restarted the daemons the load started to increase very 
quickly. I ended up having to reboot the system to fix the issue. I don’t like 
that one bit, this is a Linux system not a Windows server. (Editorial remark: I 
have found that systems need reboots to fix stuff much more frequently since 
the adoption of systemd) I have been asked to do a root cause analysis, but I 
have not found anything as of yet. I am reaching out for help in this matter.



The system is a RHEL7 ESX VM with the Red Hat’s main line distribution of 
Apache 2.4 as opposed to the RHSCL version. The configuration is quite complex 
and a bit sensitive so I cannot share all of that. What I’m looking for is 
technics to look at what happened rather than being given the answer anyway.



Darryl Baker  (he/him/his)

Sr. System Administrator

Distributed Application Platform Services

Northwestern University

1800 Sherman Ave.

Suite 6-600 – Box #39

Evanston, IL  60201-3715

darryl.ba...@northwestern.edu

(847) 467-6674




RE: [users@httpd] Re: Apache web server devouring resources

2019-03-28 Thread Muggeridge, Matt
You will need to do some more triaging.  Suggestions for things to investigate 
more deeply:  http Log files, system log files, system performance monitoring, 
connection statistics, source of traffic, TCP performance tuning, firewall 
control, protection against DOS attacks... and that's just off the top.

You will need to profile the system using a myriad of tools that suit your need 
(e.g. tcpdump, lsof, top, netstat, ss, and a large variety of others, depending 
on what you learn along the way).

Matt.

From: Rose, John B 
Sent: Friday, 29 March 2019 3:56 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Re: Apache web server devouring resources


I don't think the TCP buffer would be clear if there was a continuing flow of 
http requests during that time, whether the web server software was down, or 
maxed out



But maybe I am wrong.






From: Darryl Philip Baker 
mailto:darryl.ba...@northwestern.edu>>
Sent: Thursday, March 28, 2019 1:22:59 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Re: Apache web server devouring resources


No PHP on the system at all. The web server was down for 15-20 minutes so 
anything in the queue should have cleared, right?



Darryl Baker  (he/him/his)

Sr. System Administrator

Distributed Application Platform Services

Northwestern University

1800 Sherman Ave.

Suite 6-600 - Box #39

Evanston, IL  60201-3715

darryl.ba...@northwestern.edu

(847) 467-6674





From: "Rose, John B" mailto:jbr...@utk.edu>>
Reply-To: "users@httpd.apache.org" 
mailto:users@httpd.apache.org>>
Date: Thursday, March 28, 2019 at 11:32 AM
To: "users@httpd.apache.org" 
mailto:users@httpd.apache.org>>
Subject: [users@httpd] Re: Apache web server devouring resources



Regarding the "load increasing quickly after restarting the daemons" ...



I do not believe just restarting the daemons clears the TCP queue. Nor does it 
prevent new TCP requests. If it is an attack, then the load would ramp back up 
immediately. That is why you have to reboot I am guessing.

Do you utilize PHP? PHP-FPM? Do you use TCP or Unix Domain sockets?



Are there a preponderance of http connections or PHP-FPM processes, or both?



If PHP-FPM do you use "static" "dynamic" or "ondemand"?



From: Darryl Philip Baker 
mailto:darryl.ba...@northwestern.edu>>
Sent: Thursday, March 28, 2019 12:11:27 PM
To: users@httpd.apache.org
Subject: [users@httpd] Apache web server devouring resources



Gentlefolk,

I had an incident yesterday where the Apache web server host had a load average 
of over 170 and was performing very slowly. Stopping the web server did fix the 
issue but when I restarted the daemons the load started to increase very 
quickly. I ended up having to reboot the system to fix the issue. I don't like 
that one bit, this is a Linux system not a Windows server. (Editorial remark: I 
have found that systems need reboots to fix stuff much more frequently since 
the adoption of systemd) I have been asked to do a root cause analysis, but I 
have not found anything as of yet. I am reaching out for help in this matter.



The system is a RHEL7 ESX VM with the Red Hat's main line distribution of 
Apache 2.4 as opposed to the RHSCL version. The configuration is quite complex 
and a bit sensitive so I cannot share all of that. What I'm looking for is 
technics to look at what happened rather than being given the answer anyway.



Darryl Baker  (he/him/his)

Sr. System Administrator

Distributed Application Platform Services

Northwestern University

1800 Sherman Ave.

Suite 6-600 - Box #39

Evanston, IL  60201-3715

darryl.ba...@northwestern.edu

(847) 467-6674




Re: [users@httpd] Re: Apache web server devouring resources

2019-03-28 Thread Rose, John B
I don't think the TCP buffer would be clear if there was a continuing flow of 
http requests during that time, whether the web server software was down, or 
maxed out


But maybe I am wrong.




From: Darryl Philip Baker 
Sent: Thursday, March 28, 2019 1:22:59 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Re: Apache web server devouring resources


No PHP on the system at all. The web server was down for 15-20 minutes so 
anything in the queue should have cleared, right?



Darryl Baker  (he/him/his)

Sr. System Administrator

Distributed Application Platform Services

Northwestern University

1800 Sherman Ave.

Suite 6-600 – Box #39

Evanston, IL  60201-3715

darryl.ba...@northwestern.edu

(847) 467-6674





From: "Rose, John B" 
Reply-To: "users@httpd.apache.org" 
Date: Thursday, March 28, 2019 at 11:32 AM
To: "users@httpd.apache.org" 
Subject: [users@httpd] Re: Apache web server devouring resources



Regarding the "load increasing quickly after restarting the daemons" ...



I do not believe just restarting the daemons clears the TCP queue. Nor does it 
prevent new TCP requests. If it is an attack, then the load would ramp back up 
immediately. That is why you have to reboot I am guessing.

Do you utilize PHP? PHP-FPM? Do you use TCP or Unix Domain sockets?



Are there a preponderance of http connections or PHP-FPM processes, or both?



If PHP-FPM do you use "static" "dynamic" or "ondemand"?



From: Darryl Philip Baker 
Sent: Thursday, March 28, 2019 12:11:27 PM
To: users@httpd.apache.org
Subject: [users@httpd] Apache web server devouring resources



Gentlefolk,

I had an incident yesterday where the Apache web server host had a load average 
of over 170 and was performing very slowly. Stopping the web server did fix the 
issue but when I restarted the daemons the load started to increase very 
quickly. I ended up having to reboot the system to fix the issue. I don’t like 
that one bit, this is a Linux system not a Windows server. (Editorial remark: I 
have found that systems need reboots to fix stuff much more frequently since 
the adoption of systemd) I have been asked to do a root cause analysis, but I 
have not found anything as of yet. I am reaching out for help in this matter.



The system is a RHEL7 ESX VM with the Red Hat’s main line distribution of 
Apache 2.4 as opposed to the RHSCL version. The configuration is quite complex 
and a bit sensitive so I cannot share all of that. What I’m looking for is 
technics to look at what happened rather than being given the answer anyway.



Darryl Baker  (he/him/his)

Sr. System Administrator

Distributed Application Platform Services

Northwestern University

1800 Sherman Ave.

Suite 6-600 – Box #39

Evanston, IL  60201-3715

darryl.ba...@northwestern.edu

(847) 467-6674




Re: [users@httpd] Does Apache do a "graceful" automatically over time?

2019-03-28 Thread Eric Covener
> There is a possibility. If you are using MPM and have set a non-zero
> value for MaxConnectionsPerChild, this can happen. Once
> MaxConnectionsPerChild limit is reached, that child server will be
> terminated and a new one will be started. Do you have that in your
> config?

If there's a replacement process, it inherits the old configuration,
not the one that's currently on-disk.

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



Re: [users@httpd] Re: Apache web server devouring resources

2019-03-28 Thread Darryl Philip Baker
Here you go:
mpm_worker
MinSpareThreads 40
ThreadsPerChild 25
StartServers 10
ServerLimit 250
MaxConnectionsPerChild 0
MaxRequestWorkers 6000
MaxSpareThreads 6000

Darryl Baker  (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
1800 Sherman Ave.
Suite 6-600 – Box #39
Evanston, IL  60201-3715
darryl.ba...@northwestern.edu
(847) 467-6674


From: Daniel Ferradal 
Reply-To: "users@httpd.apache.org" 
Date: Thursday, March 28, 2019 at 12:02 PM
To: "" 
Subject: Re: [users@httpd] Re: Apache web server devouring resources

Have you tried mod_status? That would clearly tell you which threads eat 
resources for you.


You can share the mpm you are using ,the values you have configured for then, 
also the list of modules you load, and the actual load you receive. That alone 
can give great hints about a likely culprit.


El jue., 28 mar. 2019 17:31, Rose, John B 
mailto:jbr...@utk.edu>> escribió:

Regarding the "load increasing quickly after restarting the daemons" ...



I do not believe just restarting the daemons clears the TCP queue. Nor does it 
prevent new TCP requests. If it is an attack, then the load would ramp back up 
immediately. That is why you have to reboot I am guessing.

Do you utilize PHP? PHP-FPM? Do you use TCP or Unix Domain sockets?



Are there a preponderance of http connections or PHP-FPM processes, or both?



If PHP-FPM do you use "static" "dynamic" or "ondemand"?


From: Darryl Philip Baker 
mailto:darryl.ba...@northwestern.edu>>
Sent: Thursday, March 28, 2019 12:11:27 PM
To: users@httpd.apache.org
Subject: [users@httpd] Apache web server devouring resources


Gentlefolk,

I had an incident yesterday where the Apache web server host had a load average 
of over 170 and was performing very slowly. Stopping the web server did fix the 
issue but when I restarted the daemons the load started to increase very 
quickly. I ended up having to reboot the system to fix the issue. I don’t like 
that one bit, this is a Linux system not a Windows server. (Editorial remark: I 
have found that systems need reboots to fix stuff much more frequently since 
the adoption of systemd) I have been asked to do a root cause analysis, but I 
have not found anything as of yet. I am reaching out for help in this matter.



The system is a RHEL7 ESX VM with the Red Hat’s main line distribution of 
Apache 2.4 as opposed to the RHSCL version. The configuration is quite complex 
and a bit sensitive so I cannot share all of that. What I’m looking for is 
technics to look at what happened rather than being given the answer anyway.



Darryl Baker  (he/him/his)

Sr. System Administrator

Distributed Application Platform Services

Northwestern University

1800 Sherman Ave.

Suite 6-600 – Box #39

Evanston, IL  60201-3715

darryl.ba...@northwestern.edu

(847) 467-6674




Re: [users@httpd] Re: Apache web server devouring resources

2019-03-28 Thread Darryl Philip Baker
No PHP on the system at all. The web server was down for 15-20 minutes so 
anything in the queue should have cleared, right?

Darryl Baker  (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
1800 Sherman Ave.
Suite 6-600 – Box #39
Evanston, IL  60201-3715
darryl.ba...@northwestern.edu
(847) 467-6674


From: "Rose, John B" 
Reply-To: "users@httpd.apache.org" 
Date: Thursday, March 28, 2019 at 11:32 AM
To: "users@httpd.apache.org" 
Subject: [users@httpd] Re: Apache web server devouring resources


Regarding the "load increasing quickly after restarting the daemons" ...



I do not believe just restarting the daemons clears the TCP queue. Nor does it 
prevent new TCP requests. If it is an attack, then the load would ramp back up 
immediately. That is why you have to reboot I am guessing.

Do you utilize PHP? PHP-FPM? Do you use TCP or Unix Domain sockets?



Are there a preponderance of http connections or PHP-FPM processes, or both?



If PHP-FPM do you use "static" "dynamic" or "ondemand"?


From: Darryl Philip Baker 
Sent: Thursday, March 28, 2019 12:11:27 PM
To: users@httpd.apache.org
Subject: [users@httpd] Apache web server devouring resources


Gentlefolk,

I had an incident yesterday where the Apache web server host had a load average 
of over 170 and was performing very slowly. Stopping the web server did fix the 
issue but when I restarted the daemons the load started to increase very 
quickly. I ended up having to reboot the system to fix the issue. I don’t like 
that one bit, this is a Linux system not a Windows server. (Editorial remark: I 
have found that systems need reboots to fix stuff much more frequently since 
the adoption of systemd) I have been asked to do a root cause analysis, but I 
have not found anything as of yet. I am reaching out for help in this matter.



The system is a RHEL7 ESX VM with the Red Hat’s main line distribution of 
Apache 2.4 as opposed to the RHSCL version. The configuration is quite complex 
and a bit sensitive so I cannot share all of that. What I’m looking for is 
technics to look at what happened rather than being given the answer anyway.



Darryl Baker  (he/him/his)

Sr. System Administrator

Distributed Application Platform Services

Northwestern University

1800 Sherman Ave.

Suite 6-600 – Box #39

Evanston, IL  60201-3715

darryl.ba...@northwestern.edu

(847) 467-6674




Re: [users@httpd] Re: Apache web server devouring resources

2019-03-28 Thread Daniel Ferradal
Have you tried mod_status? That would clearly tell you which threads eat
resources for you.


You can share the mpm you are using ,the values you have configured for
then, also the list of modules you load, and the actual load you receive.
That alone can give great hints about a likely culprit.


El jue., 28 mar. 2019 17:31, Rose, John B  escribió:

> Regarding the "load increasing quickly after restarting the daemons" ...
>
>
> I do not believe just restarting the daemons clears the TCP queue. Nor
> does it prevent new TCP requests. If it is an attack, then the load would
> ramp back up immediately. That is why you have to reboot I am guessing.
>
> Do you utilize PHP? PHP-FPM? Do you use TCP or Unix Domain sockets?
>
>
> Are there a preponderance of http connections or PHP-FPM processes, or
> both?
>
>
> If PHP-FPM do you use "static" "dynamic" or "ondemand"?
> --
> *From:* Darryl Philip Baker 
> *Sent:* Thursday, March 28, 2019 12:11:27 PM
> *To:* users@httpd.apache.org
> *Subject:* [users@httpd] Apache web server devouring resources
>
>
> Gentlefolk,
>
> I had an incident yesterday where the Apache web server host had a load
> average of over 170 and was performing very slowly. Stopping the web server
> did fix the issue but when I restarted the daemons the load started to
> increase very quickly. I ended up having to reboot the system to fix the
> issue. I don’t like that one bit, this is a Linux system not a Windows
> server. (Editorial remark: I have found that systems need reboots to fix
> stuff much more frequently since the adoption of systemd) I have been asked
> to do a root cause analysis, but I have not found anything as of yet. I am
> reaching out for help in this matter.
>
>
>
> The system is a RHEL7 ESX VM with the Red Hat’s main line distribution of
> Apache 2.4 as opposed to the RHSCL version. The configuration is quite
> complex and a bit sensitive so I cannot share all of that. What I’m looking
> for is technics to look at what happened rather than being given the answer
> anyway.
>
>
>
> *Darryl Baker * (he/him/his)
>
> Sr. System Administrator
>
> Distributed Application Platform Services
>
> *Northwestern University*
>
> 1800 Sherman Ave.
>
> Suite 6-600 – Box #39
>
> Evanston, IL  60201-3715
>
> *darryl.ba...@northwestern.edu *
>
> (847) 467-6674
>
>
>


Re: [users@httpd] Apache web server devouring resources

2019-03-28 Thread Jim Albert

On 3/28/2019 12:11 PM, Darryl Philip Baker wrote:


Gentlefolk,

I had an incident yesterday where the Apache web server host had a 
load average of over 170 and was performing very slowly. Stopping the 
web server did fix the issue but when I restarted the daemons the load 
started to increase very quickly. I ended up having to reboot the 
system to fix the issue. I don’t like that one bit, this is a Linux 
system not a Windows server. (Editorial remark: I have found that 
systems need reboots to fix stuff much more frequently since the 
adoption of systemd) I have been asked to do a root cause analysis, 
but I have not found anything as of yet. I am reaching out for help in 
this matter.


The system is a RHEL7 ESX VM with the Red Hat’s main line distribution 
of Apache 2.4 as opposed to the RHSCL version. The configuration is 
quite complex and a bit sensitive so I cannot share all of that. What 
I’m looking for is technics to look at what happened rather than being 
given the answer anyway.


*Darryl Baker * (he/him/his)

Sr. System Administrator

Distributed Application Platform Services

*Northwestern University*

1800 Sherman Ave.

Suite 6-600 – Box #39

Evanston, IL  60201-3715

_darryl.ba...@northwestern.edu _

(847) 467-6674



First thing would be to check request logs during time of high load. I 
assume this is a public web server. Perhaps you were being probed heavily.


Jim



[users@httpd] Re: Apache web server devouring resources

2019-03-28 Thread Rose, John B
Regarding the "load increasing quickly after restarting the daemons" ...


I do not believe just restarting the daemons clears the TCP queue. Nor does it 
prevent new TCP requests. If it is an attack, then the load would ramp back up 
immediately. That is why you have to reboot I am guessing.


Do you utilize PHP? PHP-FPM? Do you use TCP or Unix Domain sockets?


Are there a preponderance of http connections or PHP-FPM processes, or both?


If PHP-FPM do you use "static" "dynamic" or "ondemand"?


From: Darryl Philip Baker 
Sent: Thursday, March 28, 2019 12:11:27 PM
To: users@httpd.apache.org
Subject: [users@httpd] Apache web server devouring resources


Gentlefolk,

I had an incident yesterday where the Apache web server host had a load average 
of over 170 and was performing very slowly. Stopping the web server did fix the 
issue but when I restarted the daemons the load started to increase very 
quickly. I ended up having to reboot the system to fix the issue. I don’t like 
that one bit, this is a Linux system not a Windows server. (Editorial remark: I 
have found that systems need reboots to fix stuff much more frequently since 
the adoption of systemd) I have been asked to do a root cause analysis, but I 
have not found anything as of yet. I am reaching out for help in this matter.



The system is a RHEL7 ESX VM with the Red Hat’s main line distribution of 
Apache 2.4 as opposed to the RHSCL version. The configuration is quite complex 
and a bit sensitive so I cannot share all of that. What I’m looking for is 
technics to look at what happened rather than being given the answer anyway.



Darryl Baker  (he/him/his)

Sr. System Administrator

Distributed Application Platform Services

Northwestern University

1800 Sherman Ave.

Suite 6-600 – Box #39

Evanston, IL  60201-3715

darryl.ba...@northwestern.edu

(847) 467-6674




[users@httpd] Apache web server devouring resources

2019-03-28 Thread Darryl Philip Baker
Gentlefolk,
I had an incident yesterday where the Apache web server host had a load average 
of over 170 and was performing very slowly. Stopping the web server did fix the 
issue but when I restarted the daemons the load started to increase very 
quickly. I ended up having to reboot the system to fix the issue. I don’t like 
that one bit, this is a Linux system not a Windows server. (Editorial remark: I 
have found that systems need reboots to fix stuff much more frequently since 
the adoption of systemd) I have been asked to do a root cause analysis, but I 
have not found anything as of yet. I am reaching out for help in this matter.

The system is a RHEL7 ESX VM with the Red Hat’s main line distribution of 
Apache 2.4 as opposed to the RHSCL version. The configuration is quite complex 
and a bit sensitive so I cannot share all of that. What I’m looking for is 
technics to look at what happened rather than being given the answer anyway.

Darryl Baker  (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
1800 Sherman Ave.
Suite 6-600 – Box #39
Evanston, IL  60201-3715
darryl.ba...@northwestern.edu
(847) 467-6674



Re: [users@httpd] Does Apache do a "graceful" automatically over time?

2019-03-28 Thread Suvendu Sekhar Mondal
John,

On Thu, Mar 28, 2019 at 1:23 AM Rose, John B  wrote:
>
> As always, a "thank you" to everyone that works on Apache.
>
>
> Some background and resultant question ...
>
>
> We had made some changes in the afternoon to some virtual host configs that 
> we intended to implement the next morning with a graceful restart of Apache.
>
>
> That was going to be coordinated with a restart of php-fm which had to be 
> done before the graceful of Apache
>
>
> Anyway, the next morning the sites utilizing PHP were getting a 503 error 
> before we restarted anything. It seems as though Apache must have implemented 
> the virtual host config changes sometime between the previous afternoon and 
> the next morning. But no one had manually done the graceful.
>
>
> Does Apache do a "graceful" restart automatically over time?
>

There is a possibility. If you are using MPM and have set a non-zero
value for MaxConnectionsPerChild, this can happen. Once
MaxConnectionsPerChild limit is reached, that child server will be
terminated and a new one will be started. Do you have that in your
config?

>
>
>

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



[users@httpd] mod_echo configuration

2019-03-28 Thread anthony

Hello,

I am new on this mailing list and I hope to find an answer on my apache2 
configuration problem.


My OS : Linux openSUSE 15.2 64 bit
Apache : apache2 2.4.33 standard install
   browser url : local host --> It works!

I try to use apache as a echo server for telnet.

reading https://httpd.apache.org/docs/2.4/mod/mod_echo.html
"It provides a simple echo server. Telnet to it and type stuff, and it 
will echo it."


What I did : # a2enmod echo
# apache2ctl -M  --> see : echo_module (shared)
# edit /etc/apache2/global.conf --> add : ProtocolEcho On
# apache2ctl restart

Test:
# telnet localhost --> connection refused
# telnet localhost 80 --> ... Bad request! ...

The firewall is disabled.

Reading the manual and google I am not able to correctly configure this.
Can you assist me or give a hint?
Anthony


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