On 17 April 2012 09:54, Toni Menendez Lopez <[email protected]> wrote:
> I manage the found the issue, the thing was that I had a XPATH
> Extractor in a request, and after a Ifcontroler based in the variable
> from this extractor..
>
> IfController --> "XPDevId" != "error"
>
> It seems when we have a error in answer from the server ( timeout )
> this variable is not setup with the default value,
PostProcessors are not applied to failed requests, because in general
there is no response to act on.
The Response Assertion is the only one that can optionally process
failed requests.
> I have done this solution, that works,
>
> Add another Ifcontroler with this command,
>
> IfCOntroller -->"XPDevId_matchNr" != "0"
> IfCOntroller --> "XPDevId" != "error"
I'd be surprised if that works reliably, because the XPDevId_matchNr
field won't be cleared unless the XPath Extractor is processed.
Or maybe it is cleared to 0 elsewhere.
You can check for a successful sample with the following condition:
${JMeterThread.last_sample_ok}
As per the If Controller docs [vide 1], you can combine the
conditiions, so you should be able to use:
${JMeterThread.last_sample_ok} && ${XPDevId} != "error"
[1] http://jmeter.apache.org/usermanual/component_reference.html#If_Controller
> With this we will avoid the execution of seconf IF, it we don´t have answwer !
>
> Thanks for the help,
>
> Toni.
>
> 2012/4/14, Deepak Shetty <[email protected]>:
>> Hi
>> Like all JVM tuning questions - i cant give you a value , you can try and
>> see what works in your context
>> http://www.oracle.com/technetwork/java/hotspotfaq-138619.html tells you
>> some of the default stack size values .
>>
>> You increase it from default (for your OS) and see if it fixes the problem.
>> The con of increasing stack size is that since it is per thread , the more
>> you increase this value , the fewer the number of threads you can run (for
>> the same memory)
>>
>>>SOAP request and XPATH assestations
>> Doesnt look that way from the stack trace. It might be something to do with
>> the structure of your test exposing a jmeter bug as well.
>>
>> regards
>> deepak
>>
>> On Fri, Apr 13, 2012 at 1:20 PM, Toni Menendez Lopez
>> <[email protected]>wrote:
>>
>>> This is my JVM running :
>>>
>>> mcm 25241 25233 99 23:03 ? 00:14:29 java -server
>>> -XX:+HeapDumpOnOutOfMemoryError -Xms2g -Xmx2g -XX:NewSize=128m
>>> -XX:MaxNewSize=128m -XX:MaxTenuringThreshold=2
>>> -Dsun.rmi.dgc.client.gcInterval=600000
>>> -Dsun.rmi.dgc.server.gcInterval=600000 -XX:PermSize=64m
>>> -XX:MaxPermSize=64m -jar
>>> /opt/LoadTests/Scenarios/../../jakarta-jmeter-2.5/bin/ApacheJMeter.jar
>>> -n -Jthread_loops=-1 -Jthreads=4 -Jramp_up=4 -Jmcm_host=135.248.3.78
>>> -Jmcm_port=80 -Jthroughput=150 -Jduration=900 -JNBLoops=1 -t
>>> ../../../HADelivery.jmx
>>>
>>> So I have 2g of memory, can you tell me a good value fog Xss ?
>>>
>>> This occurrs when I shutdown a server, which means some request are
>>> not anwer any more.
>>>
>>> Complexity of the SCenario is very basic, SOAP request and XPATH
>>> assestations.
>>>
>>> Toni.
>>>
>>> 2012/4/12, Deepak Shetty <[email protected]>:
>>> > try increasing the value of -Xss for the java VM (on *nix you will also
>>> > have to increase ulimit -s)
>>> > (the other possibility for a stackoverflowerror is that you have
>>> recursive
>>> > calls somewhere so it might be a bug)
>>> >
>>> > regards
>>> > deepak
>>> >
>>> > On Thu, Apr 12, 2012 at 5:09 AM, Toni Menendez <[email protected]>
>>> wrote:
>>> >
>>> >> Hello all,
>>> >>
>>> >> I am doing some High Availability tests against 2 servers in
>>> >> loadbancing
>>> >> sending some load, and wheh I shutdown a server down, Jmeter send these
>>> >> errors in jmeter.log
>>> >>
>>> >>
>>> >> 2012/04/12 15:04:10 INFO - jmeter.threads.JMeterThread: Thread
>>> finished:
>>> >> Thread Group 1-4
>>> >> 2012/04/12 15:04:10 INFO - jmeter.engine.StandardJMeterEngine: Ending
>>> >> thread Thread Group 1-4
>>> >> 2012/04/12 15:04:10 ERROR - jmeter.threads.JMeterThread: Test failed!
>>> >> java.lang.StackOverflowError
>>> >> at java.lang.String.indexOf(String.java:1521)
>>> >> at java.lang.ClassLoader.checkName(ClassLoader.java:775)
>>> >> at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:947)
>>> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:291)
>>> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>> >> at
>>> >>
>>> org.mozilla.javascript.DefiningClassLoader.loadClass(DefiningClassLoader.java:72)
>>> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>> >> at java.lang.Class.getDeclaredConstructors0(Native Method)
>>> >> at
>>> java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>>> >> at java.lang.Class.getConstructor0(Class.java:2699)
>>> >> at java.lang.Class.newInstance0(Class.java:326)
>>> >> at java.lang.Class.newInstance(Class.java:308)
>>> >> at
>>> >>
>>> org.mozilla.javascript.optimizer.Codegen.createScriptObject(Codegen.java:83)
>>> >> at
>>> >> org.mozilla.javascript.Context.compileImpl(Context.java:2280)
>>> >> at
>>> org.mozilla.javascript.Context.compileString(Context.java:1284)
>>> >> at
>>> org.mozilla.javascript.Context.compileString(Context.java:1273)
>>> >> at
>>> >> org.mozilla.javascript.Context.evaluateString(Context.java:1129)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:110)
>>> >> at
>>> >> org.apache.jmeter.control.IfController.next(IfController.java:167)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:187)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:229)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >> at
>>> >> org.apache.jmeter.control.IfController.next(IfController.java:178)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:187)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:229)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >> at
>>> >> org.apache.jmeter.control.IfController.next(IfController.java:178)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:187)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:229)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >> at
>>> >> org.apache.jmeter.control.IfController.next(IfController.java:178)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:187)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:229)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >> at
>>> >> org.apache.jmeter.control.IfController.next(IfController.java:178)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:187)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:229)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >> at
>>> >> org.apache.jmeter.control.IfController.next(IfController.java:178)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:187)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:229)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >> at
>>> >> org.apache.jmeter.control.IfController.next(IfController.java:178)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:187)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:229)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >> at
>>> >> org.apache.jmeter.control.IfController.next(IfController.java:178)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:187)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:229)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >> at
>>> >> org.apache.jmeter.control.IfController.next(IfController.java:178)
>>> >> ...
>>> >> ...
>>> >> ...
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:187)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:229)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >> at
>>> >> org.apache.jmeter.control.IfController.next(IfController.java:178)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:187)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:229)
>>> >> at
>>> >>
>>> org.apache.jmeter.control.GenericController.reInitializeSubController(GenericController.java:230)
>>> >>
>>> >>
>>> >>
>>> >> This is the scenario !
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> Attahced is the full jmeter.log
>>> >>
>>> >> Any idea ?
>>> >>
>>> >> BR,
>>> >>
>>> >> Toni.
>>> >>
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: [email protected]
>>> >> For additional commands, e-mail: [email protected]
>>> >>
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]