-
Notifications
You must be signed in to change notification settings - Fork 196
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
port out of range:-1 #4
Comments
Not necessary to add "ssl://" in 'Server name or IP", the protocol is set in the 'Protocols' dropdown box. Please make sure that the user name & password are correct. |
username and password are correct. I've followed these instructions: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support (section: Using the MQTT protocol directly) but the error is the same: Moreover, where can i set "ClientId"? in MQTT Pub Sampler i see only the tag "ClientId prefix". If i set this filed with my deviceId, i detect another error. |
Possibly it's caused by not specifying a correct clientID. Currently, only "ClientId prefix" is supported, the fullname of clientID will be generated automatically with "ClientId_prefix" + random string. Please verify if you can use mosquitto client tools pub/sub messages (such as specify a not correct clientId will cause the same problem or not). |
where can i set "ClientId"? in MQTT Pub Sampler i see only the tag "ClientId prefix". If i set this filed with my deviceId, i detect another error. |
Right now as mentioned in earlier comment, "ClientId" = "ClientId_prefix" + random string. Maybe I missed something.. are you expecting the exact ClientId field that can be specified on this Pub Sampler UI? If so, can you elaborate how ClientId is being used in your application, should it be the same as your deviceId? We can consider an option for ClientId without random string any way. |
Please try https://github.com/emqtt/mqtt-jmeter/releases/tag/v0.92_beta. As in below screen, please uncheck 'add random client id suffix', and then the value of 'ClientId' will be used as client ID. |
It's all right now, thank you |
OK, so close the issue and it will be released in 0.92 stable version. |
Hi i have all proper username and password but using tcp i am not able to connect please help me out |
Maybe it's caused by MQTT version, which was discussed in the thread - #21 Could you have a try for the temp fix attached in the thread? |
In Jmeter testing for IOT-HUB this is TCP protocol or SSL if SSL then how i will manage certificate because i don't have any certificate |
Maybe you should consult Azure. |
Here i have notice Jmeter doesn't supprot IOT-HUB because while sending multiple message using multiple thread with delay and without delay i am getting connection error as per Azure support they were saying it is try to connect with every thread science using iot hub we can connect once IoT Hub only supports one active MQTT connection per device. Any new MQTT connection on behalf of the same device ID causes IoT Hub to drop the existing connection. https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support @jinfahua please reply with you value-able feedback |
@jinfahua Here one thread working properly |
The current design is that all iterations for the same virtual user shares one same connection. But if you have multiple virtual users, then corresponding multiple connections will be created. But different pub & sub samplers in one thread-group DO NOT share the same connections, different samplers in same thread-group will created a separated connection. Now we have an ongoing release that support share connection for pub/sub samplers in the same thread-group. In real user scenario is that one client can be either pub or sub (with the same connection). |
Thanks jinfahua when can we aspect this new release ?? |
The code is already in branch conn_share https://github.com/emqtt/mqtt-jmeter/tree/share_conn , you can check it out and build a binary by yourself. The new release will still take some time. |
i am trying to publish a massage to IOT on port 8883 but detect an exception (in attach the configuration
):
if i use this Server Name: SIT-IOT....... the error is:
2017/02/23 11:30:11 ERROR - net.xmeter.samplers.PubSampler: Peer disconnected java.io.EOFException: Peer disconnected
at org.fusesource.hawtdispatch.transport.AbstractProtocolCodec.read(AbstractProtocolCodec.java:331)
at org.fusesource.hawtdispatch.transport.TcpTransport.drainInbound(TcpTransport.java:657)
at org.fusesource.hawtdispatch.transport.SslTransport.drainInbound(SslTransport.java:244)
at org.fusesource.hawtdispatch.transport.TcpTransport$6.run(TcpTransport.java:538)
at org.fusesource.hawtdispatch.internal.NioDispatchSource$3.run(NioDispatchSource.java:226)
at org.fusesource.hawtdispatch.internal.SerialDispatchQueue.run(SerialDispatchQueue.java:96)
at org.fusesource.hawtdispatch.internal.pool.SimpleThread.run(SimpleThread.java:77)
if i use this Server Name: ssl://SIT-IOT....... the error is:
2017/02/23 11:37:08 ERROR - jmeter.JMeter: Uncaught exception: java.lang.IllegalArgumentException: port out of range:-1
at java.net.InetSocketAddress.checkPort(Unknown Source)
at java.net.InetSocketAddress.(Unknown Source)
at org.fusesource.hawtdispatch.transport.TcpTransport$2.run(TcpTransport.java:416)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
The text was updated successfully, but these errors were encountered: