Help Center> Elastic Cloud Server> User Guide (Ankara Region)> FAQs> Passwords and Key Pairs> Why Does the One-Click Password Reset Plug-in Use Too Much VIRT and SHR?
Updated on 2024-04-15 GMT+08:00

Why Does the One-Click Password Reset Plug-in Use Too Much VIRT and SHR?

Symptom

The one-click password reset plug-in uses too much VIRT and SHR.

Figure 1 Viewing the virtual memory usage

Root Causes

Memory used by applications is from the glibc memory pool. In versions earlier than glibc 2.10, there is only one memory pool named main arena. In glibc 2.10 and later versions, there is a memory pool named thread arena. Therefore, applications can use memory from two memory pools, which results in high usage of VIRT and SHR. You can limit the memory that can be used by the one-click password reset plug-in.

Procedure

  1. Modify the parameters of the one-click password reset plug-in.
    1. Run the following command to view the configuration file.

      vim /CloudResetPwdUpdateAgent/conf/wrapper.conf

      Figure 2 wrapper.conf before modification
    2. Delete the comment tag (#) at the beginning of wrapper.java.initmemory=16 and wrapper.java.maxmemory=64.
      Figure 3 wrapper.conf after modification
  2. Run the following commands to restart the one-click password reset plug-in.

    cd /CloudResetPwdUpdateAgent/bin/

    ./cloudResetPwdUpdateAgent.script restart