On Jun 18, 2015, at 9:41 , Andy A <[email protected]> wrote:
> Okay great. Thanks for the reply. I have done the following.
>
> I have changed the following line to track the 'serving' time for a page.
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"
> **%T/%D**" combined (added %T/%D)
Hi Andy,
What are times like in your logs?
Is each request slow or is it just that you get so many?
Try attacking the problem from the client side too.
Using Firefox with firebug or Chrome with it’s developper tool could tell you
more.
You might see if the requests spend most of their times resolving dns for
instance, or waiting for redirection etc.
Keep digging. Premature optimisation will not help you if it’s not applied to
the root cause of your problem.
Also, try to get some data using mod_status, especially how many connections
are open at any given time.
Shame you are not running 5.1 or later.
The new dashboard was created especially for this kind of problem.
>
> For number of processes for httpd:
>
> With a single device, after the pfdhcplistener is done, for the first ever
> request to the captive portal, I saw 10 httpd processes. But for all the
> subsequent requests, the number of processes were between 3-4. This was for a
> single device on the VLAN.
>
> I also couldn't find the 'worker' module configuration anywhere. So I think
> httpd is running with default configuration as far as threads, processes,
> connections etc.
> I think, I should be adding the following sample configuration somewhere, can
> you tell me here would this go?
>
> ServerLimit 16
> StartServers 2
> MaxClients 200
> MinSpareThreads 25
> MaxSpareThreads 75
> ThreadsPerChild 25
>
> I have turned on the slow query log in mysql and no queries have showed up so
> far, been running for past 3 hours.
>
> Anything else that I can look at?
Lastly, we don’t use the worker module.
We are running apache in prefork mode (threads are not used).
The server limit you have set is very low.
This is what you were looking for:
$Timeout = "5";
$KeepAliveTimeout = "3";
$MaxClients =
pf::services::manager::httpd::calculate_max_clients(pf::services::manager::httpd::get_total_system_memory());
$StartServers = "4";
$MinSpareServers = "2";
[in conf/httpd.conf.d/httpd.portal]
Let us know what you find.
Regards,
--
Louis Munro
[email protected] :: www.inverse.ca
+1.514.447.4918 x125 :: +1 (866) 353-6153 x125
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence
(www.packetfence.org)------------------------------------------------------------------------------
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users