Matt,
I was able to run a client test with JMeter 2.13 and Geode
1.0.0-incubating-SNAPSHOT.
I get output like below when I run the test:
./runjmeter.sh
Creating summariser <summary>
Created the tree successfully using geodeclienttest.jmx
Starting the test @ Wed Nov 11 13:02:37 PST 2015 (1447275757800)
Waiting for possible shutdown message on port 4445
GeodeClientThreads 1-5: GeodeClientJMeterTest loaded 1000 entries in 3629 ms
GeodeClientThreads 1-2: GeodeClientJMeterTest loaded 1000 entries in 3637 ms
GeodeClientThreads 1-3: GeodeClientJMeterTest loaded 1000 entries in 3655 ms
GeodeClientThreads 1-1: GeodeClientJMeterTest loaded 1000 entries in 3666 ms
GeodeClientThreads 1-4: GeodeClientJMeterTest loaded 1000 entries in 3667 ms
summary = 5 in 6s = 0.9/s Avg: 3651 Min: 3630 Max: 3667 Err:
0 (0.00%)
Tidying up ... @ Wed Nov 11 13:02:43 PST 2015 (1447275763533)
... end of run
How are you starting your servers and jmeter test?
Were you able to get a thread dump in the test client JVM?
Maybe enabling fine logging on the server or locator will give us a clue.
Thanks,
Barry Oglesby
GemFire Advanced Customer Engineering (ACE)
For immediate support please contact Pivotal Support at
http://support.pivotal.io/
On Wed, Nov 11, 2015 at 7:25 AM, Matt Ross <[email protected]> wrote:
> Hi Mike,
>
> Sorry I left out the full code for how I'm doing my connection,
>
> cache = new ClientCacheFactory()
>
> .set("log-level", "fine").set("log-file", "/Users/mross/jmeter-cache.log")
>
> .set("cache-xml-file",
> "/Users/mross/workspace/Wyndham/JvhImport/src/main/resources/config/clientCache.xml"
> ).create();
>
> So I'm not using a gemfire.properties file, and i'm establishing the
> locator ip in the client-cache...trying to keep it really simple. The
> cache declaration has to be picking up the clientCache.xml and setting the
> address of the locator because when I checked the locator logs it was
> giving me the nullPointer exception I mentioned in the first email before I
> set mcast-port=0. Even setting the log levels to fine doesn't give any
> useful information to what the problem is.
>
> On Wed, Nov 11, 2015 at 3:24 AM Michael Stolz <[email protected]> wrote:
>
>> It sounds to me like the client isn't picking up the gemfire.properties
>> file when run under JMeter, so it doesn't know the address of the locator.
>>
>> --
>> Mike Stolz
>> Principal Engineer, GemFire Product Manager
>> Mobile: 631-835-4771
>>
>> On Tue, Nov 10, 2015 at 5:35 PM, Vincent Ford <[email protected]> wrote:
>>
>>> As mentioned by Barry, you should capture thread dumps to see where
>>> things are stuck. Also increasing the logging level to fine may also give
>>> hints as to the cause of the issue... Are you making any other settings to
>>> the client cache or locator?
>>>
>>> *Vince Ford*
>>> GemFire Sustenance Engineering
>>> Beaverton, OR USA
>>> 503-533-3726 (office)
>>> http://www.pivotal.io
>>> Open Source Project Geode https://geode.incubator.apache.org/
>>> <https://network.pivotal.io/products/project-geode>
>>>
>>> On Tue, Nov 10, 2015 at 9:27 AM, Barry Oglesby <[email protected]>
>>> wrote:
>>>
>>>> JMeter has been used to run perf tests with GemFire in the past. I
>>>> haven't seen it used with Geode yet, but it should work ok. I guess I would
>>>> start by getting a thread dump in the client JVM to see where in the cache
>>>> creation process it is stuck.
>>>>
>>>> Barry Oglesby
>>>> GemFire Advanced Customer Engineering (ACE)
>>>> For immediate support please contact Pivotal Support at
>>>> http://support.pivotal.io/
>>>>
>>>>
>>>> On Tue, Nov 10, 2015 at 7:18 AM, Matt Ross <[email protected]> wrote:
>>>>
>>>>> 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
>>>>>
>>>>
>>>>
>>>
>> --
> Matthew Ross | Pivotal Data Engineering | 516-941-7535
>