Issue
- When running a REST API call as below:
/o/headless-admin-user/v1.0/user-accounts/fields=id,familyName,givenName,jobTitle,organizationBriefs.name,image,emailAddress,profileURL,contactInformation.telephones.phoneNumber,contactInformation.telephones.phoneType,customFields&pageSize=1000
Portal users and administrators may observe slowness after a server restart. The slowness will increase as the number of users to fetch will grow. After the first delay, subsequent fetch calls will be faster.
Environment
- Liferay DXP 7.1+
Resolution
- The observed behavior is intended, as Liferay clears the database cache after a server restart.
- One approach to handle the issue is through a cache "warm-up" mechanism. To elaborate more, upon restarting the server:
- Setup a crawler or jmeter script that runs the concerned query / visits the page where the datatable portlet is present so the query runs.
- Once the server is restarted and while the traffic is not routed to the server (e.g.: the load balancer does not send any traffic yet), run the script to visit the pages directly on the node.
- Enable traffic routing to the server.
- Please note, the above method is untested and only provided as a hint. As it pertains to the domain of customizations, the ability of Liferay Support to assist with it is limited.
会員限定記事
Liferay エンタープライズ サブスクリプションをお持ちのお客様は1500件を超えるベストプラクティス、トラブルシューティング、その他のソリューション記事を閲覧できます。ログインすると、記事全体をお読みいただけます。
ログイン