Jump to content
  • 0

[Warning] socket_init Issue


Mystery

Question


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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

  • 1

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   285
  • Joined:  12/19/11
  • Last Seen:  

$ 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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

centOS right? I've experienced it too unfortunately dunno how to solve it too ;)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   285
  • Joined:  12/19/11
  • Last Seen:  

The user running rAthena doesn't have permissions to change open files limit.

Did you change your FD_SETSIZE?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

on my part didn't change those.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

$ 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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   285
  • Joined:  12/19/11
  • Last Seen:  

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?)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  427
  • Reputation:   123
  • Joined:  11/17/11
  • Last Seen:  

I guess no, unless you have more than 1024 players online at the same time.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

[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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  01/31/12
  • Last Seen:  

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 by pathos
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

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?)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  277
  • Reputation:   76
  • Joined:  11/23/11
  • Last Seen:  

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...