# Heap space for Slicer

**URL:** <https://discourse.slicer.org/t/heap-space-for-slicer/12031>\
**Category:** Support\
**Created:** [June 15, 2020, 11:52am UTC](https://discourse.slicer.org/t/heap-space-for-slicer/12031 "2020-06-15T11:52:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepa](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/deepa/32/5634_2.png) [@Deepa](https://discourse.slicer.org/u/Deepa)\
**Post date:** [June 15, 2020, 11:52am UTC](https://discourse.slicer.org/t/heap-space-for-slicer/12031/1 "2020-06-15T11:52:16Z")

</div>

Hi All,

I am facing memory issues while running tasks like centerline line extraction using Slicer installed on a server.

I’d like to know how to increase the heap space for Slicer.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 15, 2020, 3:47pm UTC](https://discourse.slicer.org/t/heap-space-for-slicer/12031/2 "2020-06-15T15:47:24Z")

</div>

Hi - It’s what Andras mentioned before. Ideally you add more RAM, or if not you allocate more swap space (linux) or virtual memory (windows). There’s nothing slicer-specific required.

---

<div class="post-metadata">

**Author:** ![Deepa](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/deepa/32/5634_2.png) [@Deepa](https://discourse.slicer.org/u/Deepa)\
**Post date:** [June 15, 2020, 4:19pm UTC](https://discourse.slicer.org/t/heap-space-for-slicer/12031/3 "2020-06-15T16:19:18Z")

</div>

Thank you. I thought there would be Slicer specific options . For instance, I find application specific options mentioned [here](https://stackoverflow.com/questions/15313393/how-to-increase-application-heap-size-in-eclipse)

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/83011_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [June 15, 2020, 5:19pm UTC](https://discourse.slicer.org/t/heap-space-for-slicer/12031/4 "2020-06-15T17:19:07Z")

</div>

That’s for Java applications. Slicer will utilize up to the physical memory available in your system. If you are using a shared server or a VM, may be the admins are constraining it?

---

<div class="post-metadata">

**Author:** ![Deepa](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/deepa/32/5634_2.png) [@Deepa](https://discourse.slicer.org/u/Deepa)\
**Post date:** [June 15, 2020, 5:44pm UTC](https://discourse.slicer.org/t/heap-space-for-slicer/12031/5 "2020-06-15T17:44:38Z")

</div>

Thank you. Yes, I am using a shared server.

 ![Untitled](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/b/6b54f51893937ba1b39ef6b52d8a176f98b291dc.png)

I could find free swap space at the instant when bad\_alloc error appeared. So I am not sure if the swap space has to be increased.
