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 upOut of Memory Error #1163
Comments
This comment has been minimized.
This comment has been minimized.
|
2GB is very little for a serious deployment. Prometheus keeps a fair amount of data in memory to have good ingestion and query performance. Only advice I can give is tuning according to the description here: http://prometheus.io/docs/operating/storage/#memory-usage This has its limits though. How many targets are you scraping and how many metrics in total? |
This comment has been minimized.
This comment has been minimized.
|
We're really only testing it out at the moment hence the small size. We're scraping 18 targets - I can't find a total metric count. We'll move to a bigger memory instance and see how it goes. |
This comment has been minimized.
This comment has been minimized.
|
If you let Prometheus scrape itself as in the getting started examples, you can check the number of currently scraped series via the |
This comment has been minimized.
This comment has been minimized.
|
For 18 targets 2GB should still be fine – but you might have to turn the knobs a bit as described in the documentation. |
This comment has been minimized.
This comment has been minimized.
|
Yes, you'll want to tune the If you still get an OOM error after that, we'll have to look deeper. |
This comment has been minimized.
This comment has been minimized.
|
Seems to be working better with more ram, cheers! |
jamiegwatkin
closed this
Oct 19, 2015
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
jamiegwatkin commentedOct 13, 2015
I encountered this error over the weekend (Prometheys version 0.16.0rc2 (branch: HEAD, revision: e7c60c2)):
Prometheus is running on an EC2 instance with only 2GB of memory, I'm going to move it to a bigger instance but I thought it might be a good idea to log the issue here.