Jmeter connection issue with MongoDB

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Jmeter connection issue with MongoDB

Sunny-2
Hi,

I am facing an issue while connecting jmeter with mongodb.
I am using mongodbsourceconfig and passing the server address list
argument.

Following error is encountered -

*com.mongodb.ConnectionStatus$UpdatableNode update*
*WARNING: Server seen down:
testcluster-shard-00-02-ctvgt.mongodb.net/34.203.173.119:27017
<http://testcluster-shard-00-02-ctvgt.mongodb.net/34.203.173.119:27017>*
*java.io.EOFException*
*        at org.bson.io.Bits.readFully(Bits.java:48)*
*        at org.bson.io.Bits.readFully(Bits.java:33)*
*        at org.bson.io.Bits.readFully(Bits.java:28)*
*        at com.mongodb.Response.<init>(Response.java:40)*
*        at com.mongodb.DBPort.go(DBPort.java:142)*
*        at com.mongodb.DBPort.go(DBPort.java:106)*
*        at com.mongodb.DBPort.findOne(DBPort.java:162)*
*        at com.mongodb.DBPort.runCommand(DBPort.java:170)*
*        at
com.mongodb.ConnectionStatus$UpdatableNode.update(ConnectionStatus.java:196)*
*        at
com.mongodb.DynamicConnectionStatus$DynamicNode.update(DynamicConnectionStatus.java:167)*
*        at
com.mongodb.DynamicConnectionStatus$1.run(DynamicConnectionStatus.java:114)*
*        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source)*
*        at java.util.concurrent.FutureTask.run(Unknown Source)*
*        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)*
*        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)*
*        at java.lang.Thread.run(Unknown Source)*


I have tried attempting to connect to mongodb server directly using mongodb
client and its working fine.

Appreciate, your views on this.


thanks,
saurabh
Reply | Threaded
Open this post in threaded view
|

Fwd: Jmeter connection issue with MongoDB

Sunny-2
Hi,

I am facing an issue while connecting jmeter with mongodb.
I am using mongodbsourceconfig and passing the server address list
argument.

Following error is encountered -

*com.mongodb.ConnectionStatus$UpdatableNode update*
*WARNING: Server seen down:
testcluster-shard-00-02-ctvgt.mongodb.net/34.203.173.119:27017
<http://testcluster-shard-00-02-ctvgt.mongodb.net/34.203.173.119:27017>*
*java.io.EOFException*
*        at org.bson.io.Bits.readFully(Bits.java:48)*
*        at org.bson.io.Bits.readFully(Bits.java:33)*
*        at org.bson.io.Bits.readFully(Bits.java:28)*
*        at com.mongodb.Response.<init>(Response.java:40)*
*        at com.mongodb.DBPort.go(DBPort.java:142)*
*        at com.mongodb.DBPort.go(DBPort.java:106)*
*        at com.mongodb.DBPort.findOne(DBPort.java:162)*
*        at com.mongodb.DBPort.runCommand(DBPort.java:170)*
*        at
com.mongodb.ConnectionStatus$UpdatableNode.update(ConnectionStatus.java:196)*
*        at
com.mongodb.DynamicConnectionStatus$DynamicNode.update(DynamicConnectionStatus.java:167)*
*        at
com.mongodb.DynamicConnectionStatus$1.run(DynamicConnectionStatus.java:114)*
*        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source)*
*        at java.util.concurrent.FutureTask.run(Unknown Source)*
*        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)*
*        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)*
*        at java.lang.Thread.run(Unknown Source)*


I have tried attempting to connect to mongodb server directly using mongodb
client and its working fine.

Appreciate, your views on this.


thanks,
saurabh
Reply | Threaded
Open this post in threaded view
|

Re: Jmeter connection issue with MongoDB

Felix Schumacher
In reply to this post by Sunny-2
Am 18.08.2017 um 06:49 schrieb Sunny:

> Hi,
>
> I am facing an issue while connecting jmeter with mongodb.
> I am using mongodbsourceconfig and passing the server address list
> argument.
>
> Following error is encountered -
>
> *com.mongodb.ConnectionStatus$UpdatableNode update*
> *WARNING: Server seen down:
> testcluster-shard-00-02-ctvgt.mongodb.net/34.203.173.119:27017
> <http://testcluster-shard-00-02-ctvgt.mongodb.net/34.203.173.119:27017>*
> *java.io.EOFException*
> *        at org.bson.io.Bits.readFully(Bits.java:48)*
> *        at org.bson.io.Bits.readFully(Bits.java:33)*
> *        at org.bson.io.Bits.readFully(Bits.java:28)*
> *        at com.mongodb.Response.<init>(Response.java:40)*
> *        at com.mongodb.DBPort.go(DBPort.java:142)*
> *        at com.mongodb.DBPort.go(DBPort.java:106)*
> *        at com.mongodb.DBPort.findOne(DBPort.java:162)*
> *        at com.mongodb.DBPort.runCommand(DBPort.java:170)*
> *        at
> com.mongodb.ConnectionStatus$UpdatableNode.update(ConnectionStatus.java:196)*
> *        at
> com.mongodb.DynamicConnectionStatus$DynamicNode.update(DynamicConnectionStatus.java:167)*
> *        at
> com.mongodb.DynamicConnectionStatus$1.run(DynamicConnectionStatus.java:114)*
> *        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
> Source)*
> *        at java.util.concurrent.FutureTask.run(Unknown Source)*
> *        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
> Source)*
> *        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)*
> *        at java.lang.Thread.run(Unknown Source)*
>
>
> I have tried attempting to connect to mongodb server directly using mongodb
> client and its working fine.
>
> Appreciate, your views on this.
The mongodb sampler has been deprecated and it is unlikely, that much
effort will be put into it in by the core team, if no one steps up and
fixes the usage of the old api of mongodb.

Perhaps this is your chance :)

On the other hand, are you sure, that it is not just the backend, that
closed its connection to the client, or some sort of firewall?

Felix
>
>
> thanks,
> saurabh
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]