Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ashutosh Shirole
Liferay 6.1 tomcat bundle performance issue
April 22, 2013 7:09 AM
Answer

Ashutosh Shirole

Rank: New Member

Posts: 3

Join Date: November 7, 2012

Recent Posts

We have successfully installed Liferay 6.1 tomcat bundle on a hosting machine. The OS is Ubuntu 12.04. We are able to access the site but after sometime the website doesnt respond and takes long time for opening any page. After sometime (3-4 mins) the server starts responding normally. This happens frequently but after long intervals. Catalina log does not show any errors.
Not able to find the issue. Any help and suggestions appreciated.
Manish Yadav
RE: Liferay 6.1 tomcat bundle performance issue
April 22, 2013 7:25 AM
Answer

Manish Yadav

Rank: Expert

Posts: 467

Join Date: May 26, 2012

Recent Posts

could you please share your machine configuration[RAM and Processor]..Which DB you are using???
please check below points
1. check how much Memory left after starting server...
2. Tune JVM variable for heap size..
arbage Collector
Choosing the appropriate garbage collector will help improve the responsiveness of your Liferay Portal. Liferay Engineering
recommends using the concurrent low pause collectors, similar to the settings as follows*:
-XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XXemoticonarallelGCThreads=8 -
XX:+CMSCompactWhenClearAllSoftRefs -XX:CMSInitiatingOccupancyFraction=85
Other garbage collectors include a concurrent throughput collector. You may find more information on garbage collector
heuristics at http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html.

Java Heap
When most people think about tuning the Java memory heap, they think of setting the maximum and minimum memory of the
heap. Unfortunately, you require far more sophisticated tuning for the heap to obtain optimal performance, including tuning
young generation size, tenuring durations, survivor spaces, and other JVM internals.
For the reference architecture, Liferay recommends adding something similar to the following to your VM parameters*:
-server -XX:NewSize=700m -XX:MaxNewSize=700m -Xms2048m -Xmx2048m -XX:MaxPermSize=128m -XX:SurvivorRatio=6 -
XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15
You may find the definitive list of Sun JVM options are located at: http://blogs.sun.com/watt/resource/jvm-options-list.html.
Ashutosh Shirole
RE: Liferay 6.1 tomcat bundle performance issue
April 22, 2013 8:16 AM
Answer

Ashutosh Shirole

Rank: New Member

Posts: 3

Join Date: November 7, 2012

Recent Posts

Thanks a ton Manish. Will apply the JVM parameters and check for the performance.
Also I do not get any OutOfMemory exception or any other exception.
Can there be any issue with website access? I have recently changed the server xml to configure the server for 'https'. Does this change impact liferay access in any sense?
Manish Yadav
RE: Liferay 6.1 tomcat bundle performance issue
April 22, 2013 10:23 PM
Answer

Manish Yadav

Rank: Expert

Posts: 467

Join Date: May 26, 2012

Recent Posts

Could you check with http and https ...Could you please check whether any performance issue between http and https