-agentpath
, e.g.:JAVA_TOOL_OPTIONS
environmental variable:agentpath
argument, in the form of java -agentpath:/opt/cprof/profiler_java_agent.so=FLAG1=VALUE1,FLAG2=VALUE2
.-logtostderr
flag, and configure the log level using ‑minloglevel
flag.JAVA_TOOL_OPTIONS
environmental variable in an app.yaml
file:app.yaml
file:src/main/jib
directory so that Jib can include the agent files as part of the container image:helloworld
service in the drop down:src/main/jib
directory so that Jib can include the agent files as part of the container image:helloworld-gke
service in the drop down:helloworld-gce
service in the drop down: