High Memory Usage of the PMS Process
Issue
What can I do if the memory usage of the active Master node is high?
Symptom
The memory usage of the active Master node is high. The top -c command output shows that the following idle processes occupy a large amount of memory:
Cause Analysis
- PostgreSQL cache: In addition to common execution plan cache and data cache, PostgreSQL provides cache mechanisms such as catalog and relation to improve the efficiency of generating execution plans. In the persistent connection scenario, some of the caches are not released. As a result, the persistent connection may occupy a large amount of memory.
- PMS is a monitoring process of MRS. This process frequently creates table partitions or new tables. The PostgreSQL caches the metadata of the objects accessed by the current session, and the connections in the database connection pool of the PMS exist for a long time. Therefore, the memory occupied by the connections gradually increases.
Procedure
- Log in to the active Master node as user root.
- Run the following command to query the PMS process ID:
ps -ef | grep =pmsd |grep -v grep
- Run the following command to stop the PMS process. In the command, PID indicates the PMS process ID obtained in 2.
kill -9 PID
- Wait for the PMS process to automatically start.
It takes 2 to 3 minutes to start PMS. PMS is a monitoring process. Restarting PMS does not affect big data services.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot