- Newest
- Most votes
- Most comments
Based on the information you've provided, there could be several reasons for your Lightsail server's slowdown, even when the CPU usage and visitor numbers appear normal. Here are some potential areas to investigate:
-
Memory usage: Even if CPU usage is low, your server might be running out of memory. This can cause slowdowns and unexpected behavior. Check your server's RAM utilization to ensure it's not maxed out.
-
Disk I/O: High disk read/write operations can slow down your server. Check if your applications or database are performing excessive disk operations.
-
Database performance: If your Laravel applications rely heavily on database operations, slow queries or an overloaded database could be causing the slowdown.
-
Network issues: Check if there are any network-related problems, such as high latency or packet loss, that could be affecting your server's performance.
-
Application-level issues: There might be a problem within your Laravel applications, such as memory leaks, inefficient code, or unoptimized database queries.
-
Server logs: Examine your server logs, including error logs and slow query logs, to identify any recurring issues or errors that might be causing the slowdown.
-
Burst capacity: Lightsail instances have a baseline performance with the ability to burst above that baseline. If you've used up your burst capacity, performance can degrade even if current CPU usage is low.
To troubleshoot:
- Monitor your server's resource usage over time, not just at a single point.
- Review your application logs for errors or warnings.
- Check your database performance and optimize queries if necessary.
- Consider enabling and reviewing slow query logs to identify problematic database operations.
- Analyze your application code for potential inefficiencies or memory leaks.
If the problem persists after investigating these areas, you may need to consider further upgrading your Lightsail plan or migrating to a more powerful service like EC2 for better performance and more detailed monitoring capabilities.
Sources
View your Lightsail database logs and history - Amazon Lightsail
Lightsail timing response very slow | AWS re:Post
Troubleshoot common Lightsail resource issues - Amazon Lightsail
answered 2 years ago
1/3 of the server memory is in use, so there is plenty to spare. I reduce the load on the database, but there is no improvement either. I don't know where to go because there are no outstanding numbers. But I don't understand why the lightsail upgrade would fix my problem if I don't use my resources anyway?
answered 2 years ago
Hello,
Are you able to post details of your resource use on the server? If your server has intermittent performance issues, then it would likely indicate periods of high activity consuming CPU in your temporary burst zone. If the server is persistently slow, it may indicate another problem entirely, such as running out of disk space. If you can provide more details on your instance then it will be easier to determine the underlying cause.
Thank you.
I will send what I see:
Server Information Server Load 0.054199 (2 CPUs) Memory Used 29.3% (1,119,012 of 3,818,580) Swap Used 0% (0 of 0)
Disk Information Device Mount Point Usage Status / / 39% (32,364,732 of 83,874,796)
the system, whm, Cpanel and CentOs
Unfortunately, to this day, loading a simple site takes several seconds, displaying smaller images also takes several seconds.
answered 2 years ago
Relevant content
asked 5 years ago
asked 5 years ago
- AWS OFFICIALUpdated 2 years ago
