Comments (2)
I suspect (prettttty sure) you're seeing VM overcommit effects. This can be especially obvious on smaller platforms like openwrt. With big enough messages, the malloc will fail, mosquitto can report as you desire. With "just right(wrong)" big messages, you'll be out of memory, but inside the VM overcommit ratio. You can probably play with those tunings to confirm this. See https://www.kernel.org/doc/Documentation/vm/overcommit-accounting
from mosquitto.
Most likely not mosquitto library related issue but a platform dependent one, for some reason mosquitto__malloc
does not return error on specific payload sizes on my particular device
Line 512 in 15292b2
Afterwards it fills up the buffer until OOM is invoked when calling the following
Line 520 in 15292b2
Still, it would be great to have some configurable value to limit the maximum incoming message from the broker even for non MQTT5 clients
from mosquitto.
Related Issues (20)
- No CRL check is happening when connecting via websockets with revoked client certificates HOT 1
- Websockets - bind address/host in listener doesn't work for websockets protocol HOT 3
- Invalid protocol version 5 in CONNECT from <client-ip> HOT 2
- Starting mosquitto broker as Windows Service fails if interface doesn't yet exist on boot, ignores failure to open persistence file, etc.
- Local mqtt brokers started by mosquitto cannot be subscribed or published on it HOT 3
- Upgrade from <= 2.0.15 to >= 2.0.16 breaks bridge first connection if persistence is enabled HOT 2
- add timeout arg to mosquitto_connect() function HOT 2
- Some protocol violations or bugs in Mosquitto HOT 3
- `eclipse-mosquitto:2` Docker Official image based on libressl fails to build on s390x
- Mosquitto is not publishing all received message (since Mosquitto 2.0.16) HOT 2
- Dynamic security plugin does not save changes HOT 1
- TLS Compatible Docker Image. HOT 3
- Allow topic per message for `mosquitto_pub --stdin-line` HOT 2
- How to add this syntax 'mosquitto -c /mosquitto-no-auth.conf' to docker-compose.yml file ? HOT 1
- Persistence db file not created in Version 2.0.18 on OpenWRT 22.03.5 HOT 2
- A mosquitto_loop_forever function blocks in mosquitto_loop_read and fails to trigger keepalive HOT 2
- Bridge not working with a specific kind of topic HOT 18
- Data storage
- Client local.RemoteClientId closed its connection. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mosquitto.