The "Full Warehouse" Problem
Imagine your server is a warehouse. XUI.One brings new boxes (video data) in, but if the OS isn't configured correctly, it forgets to take the old boxes out. Eventually, the warehouse fills up (RAM hits 100%), and everything stops.
This is especially common with VOD servers because they handle large files. Let's configure Ubuntu to handle this traffic correctly.
1Step 1: Database & Monitor Check
First, ensure your panel's internal housekeeping is running. If these background tasks fail, temporary data piles up.
- Verify Cronjobs: Check that
pid_monitoris running. This ensures services restart if they hang. - Clean Streams Table: Use your panel's maintenance tools to clear the
streams_systable (or equivalent logs in XUI). This is often the hidden culprit of "ghost" memory usage.
2Step 2: Expand Open File Limits (ulimit)
XUI.One is high-performance software, but Ubuntu restricts it by default. Standard limits (1024 open files) act like a tiny door for a huge crowd. We need to widen that door.
Check your current limit:
If it is low, we need to edit the security limits file:
Add these lines to the bottom to allow more simultaneous processes:
Press CTRL+X, then Y, then Enter to save.
3Step 3: Tune the Kernel (sysctl)
This is the most critical step for fixing memory leaks. We need to tell the OS how to handle network buffers and file system capability so it releases memory faster.
Open the system control configuration:
Paste these optimization settings at the end of the file:
Save the file. To apply these settings without restarting, run:
4Step 4: Reboot & Confirm
Reboot your server to ensure all system-level changes are locked in. After the reboot, verify the new limits:
Your XUI.One server is now tuned for heavy loads and should manage RAM significantly better.
