If your server is experiencing high CPU or memory usage, it may become slow or unresponsive. This guide will help you diagnose and optimize server performance.
Note: If you prefer expert assistance, our Managed Services include server optimization. This is not included in basic support, but you can upgrade by contacting sales@support.nubius.io.
Step 1: Identify the Cause
Checking CPU and Memory Usage
To see what is using the most resources, use one of these methods:
1. Using the Web Console (For Windows Servers)
-
Log in via Remote Desktop (RDP).
-
Open Task Manager (Ctrl + Shift + Esc).
-
Click the Processes tab and sort by CPU or Memory to see what is using the most resources.
2. Using SSH (For Linux Servers)
-
Connect via SSH (use PuTTY on Windows or Terminal on Mac/Linux).
-
Run the following command:
top
-
Press
Shift + M
to sort by memory usage. -
Press
Shift + P
to sort by CPU usage.
-
-
Look for processes that are using excessive resources.
Step 2: Address Common Issues
1. Restart Problematic Services
If a specific service is using too many resources, restart it:
-
Linux:
sudo systemctl restart service-name
-
Windows:
-
Open Task Manager → Click Services.
-
Find the service and right-click Restart.
-
2. Stop Unnecessary Processes
If certain processes are consuming too many resources:
-
Linux: Use the following command:
sudo kill process-ID
(Replace
process-ID
with the actual number from thetop
command.) -
Windows: Open Task Manager, right-click the process, and select End Task.
3. Check for High Traffic (Web Servers)
If you are running a web server (Apache, Nginx, etc.), high CPU usage could be due to excessive traffic.
-
Linux: Check active connections:
netstat -an | grep :80 | wc -l
-
If you see a large number, consider using a CDN (like Cloudflare) to reduce load.
4. Optimize Applications
-
Database Issues: If you run MySQL or PostgreSQL, optimize queries and indexes.
-
Heavy Scripts: Check cron jobs and scheduled tasks that may be running too frequently.
5. Increase Server Resources (If Needed)
If your server is constantly maxing out CPU or memory, consider upgrading:
-
Log in to the Nubius Customer Portal.
-
Go to Services → My Services.
-
Select your server and click Upgrade/Downgrade.
-
Choose a plan with more CPU or RAM.
Step 3: Prevent Future Issues
Enable Monitoring
Use 360 Monitoring for real-time alerts on high CPU or memory usage.
-
Log in to the Nubius Customer Portal.
-
Navigate to Store → 360 Monitoring.
-
Select a plan and follow the setup instructions.
Optimize Your Server
Important: Before running any update make sure you backup your server. Updating Linux may break your configuration or applications.
-
For Linux: Run updates regularly:
sudo apt update && sudo apt upgrade -y # Debian/Ubuntu sudo yum update -y # CentOS/RHEL
-
For Windows: Install updates via Windows Update.
Upgrade to Managed Services
If troubleshooting is too complex, our Managed Services handle performance tuning for you. Contact sales@support.nubius.io to upgrade.