Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upprometheus 2.5.0 out of memory #5120
Comments
This comment has been minimized.
This comment has been minimized.
|
This looks very similar to #4392. |
This comment has been minimized.
This comment has been minimized.
|
@simonpasquier |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the additional information though I don't see anything obvious that would explain the issue. For sure, the tsdb code shouldn't fill the filesystem when it encounters
Do you run queries (dashboards or rules) with large intervals? As a workaround, one user reported in #4392 that the error went away when running Prometheus as a container. If this is an option for you, you may try. |
simonpasquier
referenced this issue
Jan 28, 2019
Closed
Prometheus generated too many same files when do compaction #5137
This comment has been minimized.
This comment has been minimized.
|
Thanks for reporting! I'm closing it as this is a duplicate of #5135. The tsdb fix is prometheus/tsdb#512 (still under discussion). |
communityexplorer commentedJan 20, 2019
•
edited
Bug Report
What did you do?
My Prometheus was started at 2019-01-15T12:58:57, but suddenly I found out of memory error at 2019-01-18T17:09:24. After short investigation i notice that data directory size is more than 200GB usually its less than 50GB. I found there are many files in every one minute, normally it should be two hours a file. when restart prometheus it is also out of memory. After we removed many files, it recovered, but we lost the data from 2019-01-18T17:09:24.
What did you expect to see?
i expect not to see this error, and can recover quickly.
What did you see instead? Under which circumstances?
the prometheus version:
Environment
System information:
level=info ts=2019-01-15T12:58:57.901538385Z caller=main.go:246 host_details="(Linux 3.0.101-0.47.71-default #1 SMP Thu Nov 12 12:22:22 UTC 2015 (b5b212e) x86_64 Prometheus_Server )"
Prometheus version:
version="(version=2.5.0, branch=HEAD, revision=67dc912ac8b24f94a1fc478f352d25179c94ab9b)"
build_context="(go=go1.11.1, user=root@578ab108d0b9, date=20181106-11:40:44)"
Prometheus configuration file: