-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Configuration] Limit the memory usage of influxdb #38
Comments
It's not configurable right now, but we should definitely support that. On Tue, Nov 12, 2013 at 1:43 PM, Francois-Guillaume Ribreau <
|
Thanks! Keep me posted! |
Hi, Any update on this, is this still on the roadmap? |
It is, I just assigned it to v0.6.0 which we're targeting for release in mid to late February. |
for me 0.5.0 seems to reduce the issue a bit, influxdb now use a lot less memory on startup and manage to stabilize itself around 580MB, it stayed that way the whole night but as soon as I queried the data back this morning to check how it went it started growing again. The memory growth rate seems slower than with 0.4.0, I will keep a close look on it to see how it goes but if there is not real way to control how much memory it can uses it will be hard to use it in production. is there any config options beside limiting the number of openened leveldb databases which could help ? (the number of leveldb databases open does not seem to have a great impact) |
The leveldb settings are all that exist at the moment. What queries are you Specific limits is one of the priority items for 0.6.0, but I think having On Thu, Feb 27, 2014 at 4:47 AM, Julien Ammous notifications@github.comwrote:
|
since I reduced the number of fields in my records memory usage are lower but my concern is more than all I see is memory usage increasing, never decreasing. |
What does influxdb use all this memory for btw ? My influxdb instances (both the production and test servers) are currently sitting around 1GB which is quite a lot of memory. As a comparison I can look at our production mysql server which uses 126MB and currently stores a lot more data than influxdb. |
The Go part of the process shouldn't be using much. The only stuff it keeps in memory when not running queries is the cluster metadata. When you run queries, things get pulled into memory. We're going to be optimizing some of that in the coming weeks. We can probably reduce the profile by tweaking how we're working with LevelDB. We'll add some settings for this in rc.3 and see if we can get this to a more reasonable number. This is high priority for us :) |
@schmurfy can you explain what metric are you monitoring, is it virtual memory or resident memory ? Also, do you know or can guess what happened around 9:00 that triggered the memory to increase. |
Great news! 👍 |
what caused the memory to increase is me loading the dashboard (which issues select queries to gather the data), the memory reported here is measured by libsigar and from different testing this is the "physical" memory used (mac os x calls it real memory which is the best name I have seen). My experience so far with 0.5.0 is similar to 0.4.0 but the later used more memory from the start and its use increased dramatically when the data were queried, with 0.5.0 it stills shows similar behavior but all the numbers are lower but I have no run it for anough time to really be sure, the week end should be a good test :) One of the thing I am particularly interested is: does this memory usage ever goes down ? |
nice, I will deploy rc3 right away ! |
the news are really good :) It looks like there is some memory leaked but nothing like before, going from 2GB to ~300MB is a really nice change. |
You mentioned on the list that the memory usage is fairly flat at this point. So closing this one for now. Let me know if you think there's something else that's actionable that we can do. |
yeah the memory usage is now fairly stable, the memory used when running queries seems to be freed after and the memory usage is now nearly a straight line on my servers. |
change log ouput format to Lmicroseconds
I am using latest influxdb (0.10). Influxdb size id around 1.5 GB. Memory it is consuming more than 6GB. Is any issue with this. My db size will grow continuously now i am worried may be i will get out of memory. Below is the top output for influx db du -sh influxdb |
what is the result now about the question? , if someone know that,please tell me, thank you |
I had the same issue with memory overload. I was using influxdb in a docker container from tutum/influxdb, influxdb version was 0.9.6.1. Whenever I ran a query with GROUP BY time(1h) for the period of 7 days (it is about 10K points to process), my influxdb container consumed all available memory (~4GB) and got killed by linux kernel. Then I switched to Just use the official docker image |
Unfortunately, I have to update this. The new influxdb Please suggest a solution! |
Same problem here with latest 1.2. I can only use this product if it can restrain itself within the limits of the memory I allocate to it. I should be able to trade off "time" for "memory" consumption instead of influxd just getting killed by the Linux kernel. May be I am not configuring influxd properly. Can someone please comment? |
how did you solve this problem? @tau0 |
What is the status of this? |
I'll add a 2018 entry to this 2013 serious bug report. Please can this be addressed. InfluxDB crashing during the night, I wake up and restart it but I've lost 8 hours data forever. Ridiculous that process this mature cannot manage it's own memory usage or recover from a query going OOM. |
Just to clarify, the original query is still valid. This was closed by pauldix when a memory leak was resolved, but that was not the original request. |
What is the status of this issue? We still experience the same for the latest influxdb version |
I also faced same issue long back. After fixing the schema never faced the
issue.
…On Sat, May 27, 2017 at 1:06 AM Nickolay Sukhanov ***@***.***> wrote:
[image: screen shot 2017-05-26 at 22 35 50]
<https://cloud.githubusercontent.com/assets/6191905/26509942/b363ef06-4263-11e7-8268-62e25e1e989c.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARJa1-BBd8hiH9EeVcTJjzB012bU4kibks5r9ymzgaJpZM4BMxhv>
.
|
Hello, we're facing same problem - influx consumes all available memory and OOM shot it. Please reopen and implement some maximal limit. |
facing the problem~ |
Still facing the issue. |
My systemctl edit influxdb.service Write the following content into the editor that shows up, save and quit. [Service]
MemoryMax=128M This way the InfluxDB daemon has its memory limited to 128 MiB and OOM should kick in when it exceeds the limit. Still only a workaround, not a solution, but the above trick does at least prevent other important services from being killed by killing Note that you should set the value according to your own configuration. My |
Any updates with this issue? |
Still an issue with 1.7.10. High volume queries from e.g. Grafana frontends cause the Influx memory usage to balloon out of control then OOM. RAM is not unlimited - please implement some sort of configurable memory limits in Influx so that queries cannot OOM the database! |
Having the same issue here. |
I am facing this issue as well. |
InfluxDB OSS 2.0 seems to include memory limits for containers. |
@dimisjim yes, I only glanced over the config options and took it for a total memory limit |
Adding myself to the party... Would also be happy to see a solution for this. |
InfluxDB memory usage is becoming a major concern here. It's currently using about 44GB of memory (having a database of around 650GB). |
I have the same problem, but after some tests including export, stop, start, version update (from 1.7.6 to 1.8.3) of influxdb and database drop and import, I came to the conclusion that this doesn't looks like a memory leak, but a consequence of the database structure. |
The first question was never resolved and ticket was closed, can I understand why? |
Hi guys!
I don't see any configuration option to limit the memory usage of influxdb, how can I achieve that?
If it's currently not configurable, it's definitely my first concern right now (in order to use it as a shadow-slave in production).
The text was updated successfully, but these errors were encountered: