# Scan and Scroll - Memory Usage 2.2.0

**URL:** https://discuss.elastic.co/t/scan-and-scroll-memory-usage-2-2-0/47971
**Category:** Elasticsearch
**Created:** [April 20, 2016, 10:48pm UTC](https://discuss.elastic.co/t/scan-and-scroll-memory-usage-2-2-0/47971 "2016-04-20T22:48:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Garrett\_Johnson](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@Garrett\_Johnson](https://discuss.elastic.co/u/Garrett_Johnson)
#### Post date: [April 20, 2016, 10:48pm UTC](https://discuss.elastic.co/t/scan-and-scroll-memory-usage-2-2-0/47971/1 "2016-04-20T22:48:34Z")

</div>

We just upgraded to ES 2.2.0 and are using the Scroll method to read bunches of documents in C# and doing something to them and then updating them in another linked system.

We clear the scroll ID's after they are used, we use \_doc and we have tried cleaning the cache but our System Memory spikes by 10-20% each time we run the queries which yes read every document in a 5 million doc index.

Any other ideas to help us force memory back down?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 10:57pm UTC](https://discuss.elastic.co/t/scan-and-scroll-memory-usage-2-2-0/47971/2 "2017-07-05T22:57:33Z")

</div>


