- Newest
- Most votes
- Most comments
Based on the information provided, the "Clients_too_many" error you're experiencing is likely related to the "ERR max number of clients reached" error in Redis, which occurs when a cluster node reaches its maximum connection quota.
However, there's a misunderstanding in your assessment. You mentioned that none of your instances is using an SQL database, but Redis is not an SQL database - it's an in-memory data structure store often used as a database, cache, or message broker. Lightsail instances may be using Redis in the background for certain services or applications running on your instances.
When you have 7 or more concurrent instances in use, you might be hitting connection limits to a Redis service that's running as part of your application stack or system services. This would explain why rebooting temporarily resolves the issue, as it closes existing connections.
To resolve this issue, you could:
- Check the CurrConnections metric to confirm if you're hitting the "maxclients" quota
- Implement connection pooling to reuse connections
- Set appropriate timeout values in your client configuration
- Configure clients to connect directly to read replicas for read operations to distribute the load
Regarding your question about resource limits, Lightsail does have a default quota of 20 instances per AWS account, but you're well under that with 11 instances. For browser-based SSH sessions, there might be limits, but the error you're seeing is more likely related to Redis connection limits rather than SSH session limits.
If you continue experiencing issues, you might want to consider upgrading your instances to a larger plan with more resources, or optimizing your application to reduce the number of connections being made to Redis services.
Sources
Troubleshoot error messages in ElastiCache Redis clients | AWS re:Post
AWS lightsail need reboot every ten hours | AWS re:Post
Troubleshoot Lightsail load balancer issues - Amazon Lightsail
answered a year ago
Hi Eddie,
Thank you for reaching out regarding this matter.
Amazon Lightsail enforces limits on concurrent browser-based SSH/RDP sessions to ensure optimal performance and resource allocation. The current limits are:
- RDP connections: 1 concurrent session per region
- SSH connections: 5 concurrent sessions per region
These limits apply specifically to the browser-based terminal client within the Lightsail console. For detailed information about all service quotas, please refer to the Service Quotas section in our documentation: https://docs.aws.amazon.com/general/latest/gr/lightsail.html#limits_lightsail
If you need to establish additional connections beyond these limits, you can use standard SSH/RDP clients directly to your instances using their public IP addresses.
Please let me know if you have any additional questions or if there's anything else I can help clarify.
Best regards, Yujie
I want to clarify further. Currently, we have 11 AWS Lightsail instances spreading over 2 regions and 3 zones. And we have 9 active users. Each of them is using the AWS Browser-based RDP client to access his/her allocated instance. That means at peak time, there will be 9 separate Browser-based RDP sessions running in 9 separate instances. And with around 7 users accessing 7 separate instances, some of them got the Clients_too_many error. Does any of the above limits apply? We are neither using 9 different sessions to access the same instance nor using one IAM user to access 9 different instances concurrently. Kind regards, Eddie
Hi Eddie, the 5 concurrent session limit applies region-wide across all instances. In your case, only 5 users can simultaneously connect to Windows instances within the entire region - even if each user connects to their own separate instance. Additionally, each individual Windows instance supports only one user session at a time, so multiple users cannot share a single instance concurrently.
Relevant content
asked 5 years ago
- AWS OFFICIALUpdated 3 years ago

Is there a service quota that restricts the active browser-based ssh sessions per region per account to 5?