AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

Issues with setting ulimit through perl script

  • 1.  Issues with setting ulimit through perl script

    Posted Mon January 28, 2008 11:52 PM

    Originally posted by: SystemAdmin


    Hi,
    I have attached below code for both 'detect_errors.ksh' and 'detect_errors.pl' script files. Wheneever we execute 'detect_errors.pl' file we get following message

    You are currently running with data limits not set to unlimited.
    You may experience out of memory(OOM) conditions.
    In the event of an OOM error, please increase the data limit value.
    You may use "ulimit -d unlimited" to set data limit as unlimited.

    'ulimit' is set to 'unlimited' in user's profile. Also we have statements setting 'ulimit' parameter in perl script. despite that we are getting above message with perl script. I don't get any issues when i execute shell script file. Can anyone please help me in this?

    Thanks & Regards
    Omkar
    #AIX-Forum


  • 2.  Re: Issues with setting ulimit through perl script

    Posted Sun February 03, 2008 04:46 AM

    Originally posted by: niella


    getrlimit() and setrlimit() works for me on all AIX versions. It's part of BSD::Resource.

    Niel
    #AIX-Forum