You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exporter has shown huge RAM utilization up to 2GB that is progressing in time. Starting with 50MB it has grown to 1GB in 10 days. Other Postgres instance showed 50MB to 2GB in 7 days. Others has shown smaller growth: 30MB to 100MB in 10 days.
After restarting the service, which is used to start exporter, memory 'returns', but than utilization starts to increase once again.
Such a huge increase is reproducing only on some instances, but the only difference between them - is the number of metrics retrieved(depends on the amount of queries and tables in database). I can't see how it can be the reason to not letting the memory go.
Config file content (redacted of secrets if needed)
databases:
dbname:
dsn: env:PG_DATABASE_DSN_dbname
metrics:
pg_table_seq_scan:
type: counter
description: Number of sequential scans initiated on the table
labels: [datname, schemaname, relname, parent_relname]
....
queries:
table_stats:
interval: 1h
databases: [dbname]
metrics:
- pg_table_seq_scan
...
sql: >
select
current_database() as datname,
... limit 200
idx_stats:
interval: 1h
databases: [dbname]
metrics:
- pg_idx_scan
...
sql: >
with q_locked_rels as (
select relation from pg_locks where mode = 'AccessExclusiveLock'
... limit 200
query_stats:
interval: 1m
databases: [dbname ]
metrics:
- pg_statements_calls
...
sql: >
with q_data as (
select
... limit 200(query_exporter)
Ran query-exporter with the following command line ...
Right now I'm trying to use keep-connected: false, but the results will take a couple of days at least. I have no understanding in why it keeps doing it and not just return memory back after doing a query.
Also there is a thought that it could be Postgres specified behaviour. I would be grateful if you can share your knowledge.
You can clearly see when restart of the exporter has been made.
The text was updated successfully, but these errors were encountered:
In time RAM utilization has been increasing
Exporter has shown huge RAM utilization up to 2GB that is progressing in time. Starting with 50MB it has grown to 1GB in 10 days. Other Postgres instance showed 50MB to 2GB in 7 days. Others has shown smaller growth: 30MB to 100MB in 10 days.
After restarting the service, which is used to start exporter, memory 'returns', but than utilization starts to increase once again.
Installation details
To Reproduce
Such a huge increase is reproducing only on some instances, but the only difference between them - is the number of metrics retrieved(depends on the amount of queries and tables in database). I can't see how it can be the reason to not letting the memory go.
Right now I'm trying to use keep-connected: false, but the results will take a couple of days at least. I have no understanding in why it keeps doing it and not just return memory back after doing a query.
Also there is a thought that it could be Postgres specified behaviour. I would be grateful if you can share your knowledge.
You can clearly see when restart of the exporter has been made.
The text was updated successfully, but these errors were encountered: