Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
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 #4953 (closed)

Opened 13 years ago

Closed 13 years ago

Bug: insight's example/data/Gateway.java leaks server memory getPlane

Reported by: jamoore Owned by: jamoore
Priority: major Milestone: OMERO-Beta4.3
Component: Insight Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: n.a.

Description

Since RawPixelsStorePrx.close is never called, the following code leaks server memory:

         public synchronized byte[] getPlane(long pixelsID, int z, int t, int c)
                throws Exception
         {
                 RawPixelsStorePrx service = entryEncrypted.createRawPixelsStore();
                 try {
                         service.setPixelsId(pixelsID, false);
                         return service.getPlane(z, c, t);
                 } catch (Throwable e) {
                         throw new Exception("Cannot retrieve the plane " +
                                         "(z="+z+", t="+t+", c="+c+") for pixelsID:  "+pixelsID, e);
                 }
        }

See: http://lists.openmicroscopy.org.uk/pipermail/ome-devel/2011-April/001940.html

Change History (1)

comment:1 Changed 13 years ago by jmoore <josh@…>

  • Remaining Time set to 0
  • Resolution set to fixed
  • Status changed from new to closed

(In [57970aba45367b5ecf4b3a78ccef14e104e838ad/ome.git] on branch develop) Adding service.close to Gateway.getPlane (Fix #4953)

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.66390 sec.)

We're Hiring!