aspose file tools*
The moose likes Portals and Portlets and the fly likes Performance Tuning in Liferay Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Performance Tuning in Liferay " Watch "Performance Tuning in Liferay " New topic
Author

Performance Tuning in Liferay

syruss kumar
Ranch Hand

Joined: Jul 23, 2009
Posts: 97
Hi all,

I have developed an application using Liferay 5.2.3 and its working fine.While doing performance testing, the application takes nearly 365% of cpu usage.Even though we have tested plain liferay bundle it took more than 290% of cpu usage. The code base is not that much heavy(there is no high business logic ) and we are following liferay's performance tuning steps like fast loading of images,css,disabled unused filters in liferay and using hibernate calls to hit database.The application is running in the system which is configured with the configuration mention in liferay specification. Eventhough we have followed the steps we couldn't reduce the cpu usage percentage.


Please suggest us to resolve this .

Thanks in advance.


All search starts with beginner's luck and all search ends with victor's severly tested.
Jari Timonen
Ranch Hand

Joined: Jan 16, 2004
Posts: 232
Can you describe your current hardware configuration? How are you doing performance testing? (with that tool, ramp-up-periods etc)


SCJP 5.0, SCJD URLyBird 1.3.3, OCMJEA 5 (SCEA) Factory Homes
Alfred Peterson
Greenhorn

Joined: Aug 17, 2010
Posts: 12
Well..thanks for all these updstes ,but i am not sure about this because i had some queries as well,while under the glassfish is it easy to switch from the old version from HSQL to MySQL...?

Thanks:
Alfred
syruss kumar
Ranch Hand

Joined: Jul 23, 2009
Posts: 97
8 GB RAM .Dual core processor . We are using Jprofiler and seige to do performance testing .
We are trying to hit 300concurrent users in tomcat with ram up time of 30sec.

The cpu percentage is quite high nearly 70% -80% while we try to hit a static page in tomcat .

is there any way to reduce cpu usage ?

Jari Timonen
Ranch Hand

Joined: Jan 16, 2004
Posts: 232
syruss kumar wrote:8 GB RAM .Dual core processor . We are using Jprofiler and seige to do performance testing .
We are trying to hit 300concurrent users in tomcat with ram up time of 30sec.

The cpu percentage is quite high nearly 70% -80% while we try to hit a static page in tomcat .

is there any way to reduce cpu usage ?



300 concurrent users WITHOUT any delay between page loading is not real life situation.
Use delay between pages (1s-10s, use randomiser) - this simulates real life.



And use JMeter for testing.. there's Gaussian Timer.
Jonas X. Yuan
author
Ranch Hand

Joined: May 18, 2008
Posts: 108
Hi Jari,

You may refer to the section "Performance Tuning" at the chapter 11 of the the book
Liferay Portal 6 Enterprise Intranets

Thanks

Jonas Yuan

Performance tuning

As an infrastructure portal, the portal can support over 3300 concurrent users on a single server with mean login times under 0.5 a second and maximum throughput of 79+ logins per second. In collaboration and social networking scenarios, each physical server supports over 1300 concurrent users at an average transaction times of under 800 ms. Note that this benchmark was generated based on the application server: 2 x Intel Core 2 Quad E5430 2.66GHz CPU, 12MB L2 cache (8 cores total), 8GB memory, 2 x 146GB 10k RPM SCSI, CentOS 5.2 64-bit Linux.

The portal's CMS/WCM scales to beyond 150,000 concurrent users on a single Portal server with average transaction times under 50ms and 35% CPU utilization. Given sufficient database resources and efficient load balancing, the portal can scale linearly as one adds additional servers to a cluster. How do we achieve this? Here we list TEN golden rules:

• Adjust the server's thread pool and JDBC connection pool:. By default, the portal is configured for a maximum of 100 database connections. For Tomcat and JBoss, a good number is between 200 and 400 threads in the thread pool.

• Turn off unused servlet filters: Servlet filters dynamically intercept requests and transform them. The portal contains more than 20 servlet filters, so turn off the ones you aren't using.

......

Books: Liferay Portal 6.1 Systems Development
Jari Timonen
Ranch Hand

Joined: Jan 16, 2004
Posts: 232
Jonas X. Yuan wrote:Hi Jari,

You may refer to the section "Performance Tuning" at the chapter 11 of the the book
Liferay Portal 6 Enterprise Intranets

Thanks

Jonas Yuan

Performance tuning

......



Manufacturer performance results are just figures in paper. It depends on configuration and what's the most important is your own portlets.
Uma Nat
Greenhorn

Joined: Sep 10, 2010
Posts: 1
syruss kumar wrote:8 GB RAM .Dual core processor . We are using Jprofiler and seige to do performance testing .
We are trying to hit 300concurrent users in tomcat with ram up time of 30sec.

The cpu percentage is quite high nearly 70% -80% while we try to hit a static page in tomcat .

is there any way to reduce cpu usage ?



Hi Syruss

We are also having the same issue... running liferay on a quad core, linux. Siege for performance testing... in fact even for a 30 users test cpu goes up to 320 -360 range...

Were you able to solve this issue?

Regards

Uma
Jari Timonen
Ranch Hand

Joined: Jan 16, 2004
Posts: 232
Uma Nat wrote:
syruss kumar wrote:8 GB RAM .Dual core processor . We are using Jprofiler and seige to do performance testing .
We are trying to hit 300concurrent users in tomcat with ram up time of 30sec.

The cpu percentage is quite high nearly 70% -80% while we try to hit a static page in tomcat .

is there any way to reduce cpu usage ?



Hi Syruss

We are also having the same issue... running liferay on a quad core, linux. Siege for performance testing... in fact even for a 30 users test cpu goes up to 320 -360 range...

Were you able to solve this issue?

Regards

Uma


Please describe your test.

With incorrect testing methods you'll blow bejeezus out of any server..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Performance Tuning in Liferay