z-classic / z-nomp

z-nomp is mining pool software for Zcash and Zclassic so you can create internet money in your home!
MIT License
287 stars 442 forks source link

blocknotify processes hanging? #359

Open zzzpotato opened 6 years ago

zzzpotato commented 6 years ago

My blocknotify seems to be hanging and creating a lot of new processes which eventually crash the daemon. From my searching I've already updated the daemons to the following

rpcworkqueue=64 rpcthreads=1000 rpctimeout=300

$ ps aux |grep blocknotify | grep node | grep -v sh | wc -l 812

pool 16842 0.0 0.1 873860 29968 ? SNl 09:47 0:00 node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 00000034fe41385f6e81242129486e38f167fdbb33c3f66cf28782474032ee64 pool 16863 0.0 0.0 4504 792 ? SN 09:48 0:00 sh -c node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 0000023a202ef31bcce036b2c9e4f59a52fb0bf42817d0e61b8ce97b42ff2826 pool 16864 0.0 0.1 873860 30016 ? SNl 09:48 0:00 node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 0000023a202ef31bcce036b2c9e4f59a52fb0bf42817d0e61b8ce97b42ff2826 pool 16876 0.0 0.0 4504 840 ? SN 09:49 0:00 sh -c node /home/pool/z-votecoin/scripts/cli.js blocknotify votecoin 0000001c43688e0b0eaecbcd62839646999d6fc6ea36ae3401fcb684fa4921a6 pool 16877 0.0 0.1 873860 29984 ? SNl 09:49 0:00 node /home/pool/z-votecoin/scripts/cli.js blocknotify votecoin 0000001c43688e0b0eaecbcd62839646999d6fc6ea36ae3401fcb684fa4921a6 pool 16894 0.0 0.0 4504 700 ? SN 09:49 0:00 sh -c node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 0000017295ea17393e3d3fa3e05783c75bd87d9ed0919b82397d477857aa9447 pool 16895 0.0 0.1 873860 30040 ? SNl 09:49 0:00 node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 0000017295ea17393e3d3fa3e05783c75bd87d9ed0919b82397d477857aa9447 pool 16905 0.0 0.0 4504 708 ? SN 09:50 0:00 sh -c node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 0000002131c186d9729e46ebaef1f63b2d8f9ffb46ccc784a31ddf5b827272bd pool 16906 0.0 0.1 873860 30028 ? SNl 09:50 0:00 node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 0000002131c186d9729e46ebaef1f63b2d8f9ffb46ccc784a31ddf5b827272bd pool 16914 0.0 0.0 4504 700 ? SN 09:50 0:00 sh -c node /home/pool/z-zelcash/scripts/cli.js blocknotify zelcash 000000052aa545a6d42e2096978bc25d9d631e0377bf8b09beeb9ce00983a299 pool 16915 0.0 0.1 873348 29524 ? SNl 09:50 0:00 node /home/pool/z-zelcash/scripts/cli.js blocknotify zelcash 000000052aa545a6d42e2096978bc25d9d631e0377bf8b09beeb9ce00983a299 pool 16929 0.0 0.0 4504 788 ? SN 09:50 0:00 sh -c node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 00000310e20b22f8138bb5563a83c7ee505b133d710ec702d8fdb75c7e695147 pool 16930 0.0 0.1 873860 29932 ? SNl 09:50 0:00 node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 00000310e20b22f8138bb5563a83c7ee505b133d710ec702d8fdb75c7e695147 pool 16952 0.1 0.0 4504 848 ? SN 09:51 0:00 sh -c node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 000001a0843be5c65f866adac42c9fbd60404f04e2e6d9eaba75e5c1ad97c72d pool 16953 0.0 0.1 873860 30000 ? SNl 09:51 0:00 node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 000001a0843be5c65f866adac42c9fbd60404f04e2e6d9eaba75e5c1ad97c72d pool 16960 0.0 0.0 4504 824 ? SN 09:51 0:00 sh -c node /home/pool/z-zelcash/scripts/cli.js blocknotify zelcash 0000000216fcf907181a3939c5bcc8252cfbcee2a156ff0d4b22d3c212336d1f pool 16961 0.0 0.1 873348 29600 ? SNl 09:51 0:00 node /home/pool/z-zelcash/scripts/cli.js blocknotify zelcash 0000000216fcf907181a3939c5bcc8252cfbcee2a156ff0d4b22d3c212336d1f pool 16981 0.1 0.0 4504 748 ? SN 09:51 0:00 sh -c node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 00000309298a2b68867135728ce527d289022bdcabf2f83e7225d96eb72db279 pool 16982 0.1 0.1 873860 29948 ? SNl 09:51 0:00 node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 00000309298a2b68867135728ce527d289022bdcabf2f83e7225d96eb72db279 pool 16996 4.0 0.0 4504 848 ? SN 09:52 0:00 sh -c node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 00000372c5b534011d690aa236b71749460f873ee951b8f3b5b38c93c40ecbee pool 16997 4.0 0.1 873860 29924 ? SNl 09:52 0:00 node /home/pool/z-snowgem/scripts/cli.js blocknotify snowgem 00000372c5b534011d690aa236b71749460f873ee951b8f3b5b38c93c40ecbee

I see this in my debug

2018-07-02 14:09:38 runCommand error: system(node /home/pool/z-nomp/scripts/cli.js blocknotify snowgem 00000112f14ac29e086bf0bf17f7f13e25c6ae0fe3fe21853bdd6ef2b670b62e) returned -1 2018-07-02 14:10:15 runCommand error: system(node /home/pool/z-nomp/scripts/cli.js blocknotify snowgem 00000313281277f0a60924686c10db1650766479ce6f4bb47a59bb4f6acc8a03) returned -1 2018-07-02 14:10:41 runCommand error: system(node /home/pool/z-nomp/scripts/cli.js blocknotify snowgem 000002a3a15ebc046a110ab15006f75c672668c3b7cfa188f33abf3c28248bcf) returned -1 2018-07-02 14:11:21 runCommand error: system(node /home/pool/z-nomp/scripts/cli.js blocknotify snowgem 00000262bac138ec93d66b47fb931612ffd6db6aead06b319a6481b8608a2d16) returned -1 2018-07-02 14:11:57 runCommand error: system(node /home/pool/z-nomp/scripts/cli.js blocknotify snowgem 00000116f9aeed901121844ba2ed118cf13bf8ee8d6b8dffa7bc8028b767d7a1) returned -1 2018-07-02 14:13:07 runCommand error: system(node /home/pool/z-nomp/scripts/cli.js blocknotify snowgem 0000006172f110d12bc3927cce0d7f3db528f98b92bc1fc4ed23ecac5e510369) returned -1 2018-07-02 14:15:49 runCommand error: system(node /home/pool/z-nomp/scripts/cli.js blocknotify snowgem 00000138529f6389b97d24cf6a08f2b82437e3afa09a64508d6e391e70d0b7c6) returned -1 2018-07-02 14:16:00 runCommand error: system(node /home/pool/z-nomp/scripts/cli.js blocknotify snowgem 000001d8b3d0b5fa9032bd3033a640177b8c6654f5c26b97629c42c1585d1228) returned -1 2018-07-02 14:17:29 runCommand error: system(node /home/pool/z-nomp/scripts/cli.js blocknotify snowgem 00000194d394a39ab2e7f1e59b91582163f122f7cd88fc9991f20e34f26ea063) returned -1 2018-07-02 14:18:15 runCommand error: system(node /home/pool/z-nomp/scripts/cli.js blocknotify snowgem 000001f792aae1b79d1ccd57818067f130df787fe6423ee0b6349d93370ec670) returned -1