# WSFULL error

**URL:** <https://forum.kx.com/t/wsfull-error/5894>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [January 2, 2009, 10:00am UTC](https://forum.kx.com/t/wsfull-error/5894 "2009-01-02T10:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nav1](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@Nav1](https://forum.kx.com/u/Nav1)\
**Post date:** [January 2, 2009, 10:00am UTC](https://forum.kx.com/t/wsfull-error/5894/1 "2009-01-02T10:00:00Z")

</div>

HiI got an error ‘wsfull’ , which means that the workspace is full andis out of memory. Is there any workaround to avoid this error. As indumping some of the data from the kdb+ database onto the hard disk, orsomeother way.on the q prompt i tried the command /w to find the memory usage, justbefore the q session crashed. the output was:503565987 1420317696 0 0jCurrently I am using my desktop pc with 2 GB ram.Please advice,Nav

---

<div class="post-metadata">

**Author:** ![sinha\_sachin](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sinha\_sachin](https://forum.kx.com/u/sinha_sachin)\
**Post date:** [June 13, 2013, 4:50pm UTC](https://forum.kx.com/t/wsfull-error/5894/2 "2013-06-13T16:50:00Z")

</div>

This is a late response but for someone who is struggling for it now:

Q is experiencing out of memory.. add constraints or reduce to list size.

---

<div class="post-metadata">

**Author:** ![Enoch\_Lam](https://avatars.discourse-cdn.com/v4/letter/e/eada6e/32.png) [@Enoch\_Lam](https://forum.kx.com/u/Enoch_Lam)\
**Post date:** [June 14, 2013, 2:10am UTC](https://forum.kx.com/t/wsfull-error/5894/3 "2013-06-14T02:10:00Z")

</div>

You may check you /g value is 1, which turns on the memory garbage collection. Also you can add calls to. Q.gc at points after where your code would use a lot of memory, the call would try to reclaim memory used by any referenced data.
