This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251868 - >200 unexpected classes loaded on start
Summary: >200 unexpected classes loaded on start
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Performance (show other bugs)
Version: 8.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-15 19:04 UTC by Jaroslav Tulach
Modified: 2015-04-20 11:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2015-04-15 19:04:19 UTC
The build 
http://deadlock.netbeans.org/job/ergonomics/5651/testReport/org.netbeans.test.ide/WhitelistTest/testWhitelist3/
shows more than 220 unexpectedly loaded classes on startup. That is a significant regression compared to usual ~100.

Most of the classes seem to be related to debugging, especially debugging of CND.

Marking P1 as the failures block propagation of my changes from ergonomics repository. In case you don't want to fix the problem promptly, I can workaround it by disabling the whitelist test in the ergonomics build.
Comment 1 Vladimir Voskresensky 2015-04-16 12:23:23 UTC
(In reply to Jaroslav Tulach from comment #0)
> The build 
> http://deadlock.netbeans.org/job/ergonomics/5651/testReport/org.netbeans.
> test.ide/WhitelistTest/testWhitelist3/
> shows more than 220 unexpectedly loaded classes on startup. That is a
> significant regression compared to usual ~100.
> 
> Most of the classes seem to be related to debugging, especially debugging of
> CND.
How did you realized that from 190 debug/dbg most are "especially CND" if CND is 47?
Btw, may be something from debugger core is started now which start up all debuggers engines? Because I see all debuggers loaded: php, java, javascript, web,........
Comment 2 Martin Entlicher 2015-04-16 12:56:15 UTC
There is even ANT debugger: org.netbeans.modules.ant.debugger.breakpoints.*
There were no changes in ANT debugger. Are the stack traces somewhere? I need to see what initiates the class loading...
Comment 3 Jaroslav Tulach 2015-04-17 06:14:06 UTC
The page at
http://deadlock.netbeans.org/job/ergonomics/
should contain all the information including links to stacktraces and wikipage with description of the whole infrastructure and how to run it locally.
Comment 4 Martin Entlicher 2015-04-17 09:48:11 UTC
Thanks.
FYI: The xml document with stack traces starts with
"sXMLCodec.<init>(BreakpointsXMLCodec.java:68)"
But the rest of the file helps, it looks like changes performed recently in ActionsManager where actions are registered might have impact on this.
Comment 5 Martin Entlicher 2015-04-17 17:12:59 UTC
The tests on past versions revealed that this regression is caused by http://hg.netbeans.org/core-main/rev/1f155bc084cd
Comment 6 Martin Entlicher 2015-04-17 23:51:39 UTC
The debugger regression is fixed by changeset:   286869:d6ce4972d76a
http://hg.netbeans.org/core-main/rev/d6ce4972d76a

But the whitelist test still fails for me, listing 105 violations. But the 100+ might due to classes from GTK plaf. Thus the test might pass on hudson.
Comment 7 Quality Engineering 2015-04-20 11:57:34 UTC
Integrated into 'main-silver', will be available in build *201504201004* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4fa226ff1c99
User: mentlicher@netbeans.org
Log: #251868: Some classes were repackaged from o.n.m.d.jpda.projects to o.n.m.d.jpda.projectsui.