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 53751 - o.n.m.websvc.registry module slows down startup
Summary: o.n.m.websvc.registry module slows down startup
Status: CLOSED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC All
: P2 blocker (vote)
Assignee: _ ludo
URL:
Keywords: PERFORMANCE
Depends on: 53774
Blocks: 52155 53069
  Show dependency tree
 
Reported: 2005-01-20 14:23 UTC by _ rkubacki
Modified: 2006-03-24 13:08 UTC (History)
1 user (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 _ rkubacki 2005-01-20 14:23:29 UTC
Even if the user does not use any part of J2EE
related functionality websvc.registry module
performs a lot of work during startup. It
initializes whole J2EE server registry.

It seems that ~4% of startup time (1s of 25s) is
spent in restored() method of this module when I
start the IDE on my notebook (Dell840 latitude,
2GHz, 1GB RAM, linux FC2, jdk1.5.0u1). On solaris
without CMS garbare collector the ratio is better
(it is not causing GC run here) but it is still
significant portion of startup sequence.
Comment 1 _ pcw 2005-01-20 17:08:44 UTC
Known issue inherited from Creator codebase.
Comment 2 _ ludo 2005-01-28 23:30:03 UTC
will fix for 4.1
Need to lazy load the registry, only if it is accessed either via the
ui or via api call.
Comment 3 _ ludo 2005-02-15 03:15:45 UTC
working on it, now that I have the notification apis.
Should be done in the next 3 days...
Comment 4 _ ludo 2005-02-17 02:56:04 UTC
Fixed in Trunk.
Registry is loaded only when needed (i.e when the user explores/uses
it, or when the ide is opened and tries to explore it to be in the
same ui state as when it exited)

Checking in modules/websvc/registry/WebServicePersistenceManager.java;
/cvs/websvc/registry/src/org/netbeans/modules/websvc/registry/WebServicePersistenceManager.java,v
 <--  WebServicePersistenceManager.java
new revision: 1.3; previous revision: 1.2
done
Processing log script arguments...
More commits to come...
Checking in modules/websvc/registry/model/WebServiceListModel.java;
/cvs/websvc/registry/src/org/netbeans/modules/websvc/registry/model/WebServiceListModel.java,v
 <--  WebServiceListModel.java
new revision: 1.4; previous revision: 1.3
done
Processing log script arguments...
More commits to come...
Checking in
modules/websvc/registry/netbeans/WebServiceModuleInstaller.java;
/cvs/websvc/registry/src/org/netbeans/modules/websvc/registry/netbeans/WebServiceModuleInstaller.java,v
 <--  WebServiceModuleInstaller.java
new revision: 1.6; previous revision: 1.5
done
Processing log script arguments...
More commits to come...
Checking in
modules/websvc/registry/nodes/WebServicesRootNodeChildren.java;
/cvs/websvc/registry/src/org/netbeans/modules/websvc/registry/nodes/WebServicesRootNodeChildren.java,v
 <--  WebServicesRootNodeChildren.java
new revision: 1.3; previous revision: 1.2
done
Comment 5 Petr Blaha 2005-07-12 10:53:35 UTC
v