eclipse-paho / eclipse-paho/paho.mqtt.java

Android App using org.eclipse.paho.client.mqttv3-1.2.0.jar Service causes Throughput Issue

Open
#498 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

The following issue was observed using org.eclipse.paho.client.mqttv3-1.2.0.jar:

I'm running a simple Android App which uses org.eclipse.paho.client.mqttv3-1.2.0.jar to create an Mqtt Client Connection which receives 1msg/msec. The data associated with the messages is always less than 200 bytes. Most of the time, the data associated with the message is less than 50 bytes. The throughput of this Android App is taking up about 30% of the Throughput of one of the Apollo Lake's CPU Cores according to "top". Is this expected?

NOTE: The throughput is still 30% after I've commented out all of the code in my messageArrived() Override method which the MqttAsyncClient code calls once its received a message. I commented out this code to make sure none of my Android App code was running during my testing. Before I started sending Mqtt data to the MqttAsyncClient, the Throughput was less than 1%. The Throughput jumped to 30% once I started sending Mqtt msgs at a rate of 1msg/msec.

Code Execution Environment:
Code is running on a 4 core Intel Apollo Lake uP with a clock speed of 800MHz.
org.eclipse.paho.client.mqttv3-1.2.0.jar is running in an Android-O Environment and is part of an Android Service which is bound to an Android BroadcastReceiver.

Thanks,
Chris

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.