Configure applicare agent in AWS Elastic Beanstalk environment
- Create a new AWS instance, download the agent.jar file from applicare server and extract it in Applicare home directory, for example: consider /Applicare directory(create if not exists).
- Give read and write access for /Applicare directory.
- Create AWS image for this instance.
- Put this image's id in your AWS Elastic Beanstalk environment instance's AMI ID and save.
- Go to Software Configuration page's settings page then add below -javaagent and JVM command line arguments
-javaagent:/Applicare/applicare-tomcat-aspects.jar=verbosity=0,logfile=false,norestart-intellitrace=false -verbose:gc -noverify -Xloggc:/Applicare/gc/garbage-collection.gc - Make sure the JVM can increase Perm gen to, at least 256MB by adding 256m at Maximum JVM permanent generation size form field.
- Add below JVM arguments in Environment Properties block.
arcturus_home=/Applicare
AWS_EB_env=true
applicare.agent.port=80
applicare.agent.apps=dev_agent(custom)
- Save above configurations.
- Deploy the agent war file along with your application(s), by making zip file
MyApplication.zip
|
|-- .ebextensions(optional)
|-- applicare_agent.war
|-- ROOT.war(your main application)
- Finally restart the server(s).
Please sign in to leave a comment.
Comments
0 comments