29 March, 2013

SpeedUP Liferay Application

Here is some bench marks which can increase your system performance :

Please see below details which can be taken care for Liferay performance benchmark.

1) First step to increase performance is hardware configuration.
So Hardware Configuration as per Liferay 6.1 EE Performance Whitepaper

•Web Server (Apache Web Server)
    •1 x Intel Core 2 Duo E6405 2.13GHz CPU, 2MB L2 cache (2 cores total)
    •4GB memory
    •1 x 146GB 7.2k RPM IDE
•Application Server (Liferay Portal Server)
    •2 x Intel Core 2 Quad X5677 3.46GHz CPU, 12MB L2 cache (8 cores and 16 threads)
    •16GB memory
    •2 x 146GB 10k RPM SCSI
•Database Server
    •2 x Intel Core 2 Quad X5677 3.46GHz CPU, 12MB L2 cache (8 cores and 16 threads)
    •16GB memory
    •4 x 146GB 15k RPM SCSI

2) How to scale web server and application server ?
  Need to arrange web server according to load of the system.Also It is recommended to use multiple database instances with cluster environment with proper load balancer configurations.

3) Recommended JVM Configuration

Initial JVM Configuration for Liferay Portal server 32bit JVM:
    –-server -XX:NewSize=700m -XX:MaxNewSize=700m -Xms2048m -Xmx2048m -XX:MaxPermSize=200m -XX:SurvivorRatio=6 –XX:TargetSurvivorRatio=90 –XX:MaxTenuringThreshold=15
Initial JVM Configuration for Liferay Portal server 64bit JVM :
–-server -d64 -XX:NewSize=3072m -XX:MaxNewSize=3072m -Xms6144m -Xmx6144m -XX:PermSize=200m -XX:MaxPermSize=200m -XX:SurvivorRatio=90 -XX:TargetSurvivorRatio=0 -XX:MaxTenuringThreshold=0 -XX:+UseParNewGC -XX:ParallelGCThreads=16 -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+CMSCompactWhenClearAllSoftRefs -XX:CMSInitiatingOccupancyFraction=85 -XX:+CMSScavengeBeforeRemark -XX:+CMSConcurrentMTEnabled -XX:ParallelCMSThreads=2-XX:+UseLargePages -XX:LargePageSizeInBytes=256m -XX:+UseCompressedOops -XX:+DisableExplicitGC -XX:-UseBiasedLocking -XX:+BindGCTaskThreadsToCPUs -XX:+UseFastAccessorMethods

4) Remove unnecessary servlet filters using portal-ext.properties:

You can find other filters in portal.properties from portal source code and make t disable

5)Disable portlet CSS & Look and feel by using below property which will helo to increase perfomance by reducing CSS load for each portlet (Not mandatory and it depends on requirement)

6) Disable user's public and private layout if not require  (I think we already applied in properties)

7) Disable Direct Servlet context reload
Liferay has a feature to dispatch taglib jsps directly through servlet
    •This feature improves performances and is by default enabled
    •But this feature always checks corresponding JSP of a particular type for any change
    •For production environment, it is not required to check Tag JSP file
    •To disable this option we need to add following line in portal-ext.properties

8) Disable pingbacks and trackbacks

Liferay’s collaboration features like blogging and message boards provide Pingbacks and Trackbacks support
    •These features increases network traffic
    •These features are enabled by default
    •It such features are not used then it is a best practice to disable them by adding following properties

9) You can refer below links from liferay.com which can help for other performance tuning steps


Rate Me:

Liferay 7.3 compatibility matrix

Compatibility Matrix Liferay's general policy is to test Liferay Portal CE against newer major releases of operating systems, open s...