Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Duplicate strings in o.e.p.internal.jpa.metadata.accessors.objects.MetadataClass(EclipseLink 2.3.0)
Duplicate strings in o.e.p.internal.jpa.metadata.accessors.objects.MetadataClass [message #733853] Wed, 05 October 2011 19:33 Go to next message
Frank Schwarz is currently offline Frank SchwarzFriend
Messages: 26
Registered: July 2009
Location: Dresden
Junior Member
We recently did a memory-footprint analysis and it turned out that there were lots of duplicate strings of

  • org.eclipse.persistence.internal.weaving.PersistenceWeaved
  • org.eclipse.persistence.internal.descriptors.PersistenceEntity
  • org.eclipse.persistence.internal.descriptors.PersistenceObject
  • org.eclipse.persistence.queries.FetchGroupTracker
  • org.eclipse.persistence.internal.weaving.PersistenceWeavedFetchGroups
  • org.eclipse.persistence.descriptors.changetracking.ChangeTracker
  • org.eclipse.persistence.internal.weaving.PersistenceWeavedChangeTracking

Is it worth creating an enhacement request for org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataClass to use internalized string?

Kind regards,
Re: Duplicate strings in o.e.p.internal.jpa.metadata.accessors.objects.MetadataClass [message #734070 is a reply to message #733853] Thu, 06 October 2011 15:17 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

These strings come from parsing the class files through ASM. I don't think interning them is desirable/worth a bug request.

I would be more concerned about why the MetadataClass is in memory at all. It should only exist during deployment and then be garbage collected. Do you have non-accessed persistence units? What environment are you using?

James : Wiki : Book : Blog : Twitter
Previous Topic:pingsql
Next Topic:JPQL join and collection association
Goto Forum:

Current Time: Thu Apr 19 18:03:20 GMT 2018

Powered by FUDForum. Page generated in 0.01492 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software