Databases Reference
In-Depth Information
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
</IfModule>
To know which MPM is used by the Apache Web Server, the
following command can be used:
httpd -l
This command can be run on an Apache Web Server. It returns
a list of modules in which the Apache binary is compiled. If we
ind prefork.c in the result, it means that the Apache Web
Server is using the Prefork MPM.
In the preceding configuration, the most important configuration parameter is
MaxClients . This parameter defines the maximum number of concurrent requests
that can be handled by the Apache Web Server at a time. The MaxClients value
must be configured lower than or equal to the maxThreads value of the Tomcat's
AJP connector. If the value of the MaxClients parameter is higher than maxThreads
of the AJP connector, it is possible that the Liferay Portal server hangs up or some
requests are dropped off. The Worker MPM is a multi-threaded MPM. So, each
process starts multiple threads. The ThreadsPerChild parameter configures the
maximum number of threads that can run within one process. The ServerLimit
parameter is used to limit the maximum number of process that can be started by the
server. The value of the ServerLimit parameter must be higher than MaxClients or
ThreadsPerChild . It is advisable to configure these values carefully with respect to
the physical memory on the Apache Web Server. During the load test, these values
should be tuned along with the Tomcat server's thread pool configuration.
Summary
In this chapter, we learned the configuration best practices to deploy a high
performing Liferay-Portal-based solution. We learned how to tweak the Liferay
Portal configuration to achieve the best performance. We also learned how to
configure the Liferay Portal Application Server by applying best practices. We
learned the recommended configurations for the Liferay Portal Application Server.
We extended the Apache Web Server configuration from Chapter 2 , Load Balancing
and Clustering Best Practices by applying performance best practices. With this
knowledge, we can easily fine-tune our Liferay-Portal-based solution.
In the next chapter, we will focus on caching best practices to further improve the
performance of the solution. So let's gear up to get started on caching best practices.
 
Search WWH ::




Custom Search