While debugging a series of out of memory exceptions on one particular installation during a very large (over 100,000) number of imports Glencoe has noticed that the number of ome.services.blitz.repo.ManagedImportProcessI instances on the heap never decreases. The longer a server is running and the more complex the imports, the more of the available heap these objects consume. If left long enough, this will make a server unusable. As currently implemented this is due to ProcessContainer.removeProcess() not being called.
A lot of this code is quite old. The ProcessContainer itself was added as part of the initial work on OMERO 5.0.0 in ome/openmicroscopy#577 back in January, 2013. It's remained largely unchanged since. The intent for most of this work is outlined in the OMERO.fs documentation:
A few of these things never really got implemented as originally intended. In particular, the Process.ping(), Process.shutdown(), ProcessContainer.pingAll() and ProcessContainer.shutdownAll() methods are either not called or throw exceptions signifying they are not yet implemented. It's also not really clear if currently the ProcessContainer serves any other purpose beyond satisfying ManagedRepository.listImports(). While this method is client API accessible I'm unable to find any use of it by the OMERO CLI tooling, OMERO.web or OMERO.insight.
There is definitely more investigation and discussion to be had on whether it is valuable to implement the original intent of ProcessContainer either in full or in part. The community now has over 10 years of experience with OMERO.fs to draw on and lots of things have been added to the OMERO server import infrastructure during that time.
While this happens, Glencoe has started a repository to work on an OMERO server plugin which can act as a steward for ProcessContainer. Hopefully, this will help people out who currently have problems and support the discussion on where to go from here:
/cc @jburel, @joshmoore, @kkoz, @sbesson
While debugging a series of out of memory exceptions on one particular installation during a very large (over 100,000) number of imports Glencoe has noticed that the number of
ome.services.blitz.repo.ManagedImportProcessIinstances on the heap never decreases. The longer a server is running and the more complex the imports, the more of the available heap these objects consume. If left long enough, this will make a server unusable. As currently implemented this is due toProcessContainer.removeProcess()not being called.A lot of this code is quite old. The
ProcessContaineritself was added as part of the initial work on OMERO 5.0.0 in ome/openmicroscopy#577 back in January, 2013. It's remained largely unchanged since. The intent for most of this work is outlined in the OMERO.fs documentation:A few of these things never really got implemented as originally intended. In particular, the
Process.ping(),Process.shutdown(),ProcessContainer.pingAll()andProcessContainer.shutdownAll()methods are either not called or throw exceptions signifying they are not yet implemented. It's also not really clear if currently theProcessContainerserves any other purpose beyond satisfyingManagedRepository.listImports(). While this method is client API accessible I'm unable to find any use of it by the OMERO CLI tooling, OMERO.web or OMERO.insight.There is definitely more investigation and discussion to be had on whether it is valuable to implement the original intent of
ProcessContainereither in full or in part. The community now has over 10 years of experience with OMERO.fs to draw on and lots of things have been added to the OMERO server import infrastructure during that time.While this happens, Glencoe has started a repository to work on an OMERO server plugin which can act as a steward for
ProcessContainer. Hopefully, this will help people out who currently have problems and support the discussion on where to go from here:/cc @jburel, @joshmoore, @kkoz, @sbesson