Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xray not working if to much users #32

Open
Miatge opened this issue Nov 6, 2024 · 6 comments
Open

Xray not working if to much users #32

Miatge opened this issue Nov 6, 2024 · 6 comments

Comments

@Miatge
Copy link

Miatge commented Nov 6, 2024

Hi, hope you are fine.

When the clients exceed 40_50 numbers, the configs wont work and need to restart xray service to work again, and after a few minutes it happen again, can you solve this?

@GFW4Fun
Copy link
Owner

GFW4Fun commented Nov 7, 2024

Hi

Try with the new version

Re -run the installation command.

Thank you

@Miatge
Copy link
Author

Miatge commented Nov 7, 2024

Thank you for you fast action and response. Apparently fixed after i installed new version. But we should see in long time. And can you please explain what was the cause of the problem?

@GFW4Fun
Copy link
Owner

GFW4Fun commented Nov 7, 2024

nginx and Linux limitations!

you can more optimize...

Only > Optimize the Network, SSH & System Limits!🚀🔥🛠️

bash <(wget -qO- raw.githubusercontent.com/hawshemi/Linux-Optimizer/main/linux-optimizer.sh)

@Miatge
Copy link
Author

Miatge commented Nov 7, 2024

Thank you so much, and one other question, if my server does have a good cpu, can i increase nginx workers in nginx.conf file? Or it need more works to do?

@GFW4Fun
Copy link
Owner

GFW4Fun commented Nov 9, 2024

nginx Automatically detect the cpu core
you can increase nginx workers in nginx.conf

Each user builds 200 connections
The settings are now at 655K connections per core

cpu core x 655K = user support

2 core x 655k / 200 ~ 6k user

@GFW4Fun
Copy link
Owner

GFW4Fun commented Nov 9, 2024

you can limit connection per user


http {
    limit_conn_zone $binary_remote_addr zone=conn_limit:10m;
    
    # Your existing configurations
}

server {
    location / {
        limit_conn conn_limit 300;
        proxy_pass http://your_upstream;
        
        # Your existing configurations
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants