Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High memory usage of Releem Agent on servers with thousands of tables #376

Open
drupaladmin opened this issue Nov 19, 2024 · 1 comment
Open

Comments

@drupaladmin
Copy link
Contributor

We have observed that the Releem Agent is consuming an unusually large amount of memory on servers that host thousands of tables and databases. This high memory usage might be contributing to the OOM (Out Of Memory) killer being triggered.

@drupaladmin drupaladmin changed the title High memory usage of Releem Agent on servers with thousands of tables and databases High memory usage of Releem Agent on servers with thousands of tables Nov 20, 2024
kochetovd added a commit that referenced this issue Nov 26, 2024
…dded setting databases list for Query Optimization (#377)

* Updated version package gopsutil
Added collect allocated memory by agent

* Optimization used memory to collect data and converet to json

* Added setting databases list for Query Optimization

* Fixed Checking db for collect explain
@drupaladmin
Copy link
Contributor Author

We've added a new option to tune queries for a list of databases instead of all databases. To use it, please follow these steps:

  1. Add the following line to the file /opt/releem/releem.conf
    databases_query_optimization="dbname1,dbname2"
    Please replace dbname1 and dbname2 with the names of the databases to be optimized.

  2. Execute the following command to restart Releem Agent
    service releem-agent restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant