Increase the performance of Liferay

Posted by eichelgartenweg on 12:13 PM with No comments
This is my first post considering the portal application Liferay.

How to increase performance:
1. Activate servlet-caching in WebSphere Application Server (see post below)

2. In portal(-ext).properties set

javascript.fast.load=true
theme.css.fast.load=true
velocity.engine.resource.manager.cache.enabled=true

3. Disable JavaScript
If you are using Liferay as an guest user, JavaScript is not nessarly needed.
3.1 Disable Ajax-Portlets
3.1.1 Open WEB-INF/liferay-portlet.xml and and add the tag ajaxable to every portelt entry
<portlet>
<portlet-name>1</portlet-name>
<icon>/html/portlet/mail/icon.png</icon>
<struts-path>mail</struts-path>
<preferences-unique-per-layout>false</preferences-unique-per-layout>
<preferences-owned-by-group>false</preferences-owned-by-group>
<use-default-template>false</use-default-template>
<restore-current-view>false</restore-current-view>
<maximize-edit>true</maximize-edit>
<private-request-attributes>false</private-request-attributes>
<private-session-attributes>false</private-session-attributes>
<render-weight>0</render-weight>
<ajaxable>false</ajaxable>
<header-portlet-javascript>/html/portlet/mail/packed.js</header-portlet-javascript>
<css-class-wrapper>portlet-mail</css-class-wrapper>
</portlet>
3.1.2. Open /html/themes/"your theme"/portal-normal.vm and replace the code line
#js ($js_main_file)

with
#if ( $is_signed_in )

#js ($js_main_file)

#end

3.1.3 Test it .-)

4. Have a look at
http://wiki.liferay.com/index.php/Performance