UnamSanctam / UnamWebPanel

MIT License
175 stars 58 forks source link

Panel overloading and not loading page? #248

Open frankmurphy3 opened 1 year ago

frankmurphy3 commented 1 year ago

Hey, I've been using your web panel the past few weeks and its going well, but now randomly my server won't load at times and gives me this response when I try to load the domain/home page:

"This page isn't working at the moment blabla.abc didn’t send any data. ERR_EMPTY_RESPONSE"

I've got about 1000 bots connected although maybe only 500 of these at online at the same time. I'm able to ping the domain and it replies instantly, also I can get to the cyberpanel part easily using port :8090 and navigate around the server easily. My server setup has 4VCPUs and 8GB Ram so should definitely have good enough specs.

When I reboot the server via console I am able to get in to the panel immediately after it reboots if I'm quick but then if I refresh the panel 30 seconds later I can never get in again.

Is there anything I can do to fix this? Is there like a cache I can clear? Or any way to take away any features that reduces the demand like the stats maybe or hashrate history? Just looking for anyway to solve this so I can get back in the panel.

Thanks!

UnamSanctam commented 1 year ago

Hmm, it doesn't happen for me during testing and that's with 1000 miner connections per second. But you can try disabling hashrate history if you don't need it, inside config.php there is a line $config['hashrate_history_enable'] = true; that you can change to $config['hashrate_history_enable'] = false; to disable it. See if that changes anything. Also if you're using Apache you could increase the maximum client limit but at only 500-1000 miners that shouldn't really be any issue at all.

frankmurphy3 commented 1 year ago

thanks, tried the hashrate history = false but doesn't seem to change much. Which OS would be best? I'm wondering if that might have an impact, I'm using Centos 7, is ubuntu better? Also I set it up the server using cyberpanel because it seemed like a more straightforward guide. Never set up apache before, I've looked at a few guides now though, how do you upload the panel files after building the apache server? Is it via FTP?