net-pioneer / v2ray-connection-limiter

MIT License
69 stars 26 forks source link

server overloaded #7

Open peymanghorbani opened 1 year ago

peymanghorbani commented 1 year ago

Hi, First of all, thank you for your good program. After running the program with the following command, the server will load up to 100% nohup python3 main.py & Is there a specific solution?

and another question What is the meaning of the following message after running the program? .... starting checker for : kalvandi inbound with port 19634 blocked inbound with port 54614 blocked inbound with port 19634 blocked ... Regards

net-pioneer commented 1 year ago

Hi, First of all, thank you for your good program. After running the program with the following command, the server will load up to 100% nohup python3 main.py & Is there a specific solution?

and another question What is the meaning of the following message after running the program? .... starting checker for : kalvandi inbound with port 19634 blocked inbound with port 54614 blocked inbound with port 19634 blocked ... Regards

if you have high cpu usage ! it means you have a lot of users but your server has a weak cpu ! the script making thread for each user to check them in same time , that makes cpu gets busy ! so yeah but you can increase Timer in line 66 (time.sleep(2)) , set 4 or 5 for instead 2 sec . .. and about your next question: that mean those accounts which use those ports are disabled . if you think those accounts working with 1 device .. so it's about connections issues , as i mentioned in the doc . in line 10 set _max_allowed_connections to 3 . that may help .

peymanghorbani commented 1 year ago

@net-pioneer
What hardware specifications do you recommend for running this script?

net-pioneer commented 1 year ago

@net-pioneer What hardware specifications do you recommend for running this script?

it depends on your user's count ! you could have 1 core CPU with 10 users and the scripts working fine . but if you have too many users buy high core cpu ! or separate users in multiple servers. but first off set timer to 5 sec in line 66 . that may help . (kholase ye khaki to saresh beriz dg ta in had midonam khodaie)

peymanghorbani commented 1 year ago

@net-pioneer What hardware specifications do you recommend for running this script?

it depends on your user's count ! you could have 1 core CPU with 10 users and the scripts working fine . but if you have too many users buy high core cpu ! or separate users in multiple servers. but first off set timer to 5 sec in line 66 . that may help . (kholase ye khaki to saresh beriz dg ta in had midonam khodaie)

👍 Halle , ye Geli migiramesh :-D

net-pioneer commented 1 year ago

@net-pioneer What hardware specifications do you recommend for running this script?

it depends on your user's count ! you could have 1 core CPU with 10 users and the scripts working fine . but if you have too many users buy high core cpu ! or separate users in multiple servers. but first off set timer to 5 sec in line 66 . that may help . (kholase ye khaki to saresh beriz dg ta in had midonam khodaie)

👍 Halle , ye Geli migiramesh :-D

to line 66 bejaye 2 sanie ro bezan 4 ya 5 sanie . shayad ok she . kami kond mishe vali javabe .

peymanghorbani commented 1 year ago

@net-pioneer What hardware specifications do you recommend for running this script?

it depends on your user's count ! you could have 1 core CPU with 10 users and the scripts working fine . but if you have too many users buy high core cpu ! or separate users in multiple servers. but first off set timer to 5 sec in line 66 . that may help . (kholase ye khaki to saresh beriz dg ta in had midonam khodaie)

👍 Halle , ye Geli migiramesh :-D

to line 66 bejaye 2 sanie ro bezan 4 ya 5 sanie . shayad ok she . kami kond mishe vali javabe .

mitoni tozi bedi ke in 2 sanie ba 4-5 sanie daghighan chi kar mikone va farghesh chie ? chon man 4 sanie ya 6 sanie gozashtam dige khabari az BLOCKED nist, albate max allowed connection ro ham roye 2 gozashtam

net-pioneer commented 1 year ago

@net-pioneer What hardware specifications do you recommend for running this script?

it depends on your user's count ! you could have 1 core CPU with 10 users and the scripts working fine . but if you have too many users buy high core cpu ! or separate users in multiple servers. but first off set timer to 5 sec in line 66 . that may help . (kholase ye khaki to saresh beriz dg ta in had midonam khodaie)

👍 Halle , ye Geli migiramesh :-D

to line 66 bejaye 2 sanie ro bezan 4 ya 5 sanie . shayad ok she . kami kond mishe vali javabe .

mitoni tozi bedi ke in 2 sanie ba 4-5 sanie daghighan chi kar mikone va farghesh chie ? chon man 4 sanie ya 6 sanie gozashtam dige khabari az BLOCKED nist, albate max allowed connection ro ham roye 2 gozashtam

vagti netstat ro ejra mikone CPU ro migire ! in timer vagfe mindaze ke kamtar inkaro kone . va inke gataan to barasi tasir dare