Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Tutorial HowTo fix CPU and RAM overload on XtreamUI

redhat

Administrator
Staff member
Administrator
Joined
Jun 19, 2019
Messages
3,306
Reaction score
15,927
Points
134
Location
root[@]woi
This solution is from the user @empire from XtreamUI Forum, all credits goes to him. I just successfully try this solution so I want to share it with you.

I hope this can support some of you as well it did for me - specially for VOD servers - Lets start

Make sure pid_monitor is in crons.

1. Clean up streams_sys using stream tools.
2. Optimize your server OS:


Set ulimit parameters on your ubuntu server. Check ulimit with this command:
Code:
ulimit -u

if it was 1024 then we need to increase it as follow
Code:
nano /etc/security/limits.conf


add the following lines to the end of your file:
* hard nofile 500000
* soft nofile 500000
root hard nofile 500000
root soft nofile 500000
* soft nproc 500000
* hard nproc 500000
root soft nproc 500000
root hard nproc 500000

Then save and close the file.

3. Optimize sysctl

Edit sysctl.conf - sysctl preload/configuration file (these settings has been taken from an LB that had xtream-codes installed to it)

Code:
nano /etc/sysctl.conf

add the following lines to the end of your file:

net.core.somaxconn = 6815744
net.ipv4.route.flush=1
net.ipv4.tcp_no_metrics_save=1
net.ipv4.tcp_moderate_rcvbuf = 1
fs.file-max = 6815744
fs.aio-max-nr = 6815744
fs.nr_open = 6815744
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.tcp_sack = 1
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_rmem = 10000000 10000000 10000000
net.ipv4.tcp_wmem = 10000000 10000000 10000000
net.ipv4.tcp_mem = 10000000 10000000 10000000
net.core.rmem_max = 524287
net.core.wmem_max = 524287
net.core.rmem_default = 524287
net.core.wmem_default = 524287
net.core.optmem_max = 524287
net.core.netdev_max_backlog = 300000
net.ipv4.tcp_max_syn_backlog = 300000
net.netfilter.nf_conntrack_max=1215196608
net.ipv4.tcp_window_scaling = 1
vm.max_map_count = 655300
net.ipv4.tcp_max_tw_buckets = 1440000


Then save and close the file.

run this command:
Code:
sudo sysctl -p


4. Reboot your server and check it now !

after reboot, run these commands again to verify your changes:
Code:
ulimit -u
-> should show 500000
Code:
sudo sysctl -p
-> should show the above values

Regards.
 
Last edited:
Thx for share this info.

Anyone tested? It works?

Thx
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
thank you for sharing this, its greatly appreciated buddy
 
Hello Guys

This setting is only for LB or also for Main?
 
i used the command: ulimit -u
and it shows: 604168

do you think that i should use the commands that you said?
my limit will lower to 500000 as you said and not increase.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
This solution is from the user @empire from XtreamUI Forum, all credits goes to him. I just successfully try this solution so I want to share it with you.

I hope this can support some of you as well it did for me - specially for VOD servers - Lets start

Make sure pid_monitor is in crons.

1. Clean up streams_sys using stream tools.
2. Optimize your server OS:


Set ulimit parameters on your ubuntu server. Check ulimit with this command:
Code:
ulimit -u

if it was 1024 then we need to increase it as follow
Code:
nano /etc/security/limits.conf


add the following lines to the end of your file:


Then save and close the file.

3. Optimize sysctl

Edit sysctl.conf - sysctl preload/configuration file (these settings has been taken from an LB that had xtream-codes installed to it)

Code:
nano /etc/sysctl.conf

add the following lines to the end of your file:




Then save and close the file.

run this command:
Code:
sudo sysctl -p


4. Reboot your server and check it now !

after reboot, run these commands again to verify your changes:
Code:
ulimit -u
-> should show 500000
Code:
sudo sysctl -p
-> should show the above values

Regards.
Very good it worked perfectly.
But isn't that a duplicate post?

Thank you for that.
 
Wonder how long will take you to realise this thread was posted first ?
I don't need time I just asked a question, I remember that the rules attack the post and not the member lol.

I don't need time I just asked a question, I remember that the rules attack the post and not the member lol.
Biggest problem with some members of this forum and the understanding of things.
We should design for good understanding for some.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
error:
root@xeon:~# cat /proc/sys/net/netfilter/nf_conntrack_count
cat: /proc/sys/net/netfilter/nf_conntrack_count: No such file or directory
root@xeon:~# cat /proc/sys/net/netfilter/nf_conntrack_count
cat: /proc/sys/net/netfilter/nf_conntrack_count: No such file or directory
root@xeon:~# modprobe nf_conntrack
root@xeon:~# cat /proc/sys/net/netfilter/nf_conntrack_count
0

Add:
modprobe nf_conntrack
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top