java - Amazon EC2 stops working unexpectedly -


i facing problem burning brain. have amazon ec2 instance runs linux ami, installed tomcat7 , deploying webservice in it. webservice connects amazon rds instance have mysql (that use validate user , password). when start tomcat7 service works great, after 1 hour can't log in system.

if restart tomcat7 service, works again. why?

i don't know problem. can connect database directly project in eclipse, , via command line.

i don't know why if restart service, webservice works again. know service hasn't stoped, because can access login page of webapp.

i appreciate kind of help,

rodrigo araujo.

ps: last week, working fine.

i've seen such behavior before, tomcat , not ec2. check following:

1- threading configuration (maxthreads , acceptcount). i've seen behavior using blocking connector when currentthreadsbusy > maxthreads. check have enough threads or use non-blocking (nio) connector.

2- check connection pool can reconnect lost connections automatically (autoreconnect=true in jdbc url), threads might waiting db io on lost connections.

anyway, ec2 instance still working...


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -