# Influx memory usage

**URL:** <https://community.influxdata.com/t/influx-memory-usage/3039>\
**Category:** Store\
**Tags:** influxdb\
**Created:** [November 10, 2017, 1:17pm UTC](https://community.influxdata.com/t/influx-memory-usage/3039 "2017-11-10T13:17:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukaszgryglicki](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/lukaszgryglicki/32/1879_2.png) [@lukaszgryglicki](https://community.influxdata.com/u/lukaszgryglicki)\
**Post date:** [November 10, 2017, 1:17pm UTC](https://community.influxdata.com/t/influx-memory-usage/3039/1 "2017-11-10T13:17:25Z")

</div>

Hi, I’ve noticed high memory usage for `influxd` process.

We have a database storing about 38000 series, data resolution is 1h, data range is last 3 years.  
`influxd` process is using minimum 13G of memory all the time, and when I’m trying to copy data memory usage peak is sometimes more than 30G.

I need to copy one influx database into another (the reason is that when I want to regenerate production database then I’m regenerating database on a temporary influx database to avoid downtime and also because this is failsafe. Then when the temporary database is generated I just want to copy or rename it into production).

This proved very hard for Influx database, please see this: [Should be able to backup/restore single database · Issue #7758 · influxdata/influxdb · GitHub](https://github.com/influxdata/influxdb/issues/7758#issuecomment-336479123)

I came with a solution:  
[https://github.com/cncf/devstats/blob/master/cmd/idb\_backup/idb\_backup.go](https://github.com/cncf/devstats/blob/master/cmd/idb_backup/idb_backup.go)

This is a custom program to copy all series from one database into another. I’m quite sure that I’m doing all things right. All connections are closed, resources freed etc. program itself consumes maximum 400M of memory, but `influxd` process can go as high as 31G !!

How can I control `influxd` memory usage? What can I do?

What other details can I provide to help?  
lukaszgryglicki@o2.pl

---

<div class="post-metadata">

**Author:** ![jeff](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jeff](https://community.influxdata.com/u/jeff)\
**Post date:** [March 9, 2018, 7:18pm UTC](https://community.influxdata.com/t/influx-memory-usage/3039/2 "2018-03-09T19:18:24Z")

</div>

Same problem, v1.3.6 aJust rebooted, no queries, no writes, and memory usage went through the room VIRT=20.7G, RES, 9.69G, SHR 3.9G for influx
