[users@httpd] Newbie - SSL Apache2 Ubuntu

2018-05-11 Thread Deepak Goel
Hello

Is there a start-to-finish guide on how to integrate SSL with Apache2 on
Ubuntu?

Thank you
Deepak


Deepak
"The greatness of a nation can be judged by the way its animals are
treated. Please stop cruelty to Animals, become a Vegan"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


[users@httpd] Installation Error in Apache2

2018-05-12 Thread Deepak Goel
Hello

When I try to install Apache2 on Ubuntu using the command

"sudo apt-get install apache2 apache2-doc apache2-utils"

It throws up the following error:

*Syntax error on line 17 of /etc/apache2/sites-enabled/000-default.conf*
*SSLv3 not supported by this version of OpenSSL*
*Action 'configtest' failed*

Anyone has any clue on how to resolve the error?

Thank You
Deepak



Deepak
"The greatness of a nation can be judged by the way its animals are
treated. Please stop cruelty to Animals, become a Vegan"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


Re: [users@httpd] Installation Error in Apache2

2018-05-12 Thread Deepak Goel
On Sat, May 12, 2018 at 2:25 PM, Nick Kew  wrote:

>
> > On 12 May 2018, at 09:33, Deepak Goel  wrote:
> >
> > Anyone has any clue on how to resolve the error?
>
> Looks clear enough to me.  Either turn off SSL, or update your OpenSSL
> install.
>
>
I need SSL so I wouldn't like to turn it off. I tried updating OpenSSL, but
it told me it is the latest


> If this was a first-time install of any "apache2" package


There was apache2 installed. I removed it and then got it to install it
again


> , and if your OpenSSL
> is also ubuntu's package (as opposed to your own or a third-party)


Yes, OpenSSL was Ubuntu's package. Any way around this?

Thanks :)


> , then it
> looks like a ubuntu bug: they should either fix their OpenSSL package
> dependency or not load SSL by default.
>
> --
> Nick Kew
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>





Deepak
"The greatness of a nation can be judged by the way its animals are
treated. Please stop cruelty to Animals, become a Vegan"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


Re: [users@httpd] Installation Error in Apache2

2018-05-12 Thread Deepak Goel
I have already raised it with Ubuntu but am yet to get a response

On Sun, 13 May 2018, 01:02 Frank Gingras,  wrote:

> So, just to confirm, you had a lingering config file that was trying to
> use SSLv3 prior?
>
> If not, please file a bug with the ubuntu package maintainer, as Nik
> pointed out.
>
> On Sat, May 12, 2018 at 5:01 AM Deepak Goel  wrote:
>
>> On Sat, May 12, 2018 at 2:25 PM, Nick Kew  wrote:
>>
>>>
>>> > On 12 May 2018, at 09:33, Deepak Goel  wrote:
>>> >
>>> > Anyone has any clue on how to resolve the error?
>>>
>>> Looks clear enough to me.  Either turn off SSL, or update your OpenSSL
>>> install.
>>>
>>>
>> I need SSL so I wouldn't like to turn it off. I tried updating OpenSSL,
>> but it told me it is the latest
>>
>>
>>> If this was a first-time install of any "apache2" package
>>
>>
>> There was apache2 installed. I removed it and then got it to install it
>> again
>>
>>
>>> , and if your OpenSSL
>>> is also ubuntu's package (as opposed to your own or a third-party)
>>
>>
>> Yes, OpenSSL was Ubuntu's package. Any way around this?
>>
>> Thanks :)
>>
>>
>>> , then it
>>> looks like a ubuntu bug: they should either fix their OpenSSL package
>>> dependency or not load SSL by default.
>>>
>>> --
>>> Nick Kew
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>
>>>
>>
>>
>>
>>
>>
>> Deepak
>> "The greatness of a nation can be judged by the way its animals are
>> treated. Please stop cruelty to Animals, become a Vegan"
>>
>> +91 73500 12833
>> deic...@gmail.com
>>
>> Facebook: https://www.facebook.com/deicool
>> LinkedIn: www.linkedin.com/in/deicool
>>
>> "Plant a Tree, Go Green"
>>
>> Make In India : http://www.makeinindia.com/home
>>
>>
>>
>>


Re: [users@httpd] Installation Error in Apache2

2018-05-13 Thread Deepak Goel
Removing SSLv3 parameter gives the following error:

*SSLRandomseed cannot occur within  section*
*Action configtest failed*





Deepak
"The greatness of a nation can be judged by the way its animals are
treated. Please stop cruelty to Animals, become a Vegan"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home

On Sun, May 13, 2018 at 11:04 AM, Daniel  wrote:

> Just do what Frank says and look for the directive SSLProtocols and remove
> SSLv3 parameter
>
> El sáb., 12 may. 2018 21:40, Deepak Goel  escribió:
>
>> I have already raised it with Ubuntu but am yet to get a response
>>
>> On Sun, 13 May 2018, 01:02 Frank Gingras,  wrote:
>>
>>> So, just to confirm, you had a lingering config file that was trying to
>>> use SSLv3 prior?
>>>
>>> If not, please file a bug with the ubuntu package maintainer, as Nik
>>> pointed out.
>>>
>>> On Sat, May 12, 2018 at 5:01 AM Deepak Goel  wrote:
>>>
>>>> On Sat, May 12, 2018 at 2:25 PM, Nick Kew  wrote:
>>>>
>>>>>
>>>>> > On 12 May 2018, at 09:33, Deepak Goel  wrote:
>>>>> >
>>>>> > Anyone has any clue on how to resolve the error?
>>>>>
>>>>> Looks clear enough to me.  Either turn off SSL, or update your OpenSSL
>>>>> install.
>>>>>
>>>>>
>>>> I need SSL so I wouldn't like to turn it off. I tried updating OpenSSL,
>>>> but it told me it is the latest
>>>>
>>>>
>>>>> If this was a first-time install of any "apache2" package
>>>>
>>>>
>>>> There was apache2 installed. I removed it and then got it to install it
>>>> again
>>>>
>>>>
>>>>> , and if your OpenSSL
>>>>> is also ubuntu's package (as opposed to your own or a third-party)
>>>>
>>>>
>>>> Yes, OpenSSL was Ubuntu's package. Any way around this?
>>>>
>>>> Thanks :)
>>>>
>>>>
>>>>> , then it
>>>>> looks like a ubuntu bug: they should either fix their OpenSSL package
>>>>> dependency or not load SSL by default.
>>>>>
>>>>> --
>>>>> Nick Kew
>>>>> -
>>>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Deepak
>>>> "The greatness of a nation can be judged by the way its animals are
>>>> treated. Please stop cruelty to Animals, become a Vegan"
>>>>
>>>> +91 73500 12833
>>>> deic...@gmail.com
>>>>
>>>> Facebook: https://www.facebook.com/deicool
>>>> LinkedIn: www.linkedin.com/in/deicool
>>>>
>>>> "Plant a Tree, Go Green"
>>>>
>>>> Make In India : http://www.makeinindia.com/home
>>>>
>>>>
>>>>
>>>>


Re: [users@httpd] Installation Error in Apache2

2018-05-13 Thread Deepak Goel
I am a newbie so sorry to test your patience.

How to go about getting a fresh installation of Apache2 on my Ubuntu box
which supports SSL? (Please note there might be an earlier broken Apach2
installation. How do I clean this up? And then go about installing a fresh
installation)

Thank You very much



Deepak
"The greatness of a nation can be judged by the way its animals are
treated. Please stop cruelty to Animals, become a Vegan"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home

On Mon, May 14, 2018 at 12:26 AM, Yehuda Katz  wrote:

> Each configuration directive is valid in specific parts of the
> configuration.
> Look at "Context" in the manual: https://httpd.apache.
> org/docs/2.4/mod/directive-dict.html#Context
>
> For this specific case, https://httpd.apache.
> org/docs/2.4/mod/mod_ssl.html#sslrandomseed
> SSLRandomSeed can only be in the global server config, not in a
> .
>
> - Y
>
> On Sun, May 13, 2018 at 12:08 PM, Deepak Goel  wrote:
>
>> Removing SSLv3 parameter gives the following error:
>>
>> *SSLRandomseed cannot occur within  section*
>> *Action configtest failed*
>>
>>
>>
>>
>>
>> Deepak
>> "The greatness of a nation can be judged by the way its animals are
>> treated. Please stop cruelty to Animals, become a Vegan"
>>
>> +91 73500 12833
>> deic...@gmail.com
>>
>> Facebook: https://www.facebook.com/deicool
>> LinkedIn: www.linkedin.com/in/deicool
>>
>> "Plant a Tree, Go Green"
>>
>> Make In India : http://www.makeinindia.com/home
>>
>> On Sun, May 13, 2018 at 11:04 AM, Daniel  wrote:
>>
>>> Just do what Frank says and look for the directive SSLProtocols and
>>> remove SSLv3 parameter
>>>
>>> El sáb., 12 may. 2018 21:40, Deepak Goel  escribió:
>>>
>>>> I have already raised it with Ubuntu but am yet to get a response
>>>>
>>>> On Sun, 13 May 2018, 01:02 Frank Gingras,  wrote:
>>>>
>>>>> So, just to confirm, you had a lingering config file that was trying
>>>>> to use SSLv3 prior?
>>>>>
>>>>> If not, please file a bug with the ubuntu package maintainer, as Nik
>>>>> pointed out.
>>>>>
>>>>> On Sat, May 12, 2018 at 5:01 AM Deepak Goel  wrote:
>>>>>
>>>>>> On Sat, May 12, 2018 at 2:25 PM, Nick Kew  wrote:
>>>>>>
>>>>>>>
>>>>>>> > On 12 May 2018, at 09:33, Deepak Goel  wrote:
>>>>>>> >
>>>>>>> > Anyone has any clue on how to resolve the error?
>>>>>>>
>>>>>>> Looks clear enough to me.  Either turn off SSL, or update your
>>>>>>> OpenSSL install.
>>>>>>>
>>>>>>>
>>>>>> I need SSL so I wouldn't like to turn it off. I tried updating
>>>>>> OpenSSL, but it told me it is the latest
>>>>>>
>>>>>>
>>>>>>> If this was a first-time install of any "apache2" package
>>>>>>
>>>>>>
>>>>>> There was apache2 installed. I removed it and then got it to install
>>>>>> it again
>>>>>>
>>>>>>
>>>>>>> , and if your OpenSSL
>>>>>>> is also ubuntu's package (as opposed to your own or a third-party)
>>>>>>
>>>>>>
>>>>>> Yes, OpenSSL was Ubuntu's package. Any way around this?
>>>>>>
>>>>>> Thanks :)
>>>>>>
>>>>>>
>>>>>>> , then it
>>>>>>> looks like a ubuntu bug: they should either fix their OpenSSL package
>>>>>>> dependency or not load SSL by default.
>>>>>>>
>>>>>>> --
>>>>>>> Nick Kew
>>>>>>> 
>>>>>>> -
>>>>>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>>>>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Deepak
>>>>>> "The greatness of a nation can be judged by the way its animals are
>>>>>> treated. Please stop cruelty to Animals, become a Vegan"
>>>>>>
>>>>>> +91 73500 12833
>>>>>> deic...@gmail.com
>>>>>>
>>>>>> Facebook: https://www.facebook.com/deicool
>>>>>> LinkedIn: www.linkedin.com/in/deicool
>>>>>>
>>>>>> "Plant a Tree, Go Green"
>>>>>>
>>>>>> Make In India : http://www.makeinindia.com/home
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>
>


Re: [users@httpd] Installation Error in Apache2

2018-05-13 Thread Deepak Goel
The purge worked! Thank You Y :)

Deepak
"The greatness of a nation can be judged by the way its animals are
treated. Please stop cruelty to Animals, become a Vegan"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home

On Mon, May 14, 2018 at 1:08 AM, Yehuda Katz  wrote:

> Since none of us can see your server, we can't tell you exactly what you
> need.
> If you installed it with apt, you can run apt purge apache2
> If you installed it some other way, we can't help you.
>
> - Y
>
> On Sun, May 13, 2018 at 3:33 PM, Deepak Goel  wrote:
>
>> I am a newbie so sorry to test your patience.
>>
>> How to go about getting a fresh installation of Apache2 on my Ubuntu box
>> which supports SSL? (Please note there might be an earlier broken Apach2
>> installation. How do I clean this up? And then go about installing a fresh
>> installation)
>>
>> Thank You very much
>>
>>
>>
>> Deepak
>> "The greatness of a nation can be judged by the way its animals are
>> treated. Please stop cruelty to Animals, become a Vegan"
>>
>> +91 73500 12833
>> deic...@gmail.com
>>
>> Facebook: https://www.facebook.com/deicool
>> LinkedIn: www.linkedin.com/in/deicool
>>
>> "Plant a Tree, Go Green"
>>
>> Make In India : http://www.makeinindia.com/home
>>
>> On Mon, May 14, 2018 at 12:26 AM, Yehuda Katz  wrote:
>>
>>> Each configuration directive is valid in specific parts of the
>>> configuration.
>>> Look at "Context" in the manual: https://httpd.apache.o
>>> rg/docs/2.4/mod/directive-dict.html#Context
>>>
>>> For this specific case, https://httpd.apache.org
>>> /docs/2.4/mod/mod_ssl.html#sslrandomseed
>>> SSLRandomSeed can only be in the global server config, not in a
>>> .
>>>
>>> - Y
>>>
>>> On Sun, May 13, 2018 at 12:08 PM, Deepak Goel  wrote:
>>>
>>>> Removing SSLv3 parameter gives the following error:
>>>>
>>>> *SSLRandomseed cannot occur within  section*
>>>> *Action configtest failed*
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Deepak
>>>> "The greatness of a nation can be judged by the way its animals are
>>>> treated. Please stop cruelty to Animals, become a Vegan"
>>>>
>>>> +91 73500 12833
>>>> deic...@gmail.com
>>>>
>>>> Facebook: https://www.facebook.com/deicool
>>>> LinkedIn: www.linkedin.com/in/deicool
>>>>
>>>> "Plant a Tree, Go Green"
>>>>
>>>> Make In India : http://www.makeinindia.com/home
>>>>
>>>> On Sun, May 13, 2018 at 11:04 AM, Daniel  wrote:
>>>>
>>>>> Just do what Frank says and look for the directive SSLProtocols and
>>>>> remove SSLv3 parameter
>>>>>
>>>>> El sáb., 12 may. 2018 21:40, Deepak Goel  escribió:
>>>>>
>>>>>> I have already raised it with Ubuntu but am yet to get a response
>>>>>>
>>>>>> On Sun, 13 May 2018, 01:02 Frank Gingras,  wrote:
>>>>>>
>>>>>>> So, just to confirm, you had a lingering config file that was trying
>>>>>>> to use SSLv3 prior?
>>>>>>>
>>>>>>> If not, please file a bug with the ubuntu package maintainer, as Nik
>>>>>>> pointed out.
>>>>>>>
>>>>>>> On Sat, May 12, 2018 at 5:01 AM Deepak Goel 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> On Sat, May 12, 2018 at 2:25 PM, Nick Kew  wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> > On 12 May 2018, at 09:33, Deepak Goel  wrote:
>>>>>>>>> >
>>>>>>>>> > Anyone has any clue on how to resolve the error?
>>>>>>>>>
>>>>>>>>> Looks clear enough to me.  Either turn off SSL, or update your
>>>>>>>>> OpenSSL install.
>>>>>>>>>
>>>>>>>>>
>>>>>>>> I need SSL so I wouldn't like to turn it off. I tried updating
>>>>>>>> OpenSSL, but it told me it is the latest
>>>>>>>>
>>>>>>>>
>>>>>>>>> If this was a first-time install of any "apache2" package
>>>>>>>>
>>>>>>>>
>>>>>>>> There was apache2 installed. I removed it and then got it to
>>>>>>>> install it again
>>>>>>>>
>>>>>>>>
>>>>>>>>> , and if your OpenSSL
>>>>>>>>> is also ubuntu's package (as opposed to your own or a third-party)
>>>>>>>>
>>>>>>>>
>>>>>>>> Yes, OpenSSL was Ubuntu's package. Any way around this?
>>>>>>>>
>>>>>>>> Thanks :)
>>>>>>>>
>>>>>>>>
>>>>>>>>> , then it
>>>>>>>>> looks like a ubuntu bug: they should either fix their OpenSSL
>>>>>>>>> package
>>>>>>>>> dependency or not load SSL by default.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Nick Kew
>>>>>>>>> 
>>>>>>>>> -
>>>>>>>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>>>>>>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Deepak
>>>>>>>> "The greatness of a nation can be judged by the way its animals
>>>>>>>> are treated. Please stop cruelty to Animals, become a Vegan"
>>>>>>>>
>>>>>>>> +91 73500 12833
>>>>>>>> deic...@gmail.com
>>>>>>>>
>>>>>>>> Facebook: https://www.facebook.com/deicool
>>>>>>>> LinkedIn: www.linkedin.com/in/deicool
>>>>>>>>
>>>>>>>> "Plant a Tree, Go Green"
>>>>>>>>
>>>>>>>> Make In India : http://www.makeinindia.com/home
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>
>>>
>>
>


Re: [users@httpd] Can apache http server handle millions of static pages or pictures ?

2018-11-03 Thread Deepak Goel
I would start with first finding out "which of the pages are called the
most" (I doubt all the million pages are called the same number of times -
it is highly likely that only 20% of the pages generate 80% of the traffic)
. So I would just create static pages for only the <20% of the dynamic
pages.


Deepak
"The greatness of a nation can be judged by the way its animals are
treated. Please consider stopping the cruelty by becoming a Vegan"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Fri, Nov 2, 2018 at 8:23 AM chuyifan  wrote:

> I have a website with millions of pages. The content on the page stored in
> database but the data is not changed very frequently. so for the sake of
> improving the performance of the website and reducing the costs of
> deployment of web applications, I want to generate the static pages for the
> dynamic content and refresh the pages if the contents are changed. But I am
> very concerned about how to manage these large amount of pages. how should
> I
> store these pages? I plan to use Apache http server to manage these pages.
> Is it possible that it will cause IO problems when the web server handle
> many requests? What is the capability of handing requests for Apache http
> Server ? Is there any better solutions for this issue?
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] Issue with Apache 2.4.51 hanging

2021-10-19 Thread Deepak Goel
Hi

Looks like the step 2 in your process is not working in the upgraded
version of apache.

Therefore it is vomiting out the following:
 server reached MaxRequestWorkers setting, consider raising the
MaxRequestWorkers setting

Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Mon, Oct 18, 2021 at 2:57 PM Patrick Verdon 
wrote:

> Hi All,
>
> I'd appreciate some feedback on an issue I'm experiencing. I've spent
> quite some time researching the problem as it causes a serious outage in
> our application. I've searched the Web, Stack Overflow, this list's mail
> archives, the latest Apache bugs, and more, but have not been able to find
> any reports of a similar issue.
>
> Background. I'm running the latest Apache 2.4.51 on Amazon Linux with
> mod_proxy, mod_php and mod_ssl with varnish in front. Some requests to our
> application take about 45 seconds to complete so there is a warm-up cache
> procedure at regular intervals during the day which primes the varnish
> cache. The following steps reliably cause Apache to hang, requiring a
> manual restart:
>
>1. Varnish cache is cleared, causing spike in load on httpd
>2. Warm-up cache process kicks off with 2 long running requests (45
>seconds each). This is a PHP application running under mod_php - each
>process grows up to 700 MB, so the application kills the httpd child
>process at the end to release the memory, using posix_kill(PID, 28).
>3. Apache hangs and does not recover. Varnish serves 503s.
>4. Manual restart required: service httpd restart
>5. Errors in the log show that 2 children had segmentation faults,
>presumably the 2 with long running processes.
>
>
> Albeit ugly, this process has been running for a year and a half without
> any issues. We traced the date that crashes started to the date Apache was
> upgraded from version 2.4.46 to 2.4.48 and as you can see it's still an
> issue in 2.4.51.
>
> See the error_log below and details about the installation.
>
> Any feedback on where to report this issue would be much appreciated.
>
> Thanks.
>
> Patrick
>
> --
>
> # cat /var/log/httpd/error_log
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> *** Error in `/usr/sbin/httpd': corrupted size vs. prev_size:
> 0x557f94567e4f ***
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> httpd: misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal ==
> 0' failed.
> [Sun Oct 17 15:53:47.990497 2021] [core:notice] [pid 2620] AH00052: child
> pid 3166 exit signal Aborted (6)
> [Sun Oct 17 15:53:47.990531 2021] [core:notice] [pid 2620] AH00052: child
> pid 3483 exit signal Aborted (6)
> [Sun Oct 17 15:53:47.990545 2021] [core:notice] [pid 2620] AH00052: child
> pid 2657 exit signal Aborted (6)
> [Sun Oct 17 15:53:47.990557 2021] [core:notice] [pid 2620] AH00052: child
> pid 2660 exit signal Aborted (6)
> [Sun Oct 17 15:53:47.990568 2021] [core:notice] [pid 2620] AH00052: 

Re: [users@httpd] Issue with Apache 2.4.51 hanging

2021-10-22 Thread Deepak Goel
I guess what you are saying is that the following error happens during
startup and not during normal operation

( [Sun Oct 17 15:53:49.244527 2021] [mpm_prefork:error] [pid 3581] AH00161:
server reached MaxRequestWorkers setting, consider raising the
MaxRequestWorkers setting)


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Fri, Oct 22, 2021 at 2:23 PM Patrick Verdon 
wrote:

> Hi Yann,
>
> Quick update - we've enabled the core dumps but haven't been able to
> reproduce the issue. After removing mod_http2 the first time we were able
> to trigger the crash after 14 attempts but we've since tried over 100 times
> with no luck. We'll keep trying as there's nothing worse than knowing
> there's a bug lurking that can cause a crash.
>
> @Deepak - thanks for your suggestion but hitting MaxRequestWorkers is a
> quirk of our installation, we load the max workers on startup so that the
> PHP application is primed and ready, rather than have Apache spawn lots of
> heavy processes. This is the same configuration we've had for years without
> ever experiencing Apache hanging until the upgrade to 2.4.48.
>
> Thanks.
>
> Patrick
>
> *--*
>
> *Patrick Verdon  |  Founder*
> Web: www.youreko.com
> Mobile: +44 (0)7809 296438
> Skype: patrick_verdon
>
> This entire communication is sent on behalf of
> Youreko Ltd and is strictly confidential to and
> for the sole use of the intended addressee.
>
> Registered in England - 7448349
>
>
>
> On Tue, 19 Oct 2021 at 11:00, Deepak Goel  wrote:
>
>> Hi
>>
>> Looks like the step 2 in your process is not working in the upgraded
>> version of apache.
>>
>> Therefore it is vomiting out the following:
>>  server reached MaxRequestWorkers setting, consider raising the
>> MaxRequestWorkers setting
>>
>> Deepak
>> "The greatness of a nation can be judged by the way its animals are
>> treated - Mahatma Gandhi"
>>
>> +91 73500 12833
>> deic...@gmail.com
>>
>> Facebook: https://www.facebook.com/deicool
>> LinkedIn: www.linkedin.com/in/deicool
>>
>> "Plant a Tree, Go Green"
>>
>> Make In India : http://www.makeinindia.com/home
>>
>>
>> On Mon, Oct 18, 2021 at 2:57 PM Patrick Verdon <
>> patrick.ver...@youreko.com> wrote:
>>
>>> Hi All,
>>>
>>> I'd appreciate some feedback on an issue I'm experiencing. I've spent
>>> quite some time researching the problem as it causes a serious outage in
>>> our application. I've searched the Web, Stack Overflow, this list's mail
>>> archives, the latest Apache bugs, and more, but have not been able to find
>>> any reports of a similar issue.
>>>
>>> Background. I'm running the latest Apache 2.4.51 on Amazon Linux with
>>> mod_proxy, mod_php and mod_ssl with varnish in front. Some requests to our
>>> application take about 45 seconds to complete so there is a warm-up cache
>>> procedure at regular intervals during the day which primes the varnish
>>> cache. The following steps reliably cause Apache to hang, requiring a
>>> manual restart:
>>>
>>>1. Varnish cache is cleared, causing spike in load on httpd
>>>2. Warm-up cache process kicks off with 2 long running requests (45
>>>seconds each). This is a PHP application running under mod_php - each
>>>process grows up to 700 MB, so the application kills the httpd child
>>>process at the end to release the memory, using posix_kill(PID, 28).
>>>3. Apache hangs and does not recover. Varnish serves 503s.
>>>4. Manual restart required: service httpd restart
>>>5. Errors in the log show that 2 children had segmentation faults,
>>>presumably the 2 with long running processes.
>>>
>>>
>>> Albeit ugly, this process has been running for a year and a half without
>>> any issues. We traced the date that crashes started to the date Apache was
>>> upgraded from version 2.4.46 to 2.4.48 and as you can see it's still an
>>> issue in 2.4.51.
>>>
>>> See the error_log below and details about the installation.
>>>
>>> Any feedback on where to report this issue would be much appreciated.
>>>
>>> Thanks.
>>>
>>> Patrick
>>>
>&g

Re: [users@httpd] Issue with Apache 2.4.51 hanging

2021-10-22 Thread Deepak Goel
We will then have to look into what is happening in the step (probably add
debugging code):

Warm-up cache process kicks off with 2 long running requests (45 seconds
each). This is a PHP application running under mod_php - each process grows
up to 700 MB, so the application kills the httpd child process at the end
to release the memory, using posix_kill(PID, 28).


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Fri, Oct 22, 2021 at 3:07 PM Patrick Verdon 
wrote:

> Correct.
>
>
> On Fri, 22 Oct 2021 at 10:35, Deepak Goel  wrote:
>
>> I guess what you are saying is that the following error happens during
>> startup and not during normal operation
>>
>> ( [Sun Oct 17 15:53:49.244527 2021] [mpm_prefork:error] [pid 3581]
>> AH00161: server reached MaxRequestWorkers setting, consider raising the
>> MaxRequestWorkers setting)
>>
>>
>> Deepak
>> "The greatness of a nation can be judged by the way its animals are
>> treated - Mahatma Gandhi"
>>
>> +91 73500 12833
>> deic...@gmail.com
>>
>> Facebook: https://www.facebook.com/deicool
>> LinkedIn: www.linkedin.com/in/deicool
>>
>> "Plant a Tree, Go Green"
>>
>> Make In India : http://www.makeinindia.com/home
>>
>>
>> On Fri, Oct 22, 2021 at 2:23 PM Patrick Verdon <
>> patrick.ver...@youreko.com> wrote:
>>
>>> Hi Yann,
>>>
>>> Quick update - we've enabled the core dumps but haven't been able to
>>> reproduce the issue. After removing mod_http2 the first time we were able
>>> to trigger the crash after 14 attempts but we've since tried over 100 times
>>> with no luck. We'll keep trying as there's nothing worse than knowing
>>> there's a bug lurking that can cause a crash.
>>>
>>> @Deepak - thanks for your suggestion but hitting MaxRequestWorkers is a
>>> quirk of our installation, we load the max workers on startup so that the
>>> PHP application is primed and ready, rather than have Apache spawn lots of
>>> heavy processes. This is the same configuration we've had for years without
>>> ever experiencing Apache hanging until the upgrade to 2.4.48.
>>>
>>> Thanks.
>>>
>>> Patrick
>>>
>>> *--*
>>>
>>> *Patrick Verdon  |  Founder*
>>> Web: www.youreko.com
>>> Mobile: +44 (0)7809 296438
>>> Skype: patrick_verdon
>>>
>>> This entire communication is sent on behalf of
>>> Youreko Ltd and is strictly confidential to and
>>> for the sole use of the intended addressee.
>>>
>>> Registered in England - 7448349
>>>
>>>
>>>
>>> On Tue, 19 Oct 2021 at 11:00, Deepak Goel  wrote:
>>>
>>>> Hi
>>>>
>>>> Looks like the step 2 in your process is not working in the upgraded
>>>> version of apache.
>>>>
>>>> Therefore it is vomiting out the following:
>>>>  server reached MaxRequestWorkers setting, consider raising the
>>>> MaxRequestWorkers setting
>>>>
>>>> Deepak
>>>> "The greatness of a nation can be judged by the way its animals are
>>>> treated - Mahatma Gandhi"
>>>>
>>>> +91 73500 12833
>>>> deic...@gmail.com
>>>>
>>>> Facebook: https://www.facebook.com/deicool
>>>> LinkedIn: www.linkedin.com/in/deicool
>>>>
>>>> "Plant a Tree, Go Green"
>>>>
>>>> Make In India : http://www.makeinindia.com/home
>>>>
>>>>
>>>> On Mon, Oct 18, 2021 at 2:57 PM Patrick Verdon <
>>>> patrick.ver...@youreko.com> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I'd appreciate some feedback on an issue I'm experiencing. I've spent
>>>>> quite some time researching the problem as it causes a serious outage in
>>>>> our application. I've searched the Web, Stack Overflow, this list's mail
>>>>> archives, the latest Apache bugs, and more, but have not been able to find
>>>>> any reports of a similar issue.
>>>>>
>>>>> Background. I'm running the latest Apache 2.4.51 on Amazon Linux with
>>>>> mod_pro

Re: [users@httpd] Httpd using 100% cpu

2021-11-07 Thread Deepak Goel
Hi

What's the load like on the server? And the machine configuration?

On Sun, 7 Nov 2021, 10:16 Prasanth Kodakandla, <
prasanth.kodakan...@gmail.com> wrote:

> Hi ,
> I am seeing that the httpd process is using 100% cpu .
> Apache server is 2.4.6
> below is the config i am using
> 
> ServerLimit 32
> StartServers 6
> MinSpareThreads300
> MaxSpareThreads600
> ThreadsPerChild 50
> MaxRequestWorkers 1600
> MaxConnectionsPerChild   0
> 
>
> using mod_proxy module and reverse proxy to tomcat
> ProxyRequests on
> ProxyPass / http://localhost:8080/
> ProxyPassReverse / http://localhost:8080/
>
> Need help in understanding why this is happening
>
> Thank you
>
>


Re: [users@httpd] Httpd using 100% cpu

2021-11-07 Thread Deepak Goel
Why do you think there is a problem? The machine config is supporting 50
req/sec. Mostly the application is medium complex (If the application was
light, the machine config could have supported 200 req/sec)

On Sun, 7 Nov 2021, 22:37 Prasanth Kodakandla, <
prasanth.kodakan...@gmail.com> wrote:

> Hi,
> load is 50req per sec
> system config is 8 Core cpu with 64 GB RAM
>
>
> On Sun, Nov 7, 2021, 10:57 AM Deepak Goel  wrote:
>
>> Hi
>>
>> What's the load like on the server? And the machine configuration?
>>
>> On Sun, 7 Nov 2021, 10:16 Prasanth Kodakandla, <
>> prasanth.kodakan...@gmail.com> wrote:
>>
>>> Hi ,
>>> I am seeing that the httpd process is using 100% cpu .
>>> Apache server is 2.4.6
>>> below is the config i am using
>>> 
>>> ServerLimit 32
>>> StartServers 6
>>> MinSpareThreads300
>>> MaxSpareThreads600
>>> ThreadsPerChild 50
>>> MaxRequestWorkers 1600
>>> MaxConnectionsPerChild   0
>>> 
>>>
>>> using mod_proxy module and reverse proxy to tomcat
>>> ProxyRequests on
>>> ProxyPass / http://localhost:8080/
>>> ProxyPassReverse / http://localhost:8080/
>>>
>>> Need help in understanding why this is happening
>>>
>>> Thank you
>>>
>>>
>>


Re: [users@httpd] Httpd using 100% cpu

2021-11-08 Thread Deepak Goel
Is your code written in java or php (or some other language)?

You might to need an APM?

On Mon, 8 Nov 2021, 19:21 Prasanth Kodakandla, <
prasanth.kodakan...@gmail.com> wrote:

> I am not sure about what's causing the issue. I have checked the logs and
> I don't see any error messages.
> need some help on what and whether to look to find and solve the problem
> also want to know if i need to change anything from config.
>
> On Mon, Nov 8, 2021 at 1:37 AM Deepak Goel  wrote:
>
>> Why do you think there is a problem? The machine config is supporting 50
>> req/sec. Mostly the application is medium complex (If the application was
>> light, the machine config could have supported 200 req/sec)
>>
>> On Sun, 7 Nov 2021, 22:37 Prasanth Kodakandla, <
>> prasanth.kodakan...@gmail.com> wrote:
>>
>>> Hi,
>>> load is 50req per sec
>>> system config is 8 Core cpu with 64 GB RAM
>>>
>>>
>>> On Sun, Nov 7, 2021, 10:57 AM Deepak Goel  wrote:
>>>
>>>> Hi
>>>>
>>>> What's the load like on the server? And the machine configuration?
>>>>
>>>> On Sun, 7 Nov 2021, 10:16 Prasanth Kodakandla, <
>>>> prasanth.kodakan...@gmail.com> wrote:
>>>>
>>>>> Hi ,
>>>>> I am seeing that the httpd process is using 100% cpu .
>>>>> Apache server is 2.4.6
>>>>> below is the config i am using
>>>>> 
>>>>> ServerLimit 32
>>>>> StartServers 6
>>>>> MinSpareThreads300
>>>>> MaxSpareThreads600
>>>>> ThreadsPerChild 50
>>>>> MaxRequestWorkers 1600
>>>>> MaxConnectionsPerChild   0
>>>>> 
>>>>>
>>>>> using mod_proxy module and reverse proxy to tomcat
>>>>> ProxyRequests on
>>>>> ProxyPass / http://localhost:8080/
>>>>> ProxyPassReverse / http://localhost:8080/
>>>>>
>>>>> Need help in understanding why this is happening
>>>>>
>>>>> Thank you
>>>>>
>>>>>
>>>>


Re: [users@httpd] Re: High Memory usage issue

2022-05-26 Thread Deepak Goel
What exactly is the problem? Can you please post the error?


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Thu, May 26, 2022 at 9:54 PM Rajkumar Adsule 
wrote:

> Hi Team,
>
> I have a lamp configured with CentOs6.10 , PHP5.4 and Apache 2.4.53 on a
> GCP Server with Config 32CPU and 64GB RAM.
>
> Configured event mpm with following  values
>
> 
> ServerLimit 4000
> StartServers 40
> MinSpareThreads 25
> MaxSpareThreads 2000
> ThreadLimit 64
> ThreadsPerChild 25
> MaxRequestWorkers 4000
> MaxClients 4000
> MaxConnectionsPerChild 0
> 
>
> please suggest a solution.
>
>
> Regards,
> Rajkumar Adsule
>
>
>


Re: [users@httpd] Re: Deprecated warnings with v2.4.53

2022-05-26 Thread Deepak Goel
Please post the config & warnings...


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Fri, May 27, 2022 at 4:48 AM Tom Browder  wrote:

> On Sat, May 14, 2022 at 18:20 Tom Browder  wrote:
>
>> I have tried to move from openssl 1.1.1o to 3.0.3 and am getting lots of
>> deprecated warnings during the httpd build. I also tried when attempting
>> http 2.4.52 and didn't complete iththen either because of the same warnings.
>
>
> Looking at the 48 deprecation warnings, it seems to me that the user
> configuration should automatically turn off such warnings.
>
> Is there any way for an ordinary user to do that?
>
> -Tom
>


Re: [users@httpd] Re: High Memory usage issue

2022-05-27 Thread Deepak Goel
Can you run the top command on the server and give us the output?

Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Fri, May 27, 2022 at 1:34 PM Rajkumar Adsule 
wrote:

> Please find the output of apachectl -M
> $ apachectl -M
> Loaded Modules:
>  core_module (static)
>  so_module (static)
>  http_module (static)
>  mpm_event_module (static)
>  authn_file_module (shared)
>  authn_core_module (shared)
>  authz_host_module (shared)
>  authz_groupfile_module (shared)
>  authz_user_module (shared)
>  authz_core_module (shared)
>  access_compat_module (shared)
>  auth_basic_module (shared)
>  deflate_module (shared)
>  socache_shmcb_module (shared)
>  filter_module (shared)
>  mime_module (shared)
>  log_config_module (shared)
>  logio_module (shared)
>  env_module (shared)
>  expires_module (shared)
>  headers_module (shared)
>  setenvif_module (shared)
>  proxy_module (shared)
>  session_module (shared)
>  ssl_module (shared)
>  unixd_module (shared)
>  autoindex_module (shared)
>  cgid_module (shared)
>  dir_module (shared)
>  alias_module (shared)
>  rewrite_module (shared)
>  php5_module (shared)
>
> $ free -m
>  total   used   free sharedbuffers cached
> Mem: 60517  59155   1361162   7344   6487
> -/+ buffers/cache:  45324  15192
> Swap:15358133  15225
>
> The problem is Memory utilization is always 95% - 98%
>
> Regards,
> Rajkumar Adsule
> OpenDoctor
>
> *Hello: (347) 686-8581 Extn: 112*
>
> *The content of this email is confidential and intended for the recipient
> specified in the message only. It is strictly forbidden to share any part
> of this message with any third party, without the written consent of the
> sender. If you received this message by mistake, please reply to this
> message and follow with its deletion, so that we can ensure such a mistake
> does not occur in the future.*
>
>
>
>
> On Fri, May 27, 2022 at 9:43 AM Frank Gingras  wrote:
>
>> Also, I hope you are using the php-fpm approach for the php content, as
>> mixing event and mod_php is a bad idea.
>>
>> Can you show apachectl -M ?
>>
>> On Thu, 26 May 2022 at 12:51, Deepak Goel  wrote:
>>
>>> What exactly is the problem? Can you please post the error?
>>>
>>>
>>> Deepak
>>> "The greatness of a nation can be judged by the way its animals are
>>> treated - Mahatma Gandhi"
>>>
>>> +91 73500 12833
>>> deic...@gmail.com
>>>
>>> Facebook: https://www.facebook.com/deicool
>>> LinkedIn: www.linkedin.com/in/deicool
>>>
>>> "Plant a Tree, Go Green"
>>>
>>> Make In India : http://www.makeinindia.com/home
>>>
>>>
>>> On Thu, May 26, 2022 at 9:54 PM Rajkumar Adsule
>>>  wrote:
>>>
>>>> Hi Team,
>>>>
>>>> I have a lamp configured with CentOs6.10 , PHP5.4 and Apache 2.4.53 on
>>>> a GCP Server with Config 32CPU and 64GB RAM.
>>>>
>>>> Configured event mpm with following  values
>>>>
>>>> 
>>>> ServerLimit 4000
>>>> StartServers 40
>>>> MinSpareThreads 25
>>>> MaxSpareThreads 2000
>>>> ThreadLimit 64
>>>> ThreadsPerChild 25
>>>> MaxRequestWorkers 4000
>>>> MaxClients 4000
>>>> MaxConnectionsPerChild 0
>>>> 
>>>>
>>>> please suggest a solution.
>>>>
>>>>
>>>> Regards,
>>>> Rajkumar Adsule
>>>>
>>>>
>>>>


Re: [users@httpd] Re: High Memory usage issue

2022-05-27 Thread Deepak Goel
Most of the memory is eaten by https threads. I guess they are about 40 of
them eating 1gb each.

Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Fri, May 27, 2022 at 1:45 PM Rajkumar Adsule 
wrote:

> Hi,
> Please find attached the output of top command
>
>
> Regards,
> Rajkumar Adsule
> OpenDoctor
>
> *Hello: (347) 686-8581 Extn: 112*
>
> *The content of this email is confidential and intended for the recipient
> specified in the message only. It is strictly forbidden to share any part
> of this message with any third party, without the written consent of the
> sender. If you received this message by mistake, please reply to this
> message and follow with its deletion, so that we can ensure such a mistake
> does not occur in the future.*
>
>
>
>
> On Fri, May 27, 2022 at 1:38 PM Deepak Goel  wrote:
>
>> Can you run the top command on the server and give us the output?
>>
>> Deepak
>> "The greatness of a nation can be judged by the way its animals are
>> treated - Mahatma Gandhi"
>>
>> +91 73500 12833
>> deic...@gmail.com
>>
>> Facebook: https://www.facebook.com/deicool
>> LinkedIn: www.linkedin.com/in/deicool
>>
>> "Plant a Tree, Go Green"
>>
>> Make In India : http://www.makeinindia.com/home
>>
>>
>> On Fri, May 27, 2022 at 1:34 PM Rajkumar Adsule
>>  wrote:
>>
>>> Please find the output of apachectl -M
>>> $ apachectl -M
>>> Loaded Modules:
>>>  core_module (static)
>>>  so_module (static)
>>>  http_module (static)
>>>  mpm_event_module (static)
>>>  authn_file_module (shared)
>>>  authn_core_module (shared)
>>>  authz_host_module (shared)
>>>  authz_groupfile_module (shared)
>>>  authz_user_module (shared)
>>>  authz_core_module (shared)
>>>  access_compat_module (shared)
>>>  auth_basic_module (shared)
>>>  deflate_module (shared)
>>>  socache_shmcb_module (shared)
>>>  filter_module (shared)
>>>  mime_module (shared)
>>>  log_config_module (shared)
>>>  logio_module (shared)
>>>  env_module (shared)
>>>  expires_module (shared)
>>>  headers_module (shared)
>>>  setenvif_module (shared)
>>>  proxy_module (shared)
>>>  session_module (shared)
>>>  ssl_module (shared)
>>>  unixd_module (shared)
>>>  autoindex_module (shared)
>>>  cgid_module (shared)
>>>  dir_module (shared)
>>>  alias_module (shared)
>>>  rewrite_module (shared)
>>>  php5_module (shared)
>>>
>>> $ free -m
>>>  total   used   free sharedbuffers cached
>>> Mem: 60517  59155   1361162   7344   6487
>>> -/+ buffers/cache:  45324  15192
>>> Swap:15358133  15225
>>>
>>> The problem is Memory utilization is always 95% - 98%
>>>
>>> Regards,
>>> Rajkumar Adsule
>>> OpenDoctor
>>>
>>> *Hello: (347) 686-8581 Extn: 112*
>>>
>>> *The content of this email is confidential and intended for the
>>> recipient specified in the message only. It is strictly forbidden to share
>>> any part of this message with any third party, without the written consent
>>> of the sender. If you received this message by mistake, please reply to
>>> this message and follow with its deletion, so that we can ensure such a
>>> mistake does not occur in the future.*
>>>
>>>
>>>
>>>
>>> On Fri, May 27, 2022 at 9:43 AM Frank Gingras  wrote:
>>>
>>>> Also, I hope you are using the php-fpm approach for the php content, as
>>>> mixing event and mod_php is a bad idea.
>>>>
>>>> Can you show apachectl -M ?
>>>>
>>>> On Thu, 26 May 2022 at 12:51, Deepak Goel  wrote:
>>>>
>>>>> What exactly is the problem? Can you please post the error?
>>>>>
>>>>>
>>>>> Deepak
>>>>> "The greatness of a nation can be judged by the way its animals are
>>>>> treated - Mahatma Gandhi"
>>>>>
>>>>> +91 73500 12833
>>>>> deic...@gmail.com
>>>>>
>>>>

Re: [users@httpd] Re: High Memory usage issue

2022-05-27 Thread Deepak Goel
1. The best configuration depends on the number of people (users) accessing
your webserver, and what kind of things they need to do (how heavy is your
application.

2. 40 httpd threads eating 1gb each is a bit tough for me to understand. I
use fpm and there are typically 4 processes of them run on my webserver
eating about 10MB each. Of Course the load (users) which I cater to is less.

Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Fri, May 27, 2022 at 2:14 PM Rajkumar Adsule 
wrote:

> yes, what would be the best configuration for 32CPU and 64GB RAM server,
> and why it is eating that much memory.
>
> 
> ServerLimit 4000
> StartServers 40
> MinSpareThreads 25
> MaxSpareThreads 2000
> ThreadLimit 64
> ThreadsPerChild 25
> MaxRequestWorkers 4000
> MaxClients 4000
> MaxConnectionsPerChild 0
> 
>
>
> Regards,
> Rajkumar Adsule
> OpenDoctor
>
> *Hello: (347) 686-8581 Extn: 112*
>
> *The content of this email is confidential and intended for the recipient
> specified in the message only. It is strictly forbidden to share any part
> of this message with any third party, without the written consent of the
> sender. If you received this message by mistake, please reply to this
> message and follow with its deletion, so that we can ensure such a mistake
> does not occur in the future.*
>
>
>
>
> On Fri, May 27, 2022 at 2:10 PM Deepak Goel  wrote:
>
>> Most of the memory is eaten by https threads. I guess they are about 40
>> of them eating 1gb each.
>>
>> Deepak
>> "The greatness of a nation can be judged by the way its animals are
>> treated - Mahatma Gandhi"
>>
>> +91 73500 12833
>> deic...@gmail.com
>>
>> Facebook: https://www.facebook.com/deicool
>> LinkedIn: www.linkedin.com/in/deicool
>>
>> "Plant a Tree, Go Green"
>>
>> Make In India : http://www.makeinindia.com/home
>>
>>
>> On Fri, May 27, 2022 at 1:45 PM Rajkumar Adsule
>>  wrote:
>>
>>> Hi,
>>> Please find attached the output of top command
>>>
>>>
>>> Regards,
>>> Rajkumar Adsule
>>> OpenDoctor
>>>
>>> *Hello: (347) 686-8581 Extn: 112*
>>>
>>> *The content of this email is confidential and intended for the
>>> recipient specified in the message only. It is strictly forbidden to share
>>> any part of this message with any third party, without the written consent
>>> of the sender. If you received this message by mistake, please reply to
>>> this message and follow with its deletion, so that we can ensure such a
>>> mistake does not occur in the future.*
>>>
>>>
>>>
>>>
>>> On Fri, May 27, 2022 at 1:38 PM Deepak Goel  wrote:
>>>
>>>> Can you run the top command on the server and give us the output?
>>>>
>>>> Deepak
>>>> "The greatness of a nation can be judged by the way its animals are
>>>> treated - Mahatma Gandhi"
>>>>
>>>> +91 73500 12833
>>>> deic...@gmail.com
>>>>
>>>> Facebook: https://www.facebook.com/deicool
>>>> LinkedIn: www.linkedin.com/in/deicool
>>>>
>>>> "Plant a Tree, Go Green"
>>>>
>>>> Make In India : http://www.makeinindia.com/home
>>>>
>>>>
>>>> On Fri, May 27, 2022 at 1:34 PM Rajkumar Adsule
>>>>  wrote:
>>>>
>>>>> Please find the output of apachectl -M
>>>>> $ apachectl -M
>>>>> Loaded Modules:
>>>>>  core_module (static)
>>>>>  so_module (static)
>>>>>  http_module (static)
>>>>>  mpm_event_module (static)
>>>>>  authn_file_module (shared)
>>>>>  authn_core_module (shared)
>>>>>  authz_host_module (shared)
>>>>>  authz_groupfile_module (shared)
>>>>>  authz_user_module (shared)
>>>>>  authz_core_module (shared)
>>>>>  access_compat_module (shared)
>>>>>  auth_basic_module (shared)
>>>>>  deflate_module (shared)
>>>>>  socache_shmcb_module (shared)
>>>>>  filter_module (shared)
>>>>>  mime_module (shared)
>>>>>  log_config_module (shared)
>

Re: [users@httpd] Re: High Memory usage issue

2022-05-27 Thread Deepak Goel
500 to 700 concurrent users is not much. We go upto 1500+ concurrent users
with 1GB RAM.


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Fri, May 27, 2022 at 4:01 PM Rajkumar Adsule 
wrote:

> We are running a multi-tenant application on this web server and it's
> heavily used approx 500 to 700 concurrent users.
>
>
> Regards,
> Rajkumar Adsule
> OpenDoctor
>
> *Hello: (347) 686-8581 Extn: 112*
>
> *The content of this email is confidential and intended for the recipient
> specified in the message only. It is strictly forbidden to share any part
> of this message with any third party, without the written consent of the
> sender. If you received this message by mistake, please reply to this
> message and follow with its deletion, so that we can ensure such a mistake
> does not occur in the future.*
>
>
>
>
> On Fri, May 27, 2022 at 2:59 PM Deepak Goel  wrote:
>
>> 1. The best configuration depends on the number of people (users)
>> accessing your webserver, and what kind of things they need to do (how
>> heavy is your application.
>>
>> 2. 40 httpd threads eating 1gb each is a bit tough for me to understand.
>> I use fpm and there are typically 4 processes of them run on my webserver
>> eating about 10MB each. Of Course the load (users) which I cater to is less.
>>
>> Deepak
>> "The greatness of a nation can be judged by the way its animals are
>> treated - Mahatma Gandhi"
>>
>> +91 73500 12833
>> deic...@gmail.com
>>
>> Facebook: https://www.facebook.com/deicool
>> LinkedIn: www.linkedin.com/in/deicool
>>
>> "Plant a Tree, Go Green"
>>
>> Make In India : http://www.makeinindia.com/home
>>
>>
>> On Fri, May 27, 2022 at 2:14 PM Rajkumar Adsule
>>  wrote:
>>
>>> yes, what would be the best configuration for 32CPU and 64GB RAM server,
>>> and why it is eating that much memory.
>>>
>>> 
>>> ServerLimit 4000
>>> StartServers 40
>>> MinSpareThreads 25
>>> MaxSpareThreads 2000
>>> ThreadLimit 64
>>> ThreadsPerChild 25
>>> MaxRequestWorkers 4000
>>> MaxClients 4000
>>> MaxConnectionsPerChild 0
>>> 
>>>
>>>
>>> Regards,
>>> Rajkumar Adsule
>>> OpenDoctor
>>>
>>> *Hello: (347) 686-8581 Extn: 112*
>>>
>>> *The content of this email is confidential and intended for the
>>> recipient specified in the message only. It is strictly forbidden to share
>>> any part of this message with any third party, without the written consent
>>> of the sender. If you received this message by mistake, please reply to
>>> this message and follow with its deletion, so that we can ensure such a
>>> mistake does not occur in the future.*
>>>
>>>
>>>
>>>
>>> On Fri, May 27, 2022 at 2:10 PM Deepak Goel  wrote:
>>>
>>>> Most of the memory is eaten by https threads. I guess they are about 40
>>>> of them eating 1gb each.
>>>>
>>>> Deepak
>>>> "The greatness of a nation can be judged by the way its animals are
>>>> treated - Mahatma Gandhi"
>>>>
>>>> +91 73500 12833
>>>> deic...@gmail.com
>>>>
>>>> Facebook: https://www.facebook.com/deicool
>>>> LinkedIn: www.linkedin.com/in/deicool
>>>>
>>>> "Plant a Tree, Go Green"
>>>>
>>>> Make In India : http://www.makeinindia.com/home
>>>>
>>>>
>>>> On Fri, May 27, 2022 at 1:45 PM Rajkumar Adsule
>>>>  wrote:
>>>>
>>>>> Hi,
>>>>> Please find attached the output of top command
>>>>>
>>>>>
>>>>> Regards,
>>>>> Rajkumar Adsule
>>>>> OpenDoctor
>>>>>
>>>>> *Hello: (347) 686-8581 Extn: 112*
>>>>>
>>>>> *The content of this email is confidential and intended for the
>>>>> recipient specified in the message only. It is strictly forbidden to share
>>>>> any part of this message with any third party, without the written consent
>>>>> of the sender. If you received this message by mistake, pl

Re: [users@httpd] Re: High Memory usage issue

2022-05-27 Thread Deepak Goel
i doubt Apache by itself eats that kind of memory (1gb odd). You need to
profile (memory) your application to see usage and get rid of objects which
are no use to you (or trim them).

On Fri, 27 May 2022, 18:06 Rajkumar Adsule, 
wrote:

> ok, then can you please guide me on how to check why apache threads are
> eating more memory.
>
>
> Regards,
> Rajkumar Adsule
> OpenDoctor
>
> *Hello: (347) 686-8581 Extn: 112*
>
> *The content of this email is confidential and intended for the recipient
> specified in the message only. It is strictly forbidden to share any part
> of this message with any third party, without the written consent of the
> sender. If you received this message by mistake, please reply to this
> message and follow with its deletion, so that we can ensure such a mistake
> does not occur in the future.*
>
>
>
>
> On Fri, May 27, 2022 at 4:23 PM Deepak Goel  wrote:
>
>> 500 to 700 concurrent users is not much. We go upto 1500+ concurrent
>> users with 1GB RAM.
>>
>>
>> Deepak
>> "The greatness of a nation can be judged by the way its animals are
>> treated - Mahatma Gandhi"
>>
>> +91 73500 12833
>> deic...@gmail.com
>>
>> Facebook: https://www.facebook.com/deicool
>> LinkedIn: www.linkedin.com/in/deicool
>>
>> "Plant a Tree, Go Green"
>>
>> Make In India : http://www.makeinindia.com/home
>>
>>
>> On Fri, May 27, 2022 at 4:01 PM Rajkumar Adsule
>>  wrote:
>>
>>> We are running a multi-tenant application on this web server and it's
>>> heavily used approx 500 to 700 concurrent users.
>>>
>>>
>>> Regards,
>>> Rajkumar Adsule
>>> OpenDoctor
>>>
>>> *Hello: (347) 686-8581 Extn: 112*
>>>
>>> *The content of this email is confidential and intended for the
>>> recipient specified in the message only. It is strictly forbidden to share
>>> any part of this message with any third party, without the written consent
>>> of the sender. If you received this message by mistake, please reply to
>>> this message and follow with its deletion, so that we can ensure such a
>>> mistake does not occur in the future.*
>>>
>>>
>>>
>>>
>>> On Fri, May 27, 2022 at 2:59 PM Deepak Goel  wrote:
>>>
>>>> 1. The best configuration depends on the number of people (users)
>>>> accessing your webserver, and what kind of things they need to do (how
>>>> heavy is your application.
>>>>
>>>> 2. 40 httpd threads eating 1gb each is a bit tough for me to
>>>> understand. I use fpm and there are typically 4 processes of them run on my
>>>> webserver eating about 10MB each. Of Course the load (users) which I cater
>>>> to is less.
>>>>
>>>> Deepak
>>>> "The greatness of a nation can be judged by the way its animals are
>>>> treated - Mahatma Gandhi"
>>>>
>>>> +91 73500 12833
>>>> deic...@gmail.com
>>>>
>>>> Facebook: https://www.facebook.com/deicool
>>>> LinkedIn: www.linkedin.com/in/deicool
>>>>
>>>> "Plant a Tree, Go Green"
>>>>
>>>> Make In India : http://www.makeinindia.com/home
>>>>
>>>>
>>>> On Fri, May 27, 2022 at 2:14 PM Rajkumar Adsule
>>>>  wrote:
>>>>
>>>>> yes, what would be the best configuration for 32CPU and 64GB RAM
>>>>> server, and why it is eating that much memory.
>>>>>
>>>>> 
>>>>> ServerLimit 4000
>>>>> StartServers 40
>>>>> MinSpareThreads 25
>>>>> MaxSpareThreads 2000
>>>>> ThreadLimit 64
>>>>> ThreadsPerChild 25
>>>>> MaxRequestWorkers 4000
>>>>> MaxClients 4000
>>>>> MaxConnectionsPerChild 0
>>>>> 
>>>>>
>>>>>
>>>>> Regards,
>>>>> Rajkumar Adsule
>>>>> OpenDoctor
>>>>>
>>>>> *Hello: (347) 686-8581 Extn: 112*
>>>>>
>>>>> *The content of this email is confidential and intended for the
>>>>> recipient specified in the message only. It is strictly forbidden to share
>>>>> any part of this message with any third party, without the written consent
>>>>> of the sender. If you received this message by mistake, please reply to
>>>>> 

Re: [users@httpd] Re: High Memory usage issue

2022-05-27 Thread Deepak Goel
Google threw out this:

https://support.crucial.comhttps://support.crucial.com.au/en/knowledgebase/article/whats-the-difference-between-php-handlers-cgi-suphp-mod_php-dso-and-fastcgi
<https://support.crucial.com.au/en/knowledgebase/article/whats-the-difference-between-php-handlers-cgi-suphp-mod_php-dso-and-fastcgi>


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Fri, May 27, 2022 at 9:17 PM Frank Gingras  wrote:

> Take a step back - the issue is that you are using the mod_php DSO. You do
> not want to use the DSO, and instead, you want to use mod_proxy_fcgi to
> interact with a php-fpm instead. You should not have any runtime dependency
> on php from httpd's point of view.
>
> What you want is enough light httpd threads. With event, you can easily
> spawn 5000+ workers and use less than 30MB in total.
>
> On Fri, 27 May 2022 at 08:41, Deepak Goel  wrote:
>
>> i doubt Apache by itself eats that kind of memory (1gb odd). You need to
>> profile (memory) your application to see usage and get rid of objects which
>> are no use to you (or trim them).
>>
>> On Fri, 27 May 2022, 18:06 Rajkumar Adsule, 
>> wrote:
>>
>>> ok, then can you please guide me on how to check why apache threads are
>>> eating more memory.
>>>
>>>
>>> Regards,
>>> Rajkumar Adsule
>>> OpenDoctor
>>>
>>> *Hello: (347) 686-8581 Extn: 112*
>>>
>>> *The content of this email is confidential and intended for the
>>> recipient specified in the message only. It is strictly forbidden to share
>>> any part of this message with any third party, without the written consent
>>> of the sender. If you received this message by mistake, please reply to
>>> this message and follow with its deletion, so that we can ensure such a
>>> mistake does not occur in the future.*
>>>
>>>
>>>
>>>
>>> On Fri, May 27, 2022 at 4:23 PM Deepak Goel  wrote:
>>>
>>>> 500 to 700 concurrent users is not much. We go upto 1500+ concurrent
>>>> users with 1GB RAM.
>>>>
>>>>
>>>> Deepak
>>>> "The greatness of a nation can be judged by the way its animals are
>>>> treated - Mahatma Gandhi"
>>>>
>>>> +91 73500 12833
>>>> deic...@gmail.com
>>>>
>>>> Facebook: https://www.facebook.com/deicool
>>>> LinkedIn: www.linkedin.com/in/deicool
>>>>
>>>> "Plant a Tree, Go Green"
>>>>
>>>> Make In India : http://www.makeinindia.com/home
>>>>
>>>>
>>>> On Fri, May 27, 2022 at 4:01 PM Rajkumar Adsule
>>>>  wrote:
>>>>
>>>>> We are running a multi-tenant application on this web server and it's
>>>>> heavily used approx 500 to 700 concurrent users.
>>>>>
>>>>>
>>>>> Regards,
>>>>> Rajkumar Adsule
>>>>> OpenDoctor
>>>>>
>>>>> *Hello: (347) 686-8581 Extn: 112*
>>>>>
>>>>> *The content of this email is confidential and intended for the
>>>>> recipient specified in the message only. It is strictly forbidden to share
>>>>> any part of this message with any third party, without the written consent
>>>>> of the sender. If you received this message by mistake, please reply to
>>>>> this message and follow with its deletion, so that we can ensure such a
>>>>> mistake does not occur in the future.*
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, May 27, 2022 at 2:59 PM Deepak Goel  wrote:
>>>>>
>>>>>> 1. The best configuration depends on the number of people (users)
>>>>>> accessing your webserver, and what kind of things they need to do (how
>>>>>> heavy is your application.
>>>>>>
>>>>>> 2. 40 httpd threads eating 1gb each is a bit tough for me to
>>>>>> understand. I use fpm and there are typically 4 processes of them run on 
>>>>>> my
>>>>>> webserver eating about 10MB each. Of Course the load (users) which I 
>>>>>> cater
>>>>>> to is less.
>>>>>>
>>>>>&g

Re: [users@httpd] RE: rate limit issues in Apache Http server

2022-06-02 Thread Deepak Goel
Looks like *ThreadsPerChild* is already high. What's your hardware
configuration and its usage (when the error starts showing) too?

Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Thu, Jun 2, 2022 at 9:35 PM Frank Gingras  wrote:

> Based on the error, increase ThreadsPerChild.
>
> You can also look at mod_ratelimit.
>
> On Thu, 2 Jun 2022 at 04:18, Rathore, Rajendra  wrote:
>
>> Also seen below errors in error.log file
>>
>>
>>
>> [Thu Jun 02 12:04:38.863338 2022] [mpm_winnt:error] [pid 3488:tid 7984]
>> AH00326: Server ran out of threads to serve requests. Consider raising the
>> ThreadsPerChild setting
>>
>>
>>
>> [Thu Jun 02 12:10:28.135335 2022] [ssl:debug] [pid 628:tid 1452]
>> ssl_engine_io.c(1147): [client 10.85.41.123:34932] AH02001: Connection
>> closed to child 117 with standard shutdown (server
>> pwdcsv-wcump8d.ptcnet.ptc.com:443)
>>
>> [Thu Jun 02 12:10:28.136337 2022] [reqtimeout:info] [pid 628:tid 2324]
>> [client 10.85.41.123:34813] AH01382: Request header read timeout
>>
>>
>>
>> Thanks and Regards,
>>
>> Rajendra Rathore
>>
>> 9922701491
>>
>>
>>
>> *From:* Rathore, Rajendra 
>> *Sent:* Thursday, June 2, 2022 1:14 PM
>> *To:* users@httpd.apache.org
>> *Subject:* [users@httpd] RE: rate limit issues in Apache Http server
>> *Importance:* High
>>
>>
>>
>> *External email from:
>> users-return-121870-rarathore=ptc@httpd.apache.org
>> *
>>
>> Hi Team,
>>
>>
>>
>> Can you please suggest some Apache configuration settings to fix the
>> below issue.
>>
>>
>>
>> I have below configurations:
>>
>>
>>
>> 
>>
>> StartServers1
>>
>> MinSpareThreads 151
>>
>> MaxSpareThreads 300
>>
>> ThreadsPerChild 300
>>
>> ThreadLimit 300
>>
>> MaxRequestWorkers   300
>>
>>
>>
>> MaxConnectionsPerChild   0
>>
>> 
>>
>>
>>
>> 
>>
>> ### Provide alternate settings instead [PTC]
>>
>> StartServers1
>>
>> MinSpareThreads 151
>>
>> MaxSpareThreads 300
>>
>> ThreadsPerChild 300
>>
>> ThreadLimit 300
>>
>> MaxRequestWorkers   300
>>
>>
>>
>> MaxConnectionsPerChild   0
>>
>> 
>>
>>
>>
>> 
>>
>>
>>
>> ThreadsPerChild 300
>>
>>
>>
>> MaxConnectionsPerChild   0
>>
>> 
>>
>>
>>
>> Other timeout settings are defaults value, no changes.
>>
>>
>>
>>
>>
>> Thanks and Regards,
>>
>> Rajendra Rathore
>>
>> 9922701491
>>
>>
>>
>> *From:* Rathore, Rajendra 
>> *Sent:* Wednesday, June 1, 2022 3:36 PM
>> *To:* users@httpd.apache.org
>> *Subject:* [users@httpd] rate limit issues in Apache Http server
>> *Importance:* High
>>
>>
>>
>> *External email from:
>> users-return-121868-rarathore=ptc@httpd.apache.org
>> *
>>
>> Hi Team,
>>
>>
>>
>> We are facing rate limit issue in default Apache configuration, can you
>> please suggest some solutions around it? Is this statement correct that
>> OOTB apache can’t handle such situation, you need to rely on Firewall or
>> some 3rd party software for DOS prevention.
>>
>>
>>
>> Thanks and Regards,
>>
>> Rajendra Rathore
>>
>> 9922701491
>>
>>
>>
>


Re: [users@httpd] RE: rate limit issues in Apache Http server

2022-06-02 Thread Deepak Goel
I would be also interested in knowing - which language are you using to do
your business logic (php, java?).

On Thu, 2 Jun 2022, 22:14 Frank Gingras,  wrote:

> 300 is not really a high value, actually. A busy system can handle far
> more threads per child process.
>
> What would be more useful is to see the output from /server-status
>
> On Thu, 2 Jun 2022 at 12:33, Deepak Goel  wrote:
>
>> Looks like *ThreadsPerChild* is already high. What's your hardware
>> configuration and its usage (when the error starts showing) too?
>>
>> Deepak
>> "The greatness of a nation can be judged by the way its animals are
>> treated - Mahatma Gandhi"
>>
>> +91 73500 12833
>> deic...@gmail.com
>>
>> Facebook: https://www.facebook.com/deicool
>> LinkedIn: www.linkedin.com/in/deicool
>>
>> "Plant a Tree, Go Green"
>>
>> Make In India : http://www.makeinindia.com/home
>>
>>
>> On Thu, Jun 2, 2022 at 9:35 PM Frank Gingras  wrote:
>>
>>> Based on the error, increase ThreadsPerChild.
>>>
>>> You can also look at mod_ratelimit.
>>>
>>> On Thu, 2 Jun 2022 at 04:18, Rathore, Rajendra 
>>> wrote:
>>>
>>>> Also seen below errors in error.log file
>>>>
>>>>
>>>>
>>>> [Thu Jun 02 12:04:38.863338 2022] [mpm_winnt:error] [pid 3488:tid 7984]
>>>> AH00326: Server ran out of threads to serve requests. Consider raising the
>>>> ThreadsPerChild setting
>>>>
>>>>
>>>>
>>>> [Thu Jun 02 12:10:28.135335 2022] [ssl:debug] [pid 628:tid 1452]
>>>> ssl_engine_io.c(1147): [client 10.85.41.123:34932] AH02001: Connection
>>>> closed to child 117 with standard shutdown (server
>>>> pwdcsv-wcump8d.ptcnet.ptc.com:443)
>>>>
>>>> [Thu Jun 02 12:10:28.136337 2022] [reqtimeout:info] [pid 628:tid 2324]
>>>> [client 10.85.41.123:34813] AH01382: Request header read timeout
>>>>
>>>>
>>>>
>>>> Thanks and Regards,
>>>>
>>>> Rajendra Rathore
>>>>
>>>> 9922701491
>>>>
>>>>
>>>>
>>>> *From:* Rathore, Rajendra 
>>>> *Sent:* Thursday, June 2, 2022 1:14 PM
>>>> *To:* users@httpd.apache.org
>>>> *Subject:* [users@httpd] RE: rate limit issues in Apache Http server
>>>> *Importance:* High
>>>>
>>>>
>>>>
>>>> *External email from:
>>>> users-return-121870-rarathore=ptc@httpd.apache.org
>>>> *
>>>>
>>>> Hi Team,
>>>>
>>>>
>>>>
>>>> Can you please suggest some Apache configuration settings to fix the
>>>> below issue.
>>>>
>>>>
>>>>
>>>> I have below configurations:
>>>>
>>>>
>>>>
>>>> 
>>>>
>>>> StartServers1
>>>>
>>>> MinSpareThreads 151
>>>>
>>>> MaxSpareThreads 300
>>>>
>>>> ThreadsPerChild 300
>>>>
>>>> ThreadLimit 300
>>>>
>>>> MaxRequestWorkers   300
>>>>
>>>>
>>>>
>>>> MaxConnectionsPerChild   0
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>> 
>>>>
>>>> ### Provide alternate settings instead [PTC]
>>>>
>>>> StartServers1
>>>>
>>>> MinSpareThreads 151
>>>>
>>>> MaxSpareThreads 300
>>>>
>>>> ThreadsPerChild 300
>>>>
>>>> ThreadLimit 300
>>>>
>>>> MaxRequestWorkers   300
>>>>
>>>>
>>>>
>>>> MaxConnectionsPerChild   0
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>> ThreadsPerChild 300
>>>>
>>>>
>>>>
>>>> MaxConnectionsPerChild   0
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>> Other timeout settings are defaults value, no changes.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Thanks and Regards,
>>>>
>>>> Rajendra Rathore
>>>>
>>>> 9922701491
>>>>
>>>>
>>>>
>>>> *From:* Rathore, Rajendra 
>>>> *Sent:* Wednesday, June 1, 2022 3:36 PM
>>>> *To:* users@httpd.apache.org
>>>> *Subject:* [users@httpd] rate limit issues in Apache Http server
>>>> *Importance:* High
>>>>
>>>>
>>>>
>>>> *External email from:
>>>> users-return-121868-rarathore=ptc@httpd.apache.org
>>>> *
>>>>
>>>> Hi Team,
>>>>
>>>>
>>>>
>>>> We are facing rate limit issue in default Apache configuration, can you
>>>> please suggest some solutions around it? Is this statement correct that
>>>> OOTB apache can’t handle such situation, you need to rely on Firewall or
>>>> some 3rd party software for DOS prevention.
>>>>
>>>>
>>>>
>>>> Thanks and Regards,
>>>>
>>>> Rajendra Rathore
>>>>
>>>> 9922701491
>>>>
>>>>
>>>>
>>>


Re: [users@httpd] reverse proxy issue

2022-06-08 Thread Deepak Goel
How does Apache access the application server? Is the ip address of
application server changing (and it coincides with the 404 error)?


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Wed, Jun 8, 2022 at 10:36 PM Yann Ylavic  wrote:

> On Wed, Jun 8, 2022 at 3:21 PM Serge Krawczenko 
> wrote:
> >
> > We have application server behind httpd as a reverse proxy,
> > with basic ldap auth, so only ldap authenticated users are able to get
> into the application.
> > (Require valid-user
> > Allow from all
> > )
>
> It's usually not a good idea to mix Require (httpd >= 2.4) and Allow
> (httpd < 2.4) directives together, though I don't see how it could
> lead to the symptoms you are seeing.
>
> >
> > Everything works well and configuration is very basic.
> > However,
> > Sometimes like once in a month or two it fails and httpd stops acting
> like a reverse proxy.
> > I.e. https://url/my-app fails with 404 trying to find my-app locally.
> > (the requested URL /my-app was not found on this server)
>
> If there are multiple VirtualHosts on the same IP:port in your server,
> possibly some requests reach one with no "ProxyPass /my-app ..."
> defined?
> It may happen if an unknown Host/SNI is handled by the default vhost
> for instance, but it wouldn't explain why all the following requests
> go there (unless the app/something at some point starts redirecting to
> a different URL).
>
> >
> > It is 'fixed' by restarting httpd and is very annoying for users.
> >
> > Debug turned on for proxy and ldap modules and there's absolutely
> nothing suspicious.
> > When the situation occurs, there's just no attempt to refer to the
> 'proxypass' it is
> > just trying to get the local path immediately.
> >
> > It cannot be reproduced as well and there's no specific periodicity for
> this failure.
> > Anything i'm missing? Any more debug to turn on?
>
> Which httpd MPM and modules are used? It could be a non thread-safe
> module running on a threaded MPM, corrupting some global state when
> the load increases.
>
>
> Regards;
> Yann.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] Online page not affected by css

2022-06-16 Thread Deepak Goel
Try giving the full path (https://gbumc.church/css/css.photo) instead of (
../css/css.photo.)


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Thu, Jun 16, 2022 at 9:02 PM Konstantin Kolinko 
wrote:

> чт, 16 июн. 2022 г. в 16:05, Tom Browder :
> >
> > I have a website whose home page appearance online is as expected. The
> site has a subpage using css (in a separate file linked into the head
> element) to form a modern, simple grid layout for testing. Both pages look
> as expected when I view them on my local host using Firefox. However, when
> I view the online site the subpage does not appear to be reading the css
> file.
> >
> > I have checked the directory and file permissions and they are correct
> as far as I have used in the past (all owned by apache:apache). The
> directory structure is such that the Document Root is at
> /home/web-server/gbumc.church/public/ and the home index.html is rooted
> there. Under that directory are css/ and pages/. The pages/congregants.html
> file internally points to ../css/css.photo.
> >
> > The online site is at https://gbumc.church.
> >
> > Any suggestions are greatly appreciated.
>
> Rename your stylesheet file to "photo.css"
> so that (thanks to conf/mime.types configuration file) it will be
> served with the correct Content-Type of "text/css".
> As of now the server does not recognise what type of file it is.
>
> Calling "wget --save-headers" with the URL I see that server sends
>
> HTTP/1.1 200 OK
> Date: Thu, 16 Jun 2022 15:23:53 GMT
> Server: Apache/2.4.53 (Unix) OpenSSL/1.1.1n
> Strict-Transport-Security: max-age=604800; includeSubDomains
> X-Frame-Options: SAMEORIGIN
> Upgrade: h2
> Connection: Upgrade, Keep-Alive
> Last-Modified: Thu, 16 Jun 2022 01:43:40 GMT
> ETag: "14f-5e186c468f30d"
> Accept-Ranges: bytes
> Content-Length: 335
> X-Content-Type-Options: nosniff
> Referrer-Policy: same-origin
> Keep-Alive: timeout=20, max=200
>
> Note that
> a) No "Content-Type" header is present in the response,
> b) A "X-Content-Type-Options: nosniff" header is present.
>
> As such, the content type cannot be auto-detected by the browser.
>
> BTW, HTTPD  2.4.54 has been released a week ago.
>
> Best regards,
> Konstantin Kolinko
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


[users@httpd] Redirect in 443

2022-06-22 Thread Deepak Goel
Hello

How do I create a redirect in 443 port in the apache web server 2?

I want to redirect the url :

https://mydomain.com/

to

https://mydomain.com/foo/

Please advise.

Thanks.

P.S:

If I add a redirect statement to the file 000-default-le-ssl.conf - port
443 (Redirect / https://mydomain.com/foo/)  it goes to the url (
https://mydomain.com/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo) instead of (
https://mydomain.com/foo/)

Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


Re: [users@httpd] Apache 2.4 with event, PHP 8.0 fpm on FreeBSD 13, pool keeps dying

2022-07-15 Thread Deepak Goel
where have you stored the file info.php? Directory?


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Fri, Jul 15, 2022 at 10:34 AM David Mehler  wrote:

> Hello,
>
> I'm trying to run Apache 2.4 with event mpm, PHP 8.0 fpm on a FreeBSD
> 13 system. To test I've got a PHP info file but when I atempt to load
> it I'm getting a 5xx file not found message. Checking the PHP fpm and
> other logs it looks like my pool is dying and restarting very quickly.
> My configuration minus comments is below including logs.
>
> I'd appreciate any assistance.
>
> Thanks.
> Dave.
>
> #cat example.com.conf
> # The example.com http virtual host
> 
> # Redirects all http port 80 traffic to https port 443
> RewriteEngine On
> RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
> 
>
> # The example.com https virtual host
> 
> ServerAdmin webmas...@example.com
> ServerName example.com
> ServerAlias www.example.com
> DocumentRoot "/usr/vhosts/example.com/htdocs/"
> # I have tried both with and without this next line, doesn't seem to
> make a difference
> ProxyPassMatch ^/(.*\.php)$
> fcgi://127.0.0.1:9000/usr/local/www/site1/public_html/$1
>
> ErrorLog /usr/vhosts/example.com/logs/error.log
> CustomLog /usr/vhosts/example.com/logs/access.log combined
> ExpiresActive on
> ExpiresByType image/jpg "access plus 1 month"
> ExpiresByType image/gif "access plus 1 month"
> ExpiresByType image/jpeg "access plus 1 month"
> ExpiresByType image/png "access plus 1 month"
> ExpiresByType image/webp "access plus 1 month"
>
> # TLS Configuration
> # RSA
> SSLEngine on
> SSLCertificateFile "/usr/local/etc/ssl/acme.sh/example.com/fullchain.crt"
> SSLCertificateKeyFile
> "/usr/local/etc/ssl/acme.sh/example.com/private/server.key"
>
> # ECDSA
> SSLCertificateFile "/usr/local/etc/ssl/
> acme.sh/example.com_ecc/fullchain.crt"
> SSLCertificateKeyFile
> "/usr/local/etc/ssl/acme.sh/example.com_ecc/private/server-ec256.key"
>
> # Support OCSP Stapling
> SSLCACertificateFile "/usr/local/etc/ssl/acme.sh/example.com/cacert.crt"
> SSLUseStapling on
>
> ErrorDocument 404 /errordocs/error404.html
> ErrorDocument 500 /errordocs/error50x.html
> ErrorDocument 501 /errordocs/error50x.html
> ErrorDocument 502 /errordocs/error50x.html
> ErrorDocument 503 /errordocs/error50x.html
> ErrorDocument 504 /errordocs/error50x.html
>
> 
> 
> RedirectMatch 404 ^/errordocs/error404.html$
> 
> 
>
> 
> 
> RedirectMatch 404 ^/errordocs/error50x.html$
> 
> 
>
> H2Direct on
> Protocols h2 h2c http/1.1
>
> 
>  Options FollowSymLinks
> SSLRequireSSL
> AllowOverride None
> SetOutputFilter DEFLATE
> SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip
> Require all granted
> 
> 
>
> #cat ../modules.d/030_php-fpm.conf
> 
> 
> DirectoryIndex index.php
> 
> 
> SetHandler "proxy:fcgi://127.0.0.1:9000"
> 
> 
>
> #cat /usr/local/etc/php-fpm.conf
> [global]
> pid = run/php-fpm.pid
> error_log = log/php-fpm.log
> syslog.facility = daemon
> syslog.ident = php-fpm
> log_level = notice
> emergency_restart_threshold = 2
> emergency_restart_interval = 30
> process_control_timeout = 60
> process.max = 128
> daemonize = yes
> include=/usr/local/etc/php-fpm.d/*.conf
>
> #cat php-fpm.d/www.conf
> [www]
> user = www
> group = www
> listen = 127.0.0.1:9000
> listen.backlog = -1
> listen.allowed_clients = 127.0.0.1
> pm = dynamic
> pm.max_children = 5
> pm.start_servers = 2
> pm.min_spare_servers = 1
> pm.max_spare_servers = 3
> pm.max_requests = 500
> request_terminate_timeout = 300
> security.limit_extensions = .php
>
> #sockstat -4|grep 80
> www  httpd  93392 3  tcp4   172.16.21.4:80*:*
> root httpd  93169 3  tcp4   172.16.21.4:80*:*
>
> #sockstat -4|grep 443
> www  httpd  93392 4  tcp4   172.16.21.4:443   *:*
> root httpd  93169 4  tcp4   172.16.21.4:443   *:*
>
> #sockstat -4|grep 9000
> www  php-fpm97114 5  tcp4   127.0.0.1:9000*:*
> www  php-fpm69517 5  tcp4   127.0.0.1:9000*:*
> root php-fpm68909 7  tcp4   127.0.0.1:9000*:*
>
> The following logs show atempts to pull https://example.com/info.php
> #tail -f /var/log/httpd-error.log
> [Thu Jul 14 22:13:37.968678 2022] [:notice] [pid 92921:tid
> 34372395008] ModSecurity: Status engine is currently disabled, enable
> it by set SecStatusEngine to On.
> [2022-07-14 22:13:38.001775] [ssl:warn] - - AH01873: Init: Session
> Cache is not configured [hint: SSLSessionCache]
> [2022-07-14 22:13:38.014566] [mpm_event:notice] - - AH00489:
> Apache/2.4.54 (FreeBSD) OpenSSL/1.1.1o-freebsd configured -- resuming
> normal operations
> [2022-07-14 22:13:38.014640] [core:notice] - - AH00094: Command line:
> '/usr/local/s

Re: [users@httpd] Apache 2.4 with event, PHP 8.0 fpm on FreeBSD 13, pool keeps dying

2022-07-15 Thread Deepak Goel
can you please check if that folder is accessible to php?


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Fri, Jul 15, 2022 at 4:20 PM David Mehler  wrote:

> Hello,
>
> The info.php file is in my documentroot.
>
> Thanks.
> Dave.
>
>
> On 7/15/22, Deepak Goel  wrote:
> > where have you stored the file info.php? Directory?
> >
> >
> > Deepak
> > "The greatness of a nation can be judged by the way its animals are
> treated
> > - Mahatma Gandhi"
> >
> > +91 73500 12833
> > deic...@gmail.com
> >
> > Facebook: https://www.facebook.com/deicool
> > LinkedIn: www.linkedin.com/in/deicool
> >
> > "Plant a Tree, Go Green"
> >
> > Make In India : http://www.makeinindia.com/home
> >
> >
> > On Fri, Jul 15, 2022 at 10:34 AM David Mehler 
> > wrote:
> >
> >> Hello,
> >>
> >> I'm trying to run Apache 2.4 with event mpm, PHP 8.0 fpm on a FreeBSD
> >> 13 system. To test I've got a PHP info file but when I atempt to load
> >> it I'm getting a 5xx file not found message. Checking the PHP fpm and
> >> other logs it looks like my pool is dying and restarting very quickly.
> >> My configuration minus comments is below including logs.
> >>
> >> I'd appreciate any assistance.
> >>
> >> Thanks.
> >> Dave.
> >>
> >> #cat example.com.conf
> >> # The example.com http virtual host
> >> 
> >> # Redirects all http port 80 traffic to https port 443
> >> RewriteEngine On
> >> RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
> >> 
> >>
> >> # The example.com https virtual host
> >> 
> >> ServerAdmin webmas...@example.com
> >> ServerName example.com
> >> ServerAlias www.example.com
> >> DocumentRoot "/usr/vhosts/example.com/htdocs/"
> >> # I have tried both with and without this next line, doesn't seem to
> >> make a difference
> >> ProxyPassMatch ^/(.*\.php)$
> >> fcgi://127.0.0.1:9000/usr/local/www/site1/public_html/$1
> >>
> >> ErrorLog /usr/vhosts/example.com/logs/error.log
> >> CustomLog /usr/vhosts/example.com/logs/access.log combined
> >> ExpiresActive on
> >> ExpiresByType image/jpg "access plus 1 month"
> >> ExpiresByType image/gif "access plus 1 month"
> >> ExpiresByType image/jpeg "access plus 1 month"
> >> ExpiresByType image/png "access plus 1 month"
> >> ExpiresByType image/webp "access plus 1 month"
> >>
> >> # TLS Configuration
> >> # RSA
> >> SSLEngine on
> >> SSLCertificateFile "/usr/local/etc/ssl/
> acme.sh/example.com/fullchain.crt"
> >> SSLCertificateKeyFile
> >> "/usr/local/etc/ssl/acme.sh/example.com/private/server.key"
> >>
> >> # ECDSA
> >> SSLCertificateFile "/usr/local/etc/ssl/
> >> acme.sh/example.com_ecc/fullchain.crt"
> >> SSLCertificateKeyFile
> >> "/usr/local/etc/ssl/acme.sh/example.com_ecc/private/server-ec256.key"
> >>
> >> # Support OCSP Stapling
> >> SSLCACertificateFile "/usr/local/etc/ssl/acme.sh/example.com/cacert.crt
> "
> >> SSLUseStapling on
> >>
> >> ErrorDocument 404 /errordocs/error404.html
> >> ErrorDocument 500 /errordocs/error50x.html
> >> ErrorDocument 501 /errordocs/error50x.html
> >> ErrorDocument 502 /errordocs/error50x.html
> >> ErrorDocument 503 /errordocs/error50x.html
> >> ErrorDocument 504 /errordocs/error50x.html
> >>
> >> 
> >> 
> >> RedirectMatch 404 ^/errordocs/error404.html$
> >> 
> >> 
> >>
> >> 
> >> 
> >> RedirectMatch 404 ^/errordocs/error50x.html$
> >> 
> >> 
> >>
> >> H2Direct on
> >> Protocols h2 h2c http/1.1
> >>
> >> 
> >>  Options FollowSymLinks
> >> SSLRequireSSL
> >> AllowOverride None
> >> SetOutputFilter DEFLATE
> >> SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip
> >> Require all

Re: [users@httpd] unable to read code in Apache httpd

2022-07-19 Thread Deepak Goel
What is the url you are using? You have an apache web server i think. So
wondering why you are getting a tomcat page?


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Tue, Jul 19, 2022 at 3:30 PM Pasupuleti, Sri Sai RamKumar
 wrote:

> Hello Stone,
>
> When we hit the application, By default we are getting tomcat page. Below
> are the requested details.
>
> 1. which Linux distribution and version is this running on?
>   -> NAME="Red Hat Enterprise Linux Server"  & VERSION="7.9 (Maipo)"
> 2. which version of Apache are you running?
>   ->Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
> 3. what do the following three commands (as root) show:
>
> -> ps aux | grep apache
> apache   13730  0.1  0.1 696260 12648 ?Sl   04:03   0:07
> /usr/sbin/httpd -DFOREGROUND
> apache   13731  0.0  0.0 472924 11456 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13732  0.0  0.0 472924 11452 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13733  0.0  0.0 472924 11456 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13737  0.0  0.0 472924 11440 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13776  0.0  0.0 472784  9400 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> root 26283  0.0  0.0 112816   980 pts/2S+   05:56   0:00 grep
> --color=auto apache
>
> -> ps aux | grep http
> root 13729  0.0  0.1 434828 16276 ?Ss   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13730  0.1  0.1 696260 12648 ?Sl   04:03   0:07
> /usr/sbin/httpd -DFOREGROUND
> apache   13731  0.0  0.0 472924 11456 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13732  0.0  0.0 472924 11452 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13733  0.0  0.0 472924 11456 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13737  0.0  0.0 472924 11440 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13776  0.0  0.0 472784  9400 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> root 26363  0.0  0.0 112816   976 pts/2S+   05:57   0:00 grep
> --color=auto http
>
> -> ls -l /var/www/html
> drwxrwxrwx.  7 root   apache4096 Jul 19 03:23 app
> drwxrwxrwx.  2 root   apache4096 Jul 19 03:23 bin
> -rwxrwxrwx.  1 root   apache2769 Aug  1  2019 composer.json
> -rwxrwxrwx.  1 root   apache   87319 Oct 17  2017 composer.lock
> -rwxrwxrwx.  1 root   apache 1073734 Oct 17  2017 composer.phar
> -rwxrwxrwx.  1 root   apache 281 Oct 17  2017 How to install Piwik.html
> -rwxrwxrwx.  1 root   apache1065 Oct 17  2017 LICENSE
> drwxrwxrwx.  3 root   apache4096 Aug  1  2019 nbproject
> drwxrwxrwx. 12 root   apache4096 Oct 17  2017 piwik
> -rwxrwxrwx.  1 root   apache5732 Oct 17  2017 README.md
> drwxrwxrwx.  3 root   apache4096 Aug  1  2019 src
> -rwxrwxrwx   1 root   root45 Jul 18 08:02 testpage.php
> -rwxrwxrwx.  1 apache apache  27 Sep 14  2020 test.php
> -rwxrwxrwx.  1 root   apache1308 Oct 17  2017 UPGRADE-2.2.md
> -rwxrwxrwx.  1 root   apache1962 Oct 17  2017 UPGRADE-2.3.md
> -rwxrwxrwx.  1 root   apache 356 Oct 17  2017 UPGRADE-2.4.md
> -rwxrwxrwx.  1 root   apache8499 Oct 17  2017 UPGRADE.md
> drwxrwxrwx. 22 root   apache4096 Oct 17  2017 vendor
> drwxrwxrwx. 10 apache apache4096 Sep 26  2020 web
>
> Thanks & regards,
> ___
> Pasupuleti Sri Sai RamKumar
> Capgemini | Global Application | Group IT
> Tel.: +91 9705706581
> Hyderabad | India
>
> Get The Future You Want - explore opportunities with Group IT
>
>
>
> -Original Message-
> From: Antony Stone 
> Sent: 19 July 2022 15:19
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] unable to read code in Apache httpd
>
> ***This mail has been sent by an external source***
>
> On Tuesday 19 July 2022 at 11:42:52, Pasupuleti, Sri Sai RamKumar wrote:
>
> > We require a help from as apache is unable to read code which is
> > placed in /var/www/html folder. Suddenly our working application
> > stopped working. WE have verified all the configurations everything look
> good.
>
> Show exactly what commands you are running and what the results are, and
> show us the exact error messages you are seeing in any log files.
>
> Also please give us some basic information such as:
>
>  - which Linux distribution and version is this running on?
>  - which version of Apache are you running?
>  - what do the following three commands (as root) show:
>
> ps aux | grep apache
> ps aux | grep http
> ls -l /var/www/html
>
> Antony.
>
> --
> I think, therefore I am.
> I'm pink, therefore I'm Spam.
> I drink, therefore I think I am.
>

Re: [users@httpd] mod_proxy_http getting double-slashes sporadically

2022-07-19 Thread Deepak Goel
How are you callin the gif ( logo.gif
  ) from this
page (http://myhost.mydomain.com/myapp/mainpage/index.htm) ?


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Tue, Jul 19, 2022 at 4:22 PM Yann Ylavic  wrote:

> On Fri, Jul 15, 2022 at 9:35 PM 
> wrote:
> >
> > Ok, trying to figure out how to fix this.
> >
> > For our mod_proxy configuration we are getting sporadic double-slashes
> showing up after the ProxyPass URL. For example:
> >
> > ProxyPass /myapp balancer://mybalance/myapp
> > ProxyPassReverse /myapp balancer://mybalance/myapp
>
> How are your BalancerMember(s) defined in the  balancer://mybalance..> block?
>
>
> Regards;
> Yann.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] How Do I Prevent Repetitive Hits

2022-08-25 Thread Deepak Goel
Is your server on cloud? GCS or AWS?


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Thu, Aug 25, 2022 at 9:47 PM John Iliffe  wrote:

> For the last week we have been getting hit on average about every 3
> seconds by a
> machine that appears to be in Panama.  There should be no reason why this
> machine would want to connect to us.
>
> 193.29.60.97 - - [25/Aug/2022:12:12:04 -0400] "GET /favicon.ico HTTP/1.1"
> 200
> 3262 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
> (KHTML,
> like Gecko) Chrome/104.0.5112.102 Safari/537.36"
> 193.29.60.97 - - [25/Aug/2022:12:12:05 -0400] "GET /favicon.ico HTTP/1.1"
> 200
> 3262 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
> (KHTML,
> like Gecko) Chrome/104.0.5112.102 Safari/537.36"
> 193.29.60.97 - - [25/Aug/2022:12:12:06 -0400] "GET /favicon.ico HTTP/1.1"
> 200
> 3262 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
> (KHTML,
> like Gecko) Chrome/104.0.5112.102 Safari/537.36"
> 193.29.60.97 - - [25/Aug/2022:12:12:07 -0400] "GET /favicon.ico HTTP/1.1"
> 200
> 3262 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
> (KHTML,
> like Gecko) Chrome/104.0.5112.102 Safari/537.36"
> 193.29.60.97 - - [25/Aug/2022:12:12:08 -0400] "GET /favicon.ico HTTP/1.1"
> 200
> 3262 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
> (KHTML,
> like Gecko) Chrome/104.0.5112.102 Safari/537.36"
> 193.29.60.97 - - [25/Aug/2022:12:12:10 -0400] "GET /favicon.ico HTTP/1.1"
> 200
> 3262 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
> (KHTML,
> like Gecko) Chrome/104.0.5112.102 Safari/537.36"
> 193.29.60.97 - - [25/Aug/2022:12:12:11 -0400] "GET /favicon.ico HTTP/1.1"
> 200
> 3262 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
> (KHTML,
> like Gecko) Chrome/104.0.5112.102 Safari/537.36"
> 193.29.60.97 - - [25/Aug/2022:12:12:24 -0400] "GET /favicon.ico HTTP/1.1"
> 200
> 3262 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
> (KHTML,
> like Gecko) Chrome/104.0.5112.102 Safari/537.36"
> 193.29.60.97 - - [25/Aug/2022:12:12:26 -0400] "GET /favicon.ico HTTP/1.1"
> 200
> 3262 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
> (KHTML,
> like Gecko) Chrome/104.0.5112.102 Safari/537.36"
> 193.29.60.97 - - [25/Aug/2022:12:12:33 -0400] "GET /favicon.ico HTTP/1.1"
> 200
> 3262 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
> (KHTML,
> like Gecko) Chrome/104.0.5112.102 Safari/537.36"
>
> While it doesn't appear to be causing us any harm I am wondering why
> someone
> would spend the time/money to do so and if there is any way to lock out
> this one
> source.
>
> Does anyone have any suggestions?
>
> Thanks in advance,
>
> John
> ==
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] apache questions

2023-03-13 Thread Deepak Goel
The jvm once grown to its full size (RAM) will keep the RAM. But the JVM
will release all old objects so your new users can access your website. Why
would you want to release the RAM?


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Sun, Mar 12, 2023 at 6:27 AM ashley loteck 
wrote:

> hello :) i am using wampserver and the latest apache version
> i am using http/2 on my website i noticed that overtime as i and others
> browse and use my website that after awhile the ram dont get released from
> the apache process in my task manager,after a few people post on my forums
> the ram eventually gets over 800 mb in size and dont ever get released
> until i restart the server,what settings should i change in my config file
> to automatically clear some ram usage after people disconnect from the site.
> my specs
> 16 gb ram(ddr3/dual channel/1600 mhz)
> amd fx 6300(3.5 ghz) processor
> windows 10
> using the winnt apache module with threads per child set to 200 in the mpm
> file.
>


Re: [users@httpd] Keepalive closing connections prematurely on high load on newer httpd versions

2023-05-22 Thread Deepak Goel
Hi

I can see about 8000+ requests have timed out in 'Rocky'. This is mostly
due to Apache, which is unable to handle the load. Is it possible to
increase the parameter "KeepAliveTimeout" (and other KeepAlive parameters).

Is it also possible for you to post the hardware utilisations for the 2
different servers (Centos & Rocky)?

Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Mon, May 22, 2023 at 3:49 PM Mateusz Kempski
 wrote:

> Hi all,
> I have two identical VMs - 16GB RAM, 16 vCPUs. One is fresh Centos 7
> install, the other is fresh Rocky 8. I installed httpd (on Centos 7
> it's version 2.4.6 and on Rocky 8 it's 2.4.37), configured them to
> point to the same static default html file and enabled mpm event on
> Centos (mpm event is default on Rocky). Then I added following options
> to default config on both servers:
> ```
> 
> ThreadsPerChild 25
> StartServers 3
> ServerLimit 120
> MinSpareThreads 75
> MaxSpareThreads 3000
> MaxRequestWorkers 3000
> MaxConnectionsPerChild 0
> 
> ```
> After this is done I performed ab tests with keepalive using different
> Centos 7 VM in the same local network. Can you help me understand
> these results? On Centos I am able to complete 1 milion requests at
> 1000 concurrent connections with little to no errors, however with
> version 2.4.37 on Rocky I get a lot of failed requests due to length
> and exceptions. Served content is static so I am assuming this is
> because keepalive connections are closed by the server. I tried
> various configurations of KeeAaliveTimeout, MaxKeepAliveRequests,
> AsyncRequestWorkerFactor and other mpm_event options but I got no
> better results. The only thing that seems to improve the stability of
> keepalive connections is setting threads and servers to the moon for
> example:
> ```
> 
> ThreadsPerChild 50
> StartServers 120
> ServerLimit 120
> MinSpareThreads 6000
> MaxSpareThreads 6000
> MaxRequestWorkers 6000
> MaxConnectionsPerChild 0
> 
> ```
> However it stills throws more errors (~8k) than 2.4.6 on the first set
> of settings. This problem occurs only when using keepalive. There are
> no errors when using ab without -k option, although speed is lower.  I
> can replicate this issue on newest httpd build from source (2.4.57).
> What is causing this difference of behavior? How can I achieve
> performance from 2.4.6 on 2.4.37 / 2.4.57 without throwing much more
> resources at httpd? These errors seems to be a root cause of a problem
> we have with 502 errors thrown from downstream reverse proxy server
> when httpd kills keepalive connection prematurely and the proxy is
> trying to use this connection.
>
> Below results of ab tests:
>
> Centos 7 VM:
> ```
> ab -k -t 900 -c 1000 -n 100 http://centos/
> This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
> Licensed to The Apache Software Foundation, http://www.apache.org/
>
> Benchmarking 10.1.3.3 (be patient)
> Completed 10 requests
> Completed 20 requests
> Completed 30 requests
> Completed 40 requests
> Completed 50 requests
> Completed 60 requests
> Completed 70 requests
> Completed 80 requests
> Completed 90 requests
> Completed 100 requests
> Finished 100 requests
>
>
> Server Software:Apache/2.4.6
> Server Hostname:10.1.3.3
> Server Port:80
>
> Document Path:  /
> Document Length:7620 bytes
>
> Concurrency Level:  1000
> Time taken for tests:   15.285 seconds
> Complete requests:  100
> Failed requests:67
>   (Connect: 0, Receive: 0, Length: 67, Exceptions: 0)
> Write errors:   0
> Keep-Alive requests:990567
> Total transferred:  7919057974 bytes
> HTML transferred:   7619489460 bytes
> Requests per second:65422.95 [#/sec] (mean)
> Time per request:   15.285 [ms] (mean)
> Time per request:   0.015 [ms] (mean, across all concurrent requests)
> Transfer rate:  505945.41 [Kbytes/sec] received
>
> Connection Times (ms)
>  min  mean[+/-sd] median   max
> Connect:00   4.7  01042
> Processing: 3   15  16.8 13 467
> Waiting:0   14  16.2 13 433
> Total:  3   15  17.7 131081
>
> Percentage of the requests served within a certain time (ms)
>  50% 13
>  66% 15
>  75% 16
>  80% 17
>  90% 21
>  95% 23
>  98% 32
>  99% 44
> 100%   1081 (longest request)
> ```
>
> Rocky 8 VM:
> ```
> ab -k -t 900 -c 1000 -n 100 http://rocky/
> This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
> Licensed to The Apache Software Foundation, http://www.

Re: [users@httpd] Keepalive closing connections prematurely on high load on newer httpd versions

2023-05-22 Thread Deepak Goel
Hi

1. Please post the test results completely. (Sorry but, saying there is no
difference does not help).
2. The memory used in Rocky is comparatively higher than Centos (About
30Meg or so). Also the buff/cache is approx 10 times higher in Rocky than
in Centos.
3. Please also post iotop results too.

P.S: I hope the top commands is run identical for both Rocky and Centos.

Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home



On Mon, May 22, 2023 at 4:28 PM Mateusz Kempski
 wrote:

> I tested again with settings:
> ```
> KeepAliveTimeout 300
> MaxKeepAliveRequests 0
> ```
> but there was no difference in results barring normal diffs run-to-run.
>
> Below is the top of top from both servers when idle and during test.
>
> Rocky 8 no load:
> ```
> top - 10:49:23 up 4 min,  1 user,  load average: 3.27, 2.56, 1.10
> Tasks: 254 total,   2 running, 252 sleeping,   0 stopped,   0 zombie
> %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,
> 0.0 st
> MiB Mem :  15824.7 total,  10682.4 free,283.5 used,   4858.8 buff/cache
> MiB Swap:  0.0 total,  0.0 free,  0.0 used.  15259.3 avail Mem
> ```
> Rocky 8 during test:
> ```
> top - 10:50:29 up 5 min,  1 user,  load average: 4.33, 2.80, 1.28
> Tasks: 232 total,   2 running, 230 sleeping,   0 stopped,   0 zombie
> %Cpu(s): 13.7 us, 16.9 sy,  0.0 ni, 63.9 id,  0.0 wa,  0.0 hi,  5.4 si,
> 0.1 st
> MiB Mem :  15824.7 total,   9863.0 free,529.3 used,   5432.3 buff/cache
> MiB Swap:  0.0 total,  0.0 free,  0.0 used.  15012.2 avail Mem
> ```
> Centos 7 no load:
> ```
> top - 10:52:17 up 0 min,  1 user,  load average: 0.00, 0.00, 0.00
> Tasks: 201 total,   1 running, 200 sleeping,   0 stopped,   0 zombie
> %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,
> 0.0 st
> KiB Mem : 16264300 total, 15831896 free,   297124 used,   135280 buff/cache
> KiB Swap:0 total,0 free,0 used. 15720740 avail Mem
> ```
> Centos 7 during test:
> ```
> top - 10:53:21 up 1 min,  1 user,  load average: 0.62, 0.16, 0.05
> Tasks: 218 total,   3 running, 215 sleeping,   0 stopped,   0 zombie
> %Cpu(s): 17.6 us, 18.9 sy,  0.0 ni, 60.4 id,  0.0 wa,  0.0 hi,  3.1 si,
> 0.1 st
> KiB Mem : 16264300 total, 14973128 free,   503104 used,   788068 buff/cache
> KiB Swap:0 total,0 free,0 used. 15459544 avail Mem
> ```
>
> On Mon, 22 May 2023 at 10:34, Deepak Goel  wrote:
> >
> > Hi
> >
> > I can see about 8000+ requests have timed out in 'Rocky'. This is mostly
> due to Apache, which is unable to handle the load. Is it possible to
> increase the parameter "KeepAliveTimeout" (and other KeepAlive parameters).
> >
> > Is it also possible for you to post the hardware utilisations for the 2
> different servers (Centos & Rocky)?
> >
> > Deepak
> > "The greatness of a nation can be judged by the way its animals are
> treated - Mahatma Gandhi"
> >
> > +91 73500 12833
> > deic...@gmail.com
> >
> > Facebook: https://www.facebook.com/deicool
> > LinkedIn: www.linkedin.com/in/deicool
> >
> > "Plant a Tree, Go Green"
> >
> > Make In India : http://www.makeinindia.com/home
> >
> >
> > On Mon, May 22, 2023 at 3:49 PM Mateusz Kempski
>  wrote:
> >>
> >> Hi all,
> >> I have two identical VMs - 16GB RAM, 16 vCPUs. One is fresh Centos 7
> >> install, the other is fresh Rocky 8. I installed httpd (on Centos 7
> >> it's version 2.4.6 and on Rocky 8 it's 2.4.37), configured them to
> >> point to the same static default html file and enabled mpm event on
> >> Centos (mpm event is default on Rocky). Then I added following options
> >> to default config on both servers:
> >> ```
> >> 
> >> ThreadsPerChild 25
> >> StartServers 3
> >> ServerLimit 120
> >> MinSpareThreads 75
> >> MaxSpareThreads 3000
> >> MaxRequestWorkers 3000
> >> MaxConnectionsPerChild 0
> >> 
> >> ```
> >> After this is done I performed ab tests with keepalive using different
> >> Centos 7 VM in the same local network. Can you help me understand
> >> these results? On Centos I am able to complete 1 milion requests at
> >> 1000 concurrent connections with little to no errors, however with
> >> version 2.4.37 on Rocky I get a lot of fail

Re: [users@httpd] Keepalive closing connections prematurely on high load on newer httpd versions

2023-05-22 Thread Deepak Goel
 11:57:40.149782 2023] [mpm_event:trace1] [pid 7710:tid
> 139800984155904] event.c(1811): Idle workers: 0
> [Mon May 22 11:57:40.149882 2023] [mpm_event:debug] [pid 7710:tid
> 139800984155904] event.c(492): AH00457: Accepting new connections
> again: 61 active conns (
> 38 lingering/0 clogged/0 suspended), 2 idle workers
> [Mon May 22 11:57:40.149913 2023] [mpm_event:debug] [pid 7511:tid
> 139800849938176] event.c(492): AH00457: Accepting new connections
> again: 63 active conns (
> 40 lingering/0 clogged/0 suspended), 2 idle workers
> [Mon May 22 11:57:40.150210 2023] [mpm_event:debug] [pid 7511:tid
> 139800849938176] event.c(1808): Too many open connections (62), not
> accepting new conns in
> this process
> [Mon May 22 11:57:40.150216 2023] [mpm_event:trace1] [pid 7511:tid
> 139800849938176] event.c(1811): Idle workers: 0
> ```
>
> @Deepak Goel:
> 1. Here are result with previously mentioned KeepAlive parameters:
> Rocky 8:
> ```
> ab -k -t 900 -c 1000 -n 100 http://rocky/
> This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
> Licensed to The Apache Software Foundation, http://www.apache.org/
>
> Benchmarking 10.1.3.11 (be patient)
> Completed 10 requests
> Completed 20 requests
> Completed 30 requests
> Completed 40 requests
> Completed 50 requests
> Completed 60 requests
> Completed 70 requests
> Completed 80 requests
> Completed 90 requests
> Completed 100 requests
> Finished 100 requests
>
>
> Server Software:Apache/2.4.37
> Server Hostname:10.1.3.11
> Server Port:80
>
> Document Path:  /
> Document Length:7620 bytes
>
> Concurrency Level:  1000
> Time taken for tests:   17.287 seconds
> Complete requests:  100
> Failed requests:98218
>   (Connect: 0, Receive: 0, Length: 88397, Exceptions: 9821)
> Write errors:   0
> Keep-Alive requests:911603
> Total transferred:  7214426142 bytes
> HTML transferred:   6946414860 bytes
> Requests per second:57845.81 [#/sec] (mean)
> Time per request:   17.287 [ms] (mean)
> Time per request:   0.017 [ms] (mean, across all concurrent requests)
> Transfer rate:  407543.30 [Kbytes/sec] received
>
> Connection Times (ms)
>  min  mean[+/-sd] median   max
> Connect:04  59.9  03015
> Processing: 0   13  14.5 13 432
> Waiting:0   13  14.1 13 432
> Total:  0   17  63.2 153036
>
> Percentage of the requests served within a certain time (ms)
>  50% 15
>  66% 17
>  75% 17
>  80% 18
>  90% 21
>  95% 23
>  98% 28
>  99% 36
> 100%   3036 (longest request)
> ```
> Centos 7:
> ```
> ab -k -t 900 -c 1000 -n 100 http://10.1.3.3/
> This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
> Licensed to The Apache Software Foundation, http://www.apache.org/
>
> Benchmarking 10.1.3.3 (be patient)
> Completed 10 requests
> Completed 20 requests
> Completed 30 requests
> Completed 40 requests
> Completed 50 requests
> Completed 60 requests
> Completed 70 requests
> Completed 80 requests
> Completed 90 requests
> Completed 100 requests
> Finished 100 requests
>
>
> Server Software:Apache/2.4.6
> Server Hostname:10.1.3.3
> Server Port:80
>
> Document Path:  /
> Document Length:7620 bytes
>
> Concurrency Level:  1000
> Time taken for tests:   20.731 seconds
> Complete requests:  100
> Failed requests:14
>   (Connect: 0, Receive: 0, Length: 14, Exceptions: 0)
> Write errors:   0
> Keep-Alive requests:86
> Total transferred:  7913889204 bytes
> HTML transferred:   7619893320 bytes
> Requests per second:48236.94 [#/sec] (mean)
> Time per request:   20.731 [ms] (mean)
> Time per request:   0.021 [ms] (mean, across all concurrent requests)
> Transfer rate:  372794.72 [Kbytes/sec] received
>
> Connection Times (ms)
>  min  mean[+/-sd] median   max
> Connect:00  13.1  01025
> Processing: 2   21   7.9 20 821
> Waiting:0   20   7.8 20 821
> Total:  2   21  15.7 201244
>
> Percentage of the requests served within a certain time (ms)
>  50% 20
>  66% 22
>  75% 23
>  80% 24
>  90% 25
>  95% 27
>  98% 29
>  99% 30
> 100%   

Re: [users@httpd] Keepalive closing connections prematurely on high load on newer httpd versions

2023-05-23 Thread Deepak Goel
can you please post top, iotop results for both apache 18/20?

On Tue, 23 May 2023, 17:33 Mateusz Kempski, 
wrote:

> On Ubuntu 20 with apache in stock settings + my mpm event config:
> ```
> ab -k -t 900 -c 1000 -n 100 http://ubuntu20/
> This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
> Licensed to The Apache Software Foundation, http://www.apache.org/
>
> Benchmarking 10.1.3.3 (be patient)
> Completed 10 requests
> Completed 20 requests
> Completed 30 requests
> Completed 40 requests
> Completed 50 requests
> Completed 60 requests
> Completed 70 requests
> Completed 80 requests
> Completed 90 requests
> Completed 100 requests
> Finished 100 requests
>
>
> Server Software:Apache/2.4.41
> Server Hostname:10.1.3.3
> Server Port:80
>
> Document Path:  /
> Document Length:10918 bytes
>
> Concurrency Level:  1000
> Time taken for tests:   19.528 seconds
> Complete requests:  100
> Failed requests:234371
>   (Connect: 0, Receive: 0, Length: 231339, Exceptions: 3032)
> Write errors:   0
> Keep-Alive requests:768663
> Total transferred:  8630779988 bytes
> HTML transferred:   8392262634 bytes
> Requests per second:51207.31 [#/sec] (mean)
> Time per request:   19.528 [ms] (mean)
> Time per request:   0.020 [ms] (mean, across all concurrent requests)
> Transfer rate:  431600.59 [Kbytes/sec] received
>
> Connection Times (ms)
>  min  mean[+/-sd] median   max
> Connect:07  69.0  03022
> Processing: 0   12  22.6  92028
> Waiting:06  15.8  42023
> Total:  0   19  73.8  93038
>
> Percentage of the requests served within a certain time (ms)
>  50%  9
>  66% 13
>  75% 16
>  80% 19
>  90% 30
>  95% 46
>  98% 56
>  99%215
> 100%   3038 (longest request)
> ```
>
> On Ubuntu 18 with apache in stock settings + my mpm event config.
> There is ~15 thousands length fails on the first run after apache
> restart then it stays in 100-1k range:
> ```
> ab -k -t 900 -c 1000 -n 100 http://ubuntu18/
> This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
> Licensed to The Apache Software Foundation, http://www.apache.org/
>
> Benchmarking 10.1.3.3 (be patient)
> Completed 10 requests
> Completed 20 requests
> Completed 30 requests
> Completed 40 requests
> Completed 50 requests
> Completed 60 requests
> Completed 70 requests
> Completed 80 requests
> Completed 90 requests
> Completed 100 requests
> Finished 100 requests
>
>
> Server Software:Apache/2.4.29
> Server Hostname:10.1.3.3
> Server Port:80
>
> Document Path:  /
> Document Length:10918 bytes
>
> Concurrency Level:  1000
> Time taken for tests:   17.221 seconds
> Complete requests:  100
> Failed requests:636
>   (Connect: 0, Receive: 0, Length: 636, Exceptions: 0)
> Write errors:   0
> Keep-Alive requests:990158
> Total transferred:  11220454865 bytes
> HTML transferred:   10911056152 bytes
> Requests per second:58067.59 [#/sec] (mean)
> Time per request:   17.221 [ms] (mean)
> Time per request:   0.017 [ms] (mean, across all concurrent requests)
> Transfer rate:  636274.18 [Kbytes/sec] received
>
> Connection Times (ms)
>  min  mean[+/-sd] median   max
> Connect:00  17.4  01020
> Processing: 0   17  11.3 17 377
> Waiting:    08   9.0  9 368
> Total:  0   17  21.6 171389
>
> Percentage of the requests served within a certain time (ms)
>  50% 17
>  66% 18
>  75% 18
>  80% 19
>  90% 20
>  95% 23
>  98% 28
>  99% 36
> 100%   1389 (longest request)
> ```
>
> Mateusz Kempski
> On Mon, 22 May 2023 at 13:05, Deepak Goel  wrote:
> >
> >
> >
> > On Mon, 22 May 2023, 17:58 Mateusz Kempski,
>  wrote:
> >>
> >> @Yann Ylavic:
> >> There seems to be no difference in configuration file except for some
> comments:
> >> ```
> >> diff -Bbde /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.rocky
> >> 8a
> >> # See the httpd.conf(5) man page for more information on this
> configuration,
> >> # and httpd.service(8) on using and configu

Re: [users@httpd] Keepalive closing connections prematurely on high load on newer httpd versions

2023-05-23 Thread Deepak Goel
On Tue, May 23, 2023 at 6:19 PM Mateusz Kempski
 wrote:

> Ubuntu 20 idle:
> ```
> Total DISK READ: 0.00 B/s | Total DISK WRITE: 0.00 B/s
> Current DISK READ:   0.00 B/s | Current DISK WRITE:   0.00 B/s
> ```
> ```
> top - 12:31:00 up 2 min,  1 user,  load average: 0.13, 0.04, 0.01
> Tasks: 239 total,   1 running, 238 sleeping,   0 stopped,   0 zombie
> %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,
> 0.0 st
> MiB Mem :  16006.4 total,  15259.6 free,251.0 used,495.8 buff/cache
> MiB Swap:  0.0 total,  0.0 free,  0.0 used.  15466.5 avail Mem
> ```
> Ubuntu 20 during test:
> ```
> Total DISK READ: 0.00 B/s | Total DISK WRITE: 3.47 M/s
> Current DISK READ:   0.00 B/s | Current DISK WRITE:   0.00 B/s
> ```
> ```
> top - 12:35:17 up 6 min,  1 user,  load average: 6.91, 2.99, 1.16
> Tasks: 232 total,   3 running, 229 sleeping,   0 stopped,   0 zombie
> %Cpu(s):  9.0 us, 21.3 sy,  0.0 ni, 64.4 id,  0.0 wa,  0.0 hi,  5.3 si,
> 0.1 st
> MiB Mem :  16006.4 total,  14672.6 free,358.1 used,975.7 buff/cache
>

1. The buff/cache in Ubuntu 20 is almost twice as that of Ubuntu 18. From
what I have read, this should improve the performance of Ubuntu 20 over
Ubuntu 18. However, the reverse is happening.

2. The Disk write in Ubuntu 20 is less than that of Ubuntu 18. This again
should improve performance of Ubuntu 20 over Ubuntu 18. Again the reverse
is happening. Are you writing anything to the DISK in your test?

3. Is the hardware same for all configurations (cpu, mem, disk iops,
network)?

4. I wonder if we can open 'Performance Bugs' in Ubuntu & Rocky forums.



> MiB Swap:  0.0 total,  0.0 free,  0.0 used.  15353.9 avail Mem
>
> ```
> Ubuntu 18 idle:
> ```
> Total DISK READ :   0.00 B/s | Total DISK WRITE :   0.00 B/s
> Actual DISK READ:   0.00 B/s | Actual DISK WRITE:   0.00 B/s
> ```
> ```
> top - 12:46:31 up 1 min,  1 user,  load average: 0.56, 0.30, 0.11
> Tasks: 226 total,   1 running, 112 sleeping,   0 stopped,   0 zombie
> %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,
> 0.0 st
> KiB Mem : 16422552 total, 15861664 free,   204228 used,   356660 buff/cache
> KiB Swap:  4194300 total,  4194300 free,0 used. 15936820 avail Mem
> ```
> Ubuntu 18 during test:
> ```
> top - 12:47:07 up 1 min,  1 user,  load average: 0.55, 0.31, 0.12
> Tasks: 241 total,   1 running, 127 sleeping,   0 stopped,   0 zombie
> %Cpu(s): 11.3 us, 17.0 sy,  0.0 ni, 68.3 id,  0.0 wa,  0.0 hi,  3.3 si,
> 0.1 st
> KiB Mem : 16422552 total, 15687480 free,   329456 used,   405616 buff/cache
> KiB Swap:  4194300 total,  4194300 free,0 used. 15809620 avail Mem
> ```
> ```
> Total DISK READ :   0.00 B/s | Total DISK WRITE :   4.76 M/s
> Actual DISK READ:   0.00 B/s | Actual DISK WRITE:   0.00 B/s
> ```
>
>
> Mateusz Kempski
>
> On Tue, 23 May 2023 at 12:13, Deepak Goel  wrote:
> >
> > can you please post top, iotop results for both apache 18/20?
> >
> > On Tue, 23 May 2023, 17:33 Mateusz Kempski,
>  wrote:
> >>
> >> On Ubuntu 20 with apache in stock settings + my mpm event config:
> >> ```
> >> ab -k -t 900 -c 1000 -n 100 http://ubuntu20/
> >> This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
> >> Copyright 1996 Adam Twiss, Zeus Technology Ltd,
> http://www.zeustech.net/
> >> Licensed to The Apache Software Foundation, http://www.apache.org/
> >>
> >> Benchmarking 10.1.3.3 (be patient)
> >> Completed 10 requests
> >> Completed 20 requests
> >> Completed 30 requests
> >> Completed 40 requests
> >> Completed 50 requests
> >> Completed 60 requests
> >> Completed 70 requests
> >> Completed 80 requests
> >> Completed 90 requests
> >> Completed 100 requests
> >> Finished 100 requests
> >>
> >>
> >> Server Software:Apache/2.4.41
> >> Server Hostname:10.1.3.3
> >> Server Port:80
> >>
> >> Document Path:  /
> >> Document Length:10918 bytes
> >>
> >> Concurrency Level:  1000
> >> Time taken for tests:   19.528 seconds
> >> Complete requests:  100
> >> Failed requests:234371
> >>   (Connect: 0, Receive: 0, Length: 231339, Exceptions: 3032)
> >> Write errors:   0
> >> Keep-Alive requests:768663
> >> Total transferred:  8630779988 bytes
> >> HTML transferred:   8392262634 bytes
> >&

Re: [users@httpd] mod_cluster in Apache 2.4.x

2023-09-21 Thread Deepak Goel
This might help: https://httpd.apache.org/docs/2.4/mod/mod_proxy.html


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Thu, Sep 21, 2023 at 2:46 PM Gillis J. de Nijs 
wrote:

> mod_cluster is open source.  You can add it yourself to your Apache
> instance.
>
> https://www.modcluster.io/
>
> Regards,
> Gillis
>
> On Thu, Sep 21, 2023 at 8:04 AM vicky chb  wrote:
>
>> Hi all,
>>
>> Does Apache 2.4.x have mod_cluster module available? I checked
>> https://httpd.apache.org/docs/2.4/mod/ but did not find. I also checked
>> and found that enterprise based Apache like JBCS etc provides this package.
>>
>> If mod_cluster is currently not supported then what is the alternate
>> option available?
>>
>> Cheers,
>> Vikky
>>
>


Re: [users@httpd] Apache web server httpd in Netgear Wireless Router WNR3500L

2023-09-27 Thread Deepak Goel
This might help:

https://serverfault.com/questions/16839/how-do-i-get-apache-to-startup-at-bootime-on-linux

You might have to do something like this:

chkconfig --level 345 httpd on


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Wed, Sep 27, 2023 at 4:25 PM Frank Gingras  wrote:

> You should ask the Netgear / busybox folks instead of this mailing list.
>
> Especially the former as they ship your product.
>
> On Wed., Sep. 27, 2023, 6:45 a.m. Turritopsis Dohrnii Teo En Ming, <
> tdtemc...@gmail.com> wrote:
>
>> Subject: Apache web server httpd in Netgear Wireless Router WNR3500L
>>
>> Good day from Singapore,
>>
>> Release version : Netgear Wireless Router WNR3500L
>> U12H13699/V1.0.2.35/32.1.9_TR069_0528
>> Time : May 29 2010 10:31:41
>> CFE version : v1.0.36
>>
>> We were trying to login to the Netgear wireless router but the web UI
>> was not available. Then we managed to telnet (TCP port 23) into the
>> Netgear wireless router.
>> The operating system is BusyBox. I am sorry I did not note down the
>> version of BusyBox. BusyBox is a stripped-down version of the Linux
>> operating system. When I run the Linux command "httpd", the Apache web
>> server started and we managed to login to the web UI already.
>>
>> But when we need to reboot the Netgear wireless router, where are the
>> Apache web server httpd autostart scripts? Do we have to manually
>> execute the httpd command every time we reboot the Netgear wireless
>> router?
>>
>> Why was httpd not running when we tried to login to the web UI? Did
>> somebody kill the httpd process or deleted the httpd autostart
>> scripts?
>>
>> Please advise.
>>
>> Thank you.
>>
>> Regards,
>>
>> Mr. Turritopsis Dohrnii Teo En Ming
>> Targeted Individual in Singapore
>> Blogs:
>> https://tdtemcerts.blogspot.com
>> https://tdtemcerts.wordpress.com
>> GIMP also stands for Government-Induced Medical Problems.
>>
>> I have configured, setup and deployed 22 Fortigate firewall appliances
>> for 20 companies/organizations in Singapore so far as of 27 Sep 2023
>> Wed.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>


Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Deepak Goel
On Fri, Sep 29, 2023 at 3:52 PM Sreenivasulu Alapaka <
sreenivasulu.alapaka...@gmail.com> wrote:

> Hi Team,
>
> I am using httpd and mod_perl libraries to spawn the process to
> execute the tasks. httpd will spawn a process which is parent and it will
> spawn the other child process to perform the tasks.
>   The parent process job is to monitor the child process and the
> child process has to perform the functionality taks. All of sudden one of
> the child process is executing the tasks of the parent instead of the child
> process tasks.
>
> How did you infer that the child process is executing the parent task?


>  I am using RHEL8 environment and these below are library
> versions.
>  Same piece of code worked in Cent 7.
>
>   httpd: 2.4.6
>   mod_perl: 2.0.10
>
>Could you please help here, how to debug the issue?
>
> --
> Thanks & Regards
> *Sreenivasulu Alapaka*
>



Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Deepak Goel
On Fri, Sep 29, 2023 at 4:15 PM Sreenivasulu Alapaka <
sreenivasulu.alapaka...@gmail.com> wrote:

> Hi Deepak,
>
> I have specific logs for parent and child process and am able
> to see the logs of parent process dumped in child process log with child
> process id.
>
>
Please share the log files..


> On Fri, Sep 29, 2023 at 3:58 PM Deepak Goel  wrote:
>
>>
>>
>> On Fri, Sep 29, 2023 at 3:52 PM Sreenivasulu Alapaka <
>> sreenivasulu.alapaka...@gmail.com> wrote:
>>
>>> Hi Team,
>>>
>>> I am using httpd and mod_perl libraries to spawn the process to
>>> execute the tasks. httpd will spawn a process which is parent and it will
>>> spawn the other child process to perform the tasks.
>>>   The parent process job is to monitor the child process and the
>>> child process has to perform the functionality taks. All of sudden one of
>>> the child process is executing the tasks of the parent instead of the child
>>> process tasks.
>>>
>>> How did you infer that the child process is executing the parent task?
>>
>>
>>>  I am using RHEL8 environment and these below are library
>>> versions.
>>>  Same piece of code worked in Cent 7.
>>>
>>>   httpd: 2.4.6
>>>   mod_perl: 2.0.10
>>>
>>>Could you please help here, how to debug the issue?
>>>
>>> --
>>> Thanks & Regards
>>> *Sreenivasulu Alapaka*
>>>
>>
>>
>>
>> Deepak
>> "The greatness of a nation can be judged by the way its animals are
>> treated - Mahatma Gandhi"
>>
>> +91 73500 12833
>> deic...@gmail.com
>>
>> Facebook: https://www.facebook.com/deicool
>> LinkedIn: www.linkedin.com/in/deicool
>>
>> "Plant a Tree, Go Green"
>>
>> Make In India : http://www.makeinindia.com/home
>>
>>
>>
>
>
> --
> Thanks & Regards
> *Sreenivasulu Alapaka*
>


Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Deepak Goel
On Fri, Sep 29, 2023 at 4:35 PM Sreenivasulu Alapaka <
sreenivasulu.alapaka...@gmail.com> wrote:

> Hi Deepak,
>
>  Please find the logs below.
>  Parent task is to monitor the workers(childs) and then
> remove/start additional workers based on the load.
>   its performing its task.
> Parent process logs
>  =
> Wed Sep 27 20:36:36 2023: Started (PID: 3032)
> Fri Sep 29 16:12:07 2023: Removing some Client Monitor Workers
>

I am not sure what is *Client Monitor Workers. *It might not be the
same as *Client
Workers.*


> Fri Sep 29 16:12:18 2023: restarting Client Monitor Worker...
> Fri Sep 29 16:12:33 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:12:54 2023: Removing some Client Monitor Workers
> Fri Sep 29 16:13:06 2023: restarting Client Monitor Worker...
> Fri Sep 29 16:13:22 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:13:36 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:13:54 2023: Removing some Client Monitor Workers
> Fri Sep 29 16:14:09 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:14:23 2023: restarting Client Monitor Worker...
> Fri Sep 29 16:14:39 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:14:54 2023: Removing some Client Monitor Workers
> Fri Sep 29 16:15:08 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:15:27 2023: Removing some Client Monitor Workers
> Fri Sep 29 16:15:42 2023: Starting additional Client Monitor Workers
>
> After spawning the child process , it works for some time properly and
> then starts performing tasks of the parent.
> Child process logs
> ==
> Wed Sep 27 20:36:43 2023: Started (PID: 5321)
> Wed Sep 27 20:41:16 2023: Synchronizing containment
> Wed Sep 27 20:41:16 2023: Synchronizing containment
> Wed Sep 27 20:41:17 2023: Sync complete; beginning audit
> Wed Sep 27 20:41:19 2023: Audit finished.
> Wed Sep 27 21:16:23 2023: Audit finished.
> Wed Sep 27 21:16:23 2023: nothing to do
> Wed Sep 27 21:43:39 2023: Removing some Client Monitor Workers
> Wed Sep 27 21:43:54 2023: Removing some Client Monitor Workers
> Wed Sep 27 21:44:09 2023: Removing some Client Monitor Workers
> Wed Sep 27 21:44:24 2023: Removing some Client Monitor Workers
> Wed Sep 27 21:44:39 2023: Removing some Client Monitor Workers
> Wed Sep 27 21:44:54 2023: Removing some Client Monitor Workers
> Wed Sep 27 21:45:09 2023: Removing some Client Monitor Workers
> Fri Sep 29 16:13:29 2023: Removing some Client Monitor Workers
> Fri Sep 29 16:13:44 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:13:58 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:14:17 2023: Removing some Client Monitor Workers
> Fri Sep 29 16:14:32 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:14:51 2023: Removing some Client Monitor Workers
> Fri Sep 29 16:15:06 2023: restarting Client Monitor Worker...
> Fri Sep 29 16:15:22 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:15:36 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:16:00 2023: Removing some Client Monitor Workers
> Fri Sep 29 16:16:10 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:16:30 2023: Removing some Client Monitor Workers
> Fri Sep 29 16:16:45 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:17:06 2023: Removing some Client Monitor Workers
> Fri Sep 29 16:17:20 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:17:40 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:17:55 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:18:09 2023: Starting additional Client Monitor Workers
> Fri Sep 29 16:18:28 2023: Removing some Client Monitor Workers
> Fri Sep 29 16:18:43 2023: Starting additional Client Monitor Workers
>
> Child process worked perfectly till Wed Sep 27 21:16:23 2023: and after
> that I didn't see any logs. Suddenly it started dumping the parent process
> logs from Wed Sep 27 21:43:39 2023. It's not recovering , it's required to
> kill the child process then Parent process will spawn another child process
> to do the task and the newly spawned child will work for some time and
> again enter into the issue state.
>
> On Fri, Sep 29, 2023 at 4:17 PM Deepak Goel  wrote:
>
>>
>>
>> On Fri, Sep 29, 2023 at 4:15 PM Sreenivasulu Alapaka <
>> sreenivasulu.alapaka...@gmail.com> wrote:
>>
>>> Hi Deepak,
>>>
>>> I have specific logs for parent and child process and am
>>> able to see the logs of parent process dumped in child process log with
>>> child process id.

Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Deepak Goel
Obviously there is a common function which is being called by your server,
client threads.

You will have to share your code for us to find out what's going on.

On Fri, 29 Sept 2023, 17:08 Sreenivasulu Alapaka, <
sreenivasulu.alapaka...@gmail.com> wrote:

> Hi Deepak,
>
>
> *Client Monitor Workers is application specific log.  This message will be
> logged by the parent process in my application but not the child process.
>In the issue state, I am seeing the *
> *Client Monitor Workers in both parent and child logs as the child is
> executing the tasks of the parent instead of its own.  How can we
> debug this?*
>
> On Fri, Sep 29, 2023 at 4:44 PM Deepak Goel  wrote:
>
>>
>>
>> On Fri, Sep 29, 2023 at 4:35 PM Sreenivasulu Alapaka <
>> sreenivasulu.alapaka...@gmail.com> wrote:
>>
>>> Hi Deepak,
>>>
>>>  Please find the logs below.
>>>  Parent task is to monitor the workers(childs) and then
>>> remove/start additional workers based on the load.
>>>   its performing its task.
>>> Parent process logs
>>>  =
>>> Wed Sep 27 20:36:36 2023: Started (PID: 3032)
>>> Fri Sep 29 16:12:07 2023: Removing some Client Monitor Workers
>>>
>>
>> I am not sure what is *Client Monitor Workers. *It might not be the same
>> as *Client Workers.*
>>
>>
>>> Fri Sep 29 16:12:18 2023: restarting Client Monitor Worker...
>>> Fri Sep 29 16:12:33 2023: Starting additional Client Monitor Workers
>>> Fri Sep 29 16:12:54 2023: Removing some Client Monitor Workers
>>> Fri Sep 29 16:13:06 2023: restarting Client Monitor Worker...
>>> Fri Sep 29 16:13:22 2023: Starting additional Client Monitor Workers
>>> Fri Sep 29 16:13:36 2023: Starting additional Client Monitor Workers
>>> Fri Sep 29 16:13:54 2023: Removing some Client Monitor Workers
>>> Fri Sep 29 16:14:09 2023: Starting additional Client Monitor Workers
>>> Fri Sep 29 16:14:23 2023: restarting Client Monitor Worker...
>>> Fri Sep 29 16:14:39 2023: Starting additional Client Monitor Workers
>>> Fri Sep 29 16:14:54 2023: Removing some Client Monitor Workers
>>> Fri Sep 29 16:15:08 2023: Starting additional Client Monitor Workers
>>> Fri Sep 29 16:15:27 2023: Removing some Client Monitor Workers
>>> Fri Sep 29 16:15:42 2023: Starting additional Client Monitor Workers
>>>
>>> After spawning the child process , it works for some time properly and
>>> then starts performing tasks of the parent.
>>> Child process logs
>>> ==
>>> Wed Sep 27 20:36:43 2023: Started (PID: 5321)
>>> Wed Sep 27 20:41:16 2023: Synchronizing containment
>>> Wed Sep 27 20:41:16 2023: Synchronizing containment
>>> Wed Sep 27 20:41:17 2023: Sync complete; beginning audit
>>> Wed Sep 27 20:41:19 2023: Audit finished.
>>> Wed Sep 27 21:16:23 2023: Audit finished.
>>> Wed Sep 27 21:16:23 2023: nothing to do
>>> Wed Sep 27 21:43:39 2023: Removing some Client Monitor Workers
>>> Wed Sep 27 21:43:54 2023: Removing some Client Monitor Workers
>>> Wed Sep 27 21:44:09 2023: Removing some Client Monitor Workers
>>> Wed Sep 27 21:44:24 2023: Removing some Client Monitor Workers
>>> Wed Sep 27 21:44:39 2023: Removing some Client Monitor Workers
>>> Wed Sep 27 21:44:54 2023: Removing some Client Monitor Workers
>>> Wed Sep 27 21:45:09 2023: Removing some Client Monitor Workers
>>> Fri Sep 29 16:13:29 2023: Removing some Client Monitor Workers
>>> Fri Sep 29 16:13:44 2023: Starting additional Client Monitor Workers
>>> Fri Sep 29 16:13:58 2023: Starting additional Client Monitor Workers
>>> Fri Sep 29 16:14:17 2023: Removing some Client Monitor Workers
>>> Fri Sep 29 16:14:32 2023: Starting additional Client Monitor Workers
>>> Fri Sep 29 16:14:51 2023: Removing some Client Monitor Workers
>>> Fri Sep 29 16:15:06 2023: restarting Client Monitor Worker...
>>> Fri Sep 29 16:15:22 2023: Starting additional Client Monitor Workers
>>> Fri Sep 29 16:15:36 2023: Starting additional Client Monitor Workers
>>> Fri Sep 29 16:16:00 2023: Removing some Client Monitor Workers
>>> Fri Sep 29 16:16:10 2023: Starting additional Client Monitor Workers
>>> Fri Sep 29 16:16:30 2023: Removing some Client Monitor Workers
>>> Fri Sep 29 16:16:45 2023: Starting additional Client Monitor Workers
>>> Fri Sep 29 16:17:06 2023: Removing some Client Monitor Workers
>>> Fri Sep 29 16:17:20 2023: Starting

Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Deepak Goel
It might be interesting to know how "fork" works...

On Fri, 29 Sept 2023, 19:56 Sreenivasulu Alapaka, <
sreenivasulu.alapaka...@gmail.com> wrote:

> Yes, Deepak
> the parent and child process are derived from same Base class.
> i defined a function name main in base class with empty implememationa and
> same got implemented for both parent and child in their own module.
> Below is a skeleton of code. the parent process is spawned while
> bootstrapping the httpd and then child process is spawned from parent.  I
> am using fork to spawn the process
>
> package Test::Base;
>
>   #common functionalities will define here
>
>   #abstract main method. should implement in derived modules
>   sub main {}
> }
>
> 1;
> 
> package Test::Parent;
> use base qw(Test::Base);
>
> #specific functionality for Parent
>
> #task of main to spawn and monitor the child process
> sub main {
>   #spawn child process if its not spawned already
>
>   #check the spawned child process status. start the child process which
> are not alive
> }
>
> 1;
>
> -
> package Test::Child;
> use base qw(Test::Base);
>
> #specific functionality of child process
>
> sub main {
>   #check and execute the tasks of child continuously
>#use ally its never ending loop to check and execute the tsak
> #even if its come out , i will exit the child process using
> CORE::exit()
> }
>
> 1;
>
>
> On Fri, Sep 29, 2023 at 6:24 PM Deepak Goel  wrote:
>
>> Obviously there is a common function which is being called by your
>> server, client threads.
>>
>> You will have to share your code for us to find out what's going on.
>>
>> On Fri, 29 Sept 2023, 17:08 Sreenivasulu Alapaka, <
>> sreenivasulu.alapaka...@gmail.com> wrote:
>>
>>> Hi Deepak,
>>>
>>>
>>> *Client Monitor Workers is application specific log.  This message will
>>> be logged by the parent process in my application but not the child
>>> process. In the issue state, I am seeing the *
>>> *Client Monitor Workers in both parent and child logs as the child is
>>> executing the tasks of the parent instead of its own.  How can we
>>> debug this?*
>>>
>>> On Fri, Sep 29, 2023 at 4:44 PM Deepak Goel  wrote:
>>>
>>>>
>>>>
>>>> On Fri, Sep 29, 2023 at 4:35 PM Sreenivasulu Alapaka <
>>>> sreenivasulu.alapaka...@gmail.com> wrote:
>>>>
>>>>> Hi Deepak,
>>>>>
>>>>>  Please find the logs below.
>>>>>  Parent task is to monitor the workers(childs) and
>>>>> then remove/start additional workers based on the load.
>>>>>   its performing its task.
>>>>> Parent process logs
>>>>>  =
>>>>> Wed Sep 27 20:36:36 2023: Started (PID: 3032)
>>>>> Fri Sep 29 16:12:07 2023: Removing some Client Monitor Workers
>>>>>
>>>>
>>>> I am not sure what is *Client Monitor Workers. *It might not be the
>>>> same as *Client Workers.*
>>>>
>>>>
>>>>> Fri Sep 29 16:12:18 2023: restarting Client Monitor Worker...
>>>>> Fri Sep 29 16:12:33 2023: Starting additional Client Monitor Workers
>>>>> Fri Sep 29 16:12:54 2023: Removing some Client Monitor Workers
>>>>> Fri Sep 29 16:13:06 2023: restarting Client Monitor Worker...
>>>>> Fri Sep 29 16:13:22 2023: Starting additional Client Monitor Workers
>>>>> Fri Sep 29 16:13:36 2023: Starting additional Client Monitor Workers
>>>>> Fri Sep 29 16:13:54 2023: Removing some Client Monitor Workers
>>>>> Fri Sep 29 16:14:09 2023: Starting additional Client Monitor Workers
>>>>> Fri Sep 29 16:14:23 2023: restarting Client Monitor Worker...
>>>>> Fri Sep 29 16:14:39 2023: Starting additional Client Monitor Workers
>>>>> Fri Sep 29 16:14:54 2023: Removing some Client Monitor Workers
>>>>> Fri Sep 29 16:15:08 2023: Starting additional Client Monitor Workers
>>>>> Fri Sep 29 16:15:27 2023: Removing some Client Monitor Workers
>>>>> Fri Sep 29 16:15:42 2023: Starting additional Client Monitor Workers
>>>>>
>>>>> After spawning the child process , it works for some time properly and
>>>>> then starts performing tasks 

Re: [users@httpd] Is it true that Nginx is faster, more secure and better than Apache?

2023-10-01 Thread Deepak Goel
On Sat, 30 Sept 2023, 12:26 Jason Long,  wrote:

> Hello,
> Is the following sentence correct?
> "The way Apache loads PHP in its standard setup (with mod_php) compared to
> Nginx alone puts it at a disadvantage. You will see performance gains,
> particularly in memory usage, just by switching to Nginx, given you're
> using a PHP-driven application."
>

You will have to performance benchmark both Apache, Nginx to make a
statement.

We use Apache with PHP.


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


Re: [users@httpd] AH10224: tunnel timed out

2024-02-07 Thread Deepak Goel
On Wed, 7 Feb 2024, 01:40 Holzhaus,Joe, 
wrote:

> Hi,
>
>
>
> We are using it as a proxy server to just pass thru data.  We started
> getting this message about a month ago and not able to track down the
> culprit and not sure how to stop it.
>
Has the load on the server increased since past 1 month?

  Any troubleshooting tips would be helpful.
>
>
>
> [2024-02-06 13:48:08.496806] [proxy_connect:error] [pid: 6724:tid
> 140736959809280] :  : [client :] AH10224: tunnel timed
> out" , referrer
>
> httpd[21141]: {"@timestamp":"2024-02-06
> 07:32:18.452521","@version":"1","logsource":"apache_error","logsourcetype":"apache","logidx":"idxPENGprod","environment":"prod","servergroup":"021","module":"proxy_connect","level":"error","pid":"18564","tid":"140737018558208","source_file":"","APR":"","client":" address>:","referer":"","user_agent":"Go-http-client/1.1","request_id":"UabYmg4qwVU","connection_id":"","keep_alive_no":"0","message":"AH10224:
> tunnel timed out"}
>
>
>
>
>
> *Thank you,*
>
>
>
> *Joe Holzhaus*
>