"The server is slow" can mean CPU, memory, disk, network or the application itself. Check them in this order before changing anything.
1. Load and CPU
uptime top # press 1 for per-core view
Compare the load average with the number of CPU cores. High us/sy means busy CPUs; find the process at the top of top. High wa (iowait) means the CPU is waiting for the disk: go to step 3.
2. Memory
free -h dmesg -T | grep -i -E "oom|killed process"
Little "available" memory and growing swap use makes everything slow. OOM-killer messages mean processes are being killed for lack of memory.
3. Disk
iostat -x 2 5 # from the sysstat package df -h
A device near 100% %util or with high await is your bottleneck. Also check that no filesystem is full (see What's filling up my disk?) and that no RAID is rebuilding or degraded.
4. Network
ss -s sar -n DEV 2 5
Look for a saturated interface, thousands of connections in one state, or packet loss to the outside (see Troubleshooting packet loss with mtr).
5. The application
Check the slow query log of your database, PHP-FPM or web server status pages, and application logs around the time it started.
Write down the time and what you saw before restarting anything. A restart often hides the cause. Need a hand? Our engineers do this daily; open a ticket.