Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] [jetty-users] Maven Jetty Plugin Slow with Java8

Hi,

On Wed, Apr 15, 2015 at 7:36 PM, Petar Tahchiev <paranoiabla@xxxxxxxxx> wrote:
> Hi guys,
>
> I upgraded to Java8 lately and so I had to upgrade my jetty-maven-plugin to
> 9.2+
> I tried all the versions 9.2+ of the maven jetty plugin, however the server
> is starting really slow. First it displays this:
>
>
> [INFO] <<< jetty-maven-plugin:9.2.0.v20140526:run (default-cli) <
> test-compile @ nemesis-console-backend <<<
> [INFO]
> [INFO] --- jetty-maven-plugin:9.2.0.v20140526:run (default-cli) @
> nemesis-console-backend ---
> [INFO] Logging initialized @5461ms
> [INFO] Configuring Jetty for project: Backend Web Console
> [INFO] webAppSourceDirectory not set. Trying src/main/webapp
> [INFO] Reload Mechanic: automatic
> [INFO] Classes =
> /home/petar/workspace/nemesis-consoles/nemesis-console-backend/target/classes
> [INFO] Context path = /backend
> [INFO] Tmp directory =
> /home/petar/workspace/nemesis-consoles/nemesis-console-backend/target/tmp
> [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
> [INFO] Web overrides =  none
> [INFO] web.xml file =
> file:/home/petar/workspace/nemesis-consoles/nemesis-console-backend/src/main/webapp/WEB-INF/web.xml
> [INFO] Webapp directory =
> /home/petar/workspace/nemesis-consoles/nemesis-console-backend/src/main/webapp
> [INFO] jetty-9.2.0.v20140526
>
>
> and then it hangs for about 4 mins before it continue and eventually start
> properly. Does anyone else had this problem?

Please upgrade to 9.2.10.

If the problem remains, take a thread dump during those 4 minutes, it
should be clear what it is doing.
My guess is classpath scanning for annotations.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
http://intalio.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.


Back to the top