Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Slow portlet initialization on Liferay 7.4.112
I´ve been upgrading my development enviroment from Liferay 7.4.43 to Liferay 7.4.112, upgrading modules to work again has taken a while, but now i face a problem with performance that didnt happen in liferay 7.4.43.
Pages that have more dynamic content like the control panel or some of my own portlets load extremly slow the first time they run. I do understand that the first time stuff is run, this is to be expected, but the difference between 7.4.43 and 7.4.112 i large.
When using 7.4.43 the loading time when loading some page with some portlet was the first time maybe 500ms and then 200ms, its now on Liferay 7.4.112 something between 2 -7s and after that 200-500ms. It´s all a response time issue not an issue with loading resources
Has anybody experienced this, what could be the problem? Any help would be appreciated, thanks
Not an answer, but as otherwise this question stands here without any reply: There's an active discussion on slack regarding this topic. Not a final solution yet.
You know, but as others might find this post without any reaction, I wanted to post the cross reference.
Please link your own crossposts in future, to avoid duplicate work: It's always good to check if a question has been solved elsewhere
Even i am also facing the same problem while upgrading my development enviroment from Liferay 7.2 to Liferay 7.4.13.
Page loading time is extremly slow compare to liferay 7.2 also $(document).ready(function() is calling bit late, that was working fine in liferay 7.2 but it's very slow in liferay 7.4.13.
still waiting for the solutions, Any help would be appreciated.
I have a solution to the problem in another post of mine:
Application
Menu take 7 seconds to be able to open. (liferay.dev)
There were some database indexes missing in liferay the lastest
Liferay download, which are fixed with the following SQL (if your
database name is lportal, you need to have "use lportal;"
before that):
CREATE INDEX idx_portletPreferencesId ON PortletPreferenceValue (portletPreferencesId);
CREATE INDEX idx_portlet_ctCollection ON PortletPreferenceValue (portletPreferencesId, ctCollectionId);
CREATE INDEX idx_company_name_scope ON ResourcePermission (companyId, name, scope);
CREATE INDEX idx_primKey_roleId ON ResourcePermission (primKey, roleId);
CREATE INDEX idx_liveGroupId ON Group_ (liveGroupId);
CREATE INDEX idx_userId ON Users_Groups (userId);
CREATE INDEX idx_classNameId ON Group_ (classNameId);
CREATE INDEX idx_companyId ON Group_ (companyId);
CREATE INDEX idx_parentGroupId ON Group_ (parentGroupId);
CREATE INDEX idx_groupKey ON Group_ (groupKey);
CREATE INDEX idx_ownerType ON PortletPreferences (ownerType);
CREATE INDEX idx_plid ON PortletPreferences (plid);
CREATE INDEX idx_portletId ON PortletPreferences (portletId);
CREATE INDEX idx_owner_plid_portletId ON PortletPreferences (ownerType, plid, portletId);
CREATE INDEX idx_configUuid ON AMImageEntry (configurationUuid);
CREATE INDEX idx_fileVersionId ON AMImageEntry (fileVersionId);
CREATE INDEX idx_ctCollectionId ON AMImageEntry (ctCollectionId);
CREATE INDEX idx_config_fileVersion_ctCollection ON AMImageEntry (configurationUuid, fileVersionId, ctCollectionId);
These needs to be dropped when upgrading to a future version of liferay 7
Powered by Liferay™