Re: Should we not not have a feature to force the exit of JVM in case of The JVM should have exitted but did not.
Thanks a lot for that setting! @Sebb, in my case I really do not care why the threads did not exit (I am using a custom 3rd party sampler that clearly does not exit while waiting for TCP sockets to close and jMeter does show this) so the new jmeterengine.force.system.exit setting is perfect for me. On Wed, Apr 2, 2014 at 11:40 PM, sebb seb...@gmail.com wrote: On 2 April 2014 17:37, Jean FX xor...@gmail.com wrote: When the bellow happens in server mode, jmeter does not exit. Is this not a bug? No, it's not a bug in JMeter; it's not generally good practice to exit an application untill all non-daemon threads have completed. It may be a bug in the test or perhaps in the JVM. Ideally you need to find out why some threads have failed to complete. See also the reply regarding the property jmeterengine.force.system.exit. This will cause JMeter to ignore the unfinished threads. [jmeter] Starting the test @ Wed Apr 02 18:24:11 SAST 2014 (1396455851107) [jmeter] Waiting for possible shutdown message on port 4445 [jmeter] Tidying up ...@ Wed Apr 02 18:32:53 SAST 2014 (1396456373022) [jmeter] ... end of run [jmeter] The JVM should have exitted but did not. [jmeter] The following non-daemon threads are still running (DestroyJavaVM is OK) - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Should we not not have a feature to force the exit of JVM in case of The JVM should have exitted but did not.
We could open an issue with the custom sampler's author. But in the context of a test, I believe it is a bit extreme to hang because a thread did not exit: at least it should exit and fail the test plan cases affected by a sampler(s) not closing (their) threads, so that there is a result to investigate. On Thu, Apr 3, 2014 at 2:54 PM, sebb seb...@gmail.com wrote: On 3 April 2014 09:43, Jean FX xor...@gmail.com wrote: Thanks a lot for that setting! @Sebb, in my case I really do not care why the threads did not exit (I am using a custom 3rd party sampler that clearly does not exit while waiting for TCP sockets to close and jMeter does show this) so the new jmeterengine.force.system.exit setting is perfect for me. Perhaps raise a bug with the sampler supplier? On Wed, Apr 2, 2014 at 11:40 PM, sebb seb...@gmail.com wrote: On 2 April 2014 17:37, Jean FX xor...@gmail.com wrote: When the bellow happens in server mode, jmeter does not exit. Is this not a bug? No, it's not a bug in JMeter; it's not generally good practice to exit an application untill all non-daemon threads have completed. It may be a bug in the test or perhaps in the JVM. Ideally you need to find out why some threads have failed to complete. See also the reply regarding the property jmeterengine.force.system.exit. This will cause JMeter to ignore the unfinished threads. [jmeter] Starting the test @ Wed Apr 02 18:24:11 SAST 2014 (1396455851107) [jmeter] Waiting for possible shutdown message on port 4445 [jmeter] Tidying up ...@ Wed Apr 02 18:32:53 SAST 2014 (1396456373022) [jmeter] ... end of run [jmeter] The JVM should have exitted but did not. [jmeter] The following non-daemon threads are still running (DestroyJavaVM is OK) - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Should we not not have a feature to force the exit of JVM in case of The JVM should have exitted but did not.
When the bellow happens in server mode, jmeter does not exit. Is this not a bug? [jmeter] Starting the test @ Wed Apr 02 18:24:11 SAST 2014 (1396455851107) [jmeter] Waiting for possible shutdown message on port 4445 [jmeter] Tidying up ...@ Wed Apr 02 18:32:53 SAST 2014 (1396456373022) [jmeter] ... end of run [jmeter] The JVM should have exitted but did not. [jmeter] The following non-daemon threads are still running (DestroyJavaVM is OK)
Re: Maximum recommended number of ThreadGroups?
Hello, Thanks for the reply. The View Results Tree listener allows me to generate automated functional test results when each functional test is within a test result, because I am able to save the thread name in the results file. I could not identify a result listener that saves the name of the controller within which a sampler is located with the sampler results. Jean On Fri, Oct 4, 2013 at 10:56 AM, bobMeliev b.mel...@gmail.com wrote: Well, seems it will be hard for you to maintain and change Thread properties. If you want group functional tests why don't you use Simple Controller? -- View this message in context: http://jmeter.512774.n5.nabble.com/Maximum-recommended-number-of-ThreadGroups-tp5718307p5718331.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Maximum recommended number of ThreadGroups?
I meant The View Results Tree listener allows me to generate automated functional test results when each functional test is within a ThreadGroup result, because I am able to save the thread group's name in the results file. On Fri, Oct 4, 2013 at 11:56 AM, Jean FX xor...@gmail.com wrote: Hello, Thanks for the reply. The View Results Tree listener allows me to generate automated functional test results when each functional test is within a test result, because I am able to save the thread name in the results file. I could not identify a result listener that saves the name of the controller within which a sampler is located with the sampler results. Jean On Fri, Oct 4, 2013 at 10:56 AM, bobMeliev b.mel...@gmail.com wrote: Well, seems it will be hard for you to maintain and change Thread properties. If you want group functional tests why don't you use Simple Controller? -- View this message in context: http://jmeter.512774.n5.nabble.com/Maximum-recommended-number-of-ThreadGroups-tp5718307p5718331.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Maximum recommended number of ThreadGroups?
Hello, I am using jmeter for functional testing and putting each functional test in a separate threadgroup. My testplan is growing big and I am wondering if it is reasonable to have say 200 threadgroups or 1000 threadgroups in a single test plan? Thanks in advance, Jean
Re: Is it possible to restrict the CSV Data config element to a specific Sampler or even Logic Controller?
Yes! If I nest an if controller inside the while controller with the same condition and put all the samplers to run repeatedly on the CSV Data file as children of the if controller, it works perfectly. Thanks a lot Deepak! Kind Regards, Jean On Wed, Aug 22, 2012 at 4:43 PM, Deepak Shetty shet...@gmail.com wrote: Ah I forgot about that add an if controller under the while with the same condition On Aug 22, 2012 7:27 AM, Jean FX xor...@gmail.com wrote: Hello Deepak, Many thanks! This works almost perfectly as required. But I have to set CSV Data config (Stop thread on EOF=false) and then I get an extra run with every value =EOF(which fails as expected) before step 3 is run. But at least I get to fully run my test plan except that I have to ignore that one line of failure. If set CSV Data config (Stop thread on EOF=true), step 3 does not run. There is an edit value for Stop thread on EOF that I need to explore though. Jean On Tue, Aug 21, 2012 at 5:47 PM, Deepak Shetty shet...@gmail.com wrote: +Step1 +WhileController(${__javaScript(${anyvariablenamefromcsv} != EOF)} ++Step2 ++CSV Data Set config (recycle on EOF= false) +Step3 doesnt work for you? Again when you want multiple threads you may need to change this regards deepak On Tue, Aug 21, 2012 at 12:57 AM, Jean FX xor...@gmail.com wrote: Hello. Yes the idea is to process every row in the CSV. I am only using a while loop because it is necessary (I believe) to restrict the CSV Data config element to the XML-RPC Sampler in step2. On Fri, Aug 17, 2012 at 6:03 PM, Deepak Shetty shet...@gmail.com wrote: hi Im still having trouble understanding what your issue is a. Step1 is fine and you are retrieving a value called rCode. b. Step 2 has a while controller which has no condition -- what is the condition for your loop? Process every row in the CSV? Yes execute it for rCode iterations? No. This is a proof of concept. In real implementation I am retrieving the value of a different element . The sampler under the while loop is also extracting out rCode - is that correct? Yes but I could remove this: I only need to assert that it is 0 in every response. where is this rCode being used? It is a proof of concept. In real test I would need to use the extracted value in a subsequent XML-RPC Sampler within the same loop. But in order to simply the problem I removed that step. c. Step 3 is fine regards deepak On Thu, Aug 16, 2012 at 1:33 AM, Jean FX xor...@gmail.com wrote: Hello Deepak. The original plan is not exactly what I uploaded because of it contained real information, so it is not have step 1. I have done a better mock test plan with all the steps here: http://pastebin.com/g7J4KiHF. I have given further clarifications inline. On Wed, Aug 15, 2012 at 8:27 PM, Deepak Shetty shet...@gmail.com wrote: Hi i dont see your test case reflecting your original requirement 1- Send a constant XML-RPC request to a server and grab a value from the result(doing this with Xpath Extractor). 2- Then send a variable number of XML-RPC requests with values coming from a csv file(Trying to use a CSV Data config for this) 3- Finally, send another last XML-RPC request only once. How is step 2 being determined? A variable is set in step 1 that is used for every line in step 2. Is only the number varying? In this mock test yes there is only one variable used but in real test there are multiple values per csv line. If you have multiple threads do they read the same data , different data ? This test is functional and will use a single thread. It might be necessary to run a multi thread stress test at a later stage but I could potentially use different instances for this. Do you have to read specific rows? No. For step 2, rows are equal and independent and could potentially run in a different order. regards deepak On Wed, Aug 15, 2012 at 9:21 AM, Jean FX xor...@gmail.com wrote: Thanks a lot for your reply! Will try to understand the functions to see if I can implement with functions. I want to avoid implementing a custom Sampler if possible. I have tried making the CSV Data sampler a child of a while logic controller together with the Sampler to be repeated but it still tries to use the data to repeat
Re: Is it possible to restrict the CSV Data config element to a specific Sampler or even Logic Controller?
Hello Deepak, Many thanks! This works almost perfectly as required. But I have to set CSV Data config (Stop thread on EOF=false) and then I get an extra run with every value =EOF(which fails as expected) before step 3 is run. But at least I get to fully run my test plan except that I have to ignore that one line of failure. If set CSV Data config (Stop thread on EOF=true), step 3 does not run. There is an edit value for Stop thread on EOF that I need to explore though. Jean On Tue, Aug 21, 2012 at 5:47 PM, Deepak Shetty shet...@gmail.com wrote: +Step1 +WhileController(${__javaScript(${anyvariablenamefromcsv} != EOF)} ++Step2 ++CSV Data Set config (recycle on EOF= false) +Step3 doesnt work for you? Again when you want multiple threads you may need to change this regards deepak On Tue, Aug 21, 2012 at 12:57 AM, Jean FX xor...@gmail.com wrote: Hello. Yes the idea is to process every row in the CSV. I am only using a while loop because it is necessary (I believe) to restrict the CSV Data config element to the XML-RPC Sampler in step2. On Fri, Aug 17, 2012 at 6:03 PM, Deepak Shetty shet...@gmail.com wrote: hi Im still having trouble understanding what your issue is a. Step1 is fine and you are retrieving a value called rCode. b. Step 2 has a while controller which has no condition -- what is the condition for your loop? Process every row in the CSV? Yes execute it for rCode iterations? No. This is a proof of concept. In real implementation I am retrieving the value of a different element . The sampler under the while loop is also extracting out rCode - is that correct? Yes but I could remove this: I only need to assert that it is 0 in every response. where is this rCode being used? It is a proof of concept. In real test I would need to use the extracted value in a subsequent XML-RPC Sampler within the same loop. But in order to simply the problem I removed that step. c. Step 3 is fine regards deepak On Thu, Aug 16, 2012 at 1:33 AM, Jean FX xor...@gmail.com wrote: Hello Deepak. The original plan is not exactly what I uploaded because of it contained real information, so it is not have step 1. I have done a better mock test plan with all the steps here: http://pastebin.com/g7J4KiHF. I have given further clarifications inline. On Wed, Aug 15, 2012 at 8:27 PM, Deepak Shetty shet...@gmail.com wrote: Hi i dont see your test case reflecting your original requirement 1- Send a constant XML-RPC request to a server and grab a value from the result(doing this with Xpath Extractor). 2- Then send a variable number of XML-RPC requests with values coming from a csv file(Trying to use a CSV Data config for this) 3- Finally, send another last XML-RPC request only once. How is step 2 being determined? A variable is set in step 1 that is used for every line in step 2. Is only the number varying? In this mock test yes there is only one variable used but in real test there are multiple values per csv line. If you have multiple threads do they read the same data , different data ? This test is functional and will use a single thread. It might be necessary to run a multi thread stress test at a later stage but I could potentially use different instances for this. Do you have to read specific rows? No. For step 2, rows are equal and independent and could potentially run in a different order. regards deepak On Wed, Aug 15, 2012 at 9:21 AM, Jean FX xor...@gmail.com wrote: Thanks a lot for your reply! Will try to understand the functions to see if I can implement with functions. I want to avoid implementing a custom Sampler if possible. I have tried making the CSV Data sampler a child of a while logic controller together with the Sampler to be repeated but it still tries to use the data to repeat the Sampler that follows the While controller in the testplan, which should only run once. I have pasted my Test Plan here : http://pastebin.com/0P7bCVTP Kind Regards, Jean On Wed, Aug 15, 2012 at 5:52 PM, Deepak Shetty shet...@gmail.com wrote: Hi I dont remember the scoping rules now (but I believe the CSV config had to be a child of a while controller or equivalent to do what you want - but my memory has always been poor :) ) In any case it looks like the csvread or stringfromfile functions would work for you http://jmeter.apache.org/usermanual/functions.html P.S. if you attached your test script it didnt come
Re: Is it possible to restrict the CSV Data config element to a specific Sampler or even Logic Controller?
Hello. Yes the idea is to process every row in the CSV. I am only using a while loop because it is necessary (I believe) to restrict the CSV Data config element to the XML-RPC Sampler in step2. On Fri, Aug 17, 2012 at 6:03 PM, Deepak Shetty shet...@gmail.com wrote: hi Im still having trouble understanding what your issue is a. Step1 is fine and you are retrieving a value called rCode. b. Step 2 has a while controller which has no condition -- what is the condition for your loop? Process every row in the CSV? Yes execute it for rCode iterations? No. This is a proof of concept. In real implementation I am retrieving the value of a different element . The sampler under the while loop is also extracting out rCode - is that correct? Yes but I could remove this: I only need to assert that it is 0 in every response. where is this rCode being used? It is a proof of concept. In real test I would need to use the extracted value in a subsequent XML-RPC Sampler within the same loop. But in order to simply the problem I removed that step. c. Step 3 is fine regards deepak On Thu, Aug 16, 2012 at 1:33 AM, Jean FX xor...@gmail.com wrote: Hello Deepak. The original plan is not exactly what I uploaded because of it contained real information, so it is not have step 1. I have done a better mock test plan with all the steps here: http://pastebin.com/g7J4KiHF. I have given further clarifications inline. On Wed, Aug 15, 2012 at 8:27 PM, Deepak Shetty shet...@gmail.com wrote: Hi i dont see your test case reflecting your original requirement 1- Send a constant XML-RPC request to a server and grab a value from the result(doing this with Xpath Extractor). 2- Then send a variable number of XML-RPC requests with values coming from a csv file(Trying to use a CSV Data config for this) 3- Finally, send another last XML-RPC request only once. How is step 2 being determined? A variable is set in step 1 that is used for every line in step 2. Is only the number varying? In this mock test yes there is only one variable used but in real test there are multiple values per csv line. If you have multiple threads do they read the same data , different data ? This test is functional and will use a single thread. It might be necessary to run a multi thread stress test at a later stage but I could potentially use different instances for this. Do you have to read specific rows? No. For step 2, rows are equal and independent and could potentially run in a different order. regards deepak On Wed, Aug 15, 2012 at 9:21 AM, Jean FX xor...@gmail.com wrote: Thanks a lot for your reply! Will try to understand the functions to see if I can implement with functions. I want to avoid implementing a custom Sampler if possible. I have tried making the CSV Data sampler a child of a while logic controller together with the Sampler to be repeated but it still tries to use the data to repeat the Sampler that follows the While controller in the testplan, which should only run once. I have pasted my Test Plan here : http://pastebin.com/0P7bCVTP Kind Regards, Jean On Wed, Aug 15, 2012 at 5:52 PM, Deepak Shetty shet...@gmail.com wrote: Hi I dont remember the scoping rules now (but I believe the CSV config had to be a child of a while controller or equivalent to do what you want - but my memory has always been poor :) ) In any case it looks like the csvread or stringfromfile functions would work for you http://jmeter.apache.org/usermanual/functions.html P.S. if you attached your test script it didnt come to the mailing list - you should upload the script and provide a link to it. regards deepak On Wed, Aug 15, 2012 at 12:03 AM, Jean FX xor...@gmail.com wrote: Hello Shaba. I had tried putting the CSV Data config element in both a Logic Controller and a Sampler. In both case jMeter did not respect this. It repeated execution for every line in the csv file even beyond the Logic Controller(see my test plan bellow). Your site does not address this topic. On Tue, Aug 14, 2012 at 3:17 PM, Shaba K shabazi...@gmail.com wrote: Yes we can include CSV data config as a child to that sampler. Here's a little write up about JMeter hope it helps. http://automationwithselenium.blogspot.co.uk/2012/01/jmeter-proxy.html cheers, s On Tue, Aug 14, 2012 at 12:50 PM, Jean FX xor...@gmail.com wrote: Hello, I am a really new user of jMeter. Trying to implement a set of functional tests in one single test plan. In this plan, I need
Re: Is it possible to restrict the CSV Data config element to a specific Sampler or even Logic Controller?
Hello Deepak. The original plan is not exactly what I uploaded because of it contained real information, so it is not have step 1. I have done a better mock test plan with all the steps here: http://pastebin.com/g7J4KiHF. I have given further clarifications inline. On Wed, Aug 15, 2012 at 8:27 PM, Deepak Shetty shet...@gmail.com wrote: Hi i dont see your test case reflecting your original requirement 1- Send a constant XML-RPC request to a server and grab a value from the result(doing this with Xpath Extractor). 2- Then send a variable number of XML-RPC requests with values coming from a csv file(Trying to use a CSV Data config for this) 3- Finally, send another last XML-RPC request only once. How is step 2 being determined? A variable is set in step 1 that is used for every line in step 2. Is only the number varying? In this mock test yes there is only one variable used but in real test there are multiple values per csv line. If you have multiple threads do they read the same data , different data ? This test is functional and will use a single thread. It might be necessary to run a multi thread stress test at a later stage but I could potentially use different instances for this. Do you have to read specific rows? No. For step 2, rows are equal and independent and could potentially run in a different order. regards deepak On Wed, Aug 15, 2012 at 9:21 AM, Jean FX xor...@gmail.com wrote: Thanks a lot for your reply! Will try to understand the functions to see if I can implement with functions. I want to avoid implementing a custom Sampler if possible. I have tried making the CSV Data sampler a child of a while logic controller together with the Sampler to be repeated but it still tries to use the data to repeat the Sampler that follows the While controller in the testplan, which should only run once. I have pasted my Test Plan here : http://pastebin.com/0P7bCVTP Kind Regards, Jean On Wed, Aug 15, 2012 at 5:52 PM, Deepak Shetty shet...@gmail.com wrote: Hi I dont remember the scoping rules now (but I believe the CSV config had to be a child of a while controller or equivalent to do what you want - but my memory has always been poor :) ) In any case it looks like the csvread or stringfromfile functions would work for you http://jmeter.apache.org/usermanual/functions.html P.S. if you attached your test script it didnt come to the mailing list - you should upload the script and provide a link to it. regards deepak On Wed, Aug 15, 2012 at 12:03 AM, Jean FX xor...@gmail.com wrote: Hello Shaba. I had tried putting the CSV Data config element in both a Logic Controller and a Sampler. In both case jMeter did not respect this. It repeated execution for every line in the csv file even beyond the Logic Controller(see my test plan bellow). Your site does not address this topic. On Tue, Aug 14, 2012 at 3:17 PM, Shaba K shabazi...@gmail.com wrote: Yes we can include CSV data config as a child to that sampler. Here's a little write up about JMeter hope it helps. http://automationwithselenium.blogspot.co.uk/2012/01/jmeter-proxy.html cheers, s On Tue, Aug 14, 2012 at 12:50 PM, Jean FX xor...@gmail.com wrote: Hello, I am a really new user of jMeter. Trying to implement a set of functional tests in one single test plan. In this plan, I need to : 1- Send a constant XML-RPC request to a server and grab a value from the result(doing this with Xpath Extractor). 2- Then send a variable number of XML-RPC requests with values coming from a csv file(Trying to use a CSV Data config for this) 3- Finally, send another last XML-RPC request only once. It all works as expected (almost) but the last XML-RPC request is repeated for every line in the CSV Data config file. Is it possible to restrict the CSV Data config element to a specific Sampler or even Logic Controller? Thanks in advance, Jean Bellow My current test plan: ?xml version=1.0 encoding=UTF-8? jmeterTestPlan version=1.2 properties=2.3 hashTree TestPlan guiclass=TestPlanGui testclass=TestPlan testname=ATPZero enabled=true stringProp name=TestPlan.comments/stringProp boolProp name=TestPlan.functional_modetrue/boolProp boolProp name=TestPlan.serialize_threadgroupsfalse/boolProp elementProp name=TestPlan.user_defined_variables elementType=Arguments guiclass=ArgumentsPanel testclass=Arguments testname=User Defined Variables enabled=true collectionProp name=Arguments.arguments elementProp name=MSISDN elementType=Argument stringProp