Tomcat occasionally crashes (freezes). So I simply ssh into the server and restart tomcat, sometimes forcibly. I want to be able to do this from a simple Webapp I can access over my phone if needed or my monitoring App can access.
So what’s the smallest memory-footprint web server that can execute a script which will restart tomcat? This other web server will clearly need to be secure as I’ll be executing critical scripts with it.
NOTE:
I want a web server in addition to tomcat, not to replace it. This new small web server does not have to run or be based on Java, it just needs to run some kind of script that will restart tomcat.
Nginx is a very lightweight web server that will fit the bill. Anyway, I would just automate it as a watchdog script that periodically tests tomcat status and restarts when needed.