Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Mar 11, 2015 8:08 pm 
Offline
Senior Newbie

Joined: Sat Jan 17, 2015 3:17 pm
Posts: 15
Hi,

I'm not sure if anyone can help but its worth a try.

Background:
    Linode 2GB Plan + Fedora 21 + Apache
    Currently, there are no clients as the Development team is testing the application for production readiness.

Problem
Initially, the server response was great but now it is very slow. If a Tester tries to upload 10 photos the server can take up to 1 minute to upload, and in some cases the server times out. In previous weeks, this would take only 5-7 seconds.

Actions
    1) No configuration changes were made that could explain the sudden slow response, the issue seems to have just started on its own.
    2) I am not sure if this has to do with Apache settings, so I started looking into the MaxClients directive. I noticed that there was no directives in the initial httpd.conf file.
    3) Based on the Linode Guide below, I decided to add the MaxClients directive into the httpd.conf file as outlined. I did some calculations to determine the MaxClients value and the number based on processes running and RAM is 36. However, I kept the value of 30 shown in the Linode Guide.


Results
    The response it still slow, with no apparent gains.


Questions
    1) Does anyone know if this is correct and will this directive work for both port 80 and 443?
    2) Also, is the module setting significant (prefork, worker, event)?

    3) I am not sure what module was used when installing Apache, is there a way to check?


Any assistance and/or direction is much appreciated.


Thanks,

R


-----------------httpd.conf------------------------
KeepAlive Off

<IfModule mpm_prefork_module>
StartServers 2
MinSpareServers 6
MaxSpareServers 12
MaxClients 30
MaxRequestsPerChild 3000
</IfModule>
-----------------httpd.conf------------------------


Linode Guide https://www.linode.com/docs/websites/ho ... -linode-1g


Top
   
PostPosted: Tue Mar 17, 2015 3:02 pm 
Offline
Senior Member

Joined: Sat Jun 12, 2010 4:53 pm
Posts: 77
If you are using php (mod_php) you are using prefork mode. You can ignore the other modes.

The problem you are seeing is doubtful to be these apache settings but rather the backend app (php, mysql, etc).


Top
   
PostPosted: Wed Mar 25, 2015 2:49 pm 
Offline
Senior Newbie

Joined: Sat Jan 17, 2015 3:17 pm
Posts: 15
Hi reaktor,

I appreciate the response.

1) How can I check if mod_php ws installed and in use?
2) What suggestions do you have for checking the backend app? I assume you mean settings with the PHP configuration file and MySQL configuration file.

Please let me know if you have any ideas or additional directions. Your help is much appreciated.


Thanks,

Ray


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group