Mystery Posted February 13, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted February 13, 2012 Apparently I get this warning: socket_init: failed to set socket limit to 16384, setting to maximum allowed (original limit=1024, current limit=1024, maximum allowed=1024, error=unknown). Anyone know what this means or what causes it? o_O Quote Link to comment Share on other sites More sharing options...
1 Gepard Posted February 13, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 392 Reputation: 285 Joined: 12/19/11 Last Seen: January 23, 2022 Share Posted February 13, 2012 $ ulimit -n 1024 // this is limit for the user $ grep FD_SETSIZE /usr/include/linux/posix_types.h #define __FD_SETSIZE 1024 // this is your system default In your case limit is 1024, and #define is 16384, am I right? Quote Link to comment Share on other sites More sharing options...
ngek202 Posted February 13, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Share Posted February 13, 2012 centOS right? I've experienced it too unfortunately dunno how to solve it too Quote Link to comment Share on other sites More sharing options...
Gepard Posted February 13, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 392 Reputation: 285 Joined: 12/19/11 Last Seen: January 23, 2022 Share Posted February 13, 2012 The user running rAthena doesn't have permissions to change open files limit. Did you change your FD_SETSIZE? Quote Link to comment Share on other sites More sharing options...
ngek202 Posted February 13, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Share Posted February 13, 2012 on my part didn't change those. Quote Link to comment Share on other sites More sharing options...
Mystery Posted February 13, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Author Share Posted February 13, 2012 The user running rAthena doesn't have permissions to change open files limit. Did you change your FD_SETSIZE? Where is this FD_SETSIZE? I don't remember changing anything regarding this o_o Quote Link to comment Share on other sites More sharing options...
Mystery Posted February 13, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Author Share Posted February 13, 2012 $ ulimit -n 1024 // this is limit for the user $ grep FD_SETSIZE /usr/include/linux/posix_types.h #define __FD_SETSIZE 1024 // this is your system default In your case limit is 1024, and #define is 16384, am I right? So, I should change 1024 to 16384? And see what happens? Also, is this in mmo? Quote Link to comment Share on other sites More sharing options...
Gepard Posted February 13, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 392 Reputation: 285 Joined: 12/19/11 Last Seen: January 23, 2022 Share Posted February 13, 2012 rAthena uses default values found in system lib, but it's above user limit. You have 2 options: change ulimit for rA user change FD_SETSIZE for rAthena ignore the warning The last two should have the same outcome. Socket limit will be set to ulimit -n which is 1024 (you don't need more concurrent connections that that, do you?) Quote Link to comment Share on other sites More sharing options...
Mystery Posted February 13, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Author Share Posted February 13, 2012 The last two should have the same outcome. Socket limit will be set to ulimit -n which is 1024 (you don't need more concurrent connections that that, do you?) No idea Gepard lol. Secondly, I have no what the file is called to increase such a limit (or the directory). Finally, if I don't fix this warning, would it cause any issues? Quote Link to comment Share on other sites More sharing options...
xazax Posted February 13, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 427 Reputation: 123 Joined: 11/17/11 Last Seen: December 31, 2022 Share Posted February 13, 2012 I guess no, unless you have more than 1024 players online at the same time. Quote Link to comment Share on other sites More sharing options...
Mystery Posted February 13, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Author Share Posted February 13, 2012 I guess no, unless you have more than 1024 players online at the same time. No. But as I said earlier, I don't even remember changing this area in the source to even give me this warning o_O. Quote Link to comment Share on other sites More sharing options...
whitesn Posted April 28, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 193 Reputation: 14 Joined: 12/02/11 Last Seen: October 30, 2018 Share Posted April 28, 2012 [Warning]: socket_init: failed to set socket limit to 32768 (current limit 1024). I get this in the newest trunk and I can't connect to the char server... o_o CentOS Quote Link to comment Share on other sites More sharing options...
pathos Posted June 11, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 01/31/12 Last Seen: February 11, 2013 Share Posted June 11, 2012 (edited) I'm having the same issue also. Any way that we could fix this problem? [Warning] socket_init: failed to set socket limit to 16384 (current limit 1024). Edited June 11, 2012 by pathos Quote Link to comment Share on other sites More sharing options...
EvilPuncker Posted June 12, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 713 Reputation: 71 Joined: 11/08/11 Last Seen: December 25, 2024 Share Posted June 12, 2012 I'm having the same issue also. Any way that we could fix this problem? [Warning] socket_init: failed to set socket limit to 16384 (current limit 1024). rAthena uses default values found in system lib, but it's above user limit. You have 2 options: change ulimit for rA user change FD_SETSIZE for rAthena ignore the warning The last two should have the same outcome. Socket limit will be set to ulimit -n which is 1024 (you don't need more concurrent connections that that, do you?) Quote Link to comment Share on other sites More sharing options...
Matrixfox Posted July 7, 2012 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 277 Reputation: 76 Joined: 11/23/11 Last Seen: September 21, 2014 Share Posted July 7, 2012 Just digging up old threads. I found this guide to be helpful and resolved my issue. http://stackoverflow.com/questions/34588/how-do-i-change-the-number-of-open-files-limit-in-linux Thanks Gepard xD Quote Link to comment Share on other sites More sharing options...
Question
Mystery
Apparently I get this warning:
socket_init: failed to set socket limit to 16384, setting to maximum allowed (original limit=1024, current limit=1024, maximum allowed=1024, error=unknown).
Anyone know what this means or what causes it? o_O
Link to comment
Share on other sites
14 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.