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

Performance of PathTriesTree during high volume subscribe to same node in tree #54

Closed
simon622 opened this issue Jan 19, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@simon622
Copy link
Owner

java.lang.Thread.State: RUNNABLE
at java.util.HashMap$HashIterator.nextNode([email protected]/HashMap.java:1601)
at java.util.HashMap$KeyIterator.next([email protected]/HashMap.java:1620)
at java.util.Collections$UnmodifiableCollection$1.next([email protected]/Collections.java:1054)
at java.util.AbstractCollection.addAll([email protected]/AbstractCollection.java:335)
at org.slj.mqtt.sn.utils.tree.PathTriesTree.searchTreeForMembers(PathTriesTree.java:234)
at org.slj.mqtt.sn.utils.tree.PathTriesTree.searchMembers(PathTriesTree.java:157)
at org.slj.mqtt.sn.utils.tree.PathTriesTree.hasMembers(PathTriesTree.java:161)

@simon622 simon622 added the enhancement New feature or request label Jan 19, 2023
@simon622 simon622 self-assigned this Jan 19, 2023
@simon622
Copy link
Owner Author

mqtt-sn-udp-transport-ingress-1229202732-1" #25 daemon prio=2 os_prio=31 cpu=34923.49ms elapsed=211.67s tid=0x000000014a030e00 nid=0x5707 runnable [0x0000000291266000]
java.lang.Thread.State: RUNNABLE
at java.util.HashMap$HashIterator.nextNode([email protected]/HashMap.java:1601)
at java.util.HashMap$KeyIterator.next([email protected]/HashMap.java:1620)
at java.util.Collections$UnmodifiableCollection$1.next([email protected]/Collections.java:1054)
at java.util.AbstractCollection.addAll([email protected]/AbstractCollection.java:335)
at org.slj.mqtt.sn.utils.tree.PathTriesTree.searchTreeForMembers(PathTriesTree.java:234)
at org.slj.mqtt.sn.utils.tree.PathTriesTree.searchMembers(PathTriesTree.java:157)
at org.slj.mqtt.sn.utils.tree.PathTriesTree.hasMembers(PathTriesTree.java:161)
at org.slj.mqtt.sn.impl.ram.MqttsnInMemorySubscriptionRegistry.hasSubscription(MqttsnInMemorySubscriptionRegistry.java:108)
at org.slj.mqtt.sn.gateway.impl.gateway.type.MqttsnAggregatingGateway.subscribe(MqttsnAggregatingGateway.java:318)
at org.slj.mqtt.sn.gateway.impl.gateway.MqttsnGatewaySessionService.subscribe(MqttsnGatewaySessionService.java:257)
- locked <0x00000007fe873320> (a org.slj.mqtt.sn.model.ClientIdentifierContext)
at org.slj.mqtt.sn.gateway.impl.gateway.MqttsnGatewayMessageHandler.handleSubscribe(MqttsnGatewayMessageHandler.java:321)
at org.slj.mqtt.sn.impl.AbstractMqttsnMessageHandler.handle(AbstractMqttsnMessageHandler.java:218)
at org.slj.mqtt.sn.impl.AbstractMqttsnMessageHandler.receiveMessage(AbstractMqttsnMessageHandler.java:129)
at org.slj.mqtt.sn.impl.AbstractMqttsnTransport.receiveFromTransportInternal(AbstractMqttsnTransport.java:120)
at org.slj.mqtt.sn.impl.AbstractTransport.lambda$receiveFromTransport$1(AbstractTransport.java:120)
at org.slj.mqtt.sn.impl.AbstractTransport$$Lambda$187/0x0000000800d99668.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call([email protected]/Executors.java:539)
at java.util.concurrent.FutureTask.run([email protected]/FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker([email protected]/ThreadPoolExecutor.java:1136)
at java.util.concurrent.ThreadPoolExecutor$Worker.run([email protected]/ThreadPoolExecutor.java:635)
at java.lang.Thread.run([email protected]/Thread.java:833)

@simon622
Copy link
Owner Author

Fixed, abstracted to the MqttTree project which also includes performance work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant