logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 0b9bc4a0d0e44a873bc59e8994f1996499ed0c4b
parent a145d909b51a66fd332b9f4ad570901296a3b65c
Author: feld <feld@feld.me>
Date:   Sat, 17 Feb 2024 16:21:55 +0000

Merge branch 'memleak' into 'develop'

Force more frequent full_sweep GC runs on the Websocket processes

See merge request pleroma/pleroma!4060

Diffstat:

Achangelog.d/memleak.fix1+
Mlib/pleroma/web/endpoint.ex6++++--
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/changelog.d/memleak.fix b/changelog.d/memleak.fix @@ -0,0 +1 @@ +Fix a memory leak caused by Websocket connections that would not enter a state where a full garbage collection run could be triggered. diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex @@ -14,7 +14,8 @@ defmodule Pleroma.Web.Endpoint do websocket: [ path: "/", compress: false, - error_handler: {Pleroma.Web.MastodonAPI.WebsocketHandler, :handle_error, []} + error_handler: {Pleroma.Web.MastodonAPI.WebsocketHandler, :handle_error, []}, + fullsweep_after: 20 ] ) @@ -27,7 +28,8 @@ defmodule Pleroma.Web.Endpoint do ], timeout: 60_000, transport_log: false, - compress: false + compress: false, + fullsweep_after: 20 ], longpoll: false )