Repository navigation
Troubleshooting
The JVM list shows no local JVMs. Local attach needs a JDK (not a JRE), the same OS user as the target, and --no-local
must not be set. Containers only see their own processes.
"requests must come through the trusted reverse proxy" (403). In header mode the address of the connecting peer is not
in --trusted-proxy. Check the proxy's address as seen by jconsole-web (inside Docker it is the bridge gateway, not 127.0.0.1).
"unknown Host header" (421). On loopback the Host header is checked against DNS rebinding. Add the public name with
--allowed-host or --public-url.
"cross-origin request refused" behind a proxy. The proxy changed Host. Preserve it, or add the browser-visible origin
with --allowed-origin https://jc.example.org.
Threads tab says "Access denied! Invalid access level". The JMX account on the target is read-only; listing threads is an operation, which needs a control (read/write) role on the target. Memory, charts, MBean attributes and the summary still work.
Connecting to a remote JVM times out or fails. With RMI the host name in -Djava.rmi.server.hostname of the target must be
reachable from jconsole-web, and both the registry port and the RMI port must be open (set both to the same value with
-Dcom.sun.management.jmxremote.rmi.port).
Live charts stop behind nginx. Disable buffering: proxy_buffering off; (the stream is server-sent events).
OIDC "the login expired or was already used". The sign-in must finish within 10 minutes and a callback link can only be used
once; start again at /.
Forgot the generated token. Restart: a new one is printed. Set JCONSOLE_WEB_TOKEN to keep it stable.
"set either JCONSOLE_WEB_TOKEN or the token file, not both". A secret and its _FILE variant are both set. Unset one;
the server refuses to guess which wins.
A secret file is rejected. It must be a regular file (not a directory), non-empty, at most 4 KiB. In Docker, check the
mount path (/run/secrets/<name>) and that the container user (uid 10001) can read it.
"only service:jmx:rmi:///jndi/rmi://host:port/name URLs are accepted". Typed connect URLs are restricted on purpose
(JNDI/LDAP and stub forms are injection vectors). Use --target for anything else.
jconsole-web is open source. Docs live in docs/wiki.