Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Manish Yadav
What value i need to set for JAVA_OPTS in stenv.bat
July 7, 2012 9:22 AM
Answer

Manish Yadav

Rank: Expert

Posts: 449

Join Date: May 26, 2012

Recent Posts

I have 7 GB ram in production Box and 850 gb hard drive. What value i need to set for JAVA_OPTS in setenv.bat to get maximum performance.
default vaule of JAVA_OPTS in setenv.bat is
set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=256m"

Apart from this what are the other configuration[(Default configuration)] i need to change in production box to increase performance.
Jack Bakker
RE: What value i need to set for JAVA_OPTS in stenv.bat
July 7, 2012 3:30 PM
Answer

Jack Bakker

Rank: Liferay Master

Posts: 840

Join Date: January 3, 2010

Recent Posts

perhaps you will find this useful

http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/performance-tuni-5
Hitoshi Ozawa
RE: What value i need to set for JAVA_OPTS in stenv.bat
July 7, 2012 8:48 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

There's no predefined "best performance" settings because application server behaves differently and deploy portlets' memory and performance differ.
You'll just have to experiment to obtain the maximum performance. Look at the link Jack provided.