Bug 233869 - org.netbeans.modules.glassfish.javaee.Hk2JavaEEPlatformFactory.getJ2eePlatformImpl: LowPerformance took 8596 ms.
org.netbeans.modules.glassfish.javaee.Hk2JavaEEPlatformFactory.getJ2eePlatfor...
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: GlassFish
7.4
All All
: P3 (vote)
: 7.4
Assigned To: TomasKraus
issues@serverplugins
EXCEPTIONS_REPORT perf-profileme
: PERFORMANCE
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-02 19:47 UTC by Exceptions Reporter
Modified: 2014-02-05 14:52 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
:


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

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

GUEST: .

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:

org.glassfish.tools.ide.server.config.ConfigUtils#processClassPath

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.


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