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

Added memory usage monitoring for the prepared statement cache. #4372

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

rahim-kanji
Copy link
Collaborator

@rahim-kanji rahim-kanji commented Oct 30, 2023

Implemented memory usage monitoring for the prepared statement cache with the following changes:

  • Added two new variables to the 'stats_memory_metrics' table:
    prepare_statement_metadata_memory
    prepare_statement_backend_memory
  • Introduced corresponding variables 'prepare_stmt_metadata_memory_bytes' and 'prepare_stmt_backend_memory_bytes' in the Prometheus exporter to measure memory usage of prepare statement metadata and prepare statement backend.

Updated 'mysql-max_stmts_cache' minimum value to 128 instead of 1024.

…with the following changes:

* Added two new variables to the 'stats_memory_metrics' table:
prepare_statement_metadata_memory
prepare_statement_backend_memory
* Introduced corresponding variables in the Prometheus exporter to measure memory usage of prepare statement metadata and prepare statement backend.
@rahim-kanji rahim-kanji marked this pull request as ready for review October 31, 2023 10:55
@mirostauder
Copy link
Collaborator

retest this please

7 similar comments
@mirostauder
Copy link
Collaborator

retest this please

@mirostauder
Copy link
Collaborator

retest this please

@mirostauder
Copy link
Collaborator

retest this please

@mirostauder
Copy link
Collaborator

retest this please

@mirostauder
Copy link
Collaborator

retest this please

@mirostauder
Copy link
Collaborator

retest this please

@mirostauder
Copy link
Collaborator

retest this please

@renecannao renecannao merged commit b6deb15 into v2.x Nov 17, 2023
177 of 180 checks passed
@renecannao renecannao deleted the v2.x_prep_stmt_mem_usage branch August 29, 2024 11:19
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

Successfully merging this pull request may close these issues.

3 participants