[jboss-jira] [JBoss JIRA] (DROOLS-2409) Memory Leak in sliding window

Mike Baranski (JIRA) issues at jboss.org
Thu Mar 22 10:39:00 EDT 2018


    [ https://issues.jboss.org/browse/DROOLS-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13549921#comment-13549921 ] 

Mike Baranski commented on DROOLS-2409:
---------------------------------------

One more - if we add in batches of 200 with 1ms sleep in between, the eviction seems to fail:

{code:java}

for (i = 0; i < 10000000; i++) {
                averageMeasurementService.addMeasurement(new Measurement(random.nextInt(100)));
                if (i % 100000 == 0) {
                    System.out.println(i + " inserted into list of " + averageMeasurementService.getFactCount());
                    Thread.sleep(500l);
                }
                if (i % 200 == 0) {
                    Thread.sleep(1l);
                }
            }
{code}

{quote}
... snip ...
zzZZzz: 49.52248888888889
1700000 inserted into list of 42114
1800000 inserted into list of 142114
1900000 inserted into list of 242114
2000000 inserted into list of 342114
2100000 inserted into list of 442114
2200000 inserted into list of 542114
2300000 inserted into list of 642114
2400000 inserted into list of 742114
2500000 inserted into list of 842114
2600000 inserted into list of 942114
2700000 inserted into list of 1042114
2800000 inserted into list of 1142114
2900000 inserted into list of 1242114
3000000 inserted into list of 1342114
3100000 inserted into list of 1442114
3200000 inserted into list of 1542114
3300000 inserted into list of 1642114
3400000 inserted into list of 1742114
3500000 inserted into list of 1842114
3600000 inserted into list of 1942114
3700000 inserted into list of 2042114
3800000 inserted into list of 2142114
3900000 inserted into list of 2242114
4000000 inserted into list of 2342114
4100000 inserted into list of 2442114
4200000 inserted into list of 2542114
4300000 inserted into list of 2642114
4400000 inserted into list of 2742114
4500000 inserted into list of 2842114
4600000 inserted into list of 2942114
4700000 inserted into list of 3042114
4800000 inserted into list of 3142114
4900000 inserted into list of 3242114
{quote}

> Memory Leak in sliding window
> -----------------------------
>
>                 Key: DROOLS-2409
>                 URL: https://issues.jboss.org/browse/DROOLS-2409
>             Project: Drools
>          Issue Type: Feature Request
>          Components: core engine
>    Affects Versions: 7.6.0.Final
>         Environment: Mac with Java 1.8 using Spring Boot (see attached demo project)
>            Reporter: Mike Baranski
>            Assignee: Mario Fusco
>            Priority: Critical
>         Attachments: complete.tar.gz
>
>
> See attached project.
> `gradle test` causes an out of memory exception on my machine after ~2.6 million events.  Events should be released for GC after 1 second, but that does not appear to be happening.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list