This issue happens often in a Droplet with 2vCPUs and 2GB of Memory running 
CentOS. But it also happens on physical computers. 
    
    
    # running the command ulimit on the droplet give:
    $ ulimit -a
    core file size          (blocks, -c) unlimited
    data seg size           (kbytes, -d) unlimited
    scheduling priority             (-e) 0
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 14904
    max locked memory       (kbytes, -l) 16384
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 2048
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority              (-r) 0
    stack size              (kbytes, -s) 8192
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) 14904
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited
    
    $ nim c -r test.nim
    # or
    $ nim c -d:release -r test.nim
    # To test:
    $ wrk --latency -t 1 -c 500 http://localhost:8080/
    
    
    Run

Reply via email to