- Newest
- Most votes
- Most comments
Hello.
Have you checked the OS system log or web server error log?
Also, are EC2's CPU and memory usage rates high?
I think "Error establishing a database connection" is an error that occurs when the database to which you are connecting is not running or there is some kind of connection problem.
Is the database hosted on RDS or something?
I have increased storage to 32GB recently.
This just increases disk, and not memory. And you would still need to extend the filesystem https://docs.aws.amazon.com/ebs/latest/userguide/recognize-expanded-volume-linux.html (I know the URL has linux in it, but it gives you the method for Windows as well).
From what you describe, both websites going down at the same time suggests either a problem with the webserver (is it IIS?) or it could be a resource exhaustion issue (which is my hunch). It would be worthwhile setting up CloudWatch agent to collect more detailed system logs and this may show that your root cause is exhaustion of some system resources.
See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/install-CloudWatch-Agent-commandline-fleet.html#download-CloudWatch-Agent-on-EC2-Instance-commandline-fleet (a bit Linux-centric but the download link is in the table) and https://repost.aws/knowledge-center/cloudwatch-push-metrics-unified-agent
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago