Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #12049 (closed)

Opened 5 years ago

Closed 5 years ago

Prevent excessive retention of BufferedReaders by ServiceHandler

Reported by: jballanco-x Owned by: jballanco-x
Priority: critical Milestone: 5.0.1
Component: General Version: 5.0.0
Keywords: search, full text indexing Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

The fix for #11936 involved aggressively closing the java.io.BufferedReader? instances used to read parsed files as soon as parsing is finished. However, because of the way that cleanup messages are handled by the ServiceHandler?, references to each of these objects is still retained for the duration of batch processing by the ServiceHandler?. Over time, even though these objects are closed they are putting enough pressure on the heap that they lead to OOMs.

We should prevent the ServiceHandler? from retaining these references when they are already handled by the ParserSession?.

Change History (2)

comment:1 Changed 5 years ago by Josh Moore <josh@…>

(In [38ae08d98d3bf532ef3bf83a1efed7e874b6d840/ome.git] on branch develop) Merge pull request #2156 from jballanc/buffered-reader-oom-fix

Prevent ServiceHandler from retaining excess java.io.BufferedReader instances (see #12049)

comment:2 Changed 5 years ago by jballanco-x

  • Resolution set to fixed
  • Status changed from new to closed

BufferedReader instances are being cleaned up properly, and search index is still functioning. Not completely clear if this will finally resolve heap memory issues, but for the scope of this ticket the work is complete. Closing.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.89186 sec.)

We're Hiring!