<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Message</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:9.0pt;
font-family:Tahoma;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Times New Roman";
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Times New Roman";
color:black;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#
/etc/security/limits.conf<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#Each line
describes a limit for a user in the form:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#<domain>
<type> <item> <value><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#Where:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#<domain>
can be:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
an user name<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># - a
group name, with @group syntax<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
the wildcard *, for default entry<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#<type>
can have the two values:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
"soft" for enforcing the soft limits<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
"hard" for enforcing hard limits<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#<item>
can be one of the following:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
core - limits the core file size (KB)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
data - max data size (KB)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
fsize - maximum filesize (KB)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
memlock - max locked-in-memory address space (KB)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
nofile - max number of open files<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
rss - max resident set size (KB)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
stack - max stack size (KB)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
cpu - max CPU time (MIN)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
nproc - max number of processes<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
as - address space limit<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
maxlogins - max number of logins for this user<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
priority - the priority to run user process with<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># -
locks - max number of file locks the user can hold<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#<domain>
<type> <item> <value><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>#<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>*
soft nofile 63536<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>*
hard nofile 63536<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>testuser1
hard nofile 63536<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'>testuser1
soft nofile 63536<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'># End of
file<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman";color:black'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-weight:bold'>From:</span></font></b><font size=2><span style='font-size:
10.0pt'> rhn-users-bounces@redhat.com [mailto:rhn-users-bounces@redhat.com] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Doerbeck, Christoph<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, May 24, 2005 10:38
AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Red
Hat Network Users List</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [rhn-users] Ulimit
and cron scheduler - too many open files error</span></font><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:9.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>please post your limits.conf</span></font><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'> <o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'><o:p> </o:p></span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Christoph <font
color=blue><span style='color:blue'> </span></font> </span></font><o:p></o:p></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p>
<p style='margin-bottom:12.0pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> <st1:PersonName w:st="on">Serge
Bianda</st1:PersonName> [mailto:serge.bianda@appiancorp.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, May 24, 2005 10:28
AM<br>
<b><span style='font-weight:bold'>To:</span></b> rhn-users@redhat.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [rhn-users] Ulimit and
cron scheduler - too many open files error<o:p></o:p></span></font></p>
<blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
11.0pt;font-family:"Times New Roman"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
11.0pt;font-family:"Times New Roman"'>We are trying to run a script using the
cron scheduler. For the script to run, we had to increase the number of open
file descriptors using "ulimit -n" to 63000 from 1024. We increased
the file descriptor value in /etc/security/limits.conf. But crontab scheduler
does not read the new increased value for the file descriptors and always
errors out throwing - "too many open files" error. We tried to
increase the value in the script that is scheduled using the cron job, but it
looks like cron does not pick the new value even if it is set in the script.
Are you aware of any global setting for the cron scheduler which will force it
to have more open file descriptors? Note that when the script is ran from the
command line apart from the cron scheduler it works fine and does not throw out
errors stating “too many open files”.<o:p></o:p></span></font></p>
</blockquote>
</div>
</body>
</html>