Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

Tutorial HowTo fix CPU and RAM overload on XtreamUI

redhat

Administrator
Staff member
Administrator
Chief Moderator
Moderator
Joined
Jun 19, 2019
Messages
3,066
Reaction score
14,798
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:
PHP:
ulimit -u

if it was 1024 then we need to increase it as follow
PHP:
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)

PHP:
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:
PHP:
sudo sysctl -p


4. Reboot your server and check it now !

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

Regards.
 
Last edited:

traskin

Extended Member
Ext. Member
Joined
Oct 18, 2019
Messages
59
Reaction score
89
Points
29
Location
Spain
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

FMmarcus

Extended Member
Ext. Member
Joined
Jun 21, 2020
Messages
6
Reaction score
5
Points
14
Location
spain
thank you for sharing this, its greatly appreciated buddy
 

ahabib

Banned
Banned
Ext. Member
Joined
Sep 19, 2019
Messages
93
Reaction score
352
Points
64
Location
hab021ALJ
Hello Guys

This setting is only for LB or also for Main?
 

melk

Extended Member
Ext. Member
VIP Member 12M
Joined
Jun 30, 2020
Messages
57
Reaction score
95
Points
29
Location
world
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

TechAppSystem

Extended Member
Ext. Member
Joined
Sep 22, 2019
Messages
110
Reaction score
772
Points
104
Location
USA
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:
PHP:
ulimit -u

if it was 1024 then we need to increase it as follow
PHP:
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)

PHP:
nano /etc/sysctl.conf

add the following lines to the end of your file:




Then save and close the file.

run this command:
PHP:
sudo sysctl -p


4. Reboot your server and check it now !

after reboot, run these commands again to verify your changes:
PHP:
ulimit -u
-> should show 500000
PHP:
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.
 

ChickenWarrior

Extended Member
Ext. Member
Joined
Sep 23, 2019
Messages
510
Reaction score
925
Points
104
Location
USA
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

TechAppSystem

Extended Member
Ext. Member
Joined
Sep 22, 2019
Messages
110
Reaction score
772
Points
104
Location
USA
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.
 
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock