legacy-knowledge-base
Publicado Jun. 25, 2030

High CPU utilisation while using script to login users continuously

written-by

Anishq Sharma

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • Facing high CPU utilization while logging-in high number of users per minute continuously (24x7) using username-password authentication, mostly while fetching data using some scripts.

Environment

  • Liferay DXP 7.0+

Resolution

  • Password hashing is a costly operation, as it uses high computational algorithms. Ref: Password hashing
  • This is usually suitable for normal user logins, but for bot logins, this sometimes become too CPU intensive.
  • In such cases, it is suggested to opt for OAuth2/ Token based logins as they are way less CPU intensive, and are better for such use-cases.

Additional Information

 

did-this-article-resolve-your-issue

legacy-knowledge-base