I have a relatively new Amazon EC2 Micro instance on which I have installed Apache2 and Tomcat6, using mod_jk to connect to each other. I have one web application running on the root that is getting almost literally zero traffic, since it is a test server that no one knows about.
Every morning when I wake up, the site is down. Neither Apache nor Tomcat are running. When I look at my Apache error file at /var/log/apache2/errors.log, I see this which looks significant:
[Wed Jul 06 07:39:49 2011] [error] cgid daemon process died, restarting
[Wed Jul 06 07:41:00 2011] [alert]
(11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread
[Wed Jul 06 07:41:02 2011] [alert] No active workers found... Apache is exiting!
I don't see anything relevant in the tomcat logs (I am assuming that I should be looking at catalina.out?)
Anything else I can check? Also, I am pretty new to all of this stuff, so any advice is much appreciated. Thanks so much.
EDIT: Another point to mention is that this has happened multiple days in a row, this one at 7:39 in the morning and the previous one with the same error message at 7:36 in the morning, so maybe it is related to something else running. I am not sure how to figure it out as the logs don't offer much more information.
I am running Ubuntu 10.04.2 Server Edition on AWS EC2 Micro
Apache version is is Apache 2.2.14
Tomcat version is 6.0.24