Jetty startup delay

后端 未结 2 656
深忆病人
深忆病人 2020-12-31 09:08

I\'m trying to figure out what would be causing a 1 minute delay in the startup of Jetty. Is it a configuration problem, my application, or something else?<

相关标签:
2条回答
  • 2020-12-31 09:18

    Try changing the logging level to DEBUG and see it that reveals anything interesting. If nothing else, it might allow you to narrow down where in the startup sequence the problem is.

    0 讨论(0)
  • 2020-12-31 09:26

    Jetty 7 (and maybe lower):

    Set the (very) verbose debug logging with -Dorg.eclipse.jetty.util.log.DEBUG=true (see Jetty/Starting/Porting to Jetty 7) and try to see what is happening during this minute.

    As a side note, you'll probably need jsp support so you should pass -DOPTIONS=Server,deploy,jsp when starting (see Running Jetty-7.0.x).

    And if you don't need fancy things from Jetty 7.x, then you should stick with Jetty 6 instead of Jetty 7 eclipse (more stable, less problems because of the Eclipse migration, better documentation, easier to use).

    Jetty 8:

    In Jetty 8.1: System Property [org.eclipse.jetty.util.log.DEBUG] has been deprecated! (Use org.eclipse.jetty.LEVEL=DEBUG instead)

    0 讨论(0)
提交回复
热议问题