Combination View Flat View Tree View
Threads [ Previous | Next ]
Liferay S
JDK version for Liferay 6.0 SP1
April 16, 2013 10:56 PM

Liferay S

Rank: Junior Member

Posts: 52

Join Date: April 11, 2012

Recent Posts

Hi All,

We have one of the prospects who is asking for the exact version of jdk they should use for their application running on Liferay 6.0 SP1.
They are using jdk 1.6.31 and getting the following error

ore was generated by `/usr/java/default/bin/java -Djava.util.logging.config.file=/opt/liferay/01/tomc'.
Program terminated with signal 11, Segmentation fault.
#0 0x00000030c1e0dcc0 in ?? ()
(gdb) where
#0 0x00000030c1e0dcc0 in ?? ()
#1 0x0000000000000008 in ?? ()
#2 0x00002aaabba9cf40 in ?? ()
#3 0x0000000000000151 in ?? ()
#4 0x0000000000000151 in ?? ()
#5 0x00000000541f3040 in ?? ()
#6 0x00002aaabb992559 in NET_Read () from /usr/java/jdk1.6.0_31/jre/lib/amd64/
#7 0x00002aaabb98f3cb in Java_java_net_SocketInputStream_socketRead0 () from /usr/java/jdk1.6.0_31/jre/lib/amd64/
#8 0x00002aaaaeab1618 in ?? ()
#9 0x0000000000000000 in ?? ()

The production goes down every 12 hrs. Is this issue actually related to jdk version they are using. If so, which is the stable version of jdk we should recommend them to use.

Please suggest or give your inputs. That will be very helpful.

Manish Yadav
RE: JDK version for Liferay 6.0 SP1
April 16, 2013 11:50 PM

Manish Yadav

Rank: Expert

Posts: 384

Join Date: May 26, 2012

Recent Posts

Is It Open Jdk????

Try to install Sun Java 6 (1.6.0_31) updates.To below steps might be it will help you

Garbage 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

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: