I just started with Amazon AWS. I am created a EC2 instance and then I am installed a Glassfish 4 server. The EC2 instance is always running, but glassfish domain is stopped after few minutes. The steps I follow are: 1- Connect to EC2 instance with PuTTY. 2- Command: "./glassfish4/glassfish/bin/asadmin" 3- Command: "start-domain"
When domain is started I can use the glassfish console and launch my web applications correctly. The problem is that after a time period, maybe one or two minutes, I try to go to my web applications and are not running, and the glassfish console is not running, and, in PuTTY, I type "restart-domain" and PuTTY say me that the domain is stopped:
asadmin> restart-domain
Server is not running, will attempt to start it...
Waiting for domain1 to start
Successfully started the domain : domain1
domain Location: /home/ec2-user/glassfish4/glassfish/domains/domain1
Log File: /home/ec2-user/glassfish4/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command restart-domain executed successfully.
asadmin>
¿Why? ¿Maybe a configuration problem? ¿A kind of "timeout" that i don't know?
Thank you for help me and sorry for my english. :P