<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ulimit exeeds limit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ulimit-exeeds-limit/m-p/2470926#M775244</link>
    <description>Hallo to all&lt;BR /&gt; Three times a day I raise /usr/dt/bin/dtpad to write my daily workdiary. This is sheduled by "at". Each time the at-job generates the following error mail message:&lt;BR /&gt;&lt;BR /&gt;sh[36]: ulimit: The specified value exceeds the user's allowable limit.&lt;BR /&gt;Cron: The previous message is the standard output and standard error of one of your at commands.&lt;BR /&gt;&lt;BR /&gt;# ulimit -f returns:  4194304&lt;BR /&gt; Any attempt to increase this value is rejekted by the following error message:&lt;BR /&gt;&lt;BR /&gt;# ulimit -f  4194305&lt;BR /&gt;ksh: ulimit: bad number&lt;BR /&gt;&lt;BR /&gt;Now the questions:&lt;BR /&gt;How can I avoid these error messages ?&lt;BR /&gt;How can I increase the ulimit value ?&lt;BR /&gt;What system files should I lock at ?&lt;BR /&gt;&lt;BR /&gt;thanks for any usefull answers&lt;BR /&gt;Klaus</description>
    <pubDate>Wed, 06 Dec 2000 08:00:23 GMT</pubDate>
    <dc:creator>Klaus  Frank</dc:creator>
    <dc:date>2000-12-06T08:00:23Z</dc:date>
    <item>
      <title>ulimit exeeds limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ulimit-exeeds-limit/m-p/2470926#M775244</link>
      <description>Hallo to all&lt;BR /&gt; Three times a day I raise /usr/dt/bin/dtpad to write my daily workdiary. This is sheduled by "at". Each time the at-job generates the following error mail message:&lt;BR /&gt;&lt;BR /&gt;sh[36]: ulimit: The specified value exceeds the user's allowable limit.&lt;BR /&gt;Cron: The previous message is the standard output and standard error of one of your at commands.&lt;BR /&gt;&lt;BR /&gt;# ulimit -f returns:  4194304&lt;BR /&gt; Any attempt to increase this value is rejekted by the following error message:&lt;BR /&gt;&lt;BR /&gt;# ulimit -f  4194305&lt;BR /&gt;ksh: ulimit: bad number&lt;BR /&gt;&lt;BR /&gt;Now the questions:&lt;BR /&gt;How can I avoid these error messages ?&lt;BR /&gt;How can I increase the ulimit value ?&lt;BR /&gt;What system files should I lock at ?&lt;BR /&gt;&lt;BR /&gt;thanks for any usefull answers&lt;BR /&gt;Klaus</description>
      <pubDate>Wed, 06 Dec 2000 08:00:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ulimit-exeeds-limit/m-p/2470926#M775244</guid>
      <dc:creator>Klaus  Frank</dc:creator>
      <dc:date>2000-12-06T08:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: ulimit exeeds limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ulimit-exeeds-limit/m-p/2470927#M775245</link>
      <description>ulimit -s xxxxx where xxxxx is the number of kbytes to use cannot&lt;BR /&gt;exceed the system kernel parameter maxssiz. So if the ulimit is at&lt;BR /&gt;the value of maxssiz, then maxssiz will need to be increased. Note&lt;BR /&gt;that this requires a new kernel to be built and a reboot.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;1. ulimit -a&lt;BR /&gt;&lt;BR /&gt;time(seconds)        unlimited&lt;BR /&gt;file(blocks)         unlimited&lt;BR /&gt;data(kbytes)         2015464&lt;BR /&gt;stack(kbytes)        81584&lt;BR /&gt;memory(kbytes)       unlimited&lt;BR /&gt;coredump(blocks)     4290772993&lt;BR /&gt;nofiles(descriptors) 2048&lt;BR /&gt;&lt;BR /&gt;2. echo maxssiz/D | adb /stand/vmunix /dev/kmem&lt;BR /&gt; maxssiz:&lt;BR /&gt; maxssiz:        20396&lt;BR /&gt;&lt;BR /&gt;3. echo "4 * 20396" | bc&lt;BR /&gt; 81584&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Dec 2000 08:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ulimit-exeeds-limit/m-p/2470927#M775245</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2000-12-06T08:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: ulimit exeeds limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ulimit-exeeds-limit/m-p/2470928#M775246</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This is a known problem in 10.20.&lt;BR /&gt;&lt;BR /&gt;To fix it, edit the file /var/adm/cron/.proto and change the line:-&lt;BR /&gt;&lt;BR /&gt;ulimit $l&lt;BR /&gt;&lt;BR /&gt;to:-&lt;BR /&gt;&lt;BR /&gt;if      [ $l = 4194304 ];&lt;BR /&gt;then    ulimit unlimited&lt;BR /&gt;else    ulimit $l&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Wed, 06 Dec 2000 08:28:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ulimit-exeeds-limit/m-p/2470928#M775246</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-12-06T08:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: ulimit exeeds limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ulimit-exeeds-limit/m-p/2470929#M775247</link>
      <description>SOLUTION ONE:&lt;BR /&gt;===============&lt;BR /&gt;&lt;BR /&gt;To change the value of ulimit simply type ulimit&lt;BR /&gt;NEWVALUE&lt;BR /&gt;&lt;BR /&gt;The problem is that when the at command checks the&lt;BR /&gt;ulimit under &lt;BR /&gt;/usr/bin/sh,&lt;BR /&gt;ulimit reports back the word "unlimited" or under ksh&lt;BR /&gt;ulimit reports &lt;BR /&gt;back&lt;BR /&gt;4194304 which is effectively no limit. The at command&lt;BR /&gt;doesn't like &lt;BR /&gt;either&lt;BR /&gt;answer. The only way I've found around it (without&lt;BR /&gt;setting a ulimit in &lt;BR /&gt;the&lt;BR /&gt;kernel) is to set my ulimit to 2000000 in a script&lt;BR /&gt;(see below) and have &lt;BR /&gt;the&lt;BR /&gt;script call at for me. Depending on what your user&lt;BR /&gt;does under his own &lt;BR /&gt;id, he&lt;BR /&gt;may want to just set his ulimit to 2000000 in his own&lt;BR /&gt;.profile.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;#at.sh to get around the ulimit problem&lt;BR /&gt;#&lt;BR /&gt;/usr/bin/at.sh:&lt;BR /&gt;ulimit 2000000&lt;BR /&gt;/usr/bin/at $*&lt;BR /&gt;&lt;BR /&gt;SOLUTION 2&lt;BR /&gt;===========&lt;BR /&gt;you can check a users ulimit value by typing "ulimit"&lt;BR /&gt;on a unix prompt.&lt;BR /&gt;You can change the ulimit value by putting an entry "&lt;BR /&gt;ulimit 4194304" &lt;BR /&gt;at the&lt;BR /&gt;end in the .profile of that user.&lt;BR /&gt;&lt;BR /&gt;Or in your case&lt;BR /&gt;Solve the problem by replacing ulimit $l in&lt;BR /&gt;                  /var/adm/cron/.proto file with these&lt;BR /&gt;lines:&lt;BR /&gt;&lt;BR /&gt;                     if [ $l -eq 4194304 ]&lt;BR /&gt;                       then&lt;BR /&gt;                         ulimit unlimited&lt;BR /&gt;                       else&lt;BR /&gt;                         ulimit $l&lt;BR /&gt;                     fi&lt;BR /&gt;&lt;BR /&gt;                  Please note that "$l" above is the&lt;BR /&gt;dollar sign ($)&lt;BR /&gt;                  followed by the lower case letter&lt;BR /&gt;'ell' (not the&lt;BR /&gt;                  number one).  See proto(4) for its&lt;BR /&gt;special&lt;BR /&gt;                  meaning in this context.&lt;BR /&gt;&lt;BR /&gt;SOLUTION 3&lt;BR /&gt;===========&lt;BR /&gt;&lt;BR /&gt;When a job is submitted to at(1) the command:&lt;BR /&gt;                    ulimit 4194304&lt;BR /&gt;               is included in the&lt;BR /&gt;/var/spool/cron/atjobs/.&lt;BR /&gt;&lt;BR /&gt; Using the posix shell (/usr/bin/sh), the problem can&lt;BR /&gt;be reproduced at &lt;BR /&gt;the command line; ksh does not have the problem:&lt;BR /&gt;                    $ ulimit&lt;BR /&gt;                    unlimited&lt;BR /&gt;                    $ ulimit 4194304&lt;BR /&gt;                    sh: ulimit: The specified value&lt;BR /&gt;exceeds the user's &lt;BR /&gt;allowable limit.&lt;BR /&gt;                    $ ksh&lt;BR /&gt;                    $ ulimit 4194304&lt;BR /&gt;                    (no error)&lt;BR /&gt;&lt;BR /&gt;In the case of interactive commands, you can avoid the&lt;BR /&gt;warning by &lt;BR /&gt;setting ulimit to 4194303 in the posix shell, or by&lt;BR /&gt;using ksh.&lt;BR /&gt;&lt;BR /&gt;As pointed out previously, the at(1) job runs&lt;BR /&gt;correctly regardless of &lt;BR /&gt;this warning.  To get rid of the warning from at(1)&lt;BR /&gt;jobs, you can limit &lt;BR /&gt;ulimit to 4194303.  Do this by modifying the file&lt;BR /&gt;/var/adm/cron/.proto &lt;BR /&gt;to change the line:&lt;BR /&gt;                    ulimit $l&lt;BR /&gt;               to:&lt;BR /&gt;                    ulimit 4194303&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Dec 2000 08:29:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ulimit-exeeds-limit/m-p/2470929#M775247</guid>
      <dc:creator>Carol Garrett</dc:creator>
      <dc:date>2000-12-06T08:29:01Z</dc:date>
    </item>
  </channel>
</rss>

