-
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
out of memory when using HTTP API #8299
Comments
Updated to the latest influxdb by modifying my Dockerfile, problem still exists in latest.
It seems odd to me that 43200000 datapoints (~330MB worth of doubles) would require the system to allocate >8GB RAM. |
You are writing the value to a tag a0, try writing to a field instead. Just replace the comma between u0 and a0 with a space. |
Ooops! Good catch. However it still crashes on an out of memory. Here's the new script:
|
You're curl statement is also posting all 43M points in a single batch. You'll need to write those in much smaller batches (5-10k usually). |
I guess Influx should prevent situations like this were it cannot handle the request by by failing the write instead of crashing the server. |
@jwilder we have middleware to catch panics and log the error, so the server does not crash completely. Currently, the recovery middleware returns a To prevent abuse of the HTTP API, we can check the |
Just following the getting started documentation (https://docs.influxdata.com/influxdb/v1.2/guides/writing_data/) hit an OOM error.
System configuration
Dockerfile:
Steps to reproduce:
Expected behavior:
Actual behavior:
The text was updated successfully, but these errors were encountered: