home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.slackware      I think its the one without Selinux crap      87,272 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 86,271 of 87,272   
   Harold Johanssen to All   
   Can't create socket: Too many open files   
   17 Mar 23 12:40:40   
   
   From: noemail@please.net   
      
   	I have a multithreaded C application in 15.0 that does indeed   
   open a lot of file descriptors, at some point dying with the diagnostic   
   mentioned in the subject line. The same application keeps running under   
   Ubuntu 20.04 without problems.   
      
   	Checking out online, the suggestion is to increase the value of   
   /proc/sys/fs/file-max. Indeed, for 15.0 this is 1632376 by default,   
   whereas in the Ubuntu system it was set to 9223372036854775807. So I set   
   it to that value in 15.0 and restarted the application, to no avail:   
   after (many) hours running, I got the same issue.   
      
   	Anybody know to overcome this problem? Like I said, the code is   
   exactly the same in both Ubuntu 20.04 and Slackware 15.0, and I have the   
   following settings:   
      
   	Slackware 15.0:   
      
   	# ulimit -n   
           1024   
      
           # ulimit -Hn   
           4096   
      
           # ulimit -Sn   
           1024   
      
           # cat /proc/sys/fs/file-max   
           9223372036854775807   
      
   	Ubuntu 20.04:   
      
           # ulimit -n   
           1024   
      
           # ulimit -Hn   
           1048576   
      
           # ulimit -Sn   
           1024   
      
           # cat /proc/sys/fs/file-max   
           9223372036854775807   
      
   Is it just a matter of increasing the hard value under Slackware 15.0? I   
   haven't done so yet because I don't know how to do so without rebooting -   
   which, for a number of reasons, is not an option in the short term.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca