I have a cluster of EC2 servers set up and just one is behaving very strangely. It's a t1.micro server running Ubuntu 14.04. Nginx, MySQL, and php5-fpm are installed. I've concluded that nginx and MySQL are operating perfectly; however, php5-fpm will take about 40-55 seconds to execute any script file. This problem occurs about 5 minutes after the service has started. Even a simple script file such as this will take about 50 seconds:
<?php
phpinfo();
I'm using the default configuration of php and have other servers with the exactly same setup which are having no difficulties.
If I restart the php5-fpm service, it will operate normally for 3-5 minutes and then start slowing down. I'm guessing this is something to do with the amount of child processes, but since the other servers (with identical setup) are running perfectly I'm not confident of anything.
I've tested the nginx setup by trying to download static pages and they work as expect. I'm ruling out MySQL since a script as simple as the one above will still take a tremendous time to execute.
If anyone could help me figure this out I would be tremendously grateful. Any ideas? Thanks in advance