<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" 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"><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR><!--[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]--><o:SmartTagType name="PersonName" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 9pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Tahoma
}
LI.MsoNormal {
        FONT-SIZE: 9pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Tahoma
}
DIV.MsoNormal {
        FONT-SIZE: 9pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Tahoma
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: "Times New Roman"; TEXT-DECORATION: none; mso-style-type: personal
}
SPAN.EmailStyle19 {
        FONT-WEIGHT: normal; COLOR: black; FONT-STYLE: normal; FONT-FAMILY: "Times New Roman"; TEXT-DECORATION: none; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=334324117-24052005>That 
looks ok.  Have you rebooted since these settings were put in 
place.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=334324117-24052005>Or at 
least shut cron down and restarted?  Have you tried creating a cron to 
simply</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=334324117-24052005>write 
the ulimits to a output file for testing?</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=334324117-24052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=334324117-24052005>My 
last hints might be:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=334324117-24052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=334324117-24052005>    /etc/pam.d/login needs a "required 
</SPAN></FONT><FONT face=Arial color=#0000ff size=2><SPAN 
class=334324117-24052005>pam_limits.so"  (I usually place in fron of 
pam_console line)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=334324117-24052005>and</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=334324117-24052005>    /etc/sshd/sshd_config needs 
"UsePrivilegeSpearation no" set</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=334324117-24052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=334324117-24052005>But 
I'm not sure how this would affect crond... I'll have to ponder it for a 
bit.</SPAN></FONT></DIV><FONT face=Arial color=#0000ff size=2></FONT><BR>
<P><FONT face=Arial><FONT size=2>Christoph <SPAN 
class=334324117-24052005><FONT 
color=#0000ff> </FONT></SPAN></FONT></FONT></P>
<P><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Serge 
Bianda [mailto:serge.bianda@appiancorp.com] <BR><B>Sent:</B> Tuesday, May 24, 
2005 12:17 PM<BR><B>To:</B> Red Hat Network Users List<BR><B>Cc:</B> Doerbeck, 
Christoph<BR><B>Subject:</B> RE: [rhn-users] Ulimit and cron scheduler - too 
many open files error<BR><BR></P></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=Section1>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'"># 
  /etc/security/limits.conf<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#Each 
  line describes a limit for a user in the form:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#<domain>        
  <type>  <item>  
  <value><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#Where:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#<domain> 
  can be:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - an user name<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - a group name, with @group syntax<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - the wildcard *, for default entry<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#<type> 
  can have the two values:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - "soft" for enforcing the soft limits<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - "hard" for enforcing hard limits<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#<item> 
  can be one of the following:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - core - limits the core file size (KB)<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - data - max data size (KB)<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - fsize - maximum filesize (KB)<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - memlock - max locked-in-memory address space 
  (KB)<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - nofile - max number of open files<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - rss - max resident set size (KB)<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - stack - max stack size (KB)<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - cpu - max CPU time (MIN)<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - nproc - max number of processes<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - as - address space limit<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - maxlogins - max number of logins for this user<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - priority - the priority to run user process 
with<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#        
  - locks - max number of file locks the user can 
  hold<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#<domain>      
  <type>  
  <item>         
  <value><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">#<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">*               
  soft    
  nofile           
  63536<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">*               
  hard    
  nofile           
  63536<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">testuser1       
  hard    
  nofile           
  63536<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'">testuser1        
  soft    
  nofile           
  63536<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'"># End of 
  file<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></FONT></P>
  <DIV>
  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
  face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">
  <HR tabIndex=-1 align=center width="100%" SIZE=2>
  </SPAN></FONT></DIV>
  <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt">From:</SPAN></FONT></B><FONT 
  size=2><SPAN style="FONT-SIZE: 10pt"> 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 
  style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" 
  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 
  face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"><o:p></o:p></SPAN></FONT></P></DIV>
  <P class=MsoNormal><FONT face=Tahoma size=1><SPAN 
  style="FONT-SIZE: 9pt"><o:p> </o:p></SPAN></FONT></P>
  <DIV>
  <P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">please post your 
  limits.conf</SPAN></FONT><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"><o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"> <o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"> <o:p></o:p></SPAN></FONT></P></DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></FONT></P>
  <P><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Christoph <FONT 
  color=blue><SPAN 
  style="COLOR: blue"> </SPAN></FONT> </SPAN></FONT><o:p></o:p></P>
  <P><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P>
  <P style="MARGIN-BOTTOM: 12pt"><FONT face=Tahoma size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original 
  Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> 
  <st1:PersonName 
  style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" 
  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: 5pt; MARGIN-BOTTOM: 5pt; MARGIN-RIGHT: 0in">
    <P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN 
    style="FONT-SIZE: 11pt; FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN 
    style="FONT-SIZE: 11pt; 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></BLOCKQUOTE></BODY></HTML>