Thanks Frank, and sorry for the personnel email.

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 Tue, May 31, 2022 at 6:03 PM Frank Gingras <thu...@apache.org> wrote:

> Rajkumar - Here is a tip - sending a direct email to solicit hand-holding
> or consulting is bad form on a public list such as this one, especially
> when you started with a public thread.
>
> The answer is no to both, either way. To configure event, it's a simple
> matter of tweaking the following directives:
>
>     StartServers
>     MinSpareThreads
>     MaxSpareThreads
>     ThreadsPerChild
>     MaxRequestWorkers
>     MaxConnectionsPerChild
>
> Your distro should have sane albeit conservative values for those which
> should suit your workload, resulting in httpd using no more than 30-40MB in
> total.
>
> The next step is to configure your php-fpm pools, then use mod_proxy_fcgi
> to send the php requests to it, as per the wiki article I linked before.
>
> For help with php-fpm, you will need to ask php forums.
>
> On Fri, 27 May 2022 at 12:35, Frank Gingras <thu...@apache.org> wrote:
>
>> I recommend that you refer to the ASF wiki article instead:
>>
>> https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
>>
>> Other options include fastcgi and fcgid; I strongly recommend to use
>> php-fpm nowadays.
>>
>> On Fri, 27 May 2022 at 12:30, Deepak Goel <deic...@gmail.com> wrote:
>>
>>> 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 <thu...@apache.org> 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 <deic...@gmail.com> 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, <rads...@opendr.com.invalid>
>>>>> 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 <deic...@gmail.com>
>>>>>> 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
>>>>>>> <rads...@opendr.com.invalid> 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 <deic...@gmail.com>
>>>>>>>> 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
>>>>>>>>> <rads...@opendr.com.invalid> wrote:
>>>>>>>>>
>>>>>>>>>> yes, what would be the best configuration for 32CPU and 64GB RAM
>>>>>>>>>> server, and why it is eating that much memory.
>>>>>>>>>>
>>>>>>>>>> <IfModule mpm_event_module>
>>>>>>>>>>     ServerLimit 4000
>>>>>>>>>>     StartServers 40
>>>>>>>>>>     MinSpareThreads 25
>>>>>>>>>>     MaxSpareThreads 2000
>>>>>>>>>>     ThreadLimit 64
>>>>>>>>>>     ThreadsPerChild 25
>>>>>>>>>>     MaxRequestWorkers 4000
>>>>>>>>>>     MaxClients 4000
>>>>>>>>>>     MaxConnectionsPerChild 0
>>>>>>>>>> </IfModule>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 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 <deic...@gmail.com>
>>>>>>>>>> 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
>>>>>>>>>>> <rads...@opendr.com.invalid> 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 <deic...@gmail.com>
>>>>>>>>>>>> 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
>>>>>>>>>>>>> <rads...@opendr.com.invalid> 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     shared
>>>>>>>>>>>>>>  buffers     cached
>>>>>>>>>>>>>> Mem:         60517      59155       1361        162
>>>>>>>>>>>>>> 7344       6487
>>>>>>>>>>>>>> -/+ buffers/cache:      45324      15192
>>>>>>>>>>>>>> Swap:        15358        133      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 <
>>>>>>>>>>>>>> thu...@apache.org> 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 <deic...@gmail.com>
>>>>>>>>>>>>>>> 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
>>>>>>>>>>>>>>>> <rads...@opendr.com.invalid> 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
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> <IfModule mpm_event_module>
>>>>>>>>>>>>>>>>>     ServerLimit 4000
>>>>>>>>>>>>>>>>>     StartServers 40
>>>>>>>>>>>>>>>>>     MinSpareThreads 25
>>>>>>>>>>>>>>>>>     MaxSpareThreads 2000
>>>>>>>>>>>>>>>>>     ThreadLimit 64
>>>>>>>>>>>>>>>>>     ThreadsPerChild 25
>>>>>>>>>>>>>>>>>     MaxRequestWorkers 4000
>>>>>>>>>>>>>>>>>     MaxClients 4000
>>>>>>>>>>>>>>>>>     MaxConnectionsPerChild 0
>>>>>>>>>>>>>>>>> </IfModule>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> please suggest a solution.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>>>> Rajkumar Adsule
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>>>>>>>>>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>>>>>>>>>
>>>>>>>>>>>

Reply via email to