Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Debug Jetty

Add full logs

Jetty's documentation (the org.eclipse.jetty:jetty-slf4j-implis already added to the pom.xml).

Programmatically:

System.setProperty("org.eclipse.jetty.LEVEL", "TRACE");

Or add a jetty-logging.properties:

org.eclipse.jetty.LEVEL=TRACE
org.eclipse.jetty.client.LEVEL=TRACE

Debug using JMX

You need to update the current implementation by hand.

  • activate JMX The Jetty server is created in class JettyServerHelper.
        // Create an MBeanContainer with the platform MBeanServer.
        MBeanContainer mbeanContainer = new MBeanContainer(ManagementFactory.getPlatformMBeanServer());
        // Add MBeanContainer to the root component.
        jettyServer.addBean(mbeanContainer);