Liferay Performance Management

CONFIDENTIAL AND PROPRIETARY - DO NOT DISTRIBUTE

and large deployments  HA deployments CONFIDENTIAL AND PROPRIETARY . medium.DO NOT DISTRIBUTE .Lofty Goals  Real world benchmarks  Content intensive scenarios  Social network and collaboration scenarios  Integration portal scenarios  Benchmarked reference architecture  Small.

Lofty Goals  Automated performance regression  Performance tests fully integrated with automated build process  Rapidly detect performance variances for Community and Enterprise Editions CONFIDENTIAL AND PROPRIETARY .DO NOT DISTRIBUTE .

8GB  2 . 15k RPM 250GB HD  Tomcat 6. iostat  CONFIDENTIAL AND PROPRIETARY . and MySQL 5.0.6. VisualVM.4Ghz.0_07.67 Tools: JMeter.18.Hardware load balancer (Cisco CSS 11000)  2 . vmstat. 4GB. JDK 1.4Ghz.Web Server  1 Intel Xeon Quad-core 2.4Ghz.Application Server  2 Intel Xeon Quad-core 2.DO NOT DISTRIBUTE .Database Server  2 Intel Xeon Quad-core 2.0.Production-like Environment  Hardware  1 . 2GB  2 .

15% content creation/update  10.000 articles  Liferay Document Library  80% download.000 documents  Liferay Image Gallery  80% view. 30% authenticated access  Liferay Journal  85% browsing. 20% upload/update  100.000 images CONFIDENTIAL AND PROPRIETARY . 20% upload/update  500.Realistic Scenarios  Content management scenarios  70% anonymous access.DO NOT DISTRIBUTE .

30% reply/new posts  500.000 blog entries  Liferay Wiki  75% views. 60% authenticated access  Liferay Blogs  75% views.DO NOT DISTRIBUTE .000 posts across 100 categories CONFIDENTIAL AND PROPRIETARY . 15% comments.Realistic Scenarios  Collaboration scenarios  40% anonymous access. 15% comments.000 wiki entries  Liferay Message Boards  70% views. 10% creation  100. 10% creation  100.

DO NOT DISTRIBUTE . CONFIDENTIAL AND PROPRIETARY .Realistic Scenarios  Social network scenarios  100% authenticated access  Include scenarios from collaboration to drive activity tracking  Activity tracking: 100% read  Wall: 85% read. 15% new posts  10MM user database.

Initial Results CONFIDENTIAL AND PROPRIETARY .DO NOT DISTRIBUTE .

 Portal forwards authenticated user to homepage.2 – Authenticated Access  Scenario:  User arrives on Liferay. 138.1.000 Unique Users  Liferay 5.  User authenticates with portal.     1MM unique users in database Throughput: 38.com homepage.240 logins in 1 hour Average time: 938ms/execution Average CPU load: 64% CONFIDENTIAL AND PROPRIETARY .000.DO NOT DISTRIBUTE .4 login/sec.1.

1Ghz Xeon  300 concurrent users.com homepage.DO NOT DISTRIBUTE . User navigates to personal home page and updates 2 portlets  4 EC2 compute units  Equivalent to 4 single-core. average 418ms / request CONFIDENTIAL AND PROPRIETARY .0 – Authenticated Access  Scenario:     User arrives on Liferay.1. User authenticates with portal.Elastic Computing  Liferay 5. Portal forwards authenticated user to homepage.

4 Liferay.se – LR 4.5 – 2 sec  Alf Høgemark (LR 5. 1 MySQL – 2 dual-core 3Ghz Xeon CPUs in all machines  330 pages / sec or roughly 23.2)     Testing anonymous browsing of content 1 CPU Intel Core2 Quad 2.DO NOT DISTRIBUTE .100 HTTP requests / sec  Avg response time: 1.Community Participation  The community is also reporting their findings  Jesper Weisglass (kanal5.1.67Ghz Throughput: 2150 requests / second Avg response time: 219ms / request CONFIDENTIAL AND PROPRIETARY .4)  2 Apache HTTP.

DO NOT DISTRIBUTE .Critical Parameters CONFIDENTIAL AND PROPRIETARY .

”  Improve lock contention within JVM  Oracle Jrockit – enableFatSpin  Sun JVM .DO NOT DISTRIBUTE . survivor spaces.+UseBiasedLocking CONFIDENTIAL AND PROPRIETARY .Not just Max and Min  Java VM – beyond -Xms and -Xmx  Garbage collector algorithm choice critical  generational  Perform detailed heap tuning: young generation. etc  Number of threads dedicated to GC execution  Do not rely upon “automatic GC tuning.

DO NOT DISTRIBUTE .Visual VM CONFIDENTIAL AND PROPRIETARY .

DO NOT DISTRIBUTE .Portal Tuning  Application Tuning  Application server resources (worker threads and db connections)  Tune cache  Max size. tenuring thresholds  Monitor Liferay’s internal cache  CMS – JournalContentUtil. LayoutCacheUtil  Security – PermissionCacheUtil  General – FinderCache  Liferay 5.1’s new Role Based Permissions  Simplified authorization mechanism CONFIDENTIAL AND PROPRIETARY .

Application Resources and Cache CONFIDENTIAL AND PROPRIETARY .DO NOT DISTRIBUTE .

Critical Parameters  Database .DO NOT DISTRIBUTE .MySQL  Buffer sizing to match size and load  Key buffer  Sort buffer  Read buffer  Caches  Query caches  Thread caches CONFIDENTIAL AND PROPRIETARY .

tune.Summary  We have heard the community!  Liferay moving to properly address performance and reference architecture questions.DO NOT DISTRIBUTE .  Liferay and Sun collaborating to  Benchmarks may not be indicative of your customized portal’s performance  Customizations will impact overall performance  Define realistic performance budget  Test. and test again  Questions? CONFIDENTIAL AND PROPRIETARY .

Sign up to vote on this title
UsefulNot useful