cazala / coin-hive-stratum

use CoinHive's JavaScript miner on any stratum pool
http://npmjs.com/package/coin-hive-stratum
417 stars 461 forks source link

Hash rates drop a lot today. pool.supportxmr.com #126

Open neverknoww opened 6 years ago

neverknoww commented 6 years ago

Today Im having issue with the hash rates. Dropped a lot compare to yday.

Pool Graph: https://imgur.com/a/kaAGy Hash Rates: https://imgur.com/a/0nLHm

Anyone having the same problem as me?

patrickbau commented 6 years ago

try to restart of the process

neverknoww commented 6 years ago

@patrickbau tried already, no luck. pm2 kill, pm2 delete .... etc still no luck. no ideas what is wrong but you can also see their pool hash rate (supportxmr.com) also have some sort of shortage but no one confirm what is going on

how about you?

patrickbau commented 6 years ago

comparing to coinhive YES

neverknoww commented 6 years ago

@patrickbau still using coinhive? i saw you in telegram, not able to change the code yet?

patrickbau commented 6 years ago

Yes i'm still using coinhive in different website About the code not yet but just i changed the port to 5555

hitmanex commented 6 years ago

you have to restart every 2 days or so or the hash rates drop (at least for me). i drop from 14kH to 1kh (windows server). might not have this issue on linux idk

neverknoww commented 6 years ago

@hitmanex ohhhh, interesting. I didnt know that. Usaually, right at this moment i should be hashing at 17k h/s but now it is 8.8k h/s. Are you also using the supportxmr.com?

neverknoww commented 6 years ago

https://imgur.com/a/63csb

look at their pool hash rates, 100% there is problem

hitmanex commented 6 years ago

@neverknoww yes im on supportxmr. always after a few days randomly kh drops

patrickbau commented 6 years ago

I also confirm, always i need to restart when i see the hashing drops

vphelipe commented 6 years ago

I also have the same problem, if you have many miners, use forever without logs, and run in multiple cores. Then create a crontab to restart every 6 hours.

And set maxMinersPerConnection to 50.

That way it gets more stable.

patrickbau commented 6 years ago

@vphelipe Can you please tell me how to do this ?

vphelipe commented 6 years ago

Yes. In path "/coin-hive-stratum/bin/" create file "cluster.js" and paste this code:

var cluster = require("cluster"); var numCPUs = require("os").cpus().length;

if (cluster.isMaster) { for (var i = 0; i < numCPUs; i++) { cluster.fork(); } cluster.on("exit", function(deadWorker, code, signal) { var worker = cluster.fork(); var newPID = worker.process.pid; var oldPID = deadWorker.process.pid; }); } else { require("./coin-hive-stratum"); }

And exec forever without logs:

forever start -a -l /dev/null -o /dev/null -r /dev/null cluster.js

Now you need install crontab on your server, and exec:

crontab -e

Now you paste this line and save:

0 */6 * * * nvm use 6.9.2 && /usr/bin/forever restartall

If you continue having difficulties with your pool, I can recommend a pool that I created for web mining, with low difficulty: https://elitexmr.com/

neverknoww commented 6 years ago

any guide for the digitalocean / pm2 ? currently i am using the pm2 to start the proxy_secure.js app

vphelipe commented 6 years ago

I do not use pm2, for some reason using it does not work correctly, use forever.

neverknoww commented 6 years ago

@vphelipe its all good, thanks for your info.

hitmanex commented 6 years ago

just use a batch file and :start coin-hive-stratum then timeout /T 86400 then taskkill /F /IM node.exe :start. (this is ghetto but itll work)

letlet commented 6 years ago

My hashrate also droped a lot about 10 hours ago, using pool.supportxmr.com too. Should be some problem with pool.supportxmr.com

vphelipe commented 6 years ago

The problem is with that stratum and not with the pool. If you restart will work again.

The big problem with this code is that it only works with supportxmr.com and still has these constant crashes. It breaks down and does not work until restarting.

With other pools it works only for a few minutes, then drops until it reaches zero.

Still deserves many improvements, due to these chronic problems, Now I'm using DeepMiner with a pool that I created for web mining (EliteXMR) and I'm not having these problems.

neverknoww commented 6 years ago

@vphelipe you work with DeepMiner?

vphelipe commented 6 years ago

@neverknoww I am part of the team, but DeepMiner is not recommended to use with supportxmr.com, because after some time you can be banned by multiple connections. If you do not want to work with supportxmr, you can use DeepMiner in another pool of your choice.

neverknoww commented 6 years ago

Proof:

Pool Hash rates: https://imgur.com/a/fm2AW My hash rates: https://imgur.com/a/tt8Pi

As you can see, there are huge fall at the end of the graph and then it couldn't climb back up. The two graphs, you can see it is proportional to each other. I don't see this is our problem. Its clearly supportxmr.com have sort of problem and they are not to fix it. They capped our hash rates?

adamdupuis commented 6 years ago

I came across a pool that is supposed to be accepting of web miners with 100 diff: https://moneroocean.stream/

I tried it for a bit, but have not switched over to it yet. The other web mining pools I've come across have yet to find any blocks.

vphelipe commented 6 years ago

@neverknoww

Sorry, but you're wrong. These falls in your hash rate are not normal. Here's how hash rate:

Pool Hash rates: https://imgur.com/a/6zNKZ My hash rates: https://imgur.com/a/mLKhU

Worldand commented 6 years ago

@neverknoww Which port you are using ?

neverknoww commented 6 years ago

@vphelipe but you cant explain why they have spikes and falls at random time? This is also depend on the pool you are using (geo-locations and pings). Also you are not using web miner right?

@Worldand Im using 3333

vphelipe commented 6 years ago

@neverknoww

My hash rate had no drop, it remained stable. With the supportxmr pool I use this stratum, just in my pool I use DeepMiner.

The big difference in my hash rate is because of the settings I've already cited.

neverknoww commented 6 years ago

@vphelipe Yeah, really dont know what is causing the problem. If you read the first screenshots i posted, its quite obviously they are having some sort of network issues.

Btw what is your deep miner setting? throttle? threads?

vphelipe commented 6 years ago

@neverknoww With supportxmr, I use cluster.js (multiple processes and automatic restart if one of the processes stops), forever without logs and crontab to restart automatically every 6 hours. That's why my hash rate is stable.

neverknoww commented 6 years ago

@vphelipe Many thanks. I will give it a try