# Increased memory usage since 0.11.2

**URL:** https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690
**Category:** Support
**Created:** [May 10, 2015, 5:21pm UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690 "2015-05-10T17:21:58Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![zombied](https://forum.syncthing.net/user_avatar/forum.syncthing.net/zombied/32/4800_2.png) [@zombied](https://forum.syncthing.net/u/zombied)
#### Post date: [May 10, 2015, 5:21pm UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/1 "2015-05-10T17:21:58Z")

</div>

I’m experiencing increased memory consumption since upgrading to 0.11.2 and 0.11.3 both on windows 8.1 x64 and Linux Debian Jessie x64. Windows version uses 584Mb while it used only 72Mb with the same amount of syncing stuff, linux stats are 206 to 85. I had to return to 0.11. I hope developers can look into this.

---

<div class="post-metadata">

### Author: ![SyncDuck](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/a9a28c/32.png) [@SyncDuck](https://forum.syncthing.net/u/SyncDuck)
#### Post date: [May 10, 2015, 5:51pm UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/2 "2015-05-10T17:51:10Z")

</div>

On my Windows 8.1 x64 one 300GB file is being transfered, currently taking 9,3GB RAM and a full CPU load. Running for over 48 hours in a Gbit LAN. Does not sound normal either. Also tested with 0.11.2 and 0.11.3 .

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [May 10, 2015, 6:02pm UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/3 "2015-05-10T18:02:16Z")

</div>

@zombied You’re probably suffering from [https://github.com/syncthing/syncthing/commit/834336499a51679a59fd2973916d28c70f388c56](https://github.com/syncthing/syncthing/commit/834336499a51679a59fd2973916d28c70f388c56), assuming you have a system with quite a lot of RAM. That may need adjustment, or at least an override. (It also looks a bit wrong in at least one detail.)

@SyncDuck, no idea what’s going on there… That’s 15 Mbps or less? And absurd memory usage…

---

<div class="post-metadata">

### Author: ![zombied](https://forum.syncthing.net/user_avatar/forum.syncthing.net/zombied/32/4800_2.png) [@zombied](https://forum.syncthing.net/u/zombied)
#### Post date: [May 10, 2015, 6:18pm UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/4 "2015-05-10T18:18:27Z")

</div>

I’m having 8Gb of RAM on Windows and 2Gb on Linux. So you’re just saying it is normal since 0.11.2?

---

<div class="post-metadata">

### Author: ![SyncDuck](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/a9a28c/32.png) [@SyncDuck](https://forum.syncthing.net/u/SyncDuck)
#### Post date: [May 10, 2015, 6:23pm UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/5 "2015-05-10T18:23:56Z")

</div>

Windows system with 24GB RAM here.

---

<div class="post-metadata">

### Author: ![zombied](https://forum.syncthing.net/user_avatar/forum.syncthing.net/zombied/32/4800_2.png) [@zombied](https://forum.syncthing.net/u/zombied)
#### Post date: [May 10, 2015, 6:28pm UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/6 "2015-05-10T18:28:08Z")

</div>

And to sum it up: my windows index folder is about 286mb and total amount of syncing data is less than 200Gb.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [May 10, 2015, 6:36pm UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/7 "2015-05-10T18:36:57Z")

</div>

Normal-ish at least, as for an 8 GB system we allow up to 2 × 128 MB of database cache, which accounts for half of the increase you see - the rest may be stuff happening or GC overhead. The database cache gives a quite significant performance improvement, but I can see how this may be surprising and unwanted under some circumstances, so allowing you to decide and tweak this for yourself would probably be a good thing.

The 24 Gig system would get a 2 × 48 MB cache (yeah, the calculation is a bit broken as I noted above) so that doesn’t explain whatever is going on over there.

---

<div class="post-metadata">

### Author: ![zombied](https://forum.syncthing.net/user_avatar/forum.syncthing.net/zombied/32/4800_2.png) [@zombied](https://forum.syncthing.net/u/zombied)
#### Post date: [May 10, 2015, 7:18pm UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/8 "2015-05-10T19:18:11Z")

</div>

Yeah, tweaking thing sounds reasonable. Should we wait for this option?

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [May 11, 2015, 7:04am UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/9 "2015-05-11T07:04:08Z")

</div>

This’ll be in v0.11.4:

> <https://github.com/syncthing/syncthing/pull/1796>

---

<div class="post-metadata">

### Author: ![zombied](https://forum.syncthing.net/user_avatar/forum.syncthing.net/zombied/32/4800_2.png) [@zombied](https://forum.syncthing.net/u/zombied)
#### Post date: [May 11, 2015, 9:51am UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/10 "2015-05-11T09:51:38Z")

</div>

Thank you, I don’t have any further questions. 😄

---

<div class="post-metadata">

### Author: ![zombied](https://forum.syncthing.net/user_avatar/forum.syncthing.net/zombied/32/4800_2.png) [@zombied](https://forum.syncthing.net/u/zombied)
#### Post date: [May 15, 2015, 9:20am UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/11 "2015-05-15T09:20:35Z")

</div>

0.11.4 is out but no promised block cache size config found. 😕

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [May 15, 2015, 9:23am UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/12 "2015-05-15T09:23:58Z")

</div>

It’s not exposed in the ui as most of the advanced settings, but it’s there in the config file.

---

<div class="post-metadata">

### Author: ![zombied](https://forum.syncthing.net/user_avatar/forum.syncthing.net/zombied/32/4800_2.png) [@zombied](https://forum.syncthing.net/u/zombied)
#### Post date: [May 15, 2015, 9:29am UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/13 "2015-05-15T09:29:37Z")

</div>

OK. Where one can find documentation then? I get I should add `<databaseBlockCacheMiB>XXX</databaseBlockCacheMiB>` to the config file?

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [May 15, 2015, 10:00am UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/14 "2015-05-15T10:00:31Z")

</div>

You can read level db documentation. If you force a config save (by changing some setting), the setting should appear in the config by itself.

---

<div class="post-metadata">

### Author: ![zombied](https://forum.syncthing.net/user_avatar/forum.syncthing.net/zombied/32/4800_2.png) [@zombied](https://forum.syncthing.net/u/zombied)
#### Post date: [May 15, 2015, 11:00am UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/15 "2015-05-15T11:00:41Z")

</div>

> [@AudriusButkevicius](#):
>
> You can read level db documentation.

My gosh, could you at least provide the direct link to it? I don’t know how to use this whole github site. Like a blind cat here…

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [May 15, 2015, 11:14am UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/16 "2015-05-15T11:14:34Z")

</div>

I am on my phone, I am sure you could know how to use google just as well as I do.

---

<div class="post-metadata">

### Author: ![zombied](https://forum.syncthing.net/user_avatar/forum.syncthing.net/zombied/32/4800_2.png) [@zombied](https://forum.syncthing.net/u/zombied)
#### Post date: [May 15, 2015, 11:29am UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/17 "2015-05-15T11:29:39Z")

</div>

[quote=“AudriusButkevicius, post:16, topic:2690”]use google[/quote]Smart… Don’t you think I didn’t try it? 😄

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [May 15, 2015, 11:37am UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/18 "2015-05-15T11:37:42Z")

</div>

I am not convinced.

[http://leveldb.googlecode.com/git-history/1.17/doc/index.html](http://leveldb.googlecode.com/git-history/1.17/doc/index.html)

---

<div class="post-metadata">

### Author: ![zombied](https://forum.syncthing.net/user_avatar/forum.syncthing.net/zombied/32/4800_2.png) [@zombied](https://forum.syncthing.net/u/zombied)
#### Post date: [May 15, 2015, 11:57am UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/19 "2015-05-15T11:57:12Z")

</div>

It’s me or there is nothing about syncthing there at all? Anyway I have already figured the setting by myself. Just wanted to see a little support from developers.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [May 15, 2015, 12:17pm UTC](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690/20 "2015-05-15T12:17:03Z")

</div>

```xml
<configuration>
   <options>
        ...
        <databaseBlockCacheMiB>0</databaseBlockCacheMiB>
    </options>
</configuration>

```

Use your desired value instead of 0 (zero being auto detect). The old default was 8 MiB. The new, as of 0.11.4, goes up to 64 MiB for machines with enough RAM. So probably you already have a more reasonable value without needing to tweak.

[Next page](https://forum.syncthing.net/t/increased-memory-usage-since-0-11-2/2690.md?page=2)
