Operating System - HP-UX
1834134 Members
2012 Online
110064 Solutions
New Discussion

memory segment error in cron

 
Sandra Wolters
Occasional Advisor

memory segment error in cron

Hello -

We have a process that runs perfectly when executed manually. But we've put it into the cron and it crashes with a memory segment error. I'm wondering if there's a parameter, kernal or otherwise, to increase the amount of memory available to the cron?

Thanks!
3 REPLIES 3
Anand Sreenivasan
Regular Advisor

Re: memory segment error in cron

I am thinking the ulimit set for this shell or the user. Check it by running ulimit -aH or /usr/bin/ulimit -aH.
Sandra Wolters
Occasional Advisor

Re: memory segment error in cron

Here's the output of ulimit for the user that cron logs in as. Does cron have its own ulimit values?

ulimit -aH
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) 2048
RAC_1
Honored Contributor

Re: memory segment error in cron

cron runs with a very minimal environemnt. You should be setting all your environments, ulimit settings etc in the script itself.
.proto file can help you to some extend, but better to set it in script itself.
man proto for details.

Anil
There is no substitute to HARDWORK