Skip to content

Add support for bounded memory persistence in Paho - #106

Merged
deepanshu42 merged 3 commits into
mainfrom
task/add-memory-persistance-limit
Aug 22, 2026
Merged

deepanshu42 merged 3 commits into
mainfrom
task/add-memory-persistance-limit

Conversation

@ghifari-gunawan

Copy link
Copy Markdown
Collaborator

Currently, Paho's MemoryPersistence can grow unbounded, which can lead to excessive memory consumption or OOM issues. The changes in this PR is adding a maxCapacity parameter to MemoryPersistence, which allows the client to control the persistence's size limit.

Comment thread paho/src/main/java/org/eclipse/paho/client/mqttv3/MqttPersistenceException.java Outdated
Comment thread mqtt-client/src/main/java/com/gojek/mqtt/client/config/v3/MqttV3Configuration.kt Outdated
@ghifari-gunawan
ghifari-gunawan force-pushed the task/add-memory-persistance-limit branch from 9f68582 to 50e72cf Compare August 21, 2026 10:19
@deepanshu42
deepanshu42 force-pushed the task/add-memory-persistance-limit branch from 50e72cf to 8d053d0 Compare August 21, 2026 14:32
@deepanshu42
deepanshu42 merged commit 56708f6 into main Aug 22, 2026
3 checks passed
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.

2 participants