Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Guenter Nobody
How to speed up Liferay
March 5, 2012 10:36 AM
Answer

Guenter Nobody

Rank: Regular Member

Posts: 119

Join Date: January 27, 2012

Recent Posts

Hi,
I am sorry to say it as it is : Liferay seems super slow, it doesn't matter I am working on a local or remote machiene(worst!), even with SSD or large RAM drives, its just slow. I kicked off all portlets but there is almost no improvement. The server's and developer's hardware is brand new and top-notch (5k/10k+) and I doubt there is the problem. I tried it with 32/64 bit.

Is this going to improve soon or sometime because it makes just no fun to work with. As a counterpart example, I made new and 100% AJAX interfaces for some built-in objects like the Knowledge-base or Journal articles and all runs very smooth. Only when I use the 'standard' interface its going in its knees.

Well, any idea helps ! We toyed of course with VM settings but no, still a pain.
g
Juan Gonzalez
RE: How to speed up Liferay
March 5, 2012 10:47 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1841

Join Date: October 28, 2008

Recent Posts

Liferay version?

You can search for Liferay whitepapers. There is a document for performance.
Guenter Nobody
RE: How to speed up Liferay
March 5, 2012 10:49 AM
Answer

Guenter Nobody

Rank: Regular Member

Posts: 119

Join Date: January 27, 2012

Recent Posts

6.1, and thanks, I know that paper :-(
Juan Gonzalez
RE: How to speed up Liferay
March 5, 2012 11:23 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1841

Join Date: October 28, 2008

Recent Posts

Can you post here what is your config? What portlets does the "slow" page have? Any "special" or custom thing?
David H Nebinger
RE: How to speed up Liferay
March 5, 2012 4:26 PM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 6134

Join Date: September 1, 2006

Recent Posts

Guenter Baumgart:
I am sorry to say it as it is : Liferay seems super slow.


Sorry to respond this way, but your config makes it slow. Liferay performance will be based upon the database you're using, where it's located, whether you're fronting it w/ some sort of static file handler (i.e. apache httpd in front of tomcat), which application server you're using, whether you've disabled unused filters, what auth mechanism you're using, etc. etc. etc.

Most performance issues are usually traced back to the environment and the configuration, and not the Liferay code itself.
Guenter Nobody
RE: How to speed up Liferay
March 6, 2012 3:49 AM
Answer

Guenter Nobody

Rank: Regular Member

Posts: 119

Join Date: January 27, 2012

Recent Posts

Thanks all for your replies. That sounds really promising.

We didn't touch the Liferay defaults property files (portal.properties). We also removed the developer properties file.

By "slow" I mean the back-end especially. We took a default installation (With no Apache in front) and enabled portal users editing of WebContent, Events and Blogs only. When a user wants to add/edit a translation for instance it takes almost 4-5 seconds that he can enter data on a remote server and 3 seconds on a local server. Its pretty possible that 4-5 seconds are “OK” for some people but nowadays it should be faster, especially when using good servers/hardware I think. If it should be faster than that, please let me know.


We’ve created however own interfaces and servlets to enter Liferay data from a full AJAX dojo application and moved it out of the Liferay context also (not a portlet but can act as) and it works pretty fast as wanted. This way was not the plan at all but it implied to me that the speed problem come suppose to be from all this filters but I am not sure about.

Did somebody make a sort of benchmark suite so can I tweak the properties more easily? I also noticed that Firefox9+ runs far slower than Safari.


I reserved the entire weekend figure out more and come back with more.
Daniel Niklas
RE: How to speed up Liferay
March 8, 2012 1:37 PM
Answer

Daniel Niklas

Rank: New Member

Posts: 23

Join Date: November 8, 2010

Recent Posts

Hi,
are you sure, that the bad response time ist caused by server side? Perhaps your clients do not perform very well. Especially your Browser (and cpu) is important, i think Chrome is actually the fastest Browser in place.

Daniel
Hitoshi Ozawa
RE: How to speed up Liferay
March 8, 2012 3:57 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

I agree with Daniel on this. I think it's your browser. I'm on a Windows machine with Centrino and it performs better than 4-5 seconds.

Other things to check is, you've said you're using the default configuration. If you're using the bundled version, try removing all demo sites
and portlets you don't need. Check your CPU, memory, and network usage.

Lastly, Liferay uses cache. Performance gets better on the second visit.