Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Memory Usage] gradually growing #4477

Open
fluttercid opened this issue Feb 4, 2025 · 1 comment
Open

[Memory Usage] gradually growing #4477

fluttercid opened this issue Feb 4, 2025 · 1 comment

Comments

@fluttercid
Copy link

fluttercid commented Feb 4, 2025

MongooseIM version: 4.2.0
Installed from: Helm chart (version 0.3.2)
Image

Hello.
I am applying it on k8s cluster and I am facing memory consumption issue on it.

vm.args)

Image

online users count)

Image

memory usage)

Image

Image

When 23 or 24 users are online without messages, memory usage is increased as above.
Is this normal consumption with these users?
If not, what and where can I adjust configurations?


After all users logout
There is no change on onlineusers
Image

Not much reducing memory usage
Image

I appreciate your help in advance.

@arcusfelis
Copy link
Contributor

Sure, connect to the erlang remote shell, check what is using memory:

        rp([{Len, case erlang:process_info(TopPid, registered_name) of {_,X} -> X; _ -> TopPid end, erlang:process_info(TopPid, [current_stacktrace])} || {Len, TopPid} <- lists:sublist(lists:reverse(lists:keysort(1, [{try element(2,erlang:process_info(Pid, memory)) catch _:_ -> -1 end, Pid} || Pid <- erlang:processes()])), 20)]).

Will show you which processes consume the most of memory.
You can wait a bit and run in again. And check which processes consume the most.

To open debug shell, use something like mongooseim debug when connecting to the container shell.

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

No branches or pull requests

2 participants