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

2022-05-31 Thread Rajkumar Adsule
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 thi

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

2022-05-31 Thread Frank Gingras
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 directiv

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

2022-05-27 Thread Frank Gingras
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 wrote: > Google threw out this: > > > https://s

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

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

2022-05-27 Thread Frank Gingras
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 thre

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

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

2022-05-27 Thread Rajkumar Adsule
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

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/i

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

2022-05-27 Thread Rajkumar Adsule
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. I

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

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

2022-05-27 Thread Rajkumar Adsule
please find the process wise memory consumption Private + Shared = RAM used Program 4.0 KiB + 9.5 KiB = 13.5 KiB acpid 4.0 KiB + 9.5 KiB = 13.5 KiB agetty 4.0 KiB + 16.5 KiB = 20.5 KiB rpc.rquotad 4.0 KiB + 20.5 KiB = 24.5 KiB hald-addon-acpi 4.0 KiB + 22.0 KiB = 26.0

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

2022-05-27 Thread Rajkumar Adsule
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 Max

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.linkedi

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

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

2022-05-27 Thread Rajkumar Adsule
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 (s

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

2022-05-26 Thread Frank Gingras
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 ca

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

[users@httpd] Re: High Memory usage issue

2022-05-26 Thread Rajkumar Adsule
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 ThreadsPerChil