# Out of Memory error when free memory size is large

**URL:** <https://community.unix.com/t/out-of-memory-error-when-free-memory-size-is-large/268794>\
**Category:** UNIX for Advanced & Expert Users\
**Created:** [July 2, 2010, 5:21pm UTC](https://community.unix.com/t/out-of-memory-error-when-free-memory-size-is-large/268794 "2010-07-02T17:21:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilili07](https://community.unix.com/letter_avatar/lilili07/32/5_5575768a8748004e209b776fc1b2916d.png) [@lilili07](https://community.unix.com/u/lilili07)\
**Post date:** [July 2, 2010, 5:21pm UTC](https://community.unix.com/t/out-of-memory-error-when-free-memory-size-is-large/268794/1 "2010-07-02T17:21:52Z")

</div>

I was running a program and it stopped and showed "Out of Memory!". at that time, the RAM used by this process is around 4G and the free memory size of the machine is around 30G. Does anybody know what maybe the reason? this program is written with Perl. the OS of the machine is Solaris U8. And I did not set the max memory for this program using ulimit.

BTW, if you think I posted the question to the wrong place please let me know which forum I should post it to. Thanks.

---

<div class="post-metadata">

**Author:** ![Corona688](https://community.unix.com/letter_avatar/corona688/32/5_5575768a8748004e209b776fc1b2916d.png) [@Corona688](https://community.unix.com/u/Corona688)\
**Post date:** [July 3, 2010, 7:02pm UTC](https://community.unix.com/t/out-of-memory-error-when-free-memory-size-is-large/268794/2 "2010-07-03T19:02:10Z")

</div>

Is the OS 32-bit or 64-bit? In a 32-bit program, the per-process maximum memory limit is 4GB no matter how much more the OS may have available.
