diff --git a/allocations/README.md b/allocations/README.md index 4fabe26..e543119 100644 --- a/allocations/README.md +++ b/allocations/README.md @@ -1,9 +1,9 @@ Sample to show allocations in a Java Flight Recording ===================================================== - +check git1 trigger This program checks whether a number is prime. -Run the program and also make a profiling recording. +Run the program and also make a profiling recordings. ### How to run `java -Xms64m -Xmx64m -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:StartFlightRecording=settings=profile,duration=30s,name=Allocations,filename=allocations.jfr -XX:FlightRecorderOptions=loglevel=info -jar target/allocations.jar` diff --git a/inventory b/inventory new file mode 100644 index 0000000..c9ba6f3 --- /dev/null +++ b/inventory @@ -0,0 +1,4 @@ +#hosts + +[webservers] +172.31.24.204 diff --git a/memoryleak/README.md b/memoryleak/README.md index 464c251..4d5a72e 100644 --- a/memoryleak/README.md +++ b/memoryleak/README.md @@ -1,6 +1,6 @@ -Sample to show a memory leak in Java Application +Sample to show a memory leak in Java Application ================================================ - +test edit This sample application implements a simple caching solution using a `HashMap`. For example, see following code. diff --git a/playbook.yml b/playbook.yml new file mode 100644 index 0000000..4472d86 --- /dev/null +++ b/playbook.yml @@ -0,0 +1,17 @@ +--- + - name: check ansible playbook + hosts: webservers + become: yes + tasks: + - name: start tomcat server + shell: systemctl start tomcat + - name: stop tomcat server + shell: systemctl stop tomcat + - name: copying source code + copy: + src: /home/linuxslave/workspace/Check_Deployment2 + dest: /usr/share/tomcat/webapps + #- name: download the war file to tomcat webapps server + # shell: wget -o /usr/share/tomcat/webapps https://labdemoshiv.jfrog.io/artifactory/example-repo-local/ + - name: start tomcat server + shell: systemctl start tomcat