Foren

Performance Tuning in Liferay

Tharanga Warnakulasooriya, geändert vor 10 Jahren.

Performance Tuning in Liferay

New Member Beitrag: 1 Beitrittsdatum: 18.03.14 Neueste Beiträge
Hi everybody,
I'm trying to tune performance in Liferay 6.1. I went through the documentation available at https://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/performance-tuni-5 . it is mentioned that by default there are servlet filters enabled and running.. as mentioned in the documentation I have found some servlet filters which I think it is safer to stop. I would like to verify it is safer to stop these servlet filters to increase performance...

osgi.register.liferay.services=false
com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter=false
com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter=false
com.liferay.portal.sharepoint.SharepointFilter=false
com.liferay.portal.servlet.filters.sso.opensso.OpenSSOFilter=false
com.liferay.portal.servlet.filters.autologin.AutoLoginFilter=false
com.liferay.portal.servlet.filters.sso.cas.CASFilter=false
blogs.pingback.enabled=false
blogs.trackback.enabled=false
blogs.ping.google.enabled=false
blogs.entry.comments.enabled=false
blogs.entry.previous.and.next.navigation.enabled=false
calendar.event.ratings.enabled=false
calendar.event.comments.enabled=false
sc.product.comments.enabled=false
portlet.css.enabled=false
com.liferay.portlet.blogs.util.BlogsOpenSearchImpl=false
shopping.order.comments.enabled=false
tags.compiler.enabled=false
sc.product.comments.enabled=false

Thank you.
thumbnail
Raymond Gardner, geändert vor 9 Jahren.

RE: Performance Tuning in Liferay

Regular Member Beiträge: 118 Beitrittsdatum: 15.07.11 Neueste Beiträge
I am also looking into performance tuning.

I have found several blogs/books suggesting to turn off many AutoLogin filters if not being used.
This will improve performance.

blog1
book sample chapter
blog 2

They all suggest using properties to turn off:
com.liferay.portal.servlet.filters.sso.cas.CASFilter=false
com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter=false
com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter=false
com.liferay.portal.servlet.filters.sso.opensso.OpenSSOFilter=false

So, I tried this. However, when I step through the code with the debugger, I still see these AutoLogin handlers getting invoked.

Any suggestions?

Shouldn't these filters be removed as a filter configuration within the web.xml file?

Thanks,
Raymond
thumbnail
Vilmos Papp, geändert vor 9 Jahren.

RE: Performance Tuning in Liferay

Liferay Master Beiträge: 529 Beitrittsdatum: 21.10.10 Neueste Beiträge
The filter's processFilter method won't be called when the filter is not enabled, although it will be loaded.
thumbnail
Raymond Gardner, geändert vor 9 Jahren.

RE: Performance Tuning in Liferay

Regular Member Beiträge: 118 Beitrittsdatum: 15.07.11 Neueste Beiträge
Thanks!

I still see the XXXAutoLogin.login handler called. But, the XXXFilter.processFilter is not called.

Isn't it best to remove unused filters from the servlet configuration?

I thought I saw a post on removing these filters from the servlet configuration but recently all I find is configuration properties used to turn them off.
thumbnail
Vilmos Papp, geändert vor 9 Jahren.

RE: Performance Tuning in Liferay

Liferay Master Beiträge: 529 Beitrittsdatum: 21.10.10 Neueste Beiträge
I think if you also want to disable them, you could safely remove them from the xml file as well. Anyway create a backup for just in case.