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

broker error: Client xxx disconnected due to out of memory #2792

Open
crinaZhao opened this issue Apr 23, 2023 · 1 comment
Open

broker error: Client xxx disconnected due to out of memory #2792

crinaZhao opened this issue Apr 23, 2023 · 1 comment

Comments

@crinaZhao
Copy link

I using Mosquitto 2.0.15, both broker and client run on Android S.
mosquitto.conf :
user root
allow_anonymous true
listener 1883 0.0.0.0

config:
For libmosquitto, just enable
WITH_SOCKS
WITH_EPOLL

For broker, just enable
WITH_BROKER
WITH_PERSISTENCE
WITH_SYS_TREE
WITH_EC
WITH_CONTROL
WITH_EPOOL

Client is very simple, start a Android native process to subscribe a topic and publish this topic. It often occurs an error:
Client xxx disconnected due to out of memory, errorno is MOSQ_ERR_ERRNO related in kernel
#define EFAULT 14 /Bad address/

I cannot find where to happen memory leak, client process not crash.

Please give some suggestions and thanks a lot.

@crinaZhao
Copy link
Author

Someone can answer it?

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

1 participant