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 15:33 Go to next message
Frank Schwarz is currently offline Frank Schwarz
Messages: 25
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,
Frank
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 11:17 Go to previous message
James Sutherland is currently offline James Sutherland
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: Fri Aug 01 12:04:10 EDT 2014

Powered by FUDForum. Page generated in 0.09791 seconds