emqx / esockd

Erlang general non-blocking TCP/SSL socket server
https://www.emqx.com
Apache License 2.0
211 stars 84 forks source link

acceptor - system_limit error #26

Open emqplus opened 8 years ago

emqplus commented 8 years ago

=ERROR REPORT==== 14-Apr-2016::13:30:04 ===^M * Generic server <0.3259.538> terminating ^M * Last message in was {inet_async,#Port<0.6975>,13067,{error,system_limit}}^M \ When Server state == {state,#Port<0.6975>,^M

Fun,^M

                           #Fun<esockd_listener_sup.1.16895020>,^M
                           ["0.0.0.0",58,"80"],^M
                           <0.325.0>,#Fun<esockd_server.0.76791649>,^M
                           {gen_logger,lager_logger,8},^M
                           13067,0}^M
emqplus commented 8 years ago

Fixed in emqttd project: https://github.com/emqtt/emqttd/issues/535

boddumanohar commented 4 years ago

i am getting this error when the concurrent connections has reached a value of 4080

2019-12-03 11:26:16.497 [error]   crasher:
    initial call: esockd_acceptor:init/1
    pid: <0.30219.0>
    registered_name: []
    exception exit: system_limit
      in function  gen_statem:loop_event_result/9
    ancestors: [<0.1297.0>,<0.1295.0>,esockd_sup,<0.1054.0>]
    message_queue_len: 0
    messages: []
    links: [<0.1297.0>]
    dictionary: [{rand_seed,{#{jump => #Fun<rand.16.10897371>,
                                max => 288230376151711743,
                                next => #Fun<rand.15.10897371>,
                                type => exsplus},
                              [214495823314110689|145961106140201057]}}]
    trap_exit: false
    status: running
    heap_size: 4185
    stack_size: 27
    reductions: 11411
  neighbours:
emqplus commented 4 years ago

@boddumanohar Please tune the Linux kernel for more connections: https://docs.emqx.io/broker/v3/en/tune.html#linux-kernel-tuning