Hi All,

I am currently trying to do Unit Tests on my Gemfire Cluster using the load
testing tool Apache JMeter.  I have a spring boot application that creates
a client connection to a gemfire cluster, runs a simple query and then
disconnects.  This app runs just fine when I run the JUnit tests in
eclipse, but when I run it through JMeter the client creation never occurs.


For some reason when the spring boot app is making the connection from
behind JMeter, I encounter a problem when I make the following call:

* cache = new ClientCacheFactory()*

The client just hangs.  My tests don't throw a runtime exception, but they
also don't move past the step of creating the cache object.  I checked the
server logs and saw nothing, and when I checked the locator logs I had this
exception being repeatedly thrown.

*[info 2015/11/09 09:56:26.491 EST locator1 <UDP ucast receiver> tid=0x26]
failed unmarshalling message from  matt(locator1:3658:locator)<v0>:41019
java.lang.NullPointerException*

So I shutdown my cluster and set mcast-port=0 on my locator and servers.
Then when I ran the JMeter Unit tests again, the null pointer exception
wasn't being thrown anymore, but the client-cache hangs and still doesn't
make the connection.  In order to see what was happening at that cache
initialization  stage, I gave it a custom path for where to write the
client-cache logs to, but the client cache doesn't even write any logs.

Has anyone ever worked with Gemfire and JMeter before and encountered this
type of issue?  Any input would be appreciated.  Thanks
-- 
Matthew Ross | Pivotal Data Engineering | 516-941-7535

Reply via email to