Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1776

OutOfMemory during lifecycle events

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.2, 3.1B1
    • None
    • Lifecycle Extensions
    • None
    • Linux x64, Mac OS X Lion

    Description

      Inside EventManager.java in Cayenne 3.0.2 and DefaultEventManager in Cayenne 3.1 there is the inner class Dispatch with the following code:

      synchronized (eventQueue)

      { eventQueue.add(new InvocationDispatch( eventArgument, subject, invocation)); eventQueue.notifyAll(); }

      Inside my code a event listener is added once, but inside the eventQueue multiple InvocationDispatch objects are created and never thrown away. When persisting thousands of objects the eventQueue is filled up leading to OutOfMemory exceptions.

      Regards,
      Nils

      Attachments

        Activity

          People

            Unassigned Unassigned
            ude-nils Nils Verheyen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: