Slide 60
Slide 60 text
Cloud Native Developers JP
#CNDT2019 #RoomD
JVM起動直後からFlight Recordingを開始する例
60
kind: Pod
metadata:
name: cowweb
(... snip ...)
spec:
(... snip ...)
containers:
- name: cowweb
image: hhiroshell/cowweb:2.1
command: ['java', '-XX:StartFlightRecording=name=cowweb,filename=/jfr/jfr-cowweb.jfr, ¥
delay=30s,maxage=2h,maxsize=10m,dumponexit=true', '-jar', '/app/cowweb.jar’]
(... snip ...)
volumeMounts:
- name: jfr-volume
mountPath: /jfr
(... snip ...)
volumes:
- name: jfr-volume
nfs:
server: 10.0.40.8
path: “/jfr-example"