Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 233869 - org.netbeans.modules.glassfish.javaee.Hk2JavaEEPlatformFactory.getJ2eePlatformImpl: LowPerformance took 8596 ms.
Product: serverplugins
Classification: Unclassified
Component: GlassFish
All All
: P3 (vote)
: 8.1
Assigned To: Petr Hejl
EXCEPTIONS_REPORT perf-profileme
: 241207 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2013-08-02 19:47 UTC by Exceptions Reporter
Modified: 2015-05-14 03:07 UTC (History)
12 users (show)

See Also:
Issue Type: DEFECT

nps snapshot (69.27 KB, application/nps)
2013-08-02 19:47 UTC, Exceptions Reporter

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-08-02 19:47:15 UTC
Build: NetBeans IDE 7.4 Beta (Build 201307092200)
VM: Java HotSpot(TM) Client VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b16
OS: Windows 7

User Comments:
leogtzr: Using the tag <jsp:scriptlet>, in general it's slow with scriptlets.

GUEST: was just running a simple Hello World example

johnjullion: enabling java ee


jyeary: Startup and creating a new project.

Maximum slowness yet reported was 17161 ms, average is 10044
Comment 1 Exceptions Reporter 2013-08-02 19:47:17 UTC
Created attachment 138211 [details]
nps snapshot
Comment 2 TomasKraus 2013-08-03 23:45:48 UTC
Adding Petr Hejl to have a look at this too.

In GF plugin there is instance provider being initialized and it's reading configuration from disk. Slow piece of code is retrieving some class path information for maven:

This can be removed from library initialization code and it can be done as lazy initialization with first maven dependencies request.

It will save approx. 1/2 of time. Another part is server instances loading (18% of time) but I would like to keep it there.

Pater, do you have an idea if this can be started as asynchronous task in infrastructure?
Comment 3 Petr Hejl 2013-08-05 06:27:20 UTC
I do see readInstanceFromFile is calling writeInstanceToFile (which takes time). Does it make sense? 

As I suggested in some other issue in case you don't need OptionalDeploymentManagerFactory.finishServerInitialization use the Proxy (learn by example in other server plugins).
Comment 4 TomasKraus 2013-08-05 15:10:14 UTC
That sounds bit weird to me but yes, you are right. This should be fixed. But it's 1/10 of total AWT queue delay. I'll have a look at proxy after all P2s will be handled.
Comment 5 Petr Hejl 2015-05-13 13:29:01 UTC
*** Bug 241207 has been marked as a duplicate of this bug. ***
Comment 6 Petr Hejl 2015-05-13 14:52:20 UTC
This should postpone the initialization of libraries to a time when it is really needed - web-main caf64576a7f1.
Comment 7 Quality Engineering 2015-05-14 03:07:31 UTC
Integrated into 'main-silver', will be available in build *201505140001* on (upload may still be in progress)

User: Petr Hejl <>
Log: #233869 - org.netbeans.modules.glassfish.javaee.Hk2JavaEEPlatformFactory.getJ2eePlatformImpl: LowPerformance took 8596 ms.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo