Page 1 of 1

Heap Allocation Failed

Posted: Mon Sep 21, 2009 12:50 pm
by kittu.raja
Hi,
I am getting an error saying that "scd_Application_auto_dim,0: Caught exception from runLocally(): APT_BadAlloc: Heap allocation failed.."
In this job I am reading two data sets and passing it into slowly changing dimension stage and loading into a table.
I searched the forum and did a ulimit -a in before subroutine and I am getting this values.

*** Output from command was: ***
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 8192

Can anybody help me do I need to change anything to slove the issue

Thanks,

Posted: Mon Sep 21, 2009 6:26 pm
by keshav0307
did you try search?, its very common problem

viewtopic.php?t=109330

Posted: Tue Sep 22, 2009 8:51 am
by kittu.raja
keshav0307 wrote:did you try search?, its very common problem

viewtopic.php?t=109330
How do I view my Hard limit and soft limit values using ulimit

Posted: Tue Sep 22, 2009 9:19 am
by ArndW
in the before-job routine do an execute shell of "ulimit -a" and you will see the run-time values displayed in your log file.

Posted: Tue Sep 22, 2009 9:22 am
by chulett
They've already done that. Aren't the "hard" values those configured in the kernel? There's different ways to find those, it depends on what flavor of UNIX you are running.

Posted: Tue Sep 22, 2009 9:33 am
by ArndW
I should have read the whole thread, not just the last post.

Kittu - which UNIX are you running? Each flavour has a different way of specifiying the hard and soft limits.

Posted: Tue Sep 22, 2009 9:58 am
by kittu.raja
ArndW wrote:I should have read the whole thread, not just the last post.

Kittu - which UNIX are you running? Each flavour has a different way of specifiying the hard and soft limits.
Hi,

I am running in HP -UX. I found the hard limits by using ulimit -Ha
These are the values I got
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) unlimited

Can you tell me is there anything I have tell my admin to change

Posted: Tue Sep 22, 2009 10:14 am
by chulett
Didn't you get other messages with this one, one like this for instance?

The current soft limit on the data segment (heap) size (XXX) is less than the hard limit (YYY), consider increasing the heap size limit

Posted: Tue Sep 22, 2009 10:32 am
by kittu.raja
chulett wrote:Didn't you get other messages with this one, one like this for instance?

The current soft limit on the data segment (heap) size (XXX) is less than the hard limit (YYY), consider increasing the heap size limit
No i did not get that. I am also looking for that

Posted: Tue Sep 22, 2009 10:32 am
by kittu.raja
chulett wrote:Didn't you get other messages with this one, one like this for instance?

The current soft limit on the data segment (heap) size (XXX) is less than the hard limit (YYY), consider increasing the heap size limit
No i did not get that. I am also looking for that

Posted: Wed Sep 23, 2009 8:45 am
by kittu.raja
[quote="chulett"]Didn't you get other messages with this one, one like this for instance?

We are running the same job and same files in PreProd there is no abort the jobs are running fine why they are giving this error.
I saw the ulimit parameters its the same for both the environments.
Can you tell me what may be the cause.

Thanks,