java - Restart Tomcat Service on AWS EC2 instance, on a schedule -


i have instance on tomcat running on ec2. based on resourcing reasons don't want into, i'd restart each evening @ 11:00pm. i'm not interested in reloading or stopping applications context permgen space gets crowded until box tips on , dies.

so on aws linux instance specify service tomcat7 restart , give cron expression?

to add cronab entry root user:

sudo crontab -e 

which open editor. insert following line restart tomcat7 @ 11pm daily

0 23 * * * /sbin/service tomcat7 restart 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -