*for DEMO purpose only (not suitable for production)


Amazon EC2 provides Free tire for Micro instances (which is a totally awesome almost free service), So thats a very cheap way to host Java Web App and checkout online! However the some biggie web apps seems like little bit heavier to tolerate on AWS micro instance (with 613MB of RAM) under default configurations. But there's a workaround to make it happen, by adding some more swap space (1GB) to Linux system. Follow the instructions here: https://forums.aws.amazon.com/thread.jspa?messageID=221044


After that do these stuff as well for more safety! (to get rid of: java.lang.OutOfMemoryError: PermGen space issue)
http://www.mkyong.com/tomcat/tomcat-javalangoutofmemoryerror-permgen-space/