Community
Participate
Working Groups
Created attachment 196545 [details] Screenshot of jconsole on Linux Hello, I can see JMX MBean names were changed in 7.4.1. Moreover, they differ in Windows and Linux versions of Jetty (see attached screenshots) - on Windows: -- if context path is "/" then the ObjectName is like "org.eclipse.jetty.webapp:type=webappcontext,id=1" (no "name"attribute) -- if context path is like "/ctx" then the ObjectName is like "org.eclipse.jetty.webapp:type=webappcontext,name=/ctx,id=1" ("name" attribute starts with "/") - on Linux: -- if context path is "/" then the ObjectName is like "org.eclipse.jetty.webapp:type=webappcontext,name=ROOT,id=1" ("name" attribute is set to "ROOT") -- if context path is like "/ctx" then the ObjectName is like "org.eclipse.jetty.webapp:type=webappcontext,name=ctx,id=1" ("name" attribute doesn't start with "/") It's strange to have different behavior here in different OS'es. Is this a bug? Is it subject to change in the nearest future? Attaching the screenshots of jconsole showing ObjectName when the context path is "/" for Windows and Linux cases.
Created attachment 196546 [details] Screenshot of jconsole on Windows
It might help me if you just tell which of 2 naming conventions above is actually expected and will be preserved in future versions.
this is a bug. We have introduced the name element to be more informative, but it looks like we need to be more consistent with it.
The issue was the File.separator was being used instead of "/" for inspecting the context path to determine a name. Fixed for 7.4.2 and the linux versions of the names will be the final ones. r3269