Results 1 to 4 of 4

Thread: AnnotationTransactionAttributeSource takes a lot of memory

  1. #1
    Join Date
    Jul 2008
    Posts
    6

    Default AnnotationTransactionAttributeSource takes a lot of memory

    Hi,

    i've just run MemoryAnalyser on my project and i see that AnnotationTransactionAttributeSource takes 16 Mo on a total of 78 Mo , which represent 20 % of all the memory of the application...

    Is it normal ? Is this class used at runtime or just for launching ? Is it possible to downsize the consumption of this class ?

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    There isn't much in there which keeps state at least not in the version I checked. Which spring version are you using and try to be a bit more specific on where the memory is being consumed, there must be some informatin in the internals.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Jul 2008
    Posts
    6

    Default more details

    Spring version : 2.5.5

    org.springframework.transaction.annotation.Annotat ionTransactionAttributeSource @ 0x8286c70 => Retained Heap = 15 994 664
    java.util.concurrent.ConcurrentHashMap @ 0x82b0788 => => Retained Heap = 15 994 456

    it seems to be "attributeCache"...

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    Over looked that one it is in the super class .

    Well that is the method cache for all transactional methods in your project, you could probably create a non caching implementation but that would be probably have a severe impact on performance.

    However I would suggest that you entered a jira issue maybe Juergen can find a way to decrece the amount of memory used.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •