Mystery Posted February 13, 2012 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
1 Gepard Posted February 13, 2012 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
ngek202 Posted February 13, 2012 Posted February 13, 2012 centOS right? I've experienced it too unfortunately dunno how to solve it too Quote
Gepard Posted February 13, 2012 Posted February 13, 2012 The user running rAthena doesn't have permissions to change open files limit. Did you change your FD_SETSIZE? Quote
Mystery Posted February 13, 2012 Author 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
Mystery Posted February 13, 2012 Author 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
Gepard Posted February 13, 2012 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
Mystery Posted February 13, 2012 Author 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
xazax Posted February 13, 2012 Posted February 13, 2012 I guess no, unless you have more than 1024 players online at the same time. Quote
Mystery Posted February 13, 2012 Author 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
whitesn Posted April 28, 2012 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
pathos Posted June 11, 2012 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
EvilPuncker Posted June 12, 2012 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
Matrixfox Posted July 7, 2012 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
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
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.