Skip to content

Memory leak in dsimport branch #66

@dzwicker

Description

@dzwicker

I have tried the new version of cdi-query (eta-module for deltaspike???) in the disport branch. After this we run very quick in some OutOfMemoryExceptions. After some visualVM sessions i figured out that seems to be a leak in the DelegateQueryBuilder. The instances are not released and every run of our integration tests the instance count was doubled... I attache some visualVM screenshots showing the heap/sampler state after boot, the first run of the integration tests, after GC call and after second round of ITs. I attached screenshots of the app running with cdi-query-1.0.0-ALPHA5 after boot, first run of IT and 5 runs of IT (with the dsimport branch only 2 runs are possible because of OutOfMemories), too.

After boot:
afterboot_heap
afterboot_sampler

  1. run:
    firstrun_heap
    firstrun_sampler

GC called:
firstrun_heap_after_gc
firstrun_sampler_after_gc

  1. run:
    secondrun_sampler
    secondrun_heap

GC called:
secondrun_heap_after_gc
secondrun_sampler_after_gc

Using cdi-query-1.0.0.ALPHA
Boot:
nodeltaspike_boot_heap

  1. run:
    nodeltaspike_firstrun_heap

after running the integration tests 5 times:
nodeltaspike_5th_run_heap

Let me know if there something i can do to help with this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions