Merge branch 'memleak' into 'develop'
Force more frequent full_sweep GC runs on the Websocket processes See merge request pleroma/pleroma!4060
This commit is contained in:
commit
0b9bc4a0d0
1
changelog.d/memleak.fix
Normal file
1
changelog.d/memleak.fix
Normal file
@ -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.
|
@ -14,7 +14,8 @@ defmodule Pleroma.Web.Endpoint do
|
|||||||
websocket: [
|
websocket: [
|
||||||
path: "/",
|
path: "/",
|
||||||
compress: false,
|
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,
|
timeout: 60_000,
|
||||||
transport_log: false,
|
transport_log: false,
|
||||||
compress: false
|
compress: false,
|
||||||
|
fullsweep_after: 20
|
||||||
],
|
],
|
||||||
longpoll: false
|
longpoll: false
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user