Skip to content

fix: prevent out-of-memory crashes on low RAM servers issue Fixes: 1575#2403

Open
jananivarthini455 wants to merge 3 commits intojitsi:masterfrom
jananivarthini455:fix/dynamic-memory-default
Open

fix: prevent out-of-memory crashes on low RAM servers issue Fixes: 1575#2403
jananivarthini455 wants to merge 3 commits intojitsi:masterfrom
jananivarthini455:fix/dynamic-memory-default

Conversation

@jananivarthini455
Copy link
Copy Markdown
Contributor

Removed the hardcoded VIDEOBRIDGE_MAX_MEMORY=3072m to prevent OOM crashes on low RAM servers.
Now dynamically detects system memory at startup and sets 75% of available RAM. Fixes #1575

The service was not starting and rc symlinks were missing
when installing on systems using SysV init instead of systemd.

- Added SysV init script (jitsi-videobridge.init)
- Removed --noscripts from dh_installinit in rules
- Added SysV stop logic in postinst

Fixes jitsi#1605
Sets VIDEOBRIDGE_MAX_MEMORY dynamically based on available system memory. Fixes jitsi#1575
@jitsi-jenkins
Copy link
Copy Markdown

Hi, thanks for your contribution!
If you haven't already done so, could you please make sure you sign our CLA (https://jitsi.org/icla for individuals and https://jitsi.org/ccla for corporations)? We would unfortunately be unable to merge your patch unless we have that piece :(.

@jananivarthini455
Copy link
Copy Markdown
Contributor Author

hii @damencho @bgrozev ,

Hey! I noticed this issue was open and gave it a shot.
Removed the hardcoded 3072m and added dynamic memory detection
instead — it now uses 75% of available RAM at startup with a
fallback of 1024m if detection fails. Raised a PR here:
#2403
Would love some feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

out of memory by default for small setups

2 participants