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

Proc::ProcessTable does not scale

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2016-10-24
    • None
    • Admin
    • None

      Catalyst::Plugin::AutoRestart uses Proc::ProcessTable. Each time the AutoRestart plugin kicks in (subject to min_handled_requests and check_each) it makes of the order of 25,000 syscalls, when in fact the required functionality can be achieved in about 4 syscalls.

      Even worse, Proc::ProcessTable is used in MusicBrainz::Server to (very inefficiently) collect performance diagnostic output.

      We should strip out Proc::ProcessTable and use MP::ProcessSize (provided by the BBC), which is far more efficient. This also involves replacing Catalyst::Plugin::AutoRestart by a locally-developed version which calls MP::ProcessSize instead of Proc::ProcessTable.

            bitmap Michael Wiencek
            djce Dave Evans
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2016-10-24