Preloader

Xtream UI High CPU Fix: XUI.ONE High CPU, RAM Usage and Memory Leaks

Last updated: 3 November 2026

Watching your XtreamUI panel's CPU and RAM usage spike into the red is one of the most stressful things ever. Your streams start to buffer, customers get annoyed, and your whole server feels like it's about to give up. It's a huge pain.

If you're tired of dealing with this, you're in the right place. In this tutorial, we're going to show you exactly how to fix CPU and RAM overload on XtreamUI. We'll walk through some powerful server optimizations you can do right now. Plus, we'll introduce you to a game-changing alternative that makes these problems a thing of the past.

Does this also fix memory leaks and XUI.ONE? Mostly, yes. XUI.ONE is the commercial panel many Xtream UI operators moved to, and it runs on a similar stack (nginx, PHP, MySQL or MariaDB and FFmpeg), so the diagnosis and server tuning below apply to both. Panel-specific paths differ, so check them on your own install.


Short answer To fix high CPU on Xtream UI or XUI.ONE, first find the process using it: FFmpeg (transcoding or restarting streams), PHP-FPM (request floods), MySQL (bloated tables) or an attack. Fix that cause, then raise file limits and tune sysctl. High RAM is usually the streams RAM disk filling up, not a true memory leak.

What causes high CPU on Xtream UI and XUI.ONE?

What you seeLikely causeCheckFix
Many ffmpeg processes at the top of topTranscoding, or dead sources that restart in a loopps -C ffmpeg --no-headers | wc -lTurn off transcoding you do not need, use on-demand for rarely watched channels, fix or remove dead sources
php-fpm or nginx workers busyPlaylist scans, API abuse, brute-force loginsRequests per second in the panel, top IPs in the nginx access logBlock the IPs, add Fail2Ban for Xtream UI, change exposed ports
mysqld high CPU or RAMHuge log and activity tables, missing cleanup cronsmysqladmin processlist, table sizesClean streams_sys and old logs, confirm the cleanup crons run
RAM climbs until swap, reboot fixes itStreams RAM disk filling with segmentsdf -h /home/xtreamcodes/iptv_xtream_codes/streamsRestart stuck streams, clean old segments, restart services
Load jumps when a big event startsReal viewers on one serverConnections vs CPU over timeMove streams to load balancers, add servers

How do I find which process uses the CPU?

Log in over SSH and run these read-only checks. They change nothing, so they are safe on a live server:

top -o %CPU # busiest processes first (press q to quit) ps -C ffmpeg --no-headers | wc -l # how many FFmpeg processes are running free -h # RAM and swap in use df -h | grep -i xtream # how full the streams and tmp RAM disks are uptime # load average for 1, 5 and 15 minutes

If FFmpeg dominates, the problem is in your streams. If PHP-FPM or nginx dominates, look at traffic and attacks first. If mysqld dominates, clean the database before touching the kernel settings below.

First, Why Is This Happening?

Before we dive into the fix, it helps to know what's causing the trouble. Often, the default settings on a server are not prepared for the heavy lifting that an IPTV panel requires.

Think of your server like a regular family car. It's great for daily driving, but if you try to haul a giant boat with it, the engine is going to overheat. Your server is trying to haul that boat! The default limits and network settings just aren't designed for thousands of connections, and that's what causes the CPU and RAM overload on your XtreamUI panel.

The Step-by-Step Guide to Fix Overload Manually

Alright, let's get our hands dirty and give your server the tune-up it desperately needs. Follow these steps carefully, and you should see a big improvement.

Step 1: Basic Housekeeping

First, a couple of quick checks. It's always a good idea to make sure your system is running smoothly.

  • Make sure pid_monitor is running in your crons. This little tool helps keep processes in check.
  • Use the stream tools in your panel to clean up the streams_sys table. A cluttered database can slow things down.

Step 2: Increase Your Server's Limits (ulimit)

Think of ulimit as the number of tasks your server is allowed to juggle at once. On most systems, this number is set way too low for an IPTV server. We're going to give it a massive boost.

First, check your current limit with this command:

ulimit -u

If it shows a low number like 1024, it's time to increase it. Open the limits configuration file:

nano /etc/security/limits.conf

Scroll to the very bottom and add these lines:

# Add to the end of /etc/security/limits.conf* 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

Now save the file and close it.

Step 3: Optimize Your Network Settings (sysctl)

Next, we're going to optimize your server's network traffic. The sysctl.conf file is like the main control board for your server's network. We're going to tweak the settings to handle a huge amount of traffic without breaking a sweat, kind of like widening a highway to prevent traffic jams.

Open the file to edit it:

nano /etc/sysctl.conf

Scroll to the bottom and paste in all of these settings:

# Add to the end of /etc/sysctl.confnet.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

Save and close the file. Now, apply the changes with this command:

sudo sysctl -p

Before you paste: copy the original file first (cp /etc/sysctl.conf /etc/sysctl.conf.bak). These values are aggressive and tuned for busy streaming servers; if sysctl -p reports an error for a line, or the server behaves worse, remove that line or restore the backup.

Step 4: Reboot and Check Your Work

The final step is to reboot your server to make sure all the new settings are active. Once it's back online, you can run the check commands again to verify everything worked:

ulimit -u

This should now show 500000.

How do I stop an Xtream UI memory leak?

The standard Xtream UI installer mounts /home/xtreamcodes/iptv_xtream_codes/streams as a RAM disk (tmpfs) sized at 90% of server memory, plus a smaller RAM disk for tmp. Live segments are written there. When a stream hangs or crashes, its old segments can stay behind, and the RAM disk slowly eats the memory your PHP and MySQL processes need. That looks exactly like a memory leak.

  1. Check usage: df -h /home/xtreamcodes/iptv_xtream_codes/streams
  2. Restart or stop the streams that keep failing in the panel.
  3. Restart services with /home/xtreamcodes/iptv_xtream_codes/start_services.sh
  4. If RAM still grows steadily, lower PHP-FPM worker counts and check MySQL buffer sizes against your real RAM.

Is high CPU a DDoS or brute-force attack?

Check before you tune. In the nginx access log, count requests per IP: awk '{print $1}' access.log | sort | uniq -c | sort -rn | head. A handful of IPs with thousands of hits, or many failed logins, is a flood, not real viewers. Block them at the firewall and add Fail2Ban. On the Xtream-Masters panel the Servers page shows requests per second directly: under 500 on the main server is normal traffic, 500 or more is almost always an attack, and on a load balancer 200 or more suggests one (source: ottpanel.tv/faqs).

Does the FFmpeg version matter for CPU?

Yes. Xtream UI links /usr/bin/ffmpeg to the old FFmpeg build bundled with the panel, and that build is not maintained. On the Xtream-Masters panel, FFmpeg v7 is the supported build for Ubuntu 20.04, 22.04, 24.04 and 26.04, and FFmpeg v5 is used only on Ubuntu 18.04 or older; when every stream on one load balancer goes down, switching that balancer to FFmpeg v7 is the documented fix.

Still on an old Ubuntu release? See the Xtream UI install guide for which version runs where, and Xtream UI on Ubuntu 24.04 for the community-build route. Seeing HTTP 500 errors instead of load? Read fix Xtream UI 500 error.

Is There an Easier Way?
Meet Xtream-Masters

Those manual fixes can stabilize an Xtream UI or XUI.ONE panel. If you are tired of putting out fires on unmaintained software, the Xtream-Masters OTT panel is a maintained alternative: it runs on Ubuntu 18.04 to 26.04, spreads streams over unlimited load balancers on one license, and migrates your Xtream UI database.

Here’s why it’s a total game-changer:

  • Optimized Performance Core: Super efficient code that uses way less RAM and CPU, even during huge live events. No more overloads.
  • Server Guard Security: Built-in protection against DDoS attacks, brute force, and playlist scanning.
  • xDrive Encrypted Cloud Backup: Your data is automatically backed up. If your server ever fails, you can restore everything instantly.
  • Auto M3U Content Sync: Automatically add and update entire categories from your M3U provider.
  • Real-time VideoLog: See a live videolog when a user exceeds their connection limit, helping you secure compromised lines.
  • Auto Database Migration: Switching is easy! Our powerful tool lets you seamlessly migrate from any other panel.
Professional IPTV Solution

IPTV Admin Panel Auto Installer

Without stable software, it's not just a wasting time, but also a waste of money on servers, streaming, and potential growth.

Xtream-Masters OTT Panel is the perfect solution for those facing a lack of features, technical support, or dealing with free, cracked, insecure, and unstable software panels that directly impect on your service quality.

Xtream-Masters OTT Panel €40/Month

€40/month until 31 December 2026. €70/month from 1 January 2027.

  • Panel license includes main server + unlimited load balancers: €40/month until 31 December 2026, €70/month from 1 January 2027
  • Minimum 32 GB RAM server required for main server, run all streams to load balancers for better results
  • Operating Systems: Ubuntu 18.04 to 26.04, 24.04 recommended

Get Your Software License Instantly

Buy Pro License Now

Core Features & Capabilities

Fast installation, stability, security and minimum resource usage with advanced tools are the key strengths of Xtream-Masters OTT Panel, enabling it to stay ahead in the competitive landscape.

📙

Everything In Other Panels

Everything included in the other panel, plus more advanced tools and features which is listed below and in the software update history.

🚀

Optimized Performance Core

Enhanced binary and optimized code to minimize RAM and CPU consumption, ensuring super stability for handling large event loads with ease.

🗂️

Category Management Feature

Allow users to modify categories through reordering, renaming, and adding/removing options in reseller and client panels.

👁️‍🗨️

Real-time VideoLog

Track connection utilization and present VideoLog with live data instead of showing playback errors when limits are exceeded.

🔑

DRM on Load Balancer

Easily install DRM on your IPTV load balancer with a single click and run DRM IPTV simultaneously on the load balancer.

📊

Smart Stream Analyzer

On-demand channels identify source problems and auto-correct audio interruptions by adjusting probsize.

🤝

Official Reseller API

Grow your enterprise by integrating a specialized API designed for resellers to streamline order processing.

⚙️

Client Subscription cPanel

Personalized control panel for each client subscription, enabling independent content management and password updates.

🛡️

Server Guard Security

Enhanced security measures to defend against playlist probing, brute force attacks, and sophisticated Layer 7 DDoS attacks.

📂

Auto M3U Content Sync

Automatically update stream content and add complete categories through your provider's M3U link, perfect for event management.

☁️

xDrive Encrypted Cloud Backup

Automated encrypted cloud backups ensure you can restore your panel and data instantly if the server fails.

🔒

Auto-SSL Installation

Ensure main and load balancer servers are safeguarded with automated SSL certificate installation.

📄

Client Reporting & Requests

Control panel for clients to report channel problems and submit new channel requests.

📥

One Click Content Import

Easily import categorized content from M3U sources with a single click, supporting on-demand or direct source options.

🕵️

Hide VOD Source URL

Stream VOD or series through your server while safeguarding original provider URLs by proxying the source.

🔄

Auto Database Migration

Powerful database migration system enables seamless transition from any panel to Xtream-Masters OTT panel.

⏱️

Fast Software Installation

Lightweight software core with minimal dependencies, installed over SSH from the Master CMS panel in a few minutes.

📺

Mass EPG Assignment

Automatic EPG assignment tool matches and applies EPG to your channels in bulk.

🛡️

Proxy Server Management

Add servers as proxies to protect main or load balancer server IPs from exposure.

🆕

Monthly Updates

Stay ahead with new features and improvements delivered monthly through automatic updates.

Core Features

Enterprise-Grade Capabilities

Built from the ground up with security, performance, and reliability at its core

Advanced

DDoS Protection

Self-built DDoS and comprehensive hacking attack protection system ensures your service runs without interruption.

  • Layer 7 DDoS mitigation
  • Real-time threat detection
  • Auto-blocking suspicious IPs
Smart

Auto Issue Fixing

Intelligent system automatically detects and resolves stream issues like audio loss, video problems, and loops within minutes.

  • Auto audio sync repair
  • Stream loop detection
  • Quality optimization
Performance

Optimized Core

Super-optimized code built from scratch to minimize RAM and CPU usage during high-traffic events.

  • Streams spread over load balancers
  • FFmpeg v7 on Ubuntu 18.04 to 26.04
  • Event-ready architecture
Protected

Advanced Security

Multi-layered security system protecting against brute-force, API attacks, MySQL injections, and more.

  • Brute-force protection
  • SQL injection prevention
  • API rate limiting
DMCA Safe

User Protection

Advanced tools to secure compromised lines, identify multiple logins, and protect sensitive user data.

  • Video log monitoring
  • Multi-login detection
  • Password enforcement
Encrypted

Cloud Backup Storage

Never lose your data with automated local and cloud backups featuring end-to-end encryption.

  • Auto scheduled backups
  • 256-bit encryption
  • Instant restoration
Support Center

Frequently Asked Questions

Find detailed answers about our IPTV Admin Panel installation, migration, and support. Review these guides before contacting support.

All Questions
Migration
Setup
Support
Security
01

Can I migrate from 'XYZ' Panel to Xtream-Masters OTT Panel?

Yes, absolutely! We have an automated database migration system that supports migrations from Xtream UI, XUI and NXT panels.

There are two ways to migrate your IPTV Panel to the reliable Xtream-Masters Panel:

Method 1: Existing Server Migration

  1. First, create a backup of your database: mysqldump -u [username] -p db_name > db_backup.sql
  2. Download the db_backup.sql file to your local computer
  3. Backup images and important files from your existing server
  4. Reinstall your server with Ubuntu 24.04 (recommended; Ubuntu 18.04 to 26.04 supported)
  5. Login to Master CMS Panel with ID starting with xm:******** and add server for installation
  6. After panel installation, upload db_backup.sql to /home/xtreamaster/wwwdir
  7. In CMS Panel, click Migrate → Select "Migrate by URL" → Insert file URL and migrate
  8. Reset admin password when prompted
  9. Go to settings → Click "update tables" → Remake load balancers from manage server section

Method 2: New Server Migration

  1. Login to Xtream-Masters CMS Panel with ID starting with xm:********
  2. Add main server for installation
  3. After installation, click Migrate → Insert database credentials → Start migration
  4. Ensure database SSH port is accessible by external IPs
  5. Reset admin password when prompted
  6. Update tables and remake load balancers as in Method 1
02

What is required to create an IPTV Server?

Setting up your own IPTV server requires careful planning and resources. Here's what you need to know:

Technical Requirements:

  • Solid understanding of streaming software and willingness to learn
  • Dedicated servers (not provided by us) with sufficient resources
  • Reliable IPTV software for high-quality streaming and channel restreaming
  • Stable internet connection with high bandwidth capacity

Business Considerations:

If you have an existing client base that can cover server, streaming, and software costs, you can proceed with building your own system. However, if you're just starting out, we recommend:

  • Initially working as a distributor to build your client base
  • Establishing sub-resellers under your umbrella
  • Growing your business before investing in costly server infrastructure

This approach allows you to learn the business while minimizing initial investment risks.

03

Can you provide support to setup my server?

We provide comprehensive video tutorials to help you understand all panel functions. We assume you have basic software knowledge.

What we offer:

  • Detailed video tutorials covering all features
  • Documentation and user guides
  • Technical support for software-related issues

We recommend taking time to explore the panel independently while referencing our tutorials. This hands-on approach helps you learn the system effectively.

If you encounter technical issues or have questions about our services, please don't hesitate to contact our support team.

04

Technical Problem Support

We understand that technical issues can be complex and sometimes difficult to resolve independently.

Premium Support Service:

For clients who need hands-on assistance, we offer a premium support service at €50 per hour. Our expert team will:

  • Diagnose and resolve all technical issues you're facing
  • Ensure your service runs smoothly with proper configuration
  • Optimize your server setup for best performance
  • Provide guidance on best practices

This service is ideal for resolving complex issues quickly and ensuring your system operates at peak efficiency.

05

Is Xtream-Masters IPTV Panel Secure?

Yes, security is our top priority. We've built our system with multiple layers of protection:

Security Features:

  • Carefully written code with security best practices
  • Protection against various hacking attempts including DDoS attacks
  • Regular security updates and patches
  • Built-in firewall and intrusion detection systems
  • Encrypted data transmission and storage

Our customers have been using our service for years without experiencing security breaches. We continuously monitor and update our security measures to stay ahead of potential threats.

The panel includes self-defense mechanisms against common attacks, ensuring your streaming service remains secure and operational.

06

Why is my Xtream UI CPU at 100%?

Usually one of four things: too many FFmpeg processes (transcoding or sources that keep restarting), PHP-FPM flooded by playlist scans or brute-force requests, a bloated MySQL database, or an attack. Run top sorted by CPU to see which process is responsible, then apply the matching fix from the table on this page.

07

How do I fix high CPU on XUI One?

XUI.ONE runs on a similar stack to Xtream UI (nginx, PHP, MySQL or MariaDB and FFmpeg), so the same checks apply: find the busiest process, stop transcoding you do not need, block flooding IPs, clean large log tables, then raise file limits and tune sysctl as shown in the steps.

08

How do I stop an Xtream UI memory leak?

Most "memory leaks" on Xtream UI are the streams folder, a RAM disk that the installer sizes at 90% of server memory, filling with segments from stuck or crashed streams. Check it with df -h, restart the stuck streams, clean old segments and restart services. Steady growth after that points to PHP or MySQL settings.

09

Does high CPU mean my IPTV panel is under attack?

Not always, but check it first. Look at requests per second and at the IP addresses in the nginx access log. Thousands of requests from a few IPs, or many failed logins, mean a flood or brute-force attempt, and blocking those IPs lowers CPU at once. Steady load that follows viewer numbers is real usage.

Important Legal Notice
Xtream-Masters is a software development company. We build and license professional software. We don't host, store, stream, index, or distribute any audio, video, playlists, channels, or DRM-protected content of any kind. What we sell is an empty technical platform; whatever content runs through it is added, configured, and controlled entirely by the end user, who is responsible for holding the proper rights and following the law in their region. Any copyright or DMCA complaints should go to whoever is operating the stream or hosting the URL in question, not to us. For the full picture, have a look at our Terms, Privacy Policy, and Refund Policy.