Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-10982

Batch-adding relationships temporarily uses a huge amount of RAM

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None

      Normally this problem probably won't even get noticed by the user, but I've just added a relationship to 1200 recordings at once and noticed my RAM utilization climbing up by approximately 7GB!

      The RAM utilization starts to climb after hitting the Done button and triggers several warnings of my Browser (most recent version of Firefox) because the action takes over a minute to complete. After it has finished, the relationship pop-up dialog disappears and the RAM utilization drops to its previous level almost immediately.

      I know this is an extreme example but this is also reproduceable in smaller scale for a hundred recordings. The submission of all these edits does not have a comparable effect on RAM utilization, therefore a simple action like updating the client-side data model shouldn't eat up such a huge amount of memory. This strongly indicates some kind of memory leak in the client-side JavaScript code.

      Of course such a huge amount of edits caused 504 errors on submitting, so I decided to split the addition of relationships into three batches of 400 recordings each. Thus I found out that the RAM utilization is not only dependent of the number of relationships that are added per batch but also of the existing releationships (or maybe the position of the affected recordings?): The third batch of changes to the last 400 recordings took almost 5GB of RAM.

            Unassigned Unassigned
            kellnerd David Kellner
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package