Page 1 of 1

Heap Allocation Problem

Posted: Thu Jun 19, 2008 3:07 am
by rsripathy
log errors:
main_program: The current soft limit on the data segment (heap) size (805306368) is less than the hard limit (2147483647), consider increasing the heap size limit

main_program: Fatal Error: Throwing exception: APT_BadAlloc: Heap allocation failed.

Posted: Thu Jun 19, 2008 3:13 am
by aakashahuja
try changing ulimit for the user to unlimited.

Posted: Thu Jun 19, 2008 3:39 am
by rsripathy
How to change ulimit?

Posted: Fri Jun 20, 2008 2:50 am
by DSRajesh
Is this problem has resolved?

Posted: Fri Jun 20, 2008 9:08 am
by bart12872
your job is consuming too memory (RAM).
Optimize it.

Re: Heap Allocation Problem

Posted: Fri Jun 20, 2008 8:09 pm
by sreddy
rsripathy

You can increase through Datastage Client (Adminstrator).

rsripathy wrote:log errors:
main_program: The current soft limit on the data segment (heap) size (805306368) is less than the hard limit (2147483647), consider increasing the heap size limit

main_program: Fatal Error: Throwing exception: APT_BadAlloc: Heap allocation failed.

Posted: Sat Jun 21, 2008 1:23 am
by ray.wurlod
Yeah?!! :shock:

Please elaborate on how you can change an operating system setting through the DataStage Administrator client. Particularly something like ulimit, which requires superuser privileges to increase.

Posted: Mon Jun 23, 2008 4:23 am
by DSRajesh
Hi reddy,

How can you change the ulimit value through administrator which is not possible using client?

can you pls explain me how can you do the same?

Regards,

Re: Heap Allocation Problem

Posted: Wed Jul 23, 2008 6:52 pm
by joffijoy
rsripathy wrote:log errors:
main_program: The current soft limit on the data segment (heap) size (805306368) is less than the hard limit (2147483647), consider increasing the heap size limit

main_program: Fatal Error: Throwing exception: APT_BadAlloc: Heap allocation failed.
Check the ulimit first

From unix Prompt type in > ulimit -aH ( for hard allocation limits) and > ulimit -aS (for soft allocation)

1)If they are not set to "unlimited" , ask your UNIX admin to do that.

2) Also frequest him to have sufficient temporary space( Scratch) added.

3) If you are using DB2 API stage there is a memory leak issue and you need to contact support to give you a patch.

I have seen similar issue in ODBC stage as well, but I am not sure of a patch available for it.


Thaks,
Joffi Joy.