Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1148

Out of memory exception asserting more than 100 facts

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.GA
    • Fix Version/s: 4.0.2
    • Component/s: All
    • Labels:
      None
    • Environment:

      Description

      I got a java.lang.OutOfMemoryException when I assert more than 100 objects.

      I gave you a sample project tracing trucks progression between your firm and the purveyor thanks to message received from trucks. (for more details see on the JBoss forum reference given)

      You can see there logs obtained launching the sample project main class :

      Launching RULES ENGINE
      100 Facts
      Facts : [OUT:TLSE:PRS::2007-04-20T23:00:00Z, OFF:TLSE:PRS::2007-04-20T23:00:01Z, ON:TLSE:PRS::2007-04-20T23:00:02Z, IN:TLSE:PRS::2007-04-20T23:00:03Z, OUT:TLSE:PRS::2007-04-20T23:01:00Z, OFF:TLSE:PRS::2007-04-20T23:01:01Z, ON:TLSE:PRS::2007-04-20T23:01:02Z, IN:TLSE:PRS::2007-04-20T23:01:03Z, OUT:TLSE:PRS::2007-04-20T23:02:00Z, OFF:TLSE:PRS::2007-04-20T23:02:01Z, ON:TLSE:PRS::2007-04-20T23:02:02Z, IN:TLSE:PRS::2007-04-20T23:02:03Z, OUT:TLSE:PRS::2007-04-20T23:03:00Z, OFF:TLSE:PRS::2007-04-20T23:03:01Z, ON:TLSE:PRS::2007-04-20T23:03:02Z, IN:TLSE:PRS::2007-04-20T23:03:03Z, OUT:TLSE:PRS::2007-04-20T23:04:00Z, OFF:TLSE:PRS::2007-04-20T23:04:01Z, ON:TLSE:PRS::2007-04-20T23:04:02Z, IN:TLSE:PRS::2007-04-20T23:04:03Z, OUT:TLSE:PRS::2007-04-20T23:05:00Z, OFF:TLSE:PRS::2007-04-20T23:05:01Z, ON:TLSE:PRS::2007-04-20T23:05:02Z, IN:TLSE:PRS::2007-04-20T23:05:03Z, OUT:TLSE:PRS::2007-04-20T23:06:00Z, OFF:TLSE:PRS::2007-04-20T23:06:01Z, ON:TLSE:PRS::2007-04-20T23:06:02Z, IN:TLSE:PRS::2007-04-20T23:06:03Z, OUT:TLSE:PRS::2007-04-20T23:07:00Z, OFF:TLSE:PRS::2007-04-20T23:07:01Z, ON:TLSE:PRS::2007-04-20T23:07:02Z, IN:TLSE:PRS::2007-04-20T23:07:03Z, OUT:TLSE:PRS::2007-04-20T23:08:00Z, OFF:TLSE:PRS::2007-04-20T23:08:01Z, ON:TLSE:PRS::2007-04-20T23:08:02Z, IN:TLSE:PRS::2007-04-20T23:08:03Z, OUT:TLSE:PRS::2007-04-20T23:09:00Z, OFF:TLSE:PRS::2007-04-20T23:09:01Z, ON:TLSE:PRS::2007-04-20T23:09:02Z, IN:TLSE:PRS::2007-04-20T23:09:03Z, OUT:TLSE:PRS::2007-04-20T23:10:00Z, OFF:TLSE:PRS::2007-04-20T23:10:01Z, ON:TLSE:PRS::2007-04-20T23:10:02Z, IN:TLSE:PRS::2007-04-20T23:10:03Z, OUT:TLSE:PRS::2007-04-20T23:11:00Z, OFF:TLSE:PRS::2007-04-20T23:11:01Z, ON:TLSE:PRS::2007-04-20T23:11:02Z, IN:TLSE:PRS::2007-04-20T23:11:03Z, OUT:TLSE:PRS::2007-04-20T23:12:00Z, OFF:TLSE:PRS::2007-04-20T23:12:01Z, ON:TLSE:PRS::2007-04-20T23:12:02Z, IN:TLSE:PRS::2007-04-20T23:12:03Z, OUT:TLSE:PRS::2007-04-20T23:13:00Z, OFF:TLSE:PRS::2007-04-20T23:13:01Z, ON:TLSE:PRS::2007-04-20T23:13:02Z, IN:TLSE:PRS::2007-04-20T23:13:03Z, OUT:TLSE:PRS::2007-04-20T23:14:00Z, OFF:TLSE:PRS::2007-04-20T23:14:01Z, ON:TLSE:PRS::2007-04-20T23:14:02Z, IN:TLSE:PRS::2007-04-20T23:14:03Z, OUT:TLSE:PRS::2007-04-20T23:15:00Z, OFF:TLSE:PRS::2007-04-20T23:15:01Z, ON:TLSE:PRS::2007-04-20T23:15:02Z, IN:TLSE:PRS::2007-04-20T23:15:03Z, OUT:TLSE:PRS::2007-04-20T23:16:00Z, OFF:TLSE:PRS::2007-04-20T23:16:01Z, ON:TLSE:PRS::2007-04-20T23:16:02Z, IN:TLSE:PRS::2007-04-20T23:16:03Z, OUT:TLSE:PRS::2007-04-20T23:17:00Z, OFF:TLSE:PRS::2007-04-20T23:17:01Z, ON:TLSE:PRS::2007-04-20T23:17:02Z, IN:TLSE:PRS::2007-04-20T23:17:03Z, OUT:TLSE:PRS::2007-04-20T23:18:00Z, OFF:TLSE:PRS::2007-04-20T23:18:01Z, ON:TLSE:PRS::2007-04-20T23:18:02Z, IN:TLSE:PRS::2007-04-20T23:18:03Z, OUT:TLSE:PRS::2007-04-20T23:19:00Z, OFF:TLSE:PRS::2007-04-20T23:19:01Z, ON:TLSE:PRS::2007-04-20T23:19:02Z, IN:TLSE:PRS::2007-04-20T23:19:03Z, OUT:TLSE:PRS::2007-04-20T23:20:00Z, OFF:TLSE:PRS::2007-04-20T23:20:01Z, ON:TLSE:PRS::2007-04-20T23:20:02Z, IN:TLSE:PRS::2007-04-20T23:20:03Z, OUT:TLSE:PRS::2007-04-20T23:21:00Z, OFF:TLSE:PRS::2007-04-20T23:21:01Z, ON:TLSE:PRS::2007-04-20T23:21:02Z, IN:TLSE:PRS::2007-04-20T23:21:03Z, OUT:TLSE:PRS::2007-04-20T23:22:00Z, OFF:TLSE:PRS::2007-04-20T23:22:01Z, ON:TLSE:PRS::2007-04-20T23:22:02Z, IN:TLSE:PRS::2007-04-20T23:22:03Z, OUT:TLSE:PRS::2007-04-20T23:23:00Z, OFF:TLSE:PRS::2007-04-20T23:23:01Z, ON:TLSE:PRS::2007-04-20T23:23:02Z, IN:TLSE:PRS::2007-04-20T23:23:03Z, OUT:TLSE:PRS::2007-04-20T23:24:00Z, OFF:TLSE:PRS::2007-04-20T23:24:01Z, ON:TLSE:PRS::2007-04-20T23:24:02Z, IN:TLSE:PRS::2007-04-20T23:24:03Z]
      Add object : OUT:TLSE:PRS::2007-04-20T23:00:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:00:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:00:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:00:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:01:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:01:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:01:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:01:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:02:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:02:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:02:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:02:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:03:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:03:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:03:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:03:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:04:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:04:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:04:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:04:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:05:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:05:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:05:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:05:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:06:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:06:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:06:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:06:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:07:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:07:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:07:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:07:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:08:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:08:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:08:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:08:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:09:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:09:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:09:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:09:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:10:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:10:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:10:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:10:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:11:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:11:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:11:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:11:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:12:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:12:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:12:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:12:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:13:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:13:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:13:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:13:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:14:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:14:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:14:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:14:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:15:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:15:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:15:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:15:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:16:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:16:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:16:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:16:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:17:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:17:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:17:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:17:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:18:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:18:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:18:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:18:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:19:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:19:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:19:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:19:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:20:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:20:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:20:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:20:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:21:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:21:01Z
      Add object : ON:TLSE:PRS::2007-04-20T23:21:02Z
      Add object : IN:TLSE:PRS::2007-04-20T23:21:03Z
      Add object : OUT:TLSE:PRS::2007-04-20T23:22:00Z
      Add object : OFF:TLSE:PRS::2007-04-20T23:22:01Z
      Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tirelli Edson Tirelli
                Reporter:
                evieuille eymeric vieuille
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: