# Divide the RAM between Pagecache and Heap size

**URL:** <https://community.neo4j.com/t/divide-the-ram-between-pagecache-and-heap-size/9865>\
**Category:** Neo4j Graph Platform\
**Tags:** operations\
**Created:** [September 4, 2019, 12:05pm UTC](https://community.neo4j.com/t/divide-the-ram-between-pagecache-and-heap-size/9865 "2019-09-04T12:05:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fme.mrc](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/fme.mrc/32/4136_2.png) [@fme.mrc](https://community.neo4j.com/u/fme.mrc)\
**Post date:** [September 4, 2019, 12:05pm UTC](https://community.neo4j.com/t/divide-the-ram-between-pagecache-and-heap-size/9865/1 "2019-09-04T12:05:28Z")

</div>

what are the factors that needs to be consider while allocating the space to PageCache and Heap.

Lets say i have 16GB of memory - how much do you suggest to allocate for page cache and Heap size.

Thanks,

---

<div class="post-metadata">

**Author:** ![david\_allen](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/david_allen/32/13090_2.png) [@david\_allen](https://community.neo4j.com/u/david_allen)\
**Post date:** [September 4, 2019, 12:15pm UTC](https://community.neo4j.com/t/divide-the-ram-between-pagecache-and-heap-size/9865/2 "2019-09-04T12:15:01Z")

</div>

This is not a simple question, there's rather a lot to say.

In the Neo4j documentation there are two sections on consideration and capacity planning for memory sizing of instances. That's the best place to look. The really short answer is that it depends on a lot of factors, such as the size of your graph on disk, the type of transactions you're running, how many indexes you have, and other factors.

> **[Memory configuration - Operations Manual](https://neo4j.com/docs/operations-manual/current/performance/memory-configuration/#_considerations)**
>
> This section describes the different aspects of Neo4j memory configuration and use.

Sizing hardware for databases is typically not the easiest thing you'll do, but there's a really big payoff in terms of performance you can get out of the system by doing this correctly.

---

<div class="post-metadata">

**Author:** ![michael.hunger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/michael.hunger/32/27377_2.png) [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Post date:** [September 5, 2019, 7:34pm UTC](https://community.neo4j.com/t/divide-the-ram-between-pagecache-and-heap-size/9865/3 "2019-09-05T19:34:51Z")

</div>

Usually try to fit the store files in the page cache if possible.  
But for real world concurrent usage also have at least 6-8G heap.
