qrscu: too many associations?

Issue #533 resolved
Tim de Wit created an issue

For initial filling of the database, I'm running a script that iterates through a specified date range (last 2 years) day by day and starts a qrscu command for each day. These commands are queued by celery, which shouldn't be a problem for my PACS.
However, this script seems to crash our PACS node (AGFA workflow manager), leading to association errors.

Could it be that certain PACS nodes are having problems with too many associations in a given time? In the development version of qrscu for each query (study/series but also image level) a new association is requested, which could be the cause of the problem.

Comments (9)

  1. Tim de Wit reporter

    Just got a call from someone from AGFA. They noticed that my openrem server blocked the WFM by keeping around 8 associations open simultaneously for a longer time. He's currently trying to figure out whether it's the frequency of establishing/releasing associations or the number of associations itself (assuming these connections are open for a long time). Are we 100% sure that all associations are released at some point?

  2. Tim de Wit reporter

    Apparently the number of queries was too much for the SCP process... (max memory usage)

  3. Ed McDonagh

    So it was the number of queries, not the number of associations? Or both?

    Does there need to be a configurable delay between queries?

  4. Ed McDonagh

    The associations are closed quicker in the issue528qrscucleanup branch - that might be worth trying.

    Once I've been through the process of working out if we should use a newer version of pynetdicom or pynetdicom3, and therefore pydicom 1.0.0, because the process of implementing them will require further tidying up of the code.

    With that done, we can try reusing the same association for several queries. Or if you like, you could try doing that yourself, but the chances are your efforts would not merge nicely with all the changes I'm making so it might not be time well spent!

  5. Tim de Wit reporter

    For now a significant delay in my script in between qrscu calls will probably suffice. Your suggestion might help indeed, but I'll wait until the dust settles around the pydicom libraries before working on it.

  6. Ed McDonagh

    Ok. I'm really excited about the newer libraries - I can at last get hold of the DIMSE messages, so that where we request the move of a series containing more than one object I can report in the browser and the logs (depending on log level) the number of sub-operation warnings, failures, completed and remaining.

    Simple things...

  7. Log in to comment