Skip to content

Releases: twz007/java-obs-agent

v0.1.0 — initial public release

Choose a tag to compare

@twz007 twz007 released this 17 Jul 11:47

v0.1.0 — initial public release

Framework-agnostic Java observability sidecar agent. Attach to a running JVM (Arthas-style) and chat with it via MCP / web UI / curl to understand live state: request metrics, slow calls, errors, logs, thread dumps, and method-level traces.

Highlights

  • In-JVM ring buffers (metrics / slow calls / errors / logs) — zero external storage
  • MCP server (JSON-RPC over HTTP) + built-in chat web UI (OpenAI-compatible LLM, BYO key)
  • On-demand method diagnostics: watch_method (captures) + trace_request (call tree)
  • Framework-agnostic (Servlet); ByteBuddy; shaded jar (no host classpath pollution)
  • Security: loopback bind by default, token auth (constant-time compare), scrubber for tokens/PII, instrumentation behind a gate, 2 MB request-body cap

Install

Download obs-agent-core-0.1.0-all.jar below, or build from source (JDK 21+):

./gradlew :obs-agent-core:shadowJar

Attach to a running JVM

java --add-modules jdk.attach -cp scripts Attach <pid> obs-agent-core-0.1.0-all.jar "port=9911,token=<strong-token>,enableInstrumentation=true"

See the README for full usage / config / tools. 中文文档:README.zh-CN.md.

Requires JDK 17+ target JVM; JDK 21+ to build. Apache-2.0.