-
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
Version 1.3.4 uses 26GB more memory to load same dataset as 1.2.4 #8741
Comments
This appears to be a issue due to: da6bdfd You have about 20GB in the heap because there are about 20k wal segments. Each wal segment reader is creating a 1M buffer which is blowing up your heap at startup. These wal segments are 0 length so the readers really don't need to be created. |
@jwilder Is there a workaround for this? Is there a way I can reduce the number of wal segments? |
@edufelipe I have not tried this, but running |
@jwilder I've deleted all zero-sized files, updated to 1.3.4 and while that cut off a third of memory, it still uses over 20GB. Would you like me to send the |
@edufelipe If you can include everything you included in |
@jwilder why is there so many 0 size wal segments? Can I delete all this files ?
|
@jwilder Do you have any suggestions I can test for now? |
@edufelipe #8804 should fix this. |
Bug report
System info:
InfluxDB 1.3.4 vs InfluxDB 1.2.4
Both running under Ubuntu 16.04 on a 12GB Linode VM.
Steps to reproduce:
Expected behavior:
Use around the same amount of memory between versions for the same dataset.
Actual behavior:
InfluxDB 1.3.4 needed almost 30GB of memory to fit a dataset that used less than 3GB under version 1.2.4
Additional info:
I've dumped all the vars and profiling for both versions. I've also included the logs of
influxd
starting up.influx-debug.tar.gz
The text was updated successfully, but these errors were encountered: