Forums Register Login

Performance Tuning in Liferay

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Can you describe your current hardware configuration? How are you doing performance testing? (with that tool, ramp-up-periods etc)
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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 ?

+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
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.

......
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
 

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..
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 8085 times.
Similar Threads
EJB JVM and Servlet JVM
Capacity planning (performance tuning of WLP 8.1 SP6 application)
Liferay Portal Enterprise Intranets - Query
Liferay Portal performance tuning
Very High CPU Utilization
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:56:17.