xmrig / xmrig-proxy

Monero (XMR) Stratum protocol proxy
https://xmrig.com/proxy
GNU General Public License v3.0
605 stars 329 forks source link

Bug:too many open files #515

Open snipeTR opened 2 years ago

snipeTR commented 2 years ago

image After giving this error, a performance connection cannot be established. it doesn't fix without restarting the proxy. It works normally between 15 minutes and 1 hour and then gives this error.

{ "access-log-file": "access_proxy.log", "log-file": "proxyl.log", "algo": "cn-heavy/xhv", "api": { "id": null, "worker-id": null }, "http": { "enabled": true, "host": "0.0.0.0", "port": 62, "access-token": "d5", "restricted": true }, "background": false, "bind": [ "0.0.0.0:61" ], "colors": true, "donate-level": 0, "log-file": null, "mode": "nicehash", "pools": [ { "url": "tr.haven.herominers.com:1110", "user": "h", "pass": "pp2a44", "algo": "cn-heavy/xhv", "keepalive": true, "tls": false, "tls-fingerprint": null }, { "url": "de.haven.herominers.com:1110", "user": "h", "pass": "pp2a44", "algo": "cn-heavy/xhv", "keepalive": true, "tls": false, "tls-fingerprint": null }, { "url": "fi.haven.herominers.com:1110", "user": "h***", "pass": "pp2a44", "algo": "cn-heavy/xhv", "keepalive": true, "variant": -1, "tls": false, "tls-fingerprint": null }, ], "retries": 5, "retry-pause": 2, "syslog": "syslog.log", "verbose": false, "workers": true }

SChernykh commented 2 years ago

Open files limit? Did you try sudo ulimit -n 10000?

Technetium1 commented 2 years ago

Maybe related if the above doesn't work: https://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/