Files
spring-boot-demo/graalvm-native-images/docs/output/04-tracing-agent.txt
T
Claude 8cdfcd4d8d Add graalvm-native-images: Boot 4.1 + GraalVM CE for JDK 25, AOT processing,
the tracing agent, and a real reflection-collision trap

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EQNA6DJ9VgCtW6zhCE8Xud
2026-09-20 11:03:09 +00:00

18 lines
779 B
Plaintext

$ /opt/graalvm25/bin/java -agentlib:native-image-agent=config-output-dir=agent-output -jar target/app.jar --server.port=8083
Started GraalvmDemoApplication in 5.552 seconds (process running for 6.51)
$ curl -s localhost:8083/hello
Hello from a GraalVM native image!
$ curl -s "localhost:8083/report?format=plain"
OK via reflection on com.ankurm.graalvmdemo.report.PlainTextReport: REPORT: quarterly numbers
$ curl -s "localhost:8083/report?format=json"
OK via reflection on com.ankurm.graalvmdemo.report.JsonReport: {"report":"quarterly numbers"}
$ grep -A4 '"com.ankurm.graalvmdemo.report.PlainTextReport"' agent-output/reachability-metadata.json
{
"type": "com.ankurm.graalvmdemo.report.PlainTextReport",
"methods": [
{ "name": "<init>", "parameterTypes": [] }
]
}