Closed gdhgdhgdh closed 6 years ago
Closed in favour of https://github.com/timescale/timescaledb/issues/532 - it does seem to be a memory leak when the TimescaleDB extension is used.
Reopening since this is def. related to the adapter. When I restart the adapter, RAM usage on the pgsql server returns to normal levels. I'm currently running the adapter on a 2-hour restart cron :(
I'm having the same problem here.
timescale/pg_prometheus:0.2 refers timescale/timescaledb:0.9.1. timescale/timescaledb:0.9.1 has a memory leak bug while the connection is alive. It's bug was silently fixed by https://github.com/timescale/timescaledb/pull/516.
What Docker user needs is that timescale/pg_prometheus refers to timescale/timescaledb:0.9.2 and it is tagged and released.
Whether there is a memory leak bug in TimesclaeDB, it is a good idea to have the option to set the maximum amount of time a connection in prometheus-postgresql-adapter.
@gdhgdhgdh We've submitted a PR to fix a sessions memory issue in TimescaleDB https://github.com/timescale/timescaledb/pull/575
Can you rerun your tests with this code and see if it fixes your issue?
I run into this issue aswell and it seems fixed in https://github.com/timescale/timescaledb/pull/575
red: image from dockerhub yellow: timescaledb master green: PR 575
The 0.10.1 version of timescale has now been released (https://github.com/timescale/timescaledb/releases/tag/0.10.1). We believe / our own testing shows it fix this problem; we'll close out this issue in a few days unless we hear otherwise.
Thanks @gdhgdhgdh !
Awesome, thanks. I wasn't able to test it myself for dull reasons
- all the best :)
Hi, I've been using timescaledb 0.9.1 for a few days in conjunction with
pg_prometheus
and theprometheus-postgresql-adapter
.It's working fine - thank you for the software. I just have one concern regarding the memory usage of PostgreSQL 10.3 itself:
The server is an AWS t2.medium, so has 3.75GB total RAM.
prometheus-postgresql-adapter
and thepostgres_exporter
are the only PostgreSQL clients.PostgreSQL was installed as per TimescaleDB's guide of using PGDG - I have not touched
postgresql.conf
soshared_buffers
is still the default 128MB.However, something is causing PostgreSQL to consume more and more memory until the kernel kills it...
The PostgreSQL logs show a little confusion as expected as it restarts...
The machine is 90-95% idle with plenty of CPU credits, and there are literally only 6 machines sending
node_exporter
stats to the adapter every 15 seconds - super low load!Help! :)