Loading of HK2 cache data slows down server initialization (GLASSFISH-20298)

[GLASSFISH-20350] Make DescriptorImpl Externalizable instead of Serializable Created: 19/Apr/13  Updated: 19/Apr/13  Resolved: 19/Apr/13

Status: Closed
Project: glassfish
Component/s: hk2
Affects Version/s: None
Fix Version/s: 4.0_b87_RC3

Type: Sub-task Priority: Major
Reporter: mtaube Assignee: mtaube
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: 4_0-approved


From parent task:

I've measured the time required for loadCachedData in both 4.0 and 3.1.2. This is for a subsequent restart, and is an average of 5 runs on a MBP:

4.0: 424 ms ("Felix" start time is 2726 ms), inhabitants size = 516415
3.1.2: 194 ms ("Felix start time is 1615 ms), inhabitants size = 371748

loadCachedData is approximately 20-25% faster if DescriptorImpl implements Externalizable (using the string-based representation of a Descriptor) instead of Serializable.

  • What is the impact on the customer of the bug?

Startup performance on a 'warm boot' is slowed down by serialization

  • What is the cost/risk of fixing the bug?

Low risk

  • Is there an impact on documentation or message strings?


  • Which tests should QA (re)run to verify the fix did not destabilize GlassFish?


  • Which is the targeted build of 4.0 for this fix?


  • If this an integration of a new version of a component from another project,
    what are the changes that are being brought in? This might be list of
    Jira issues from that project or a list of revision messages.

Comment by Tom Mueller [ 19/Apr/13 ]

Approved for 4.0

Comment by mtaube [ 19/Apr/13 ]

Committed revision 61562.

Generated at Wed Oct 14 02:38:55 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.