Estos contenidos se han traducido de forma automática para su comodidad, pero Huawei Cloud no garantiza la exactitud de estos. Para consultar los contenidos originales, acceda a la versión en inglés.
Centro de ayuda/ Elastic Cloud Server/ Preguntas frecuentes/ Passwords and Key Pairs/ Passwords/ Why Does the One-Click Password Reset Plug-in Use Too Much VIRT and SHR?
Actualización más reciente 2023-08-08 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.

Figura 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

      Figura 2 wrapper.conf before modification
    2. Delete the comment tag (#) at the beginning of wrapper.java.initmemory=16 and wrapper.java.maxmemory=64.
      Figura 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