Forums de discussion

Liferay 6.1 tomcat bundle performance issue

Ashutosh Shirole, modifié il y a 11 années.

Liferay 6.1 tomcat bundle performance issue

New Member Publications: 3 Date d'inscription: 07/11/12 Publications récentes
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.
thumbnail
Manish Yadav, modifié il y a 11 années.

RE: Liferay 6.1 tomcat bundle performance issue

Expert Publications: 493 Date d'inscription: 26/05/12 Publications récentes
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, modifié il y a 11 années.

RE: Liferay 6.1 tomcat bundle performance issue

New Member Publications: 3 Date d'inscription: 07/11/12 Publications récentes
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?
thumbnail
Manish Yadav, modifié il y a 11 années.

RE: Liferay 6.1 tomcat bundle performance issue

Expert Publications: 493 Date d'inscription: 26/05/12 Publications récentes
Could you check with http and https ...Could you please check whether any performance issue between http and https