Uploaded image for project: 'ejabberd development'
  1. ejabberd development
  2. EJAB-356

Use Erlang hibernation on unused client processes

    Details

      Description

      Hibernation can reduce memory consumption by hibernating c2s processes that have not been used for a while by the user (dormant connections).

      Related links:

        Activity

        Hide
        mremond@process-one.net Mickaël Rémond added a comment -

        In the upcoming commit, c2s processes inactive for 3 minutes will hibernate.

        Show
        mremond@process-one.net Mickaël Rémond added a comment - In the upcoming commit, c2s processes inactive for 3 minutes will hibernate.
        Hide
        mremond@process-one.net Mickaël Rémond added a comment -

        What will remain to be done is the ability to store and pass fsm option again when going out from hibernation.

        Show
        mremond@process-one.net Mickaël Rémond added a comment - What will remain to be done is the ability to store and pass fsm option again when going out from hibernation.
        Hide
        mremond@process-one.net Mickaël Rémond added a comment -
        Show
        mremond@process-one.net Mickaël Rémond added a comment - Commited in SVN Changeset #934: https://forge.process-one.net/changelog/ejabberd/?cs=934
        Hide
        mremond@process-one.net Mickaël Rémond added a comment -

        We will support process options in a later version.

        Show
        mremond@process-one.net Mickaël Rémond added a comment - We will support process options in a later version.
        Hide
        ppolvorin@process-one.net Pablo Polvorin (Inactive) added a comment -

        Is there a reason to not do the same with the receiver processes?

        Show
        ppolvorin@process-one.net Pablo Polvorin (Inactive) added a comment - Is there a reason to not do the same with the receiver processes?
        Hide
        mremond@process-one.net Mickaël Rémond added a comment -

        There is no reason no. I think it could be done.

        Show
        mremond@process-one.net Mickaël Rémond added a comment - There is no reason no. I think it could be done.
        Hide
        ppolvorin@process-one.net Pablo Polvorin (Inactive) added a comment -

        Patch to ejabberd_receiver.erl , hibernate the process if inactive for 15seg (or when paused by the shaper).

        Show
        ppolvorin@process-one.net Pablo Polvorin (Inactive) added a comment - Patch to ejabberd_receiver.erl , hibernate the process if inactive for 15seg (or when paused by the shaper).

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development