UnamSanctam / UnamWebPanel

MIT License
164 stars 61 forks source link

Web Panel And VPS Server #281

Closed masterjek closed 9 months ago

masterjek commented 9 months ago

Hello Unam. The web panel runs on the VPS server using XMAPP. Processor on the server

1

after some time the web panel has been working I get an error - NetStat TCP service stopped. Please restart the control panel. CPU load reaches 100%. I get an error in the web panel logs - db is locked. Then comes the following error - Apache Stopped. The web panel stops opening. This does not happen immediately, but when the number of workers becomes large. The VPS technical support told me that Apache is not capable of processing a very large number of TCP connection.

masterjek commented 9 months ago

File unamwebpanel.db-wal - reaches gigabyte sizes

UnamSanctam commented 9 months ago

Apache is not capable of processing a very large number of TCP connection

Are you able to increase the Apache worker count? Either the CPU reaches 100% because it cannot handle all the connections or because there are just too many connections. But the later shouldn't be the case so I would (hopefully) guess that it's the former that's the cause.

masterjek commented 9 months ago

Are you able to increase the Apache worker count? This is this parameter - ThreadsPerChild - 1920 and ThreadLimit - 1920

Either the CPU reaches 100% because it cannot handle all the connections or because there are just too many connections. I have several web panels on different VPS servers, the second server has a much more powerful processor, but over time it also becomes 100% loaded.

UnamSanctam commented 9 months ago

Do you have hashrate history enabled or disabled currently?

masterjek commented 9 months ago

Do you have hashrate history enabled or disabled currently?

No, this option is disabled, I know that it heavily loads the server. $config['hashrate_history_enable'] = false;

All problems begin when the number of workers reaches approximately 10,000, but of these, approximately 6,000-7,000 are active.