Re: generate variable from file
On 27 October 2011 21:58, Tonimenen tonime...@gmail.com wrote: Sebb, Have you been able to see why _StringFromFile misses the first input of the file ? Am I doing anything wrong in my jmx ? No, because I don't know what your JMX looks like. Don't send it to the list; upload it somewhere public and post the URL. Thanks in advance, Toni Enviado desde mi iPad El 25/10/2011, a las 20:28, Toni Menendez Lopez tonime...@gmail.com escribió: Sebb, I don´t know why when I read the url from my file, I am not able to start reading from the 1st line in the file. It is like __StringFromFile always read one line at the stat of the the Jmeter Scenario and after loose my 1st line in the file. Look I send you jmx of jmeter 2.5. My file is : /mcm_portal/decorations/portlet/NoSkin/css/styles.css /mcm_portal/decorations/layout/pcBookPortal/html/css/PcBookPortalStyle.css1 /mcm_portal/decorations/layout/pcBookPortal/html/css/PcBookPortalStyle.css2 /mcm_portal/decorations/layout/pcBookPortal/html/css/PcBookPortalStyle.css3 But my 1st request is always : /mcm_portal/decorations/layout/pcBookPortal/html/css/PcBookPortalStyle.css1 And not the 1st line in the file, I will do a trick adding a fake line in my file, but I think there is something wrong in the execution of __StringFromFile Regrads, Toni. 2011/10/25 Toni Menendez Lopez tonime...@gmail.com Solved with __StringFromFile(). Now I need to do the same for a long number of files and inputs in a file. I don´t know if reading from file each request can download dramatically the performance of Jmeter, this is why I want to load all values in memory. For each request I am going to read the URL from a file. Toni. 2011/10/25 sebb seb...@gmail.com On 25 October 2011 11:43, Toni Menendez Lopez tonime...@gmail.com wrote: The thing is that I want to execute a loop in the same thread with all values inside this file ( same as if I have done a regex ), with CSV Data Set Config the varaible it is not modified until I restart a new thread. So why mention file I/O as being the problem? That is a completely different matter. This is my scenario -ThreadGroup -While not end of file -- request with url inside the file I tried CSV Data Set Config and all requests inside the WHILE are the same, and only modifyied when the next thread is restarted. Where did you place the CSV Data Set? You can use the __StringFromFile() function if you don't require the data to be in memory. Toni. 2011/10/25 sebb seb...@gmail.com On 25 October 2011 10:55, Toni Menendez Lopez tonime...@gmail.com wrote: Hello all, I send this just to know if someone has done something similar to the next, I have 3 files with 20 inputs, and these inputs are used in my jmeter Scenario, and in order to avoid I/O with high Load I want to save all input in a variable in memory to use later in a foreach. Are you sure you need to load the files into memory? Have you tried using CSV Data Set Config? Do you know how to generate a on memory variable based in a File ( similar to variables generated with regex extractors ? ) The function http://jakarta.apache.org/jmeter/usermanual/functions.html#__CSVRead reads the file into memory. Thanks, Toni. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org Star-Up.jmx Loop.png counter.png HTTPRequest.png StringFromFile.png - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Server start loopback address issue
On 27 October 2011 23:47, Venkatesh Tatineni vtatin...@beachbody.com wrote: Hi, I installed jmeter 2.5.1 . Installed JDK 1.6.0_29-b11 Tried to start the server like so nohup /home/vtatineni/jdk1.6.0_29/bin/java -server -XX:+HeapDumpOnOutOfMemoryError -Xms1024m -Xmx2024m -XX:NewSize=128m -XX:MaxNewSize=128m -XX:MaxTenuringThreshold=2 -Dsun.rmi.dgc.client.gcInterval=60 -Dsun.rmi.dgc.server.gcInterval=60 -XX:PermSize=64m -XX:MaxPermSize=64m -jar /home/vtatineni/jakarta-jmeter-2.5.1/bin/ApacheJMeter.jar -s Created remote object: UnicastServerRef [liveRef: [endpoint:[127.0.0.1:60212](local),objID:[40660ba0:1334778af36:-7fff, 5894612006190957525]]] Server failed to start: java.rmi.RemoteException: Cannot start. xyz.acme.com is a loopback address. An error occurred: Cannot start. xyz.acme.com is a loopback address. What does /etc/hosts show? Make sure that the local host address is not a loopback address. Now I understand there was a bug in the earlier versions and that was supposed to have been fixed in version 2.5.1 concerning loopback address check. Can someone shed light on this please? Tried to search the archives to find hits on this, but the atom feed does not seem to support searches? Thank You Venkatesh. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: generate variable from file
On 25 October 2011 10:55, Toni Menendez Lopez tonime...@gmail.com wrote: Hello all, I send this just to know if someone has done something similar to the next, I have 3 files with 20 inputs, and these inputs are used in my jmeter Scenario, and in order to avoid I/O with high Load I want to save all input in a variable in memory to use later in a foreach. Are you sure you need to load the files into memory? Have you tried using CSV Data Set Config? Do you know how to generate a on memory variable based in a File ( similar to variables generated with regex extractors ? ) The function http://jakarta.apache.org/jmeter/usermanual/functions.html#__CSVRead reads the file into memory. Thanks, Toni. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: generate variable from file
On 25 October 2011 11:43, Toni Menendez Lopez tonime...@gmail.com wrote: The thing is that I want to execute a loop in the same thread with all values inside this file ( same as if I have done a regex ), with CSV Data Set Config the varaible it is not modified until I restart a new thread. So why mention file I/O as being the problem? That is a completely different matter. This is my scenario -ThreadGroup -While not end of file -- request with url inside the file I tried CSV Data Set Config and all requests inside the WHILE are the same, and only modifyied when the next thread is restarted. Where did you place the CSV Data Set? You can use the __StringFromFile() function if you don't require the data to be in memory. Toni. 2011/10/25 sebb seb...@gmail.com On 25 October 2011 10:55, Toni Menendez Lopez tonime...@gmail.com wrote: Hello all, I send this just to know if someone has done something similar to the next, I have 3 files with 20 inputs, and these inputs are used in my jmeter Scenario, and in order to avoid I/O with high Load I want to save all input in a variable in memory to use later in a foreach. Are you sure you need to load the files into memory? Have you tried using CSV Data Set Config? Do you know how to generate a on memory variable based in a File ( similar to variables generated with regex extractors ? ) The function http://jakarta.apache.org/jmeter/usermanual/functions.html#__CSVRead reads the file into memory. Thanks, Toni. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Unexpected Page returned
On 25 October 2011 16:30, brock brockmo...@gmail.com wrote: Thanks! Got it pulling the HTML Title to use for the If controller, but if I look at the Debug Sampler I see a few version of the variable I defined in the RegEx Extractor: PageTitle is the reference name in the RegEx Extractor. Info from the Debug Sampler: PageTitle=Verify Login Note, no tags ... PageTitle_g=1 PageTitle_g0=TITLEVerify Login /TITLE PageTitle_g1=Verify Login My if controller is: ${PageTitle} == TITLEVerify Login /TITLE See above - PageTitle does not include the tags. But it never goes into the If controller. Tried escaping the but it still didn't work. What do I have wrong? lol Wrong compare. Oh and I now see what you mean by it getting messy, not sure this is going to even work, structure wise. -- View this message in context: http://jmeter.512774.n5.nabble.com/Unexpected-Page-returned-tp4873275p4936662.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Discussion on ${__P(InstanceID)}
On 24 October 2011 11:11, vikash vikash.chi...@gmail.com wrote: Hi All, I am having two JMeterEngines. I am using command login${__P(InstanceID)}.csv I am having login1.csv file on one server login1.csv, login2.csv file in server 2. Clicked on Remote Start All for both JMeterEngines, its only read login1.csv What makes you think instanceID will somehow be set? The __P() function returns 1 if the property is not found. However, given that CSV files are opened locally by the server, you don't need different names for each server, just different contents. Thanks, Vikash Ranjan -- View this message in context: http://jmeter.512774.n5.nabble.com/Discussion-on-P-InstanceID-tp4931967p4931967.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: nested exception related to socket connections
On 24 October 2011 05:51, shankykurella shankarkurella...@gmail.com wrote: hey sebb ... server and the master system are on the same network... i can able to execute distributed testing from master to a particular slave system but not able to execute the same test plan from another slave system as said earlier these two systems are on the same network the system which is successfully running test plan dont have any kind of php or tomcat installed... where as the system which is failing to execute is installed with php tomcat.. will that be a problem??? Very unlikely. I suggest you create a very simple test plan containing just a single Java sampler. Try that on both systems and compare the jmeter lgo outputs to see what is different. Please re-read all my previous replies as well, for example have you read: http://jakarta.apache.org/jmeter/usermanual/remote-test.html It's very difficult to help someone who does not provide the requested information. -- View this message in context: http://jmeter.512774.n5.nabble.com/nested-exception-related-to-socket-connections-tp4905125p4931286.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Discussion on ${__P(InstanceID)}
On 24 October 2011 11:56, Felix Frank f...@mpexnet.de wrote: Hi, On 10/24/2011 12:54 PM, sebb wrote: Hi All, I am having two JMeterEngines. I am using command login${__P(InstanceID)}.csv I am having login1.csv file on one server login1.csv, login2.csv file in server 2. Clicked on Remote Start All for both JMeterEngines, its only read login1.csv What makes you think instanceID will somehow be set? I believe he's refering to this: http://www.cloud-intelligence.com/term/how-setup-different-csv-file-each-jmeterengine I see, thanks. So their service provides the instanceID property when starting JMeter. Vikash: Are you in fact using Jmeter in the Cloud? If, so, then the place to ask for help is http://www.cloud-intelligence.com/contact Cheers, Felix - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Remote testing problem - Works for one testplan does not work for the second
On 21 October 2011 13:32, sasidharsmit sasidhars...@gmail.com wrote: Thank you, Sebb. I managed to locate the problem area. I identified the samplers and non-sampler elements used in my test plans Plan1 and Plan2. Details below: http://jmeter.512774.n5.nabble.com/file/n4924571/sampler_details.png As you had suggested, I tried to execute test plans remotely, with different samplers. The following were the samplers I tried. a) Webservice (SOAP) request b) HTTP request c) dummy sampler d) jp@gc - http raw request In each of the first 3 cases, remote execution was successful. No exceptions were thrown. But, when I tried to execute a testplan that uses the sampler jp@gc - http raw request, I face the NotSerializableException. So, I believe, the problem is with the sampler jp@gc - http raw request. OK, well done. This was not one of the default samplers available with JMeter 2.4. This is a custom plugin, I downloaded from the below site: http://code.google.com/p/jmeter-plugins/ I had to use jp@gc - http raw request sampler instead of the default HTTP Request sampler, because my requests to the servers are JSON strings of varying length (generated by the beanshell preprocessor) and I could not use HTTP Request for this. You probably can use Http request, but it might be tricky. Is there any way to resolve the issue with jp@gc - http raw request Contact the provider to get them to fix the bug. sampler or any workarounds to get this working? Don't use client-server mode; batch mode is anyway more efficient. We are working on a Raw option for the Http Sampler, which will be in the next release of JMeter. Thanks and Regards, Sasidhar Sekar -- View this message in context: http://jmeter.512774.n5.nabble.com/Remote-testing-problem-Works-for-one-testplan-does-not-work-for-the-second-tp4921259p4924571.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Iterate over files
On 21 October 2011 14:38, Morten Kristiansen mor...@tracetracker.com wrote: Hi, I want to create a JMeter test that executes a HTTP Request POST with a file attached to it. So far so good (I know how to do that). But my files are in a directory and I don't know the filenames or how many files. So what I need is to prior to the HTTP Request, look into a given directory and get a list of all files in that directory. Then I want to loop over these files and execute a HTTP Request for each of them. I have googled for 2 hours and can't find a single example on how to acheive this. Can anyone help? Not possible without writing some code. I'd suggest looking at the CSV Dataset config element http://jakarta.apache.org/jmeter/usermanual/component_reference.html#CSV_Data_Set_Config which can read a file of text and store it in variables. All you need to do is use a directory listing program to create the file of names, then run JMeter. Thanks, Morten - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Constant Throughput Timer vs Throughput Shaping Timer (JMeter plugin)?
On 21 October 2011 15:56, Adrian Speteanu asp.ad...@gmail.com wrote: The BS Server was a nice addition. If the Throughput timer is shared by all threads can you still change its value dynamically? Yes, as the page says, you can use the server to set a property (which is global to JMeter) and then reference the property in th CTT. The BSH server runs in its own thread - not sure it's possible to set JMeter variables (which are local to a thread). Regards, Adrian S On Fri, Oct 21, 2011 at 2:42 AM, sebb seb...@gmail.com wrote: On 21 October 2011 00:40, sebb seb...@gmail.com wrote: On 21 October 2011 00:36, David Luu manga...@gmail.com wrote: Thanks, the beanshell server looks useful for what I'd want. That's very flexible but it would be simpler if the variable were set in the test plan itself. e.g. if you wanted to ramp up gradually, you could use a counter with a suitable increment to define the throughput variable. I meant to add: for experimental purposes, I suggest using a test plan with some Java samplers; you can then test without annoying the neighbours ;-). On Thu, Oct 20, 2011 at 10:43 AM, sebb seb...@gmail.com wrote: On 20 October 2011 18:14, Adrian Speteanu asp.ad...@gmail.com wrote: Hey David, I've used both. Its not much to compare :). If you understand the Constant Throughput Timer, then you understand both and it's easy to see that its major limitation is that it holds (if possible) the throughput constant at the value you define (which was the intent). However if you want to easily create a more complex test scenario like: The constant can also be varied. If the constant is expressed as a variable or function reference, that allows the throughput to be varied at will. See for example: http://jakarta.apache.org/jmeter/usermanual/best-practices.html#beanshell_server 1. run a test with throughput 100 for 2 min 2. continue for 2 more minutes with throughput 200 3. continue for 2 more minutes with throughput 500 to see how the application responds to these changes in the load received, without the plugin you had to use more thread groups and configure the scheduling so you get the same effect. The plugin makes these use cases simple and more easy to understand. You can make things a lot more complicated than that if you'd like using both methods and a lot of imagination. On Tue, Oct 11, 2011 at 5:19 AM, David Luu manga...@gmail.com wrote: I was wondering if anybody has used both, and wonder how they compare. Pros/cons of each. And how one could best simulate the Throughput Shaping Timer with the constant throughput timer via variable/property that defines the throughput and changing it during test run. Particularly how would you implement the changing of the throughput variable and where to place in test plan. FYI, I'm refering to this JMeter plugin: http://code.google.com/p/jmeter-plugins/wiki/ThroughputShapingTimer - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: New to JMeter
On 21 October 2011 16:36, CHARLES BAKER chba...@clemson.edu wrote: Hello to the JMeter users. Firstly does anyone hang out in #jmeter on irc.freenode.net? I joined, but I only see two others there and they are so far unresponsive. Secondly, I've been out of the web development and testing game for quite a long time now, but started a new job and guess what my first task is? You got it, load testing database driven web applications. I've read through the JMeter User's Manual and understand that ...JMeter does not execute Javascript found in HTML pages. But I'm not quite grasping the implications of this, particularly when testing a Javascript heavy web application like BlackBoard. I used the HTTP Proxy to record a session in blackboard as a test. When I run the test it appears that the recorded actions are working, I see rc=200 in the results and no rc=500, rc=404 or similar return codes and only the occasional rc=302. Given that and the non-execution of Javascript constraint, how likely is it that my test is actually doing what I think it is, i.e. selecting radio buttons and going to the next page, etc.? Add a Tree View Listener to see what the responses are. Use Assertions to check that responses are OK. Check the server logs ... If there is some other manual which I should go and apply RTFM to, feel free to point me to it and tell me to RTFM. Thanks. -- Charles H. Baker, Systems Programmer II CCIT/CSO Don't see me in my cubicle? Try AIM: rascharles GTalk: chba...@g.clemson.edu chba...@clemson.edu | o: 864.656.8069 | gv: 864.990.1297 Freedom of choice is more to be treasured than any possession earth can give. David O. McKay - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Remote testing problem - Works for one testplan does not work for the second
On 20 October 2011 13:15, sasidharsmit sasidhars...@gmail.com wrote: Dear All, I've been using JMeter for sometime now, to execute my load tests. It has been working well for me. But, recently when I had to test a new application, I faced a problem. Please find below my test environment specification and problem description. *Test environment:* Testplan development environment - Windows 7 32-bit Testplan execution environment - Redhat enterprise linux JMeter version - Version 2.4 r961953 java.version - 1.6.0_10 Test execution servers - Server1;Server2 Testplan names - Plan1.jmx;Plan2.jmx *Problem description:* 1. Plan1 is a test plan I've been using in the past to do testing. 2. Server1 is used to initiate the test i.e. it is the client in client-server mode. 3. Server2 is where the actual test runs (remotely) 4. I key in the below commands in Server1, to get the jmeter-server started [Server1]$ /./jmeter-server/ [Server1]$ /Created remote object: UnicastServerRef [liveRef: [endpoint:[Server1:45143](local),objID:[589e87a1:13320f5764d:-7fff, 2996288215291058752]]]/ Why? I thought you said the plan is run on Server2. 5. I key in the below commands in Server2, to get the jmeter-server started [Server2]$ /./jmeter-server/ [Server2]$ /Created remote object: UnicastServerRef [liveRef: [endpoint:[Server2:34288](local),objID:[-20f5670c:13320be5c62:-7fff, 2518394132361662963]]]/ OK. 5. Now, I key in the below command in Server1, to start the test [Server1]$ /./jmeter -n -R Server2 -t Plan1.jmx -l smoke_result_log.jtl -j smoke_output.log / OK. 6. I get the following message in Server1 [Server1]$ /./jmeter -n -R Server2 -t Plan1.jmx -l result_log.jtl -j output.log / /[2] 5668/ [Server1]$ /Created the tree successfully using Plan1.jmx Configuring remote engine for Server2 Using remote object: UnicastRef [liveRef: [endpoint:[Server2:34288](remote),objID:[-20f5670c:13320be5c62:-7fff, 2518394132361662963]]] Starting remote engines Starting the test @ Thu Oct 20 10:54:50 UTC 2011 (1319108090548) Remote engines have been started/ OK 7. In Server2, I get the below message [Server2]$ /Starting the test on host 10.0.103.109 @ Thu Oct 20 11:54:47 CEST 2011 (1319104487972)/ 8. Everything is working fine. I can see things getting logged in smoke_result.jtl 9. No errors in smoke_output.log 10. Now, when I try to do the same with Plan2, I observe the following behaviour: a. I get the below message in Server1 /[2] 6926 [Server1]$ Created the tree successfully using Plan2.jmx Configuring remote engine for Server2 Using remote object: UnicastRef [liveRef: [endpoint:[Server2:41813](remote),objID:[9cf936a:13320f89080:-7fff, 4276509621820231896]]] Starting remote engines Starting the test @ Thu Oct 20 11:56:20 UTC 2011 (1319111780015) Remote engines have been started/ b. But, in Server2, I do not get any notification c. Also, I do not see the smoke_result.jtl file getting created d. smoke_output.log logs the following error message: /2011/10/20 11:56:19 INFO - jmeter.util.JMeterUtils: Setting Locale to en_US 2011/10/20 11:56:19 INFO - jmeter.JMeter: Loading user properties from: /home/test/jakarta-jmeter-2.4/bin/user.properties 2011/10/20 11:56:19 INFO - jmeter.JMeter: Loading system properties from: /home/test/jakarta-jmeter-2.4/bin/system.properties 2011/10/20 11:56:19 INFO - jmeter.JMeter: Copyright (c) 1998-2010 The Apache Software Foundation 2011/10/20 11:56:19 INFO - jmeter.JMeter: Version 2.4 r961953 2011/10/20 11:56:19 INFO - jmeter.JMeter: java.version=1.6.0_10 2011/10/20 11:56:19 INFO - jmeter.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM 2011/10/20 11:56:19 INFO - jmeter.JMeter: os.name=Linux 2011/10/20 11:56:19 INFO - jmeter.JMeter: os.arch=amd64 2011/10/20 11:56:19 INFO - jmeter.JMeter: os.version=2.6.18-128.1.1.el5 2011/10/20 11:56:19 INFO - jmeter.JMeter: file.encoding=UTF-8 2011/10/20 11:56:19 INFO - jmeter.JMeter: Default Locale=English (United States) 2011/10/20 11:56:19 INFO - jmeter.JMeter: JMeter Locale=English (United States) 2011/10/20 11:56:19 INFO - jmeter.JMeter: JMeterHome=/home/test/jakarta-jmeter-2.4 2011/10/20 11:56:19 INFO - jmeter.JMeter: user.dir =/home/test/jakarta-jmeter-2.4/bin 2011/10/20 11:56:19 INFO - jmeter.JMeter: PWD =/home/test/jakarta-jmeter-2.4/bin 2011/10/20 11:56:19 INFO - jmeter.JMeter: IP: Server1 Name: Server1 FullName: Server1 2011/10/20 11:56:19 INFO - jmeter.services.FileServer: Default base=/home/test/jakarta-jmeter-2.4/bin 2011/10/20 11:56:19 INFO - jmeter.services.FileServer: Set new base=/home/test/jakarta-jmeter-2.4/bin 2011/10/20 11:56:19 INFO - jmeter.JMeter: Loading file: Plan2.jmx 2011/10/20 11:56:19 INFO - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 2011/10/20 11:56:19 INFO - jmeter.save.SaveService: Using
Re: Constant Throughput Timer vs Throughput Shaping Timer (JMeter plugin)?
On 20 October 2011 18:14, Adrian Speteanu asp.ad...@gmail.com wrote: Hey David, I've used both. Its not much to compare :). If you understand the Constant Throughput Timer, then you understand both and it's easy to see that its major limitation is that it holds (if possible) the throughput constant at the value you define (which was the intent). However if you want to easily create a more complex test scenario like: The constant can also be varied. If the constant is expressed as a variable or function reference, that allows the throughput to be varied at will. See for example: http://jakarta.apache.org/jmeter/usermanual/best-practices.html#beanshell_server 1. run a test with throughput 100 for 2 min 2. continue for 2 more minutes with throughput 200 3. continue for 2 more minutes with throughput 500 to see how the application responds to these changes in the load received, without the plugin you had to use more thread groups and configure the scheduling so you get the same effect. The plugin makes these use cases simple and more easy to understand. You can make things a lot more complicated than that if you'd like using both methods and a lot of imagination. On Tue, Oct 11, 2011 at 5:19 AM, David Luu manga...@gmail.com wrote: I was wondering if anybody has used both, and wonder how they compare. Pros/cons of each. And how one could best simulate the Throughput Shaping Timer with the constant throughput timer via variable/property that defines the throughput and changing it during test run. Particularly how would you implement the changing of the throughput variable and where to place in test plan. FYI, I'm refering to this JMeter plugin: http://code.google.com/p/jmeter-plugins/wiki/ThroughputShapingTimer - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Constant Throughput Timer vs Throughput Shaping Timer (JMeter plugin)?
On 21 October 2011 00:36, David Luu manga...@gmail.com wrote: Thanks, the beanshell server looks useful for what I'd want. That's very flexible but it would be simpler if the variable were set in the test plan itself. e.g. if you wanted to ramp up gradually, you could use a counter with a suitable increment to define the throughput variable. On Thu, Oct 20, 2011 at 10:43 AM, sebb seb...@gmail.com wrote: On 20 October 2011 18:14, Adrian Speteanu asp.ad...@gmail.com wrote: Hey David, I've used both. Its not much to compare :). If you understand the Constant Throughput Timer, then you understand both and it's easy to see that its major limitation is that it holds (if possible) the throughput constant at the value you define (which was the intent). However if you want to easily create a more complex test scenario like: The constant can also be varied. If the constant is expressed as a variable or function reference, that allows the throughput to be varied at will. See for example: http://jakarta.apache.org/jmeter/usermanual/best-practices.html#beanshell_server 1. run a test with throughput 100 for 2 min 2. continue for 2 more minutes with throughput 200 3. continue for 2 more minutes with throughput 500 to see how the application responds to these changes in the load received, without the plugin you had to use more thread groups and configure the scheduling so you get the same effect. The plugin makes these use cases simple and more easy to understand. You can make things a lot more complicated than that if you'd like using both methods and a lot of imagination. On Tue, Oct 11, 2011 at 5:19 AM, David Luu manga...@gmail.com wrote: I was wondering if anybody has used both, and wonder how they compare. Pros/cons of each. And how one could best simulate the Throughput Shaping Timer with the constant throughput timer via variable/property that defines the throughput and changing it during test run. Particularly how would you implement the changing of the throughput variable and where to place in test plan. FYI, I'm refering to this JMeter plugin: http://code.google.com/p/jmeter-plugins/wiki/ThroughputShapingTimer - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Constant Throughput Timer vs Throughput Shaping Timer (JMeter plugin)?
On 21 October 2011 00:40, sebb seb...@gmail.com wrote: On 21 October 2011 00:36, David Luu manga...@gmail.com wrote: Thanks, the beanshell server looks useful for what I'd want. That's very flexible but it would be simpler if the variable were set in the test plan itself. e.g. if you wanted to ramp up gradually, you could use a counter with a suitable increment to define the throughput variable. I meant to add: for experimental purposes, I suggest using a test plan with some Java samplers; you can then test without annoying the neighbours ;-). On Thu, Oct 20, 2011 at 10:43 AM, sebb seb...@gmail.com wrote: On 20 October 2011 18:14, Adrian Speteanu asp.ad...@gmail.com wrote: Hey David, I've used both. Its not much to compare :). If you understand the Constant Throughput Timer, then you understand both and it's easy to see that its major limitation is that it holds (if possible) the throughput constant at the value you define (which was the intent). However if you want to easily create a more complex test scenario like: The constant can also be varied. If the constant is expressed as a variable or function reference, that allows the throughput to be varied at will. See for example: http://jakarta.apache.org/jmeter/usermanual/best-practices.html#beanshell_server 1. run a test with throughput 100 for 2 min 2. continue for 2 more minutes with throughput 200 3. continue for 2 more minutes with throughput 500 to see how the application responds to these changes in the load received, without the plugin you had to use more thread groups and configure the scheduling so you get the same effect. The plugin makes these use cases simple and more easy to understand. You can make things a lot more complicated than that if you'd like using both methods and a lot of imagination. On Tue, Oct 11, 2011 at 5:19 AM, David Luu manga...@gmail.com wrote: I was wondering if anybody has used both, and wonder how they compare. Pros/cons of each. And how one could best simulate the Throughput Shaping Timer with the constant throughput timer via variable/property that defines the throughput and changing it during test run. Particularly how would you implement the changing of the throughput variable and where to place in test plan. FYI, I'm refering to this JMeter plugin: http://code.google.com/p/jmeter-plugins/wiki/ThroughputShapingTimer - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: beanshell get highest value of a regular expression
On 19 October 2011 00:21, David Luu manga...@gmail.com wrote: For referencing the var when getting it, couldn't we just do string concatenation? like vars.get(IDH_g + i) Yes, but again that is the wrong name for Match No = -1 On Tue, Oct 18, 2011 at 9:39 AM, sebb seb...@gmail.com wrote: On 18 October 2011 17:35, Deepak Shetty shet...@gmail.com wrote: hi I think what sebb is saying is that you should be looking at IDH_1 (and not IDH_g1 - but these might be the same depending on the regex :) ) The variables that are set depend on the Regex Extractor settings, as described under http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor_parms In particular, note that the variables depend on the setting of Match No.. regards deepak On Tue, Oct 18, 2011 at 9:31 AM, ZK stevesenio...@gmail.com wrote: Sebb I see what you are saying regarding a single match, however; would this work if the regEx extractor Match No was set to -1 ? ZK -- View this message in context: http://jmeter.512774.n5.nabble.com/beanshell-get-highest-value-of-a-regular-expression-tp4913331p4914413.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: where we should set Heap memory size
On 19 October 2011 06:26, rajivkumarnandv...@gmail.com wrote: In jmeter bin folder as per jmeter doc in Jmeter.bat file we can set the heap memory size for windows. But there is another file jmeter without extension has also heap memory size setting. # system's memory availablity: HEAP=-Xms512m -Xmx512m What is the purpose of it here? If we set in jmeter.bat file do we need to set in jmeter without extension file as well? No, that is a shell script (for Unix type OSes) Notice the first line: #! /bin/sh - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Discarding the Results of a sampler
On 19 October 2011 15:49, Nicholson, Brad (Toronto, ON, CA) bnichol...@hp.com wrote: Hi, Is there any way to discard the results of an HTTP Sampler Request so that it is not in the log file? I am working around an issue where there are high startup times that inflate the cost of first operation in a test. This affects the numbers in my response time reporting (as I am not concerned about the startup time in these tests). What I am going to do is insert a dummy request as the first request to take this hit, and then discard the data. I can discard this by editing the logs files after the fact, but am wondering if there is a way to have Jmeter handle this automatically. Use a setUp thread group, and don't include that in the listener scope. Thanks, Brad. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Ideally how much memory we can allocate to jmeter if my jmeter server system ram 4GB?
On 18 October 2011 04:27, Bruce Ide flyingrhenqu...@gmail.com wrote: I usually give it 2gb but you could probably give it 3gb or even more if all that's running is Jmeter. No matter how much you give it, it's never enough. The biggest offender in memory consumption is the view results tree listener. If you disable that in0 high-memory tests, you'll probably find that you have no more memory problems. If you're doing a huge image or something with jmeter, the view results tree listener will hold on to the image for the entire test. If you're downloading several large images or the same one multiple times, you will quickly run out of memory. Yes, and the Table Listener also has to keep details of each sample. See: http://jakarta.apache.org/jmeter/usermanual/best-practices.html#lean_mean My one test that does something like that uses two listeners that write successful and failed requests to disk. I can just fire it up and if I see any failed requests then I know my test failed. See also http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Generate_Summary_Results which shows error counts. -- Bruce Ide flyingrhenqu...@gmail.com - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: beanshell get highest value of a regular expression
On 18 October 2011 12:28, dino past...@gmail.com wrote: Hi, I read out id values from a list with regEx, reference name IDH. Now I know, that ${IDH_matchNr) gives the total number of groups. I want to extract the highest id value for further use. I tried following beanshell, but no luck: *count = vars.get(IDH_matchNr); new = 1; for (i=0; i count; i++) { OK. lower = vars.get(IDH_g,i); // I guess this one does not give me No, because: - vars.get() only supports a single parameter - the name of the variable - anyway, the variable is not called IDH_gn. The variable names are all documented here: http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor_parms (scroll to the end of the table) the current value for the loop if (lower new) { new = lower; } } vars.put(IDH,new); * thanks in advance -- View this message in context: http://jmeter.512774.n5.nabble.com/beanshell-get-highest-value-of-a-regular-expression-tp4913331p4913331.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: beanshell get highest value of a regular expression
On 18 October 2011 15:51, ZK stevesenio...@gmail.com wrote: hi, you could try this: totalMatches = Integer.decode(vars.get(IDH_matchNr)); int arrSize = totalMatches; int[] myArray = new int[arrSize]; for (int i = 0; i myArray.length; i++) { myArray[i]=Integer.decode(vars.get(IDH_g+(i+1))); } Arrays.sort(myArray); System.out.println(Minimum = + myArray[0]); System.out.println(Maximum = + myArray[myArray.length-1]); /(disclaimer I am a tester not a programmer)/ Syntax looks OK, but the generated variable name looks wrong; IDH_g1, IDH_g2 etc. are the groups returned for a single match. If the original poster adds a Debug Sampler after the Regex Extractor, it will be obvious what the variable names are. ZK -- View this message in context: http://jmeter.512774.n5.nabble.com/beanshell-get-highest-value-of-a-regular-expression-tp4913331p4913980.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: nested exception related to socket connections
On 17 October 2011 11:24, shankykurella shankarkurella...@gmail.com wrote: *while running a slave system* -- this is the error that am getting on master system error : error in run() Method java.rmi.marshalException: error marshalling arguments;nested exception is: java.net.SocketException: Broken pipe *and on the master system jmeter.log below is the log details * 2011/10/17 15:48:21 ERROR - jmeter.engine.ClientJMeterEngine: Error in run() method java.rmi.MarshalException: error marshalling arguments; nested exception is: java.net.SocketException: Broken pipe 2011/10/17 15:48:21 INFO - jmeter.engine.ClientJMeterEngine: Interrupting RMI Reaper *and on the slave system under jmeterserver.log below is the log details * jmeter.engine.RemoteJMeterEngineImpl: Starting backing engine on 1099 2011/10/17 15:47:29 INFO - jmeter.engine.RemoteJMeterEngineImpl: IP address=192.168.1.144 2011/10/17 15:47:29 INFO - jmeter.engine.RemoteJMeterEngineImpl: Creating RMI registry (server.rmi.create=true) 2011/10/17 15:47:29 INFO - jmeter.engine.RemoteJMeterEngineImpl: Bound to registry on port 1099 That is still not the *whole* log; however the IP address may give a clue: IP address=192.168.1.144 This is a private network address. Is the server on the same network as the master (client)? Check the corresponding entries on the servers that do work. regards * * shankar k b shankarkurella.blogspot.com On Mon, Oct 17, 2011 at 3:12 AM, sebb-2-2 [via JMeter] ml-node+s512774n4909355...@n5.nabble.com wrote: On 17 October 2011 11:02, shankykurella [hidden email]http://user/SendEmail.jtp?type=nodenode=4909355i=0 wrote: sebb i dint get you there's a .lot missing??? what is the solution for this bro... kindly enlighten me You have not shown us the whole server log. regards * * shankar k b shankarkurella.blogspot.com On Mon, Oct 17, 2011 at 3:02 PM, sebb-2-2 [via JMeter] [hidden email] http://user/SendEmail.jtp?type=nodenode=4909355i=1 wrote: On 17 October 2011 06:58, shankykurella [hidden email] http://user/SendEmail.jtp?type=nodenode=4909278i=0 wrote: hey sebb below were the log details under jmeterserver.log of the slave system There's a .lot missing. jmeter.engine.RemoteJMeterEngineImpl: Creating RMI registry (server.rmi.create=true) 2011/10/17 11:17:37 INFO - jmeter.engine.RemoteJMeterEngineImpl: Bound to registry on port 1099 regards shankar k b -- View this message in context: http://jmeter.512774.n5.nabble.com/nested-exception-related-to-socket-connections-tp4905125p4908781.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=4909278i=1 For additional commands, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=4909278i=2 - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=4909278i=3 For additional commands, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=4909278i=4 -- If you reply to this email, your message will be added to the discussion below: http://jmeter.512774.n5.nabble.com/nested-exception-related-to-socket-connections-tp4905125p4909278.html To unsubscribe from nested exception related to socket connections, click here -- View this message in context: http://jmeter.512774.n5.nabble.com/nested-exception-related-to-socket-connections-tp4905125p4909335.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4909355i=2 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4909355i=3 -- If you reply to this email, your message will be added to the discussion below: http://jmeter.512774.n5.nabble.com/nested-exception-related-to-socket-connections-tp4905125p4909355.html To unsubscribe from nested exception related to socket connections, click herehttp://jmeter.512774.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4905125code=c2hhbmthcmt1cmVsbGEucWFAZ21haWwuY29tfDQ5MDUxMjV8OTEzNTU5NTQz. -- View this message in context: http://jmeter.512774.n5.nabble.com/nested-exception-related-to-socket-connections-tp4905125p4909379.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: beanshell get highest value of a regular expression
On 18 October 2011 17:35, Deepak Shetty shet...@gmail.com wrote: hi I think what sebb is saying is that you should be looking at IDH_1 (and not IDH_g1 - but these might be the same depending on the regex :) ) The variables that are set depend on the Regex Extractor settings, as described under http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor_parms In particular, note that the variables depend on the setting of Match No.. regards deepak On Tue, Oct 18, 2011 at 9:31 AM, ZK stevesenio...@gmail.com wrote: Sebb I see what you are saying regarding a single match, however; would this work if the regEx extractor Match No was set to -1 ? ZK -- View this message in context: http://jmeter.512774.n5.nabble.com/beanshell-get-highest-value-of-a-regular-expression-tp4913331p4914413.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: nested exception related to socket connections
On 17 October 2011 06:58, shankykurella shankarkurella...@gmail.com wrote: hey sebb below were the log details under jmeterserver.log of the slave system There's a .lot missing. jmeter.engine.RemoteJMeterEngineImpl: Creating RMI registry (server.rmi.create=true) 2011/10/17 11:17:37 INFO - jmeter.engine.RemoteJMeterEngineImpl: Bound to registry on port 1099 regards shankar k b -- View this message in context: http://jmeter.512774.n5.nabble.com/nested-exception-related-to-socket-connections-tp4905125p4908781.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Jmeter2.5 failing on negative condition of If controller and Jmeter2.4 Synchronizing timer not working
On 17 October 2011 10:06, vineeth vineeth.sasidha...@spi.com wrote: Synchronizing timer works only once. If we add a Synchronizing timer as child of a request in test script with No.of users to be grouped by as 20, the timer waits in the first loop till all the 20 users are ready to execute the request. In the second loop the timer wont wait as the count has reached 20 in the first loop and is not reset. Details are here https://issues.apache.org/bugzilla/show_bug.cgi?id=45703 I tried to decompile ApacheJMeter_components.jar, update synctimer.java and then recompile it back to a jar file. But when I try to recompile the stuff, there are many errors in the source files (Some due to missing jars, and some due to errors occured in decompilation). Is the updated version of ApacheJMeter_components.jar is available for Jmeter 2.4 The problem was fixed in later versions of JMeter. We don't patch individual classes. Have you tried the workround mentioned in Bug 50618? See https://issues.apache.org/bugzilla/show_bug.cgi?id=50618#c21 and https://issues.apache.org/bugzilla/show_bug.cgi?id=50618#c22 Thanks Regards Vineeth Sasidharan Trainee Software Engineer Software Paradigms Infotech shettyd [via JMeter] wrote: whats not working? On Sun, Oct 16, 2011 at 11:01 PM, vineeth [hidden email] /user/SendEmail.jtp?type=nodenode=4908849i=0wrote: Hi all Is there any solution to make the synchronizing timer work properly in Jmeter2.4. Any updated versions of ApacheJMeter_components.jar is available for Jmeter 2.4 Thanks Regards Vineeth Sasidharan Trainee Software Engineer Software Paradigms Infotech sginsbourg [via JMeter] wrote: Mixed version software is never tested and never expected to really work. If anything does work, then that's a miracle. True for any software, not JMETER specific of course. *Shay Ginsbourg* Regulatory Testing Affairs Consultant Formerly QA Manager of LoadRunner at Mercury Interactive M.Sc. cum laude in Bio-Medical Engineering M.Sc. in Mechanical Engineering *Work:* 035185873 *Mobile:* 0546690915 *Email:* [hidden email] /user/SendEmail.jtp?type=nodenode=4903105i=0 *http://il.linkedin.com/in/shayginsbourg* *GINSBOURG.COM* http://www.ginsbourg.com/ -- *P** **Please consider your environmental responsibility before printing this e-mail*. On Fri, Oct 14, 2011 at 2:43 PM, vineeth [hidden email] /user/SendEmail.jtp?type=nodenode=4903105i=1 wrote: Actually I need Error Handling and Rendezvous point in my script. I cant achieve both these together. 1. Using Jmeter2.4 I can implement Error handling, But Rendezvous point wont work. 2. Using Jmeter2.5 I can Implement Rendezvous point But Error handling wont work. Thanks Regards Vineeth Sasidharan Trainee Software Engineer Software Paradigms Infotech sginsbourg [via JMeter] wrote: What is the point in mixing versions of Jmeter ?? I don't understand. *Shay Ginsbourg* Regulatory Testing Affairs Consultant Formerly QA Manager of LoadRunner at Mercury Interactive M.Sc. cum laude in Bio-Medical Engineering M.Sc. in Mechanical Engineering *Work:* 035185873 *Mobile:* 0546690915 *Email:* [hidden email] /user/SendEmail.jtp?type=nodenode=4902309i=0 *http://il.linkedin.com/in/shayginsbourg* *GINSBOURG.COM* http://www.ginsbourg.com/ -- *P** **Please consider your environmental responsibility before printing this e-mail*. On Fri, Oct 14, 2011 at 1:43 PM, vineeth [hidden email] /user/SendEmail.jtp?type=nodenode=4902309i=1 wrote: Hi All I'm having a test script with error handling using If and While Controllers and a Synchronizing timer. 1. The synchronizing timer is not working properly in Jmeter2.4R961953 2. Test Execution is stopping when the condition evaluates to false in an If Controller (Bug50618) Can any one provide me any solution or work around so that I can complete my test script with Rendezvous and error Handling working as expected. Thanks in advance Vineeth -- View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter2-5-failing-on-negative-condition-of-If-controller-and-Jmeter2-4-Synchronizing-timer-not-workig-tp4902274p4902274.html Sent from the JMeter - User mailing list archive at Nabble.com.
Re: Jmeter2.5 failing on negative condition of If controller and Jmeter2.4 Synchronizing timer not working
On 17 October 2011 10:57, vineeth vineeth.sasidha...@spi.com wrote: Dear Sebb Thanks for your response. I tried adding a test action sampler just after the If controller. But still the thread stops without executing the controllers following the If Controller. Try before. Best Regards Vineeth Sasidharan Trainee Software Engineer Software Paradigms Infotech sebb-2-2 [via JMeter] wrote: On 17 October 2011 10:06, vineeth [hidden email] /user/SendEmail.jtp?type=nodenode=4909302i=0 wrote: Synchronizing timer works only once. If we add a Synchronizing timer as child of a request in test script with No.of users to be grouped by as 20, the timer waits in the first loop till all the 20 users are ready to execute the request. In the second loop the timer wont wait as the count has reached 20 in the first loop and is not reset. Details are here https://issues.apache.org/bugzilla/show_bug.cgi?id=45703 I tried to decompile ApacheJMeter_components.jar, update synctimer.java and then recompile it back to a jar file. But when I try to recompile the stuff, there are many errors in the source files (Some due to missing jars, and some due to errors occured in decompilation). Is the updated version of ApacheJMeter_components.jar is available for Jmeter 2.4 The problem was fixed in later versions of JMeter. We don't patch individual classes. Have you tried the workround mentioned in Bug 50618? See https://issues.apache.org/bugzilla/show_bug.cgi?id=50618#c21 and https://issues.apache.org/bugzilla/show_bug.cgi?id=50618#c22 Thanks Regards Vineeth Sasidharan Trainee Software Engineer Software Paradigms Infotech shettyd [via JMeter] wrote: whats not working? On Sun, Oct 16, 2011 at 11:01 PM, vineeth [hidden email] /user/SendEmail.jtp?type=nodenode=4908849i=0wrote: Hi all Is there any solution to make the synchronizing timer work properly in Jmeter2.4. Any updated versions of ApacheJMeter_components.jar is available for Jmeter 2.4 Thanks Regards Vineeth Sasidharan Trainee Software Engineer Software Paradigms Infotech sginsbourg [via JMeter] wrote: Mixed version software is never tested and never expected to really work. If anything does work, then that's a miracle. True for any software, not JMETER specific of course. *Shay Ginsbourg* Regulatory Testing Affairs Consultant Formerly QA Manager of LoadRunner at Mercury Interactive M.Sc. cum laude in Bio-Medical Engineering M.Sc. in Mechanical Engineering *Work:* 035185873 *Mobile:* 0546690915 *Email:* [hidden email] /user/SendEmail.jtp?type=nodenode=4903105i=0 *http://il.linkedin.com/in/shayginsbourg* *GINSBOURG.COM* http://www.ginsbourg.com/ -- *P** **Please consider your environmental responsibility before printing this e-mail*. On Fri, Oct 14, 2011 at 2:43 PM, vineeth [hidden email] /user/SendEmail.jtp?type=nodenode=4903105i=1 wrote: Actually I need Error Handling and Rendezvous point in my script. I cant achieve both these together. 1. Using Jmeter2.4 I can implement Error handling, But Rendezvous point wont work. 2. Using Jmeter2.5 I can Implement Rendezvous point But Error handling wont work. Thanks Regards Vineeth Sasidharan Trainee Software Engineer Software Paradigms Infotech sginsbourg [via JMeter] wrote: What is the point in mixing versions of Jmeter ?? I don't understand. *Shay Ginsbourg* Regulatory Testing Affairs Consultant Formerly QA Manager of LoadRunner at Mercury Interactive M.Sc. cum laude in Bio-Medical Engineering M.Sc. in Mechanical Engineering *Work:* 035185873 *Mobile:* 0546690915 *Email:* [hidden email] /user/SendEmail.jtp?type=nodenode=4902309i=0 *http://il.linkedin.com/in/shayginsbourg* *GINSBOURG.COM* http://www.ginsbourg.com/ -- *P** **Please consider your environmental responsibility before printing this e-mail*. On Fri, Oct 14, 2011 at 1:43 PM, vineeth [hidden email] /user/SendEmail.jtp?type=nodenode=4902309i=1 wrote: Hi All I'm having a test script with error handling using If and While Controllers and a Synchronizing timer. 1. The synchronizing timer is not working properly in Jmeter2.4R961953 2. Test Execution is stopping
Re: nested exception related to socket connections
On 17 October 2011 11:02, shankykurella shankarkurella...@gmail.com wrote: sebb i dint get you there's a .lot missing??? what is the solution for this bro... kindly enlighten me You have not shown us the whole server log. regards * * shankar k b shankarkurella.blogspot.com On Mon, Oct 17, 2011 at 3:02 PM, sebb-2-2 [via JMeter] ml-node+s512774n4909278...@n5.nabble.com wrote: On 17 October 2011 06:58, shankykurella [hidden email]http://user/SendEmail.jtp?type=nodenode=4909278i=0 wrote: hey sebb below were the log details under jmeterserver.log of the slave system There's a .lot missing. jmeter.engine.RemoteJMeterEngineImpl: Creating RMI registry (server.rmi.create=true) 2011/10/17 11:17:37 INFO - jmeter.engine.RemoteJMeterEngineImpl: Bound to registry on port 1099 regards shankar k b -- View this message in context: http://jmeter.512774.n5.nabble.com/nested-exception-related-to-socket-connections-tp4905125p4908781.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4909278i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4909278i=2 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4909278i=3 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4909278i=4 -- If you reply to this email, your message will be added to the discussion below: http://jmeter.512774.n5.nabble.com/nested-exception-related-to-socket-connections-tp4905125p4909278.html To unsubscribe from nested exception related to socket connections, click herehttp://jmeter.512774.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4905125code=c2hhbmthcmt1cmVsbGEucWFAZ21haWwuY29tfDQ5MDUxMjV8OTEzNTU5NTQz. -- View this message in context: http://jmeter.512774.n5.nabble.com/nested-exception-related-to-socket-connections-tp4905125p4909335.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: nested exception related to socket connections
On 15 October 2011 13:11, shankykurella shankarkurella...@gmail.com wrote: hi everyone... i have an issue in running distributed system in across windows and ubuntu systems iam running the master system on ubuntu (Ubuntu 9.04) with java version 1.6.0_13... where as other slave systems on ubuntu ((Ubuntu 9.04)) xp with java 1.6.0_13,1.6.0_22 neither of the systems are responding and iam getting an error as error in run() method java.rmi.marshal exception: error marshalling arguments;nested exception is:java.net.socketexcpetion:broken pipe where as iam able to run from the same master system to another slave system of xp successfully So there must be an issue with the failing system or the route to it. while reffering to our communty nabble what i traced out is --- this issue relates to socket connections of the os, if thats the case kindly some one guide me how to add socket connections Are you sure? Does it work at all? You may need to increase max socket count if you run out of sockets, but the error looks like the connection is not being completed. Have you studied the server log file(s) on the failing systems? Have you read: http://jakarta.apache.org/jmeter/usermanual/remote-test.html regards shankar k b -- View this message in context: http://jmeter.512774.n5.nabble.com/nested-exception-related-to-socket-connections-tp4905125p4905125.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: stoptest.sh works only for last remote server
On 14 October 2011 13:07, Luca Maragnani luca.maragn...@gmail.com wrote: Hi all, I'm using a distributed configuration of jmeter and using the script stoptest.sh to stop a test on all the remote servers. Currently the stop command is sent only to last initialized remote server, so to be able to run it again, remaining remote jmeter instances must be restarted. OK, found the problem and will patch it shortly. I investigated a bit in source code and produced a little patch for it, just a possible solution which works for my job. Feel free to use it as you like. If sent as an attachment, it did not arrive (the list tends to do that). In future, it's best to create a Bugzilla issue and attach any patch to that. Less likely for the patch to get lost or the bug to get forgotten. [Updates to Bugzilla are sent to a list which is followed by all developers] Thanks, Luca - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: stoptest.sh works only for last remote server
On 14 October 2011 14:10, sebb seb...@gmail.com wrote: On 14 October 2011 13:07, Luca Maragnani luca.maragn...@gmail.com wrote: Hi all, I'm using a distributed configuration of jmeter and using the script stoptest.sh to stop a test on all the remote servers. Currently the stop command is sent only to last initialized remote server, so to be able to run it again, remaining remote jmeter instances must be restarted. OK, found the problem and will patch it shortly. I investigated a bit in source code and produced a little patch for it, just a possible solution which works for my job. Feel free to use it as you like. If sent as an attachment, it did not arrive (the list tends to do that). In future, it's best to create a Bugzilla issue and attach any patch to that. Less likely for the patch to get lost or the bug to get forgotten. [Updates to Bugzilla are sent to a list which is followed by all developers] Fixed, see: https://issues.apache.org/bugzilla/show_bug.cgi?id=52029 Thanks, Luca - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: how can i extract something from a variable
On 13 October 2011 07:17, freesky h...@windowslive.com wrote: for example, there is a variable 'rep', and its value is 'record id=2 /', then can i extract the value of id from the variable 'rep' ? Thanks in advance! http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor Apply to: JMeter Variable -- View this message in context: http://jmeter.512774.n5.nabble.com/how-can-i-extract-something-from-a-variable-tp4898134p4898134.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Java Request Sampler - Second Iteration Fast
On 13 October 2011 13:59, dineshkaarthick dineshkaarth...@gmail.com wrote: http://jmeter.512774.n5.nabble.com/file/n4899140/JMeter-API-Results-Second-Iteration.jpg Whenever I run a test for Java Request sampler only for the first iteration the real response times are observed and from the second iteration onwards it is fast and the response time is almost 1/10th of the first response. This is the same behavior when we run multiple users (threads). I think JMeter is caching something which is used for further iterations. No, it does not. If someone can let me know how to overcome this scenario and get similar response times like the first request it would be of great help. Please find the screenshot showing the response times for the same. What is the Java Request configuration for sleep time and sleep mask? -- View this message in context: http://jmeter.512774.n5.nabble.com/Java-Request-Sampler-Second-Iteration-Fast-tp4899140p4899140.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Java Request Sampler - Second Iteration Fast
On 13 October 2011 14:08, dineshkaarthick dineshkaarth...@gmail.com wrote: sebb, can you please let me know why is the big difference in the response times for the first and further iterations ? Not without knowing the sampler configuration. Also, you only show two iterations. Are all subsequent times slower? -- View this message in context: http://jmeter.512774.n5.nabble.com/Java-Request-Sampler-Second-Iteration-Fast-tp4899140p4899168.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Java Request Sampler - Second Iteration Fast
On 13 October 2011 14:21, dineshkaarthick dineshkaarth...@gmail.com wrote: sebb, yes all the further responses are similar to the second ones and not as accurate as the first request. As requested by you I have attached the sampler configuration. http://jmeter.512774.n5.nabble.com/file/n4899196/JMeter-API-Sampler-Config.jpg FYI, In the above sampler we are invoking a Remote EJB. So: you are using a 3rd party Java Request which is not part of JMeter. I suggest you ask the authors of the sampler; it's most likely a bug in the 3rd party sampler. -- View this message in context: http://jmeter.512774.n5.nabble.com/Java-Request-Sampler-Second-Iteration-Fast-tp4899140p4899196.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: How can i see the detailed log ?
On 13 October 2011 15:01, Oliver Lloyd oliver_ll...@hotmail.com wrote: Authorisation looks different. Is this basic auth? You could try a HTTP Authorisation Manager. Although, not sure why a lack of that would prompt a 500 response. Yes, should be a 4xx response. The Content-Length is also different - that's more likely the cause of the issue. - http://www.http503.com/ -- View this message in context: http://jmeter.512774.n5.nabble.com/How-can-i-see-the-detailed-log-tp4892987p4899321.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: How can i see the detailed log ?
On 13 October 2011 16:35, Kendiol meh.bela...@gmail.com wrote: But i can't control the content-length can i ? It just indicates the size of the request's body from what i understood. Yes, and so you need to ensure that the content bodies agree. The length mismatch is just a symptom of different body content. I did a HTTP Sampler Request and it worked perfectly. I've attached an XML file to it so i can't replace all my SOAP/XML-RPC Requests because i'm using BeanShell. So how did the file content differ from the SOAP/XML-RPC content? I would have to rewrite all the requests. Still, i think that i managed to identify the problem , i think it's the *Connection : close* header , it should be set to keep-alive. No, in HTTP/1.1 it should just be omitted; by default 1.1 assumes persistent connections. But it seems very unlikely that ths is the cause of the problem. I've added a Header Manager, and this is what i get : POST / HTTP/1.1 Connection: close Content-Type: text/xml;charset=UTF-8 Accept-Encoding: gzip,deflate SOAPAction: Authorization: Basic VDJNSjFDMTk1N0UwMFFXSDlMNEQ6UVVsLXpbN3Q= Connection: keep-alive User-Agent: Jakarta Commons-HttpClient/3.1 Host: localhost:8084 Content-Length: 733 Is there a way to stop JMeter from adding the Connection : close header ? Have you tried using the Use Keep-Alive checkbox on the SOAP/XML-RPC sampler? It's present from at least JMeter 2.4, possibly earlier. I should add that i'm using the https protocol. -- View this message in context: http://jmeter.512774.n5.nabble.com/How-can-i-see-the-detailed-log-tp4892987p4899628.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: How can i see the detailed log ?
On 13 October 2011 17:34, Kendiol meh.bela...@gmail.com wrote: I didn't see this option, i checked it and it's finally working. Thanks for letting us know the issue is fixed. However, it seems odd that connection: close was causing a 500 error. Thank you all for your help, i was desperate. -- View this message in context: http://jmeter.512774.n5.nabble.com/How-can-i-see-the-detailed-log-tp4892987p4899823.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: How can i see the detailed log ?
On 12 October 2011 08:49, Kendiol meh.bela...@gmail.com wrote: Thanks a lot, it worked , i can see the detailed log as i wished now. However, i don't see any exception or a specific error , the log just displays the same message than the GUI and i'm still trying to figure out where the problem lies. I only get this response : ?xml version='1.0' ? env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/' env:Body env:Fault faultcodeenv:Client/faultcode faultstringInternal Error/faultstring /env:Fault /env:Body /env:Envelope Is it possible to have a more specific error message ? As far as I can tell, it is the server that is generating the error. JMeter will just show you what the server sends back - you cannot ask JMeter to display information it does not have. So any further details will have to be obtained by contacting the server admin and/or reading any documentation they provide. If that is not possible, and you have another application that is successful in contacting the server, then you can use a network analyser to compare the traffic between JMeter and the successful application to see what is different. -- View this message in context: http://jmeter.512774.n5.nabble.com/How-can-i-see-the-detailed-log-tp4892987p4894605.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Looping a Thread Group with a Module Controller
On 12 October 2011 06:39, andreas.neuenmeier andreas.neuenme...@yahoo.de wrote: Hi, when I run a *Thread Group containing a Module Controller* (that links to a Simple Controller in a disabled Thread Group), then everything works. But as soon as I change the *Loop Count* of this Thread Group to 2 or more (or Forever), the *Module Controllers* are just *being ignored* and only HTTP Requests that are directly in the Thread are executed. I'm using JMeter 2.3 r1158837, Java Version 6 Update 27 and Windows 7 Can you try with the current version of JMeter? Version 2.5.1 was released very recently. Thanks -- View this message in context: http://jmeter.512774.n5.nabble.com/Looping-a-Thread-Group-with-a-Module-Controller-tp4894360p4894360.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Sharing sockets (file descriptors) between test samples, using jruby as a scripting language
On 12 October 2011 16:03, Nico Kruger nico.kru...@gmail.com wrote: Hi there I have a small sample test file, with one thread group (one thread), looped a number of times (10 at the moment). with one BSF group, configured to run a ruby script. Everything surrounding the classpath has been configured, jmeter is finding the jruby JARs, the jruby libraries and my own java code. Now as far as I understand, the JMeterVariables object (which seems to be exposed as $vars in the jruby environment), is shared between successive samples inside a thread group. Yes, all samplers in the thread group have access to the same vars - that's how ${variables} work. I understand that each thread group runs in its own copy of the interpetrer, but as far as I understand successive samples within a thread group share an interpreter of the chosen language. No, the BSF samples currently each use their own BSF Manager and interpreter - it is not currently shared. Same for JSR223 currently. It's only the BeanShell sampler that re-uses the interpreter. Thus you can use this object to share variables between test samples. Now this seems fine for sharing simple numbers/strings - but what I want to do, is share a socket instance between successive test samples, and this seems to break somewhere, or I am misunderstanding. Interpreters are not shared, see above. Basically, I have the one thread group, looping 10 times. Inside, a BSF group, running the following jruby script: require 'socket' if $vars.getObject(s) == nil s = TCPSocket.open(localhost, 6663) $vars.putObject(s,s) end begin socket = $vars.getObject(s) socket.send([1,2,3,4]) rescue = e puts Error puts e.message end I can see it working the first time, but after that, it fails with an exception: Bad file descriptor. The output I get is basically this (note, I am running through the chronos maven plugin here): [INFO] Success [INFO] Error [INFO] Bad file descriptor - Bad file descriptor [INFO] Error [INFO] Bad file descriptor - Bad file descriptor etc. Should I not be using the $vars object to share something like this? Is the interpreter in fact getting recreated? Yes. What am I misunderstanding? Just that. Thanks for any help, enlightenment, etc. Work-rounds: - use BeanShell - create and manage the interpreter yourself - if you use the interpreter to create an interpreter rather than a socket, it may be possible to invoke the saved interpreter. Or perhaps the TCP Sampler would be a more suitable base. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Sharing sockets (file descriptors) between test samples, using jruby as a scripting language
On 12 October 2011 17:06, Nico Kruger nico.kru...@gmail.com wrote: Thanks for the very helpful and quick response. On 12 October 2011 17:30, sebb seb...@gmail.com wrote: On 12 October 2011 16:03, Nico Kruger nico.kru...@gmail.com wrote: Hi there ...SNIP No, the BSF samples currently each use their own BSF Manager and interpreter - it is not currently shared. Same for JSR223 currently. It's only the BeanShell sampler that re-uses the interpreter. Could you perhaps elaborate on the difference betweens JSR223 and BSF? What are the advantages/disadvantages of each, because functionally they look pretty similair for the untrained eye. In fact, I was definitely confused about the differences between the three - I was under the impression that BeanShell is just a different language you choose inside the BSF sampler. BSF is the original scripting language API; JSR223 is the related API that was added to Java 5/6. They are fairly similar in scope, but different in API. They both support BeanShell and some other languages. There are some langauges that are only supported by one or the other. Is it sufficient to say that, at the moment, the BeanShell sampler is the more advanced/mature of the three? Not really. However it's older and specific to BeanShell so can use features not in the BSF/JSR223 APIs. BeanShell was added first, then BSF; JSR223 was added with the move to requiring Java 1.5+. Are the different scripting samplers going to be unified in this regard in the future? Unified i what regard? Work-rounds: - use BeanShell I would like it if we could get away with jRuby instead of switching to BeanShell. We have a lot of already existing jRuby code that excercises the system from the outside which we use in cucumber-jvm for example that I would like to re-use. - create and manage the interpreter yourself - if you use the interpreter to create an interpreter rather than a socket, it may be possible to invoke the saved interpreter. Interesting idea, will have a look at this. Or perhaps the TCP Sampler would be a more suitable base. Another good idea, will I be able to access the TCP sampler from a scripting sampler? It's the other way round; you have to implemement the appropriate API which is called by the sampler. See: http://jakarta.apache.org/jmeter/usermanual/component_reference.html#TCP_Sampler Again, thanks for your insights. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Sharing sockets (file descriptors) between test samples, using jruby as a scripting language
On 12 October 2011 18:06, Nico Kruger nico.kru...@gmail.com wrote: On 12 October 2011 18:29, sebb seb...@gmail.com wrote: On 12 October 2011 17:06, Nico Kruger nico.kru...@gmail.com wrote: Thanks for the very helpful and quick response. BSF is the original scripting language API; JSR223 is the related API that was added to Java 5/6. They are fairly similar in scope, but different in API. They both support BeanShell and some other languages. There are some langauges that are only supported by one or the other. Is it sufficient to say that, at the moment, the BeanShell sampler is the more advanced/mature of the three? Not really. However it's older and specific to BeanShell so can use features not in the BSF/JSR223 APIs. BeanShell was added first, then BSF; JSR223 was added with the move to requiring Java 1.5+. Are the different scripting samplers going to be unified in this regard in the future? Unified i what regard? What I mean is, what are the future plans with regards to the 3 different interpreted language samplers? Except for the specific interpreter-sharing behaviour for the BeanShell sampler, there's not a lot of differences, except as you point out in the specific languages that are supported. BeanShell itself is supported by all 3, jRuby by JSR223 and BSF, same for jython/javascript etc. Are there plans in changing the behaviour of the intepreters for JSR223 and BSF to be the same as BeanShell (so that the interpreter is shared in the same way as with beanshell)? No plans at present, but it would probably be sensible to optionally share interpreters, either for a specific sampler (across loops) or a thread. What are the future plans of BSF now that JSR223 and java 1.5 is in the mix? This seems to be the more future-ready of the three (support for any language that implement JSR223 is quite a powerful thing) BSF is likely to continue to be needed for some languages. It might not get as much attention as JSR223, but I see no reason to drop it. I guess I'm just basically wondering why both JSR223 and BSF are there, seeing as the move to Java 1.5 has been made. I understand the historical/legacy reasons, it just seems like duplicate work to support the same 90% of languages in different places. The fact that the behaviour of the interpreter creation also differs (at least at the moment) was definitely a source of confusion, at least for me. Yes, that needs documenting. Thanks for clearing that up by the way. Or perhaps the TCP Sampler would be a more suitable base. Another good idea, will I be able to access the TCP sampler from a scripting sampler? It's the other way round; you have to implemement the appropriate API which is called by the sampler. See: http://jakarta.apache.org/jmeter/usermanual/component_reference.html#TCP_Sampler This seems to be the best way forward for us at the moment, at least for our basic socket-testing benchmarks. Seems to fit our current needs quite well. Back to basics :) I really do appreciate the power of jMeter, the scripting possibilities really are enormous. Very helpful mailing list as well :) Thanks for your help. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Question about ThrouputController
On 12 October 2011 20:43, David Parks davidpark...@yahoo.com wrote: This is as expected in this scenario, I was using it with an infinite loop, so in the end the percentages are roughly correct (but still randomly distributed, which accounts for the error you are noting). But note how the logic works here, each iteration it will pick one controller, and that controller may or may not run in that iteration (depending on its percentage probability that it will run). This will randomly distribute load. If you want to control executions precisely and not just distribute load in percentages then we need to consider another approach. And now I notice a few details of your original email that I didn't take into account. Here are a few other ideas you can play with: Random Controller * Module Controller A [20%] * Module Controller A [20%] * Module Controller B [20%] * Module Controller C [20%] * Module Controller C [20%] In this scenario A C will run 40% of the time and B will run 20% of the time, but one of them is always selected by the Random Controller. You can use the module controller to allow you to define A, B, and C elsewhere and duplicate their use in this sense. Another idea is the If Controller - I haven't used it so I'm just going off the top of my head here, but I would experiment with creating a random variable (0-1.0) using the [Random Variable Configuration Element] to determine which IF controller to run, and each IF controller only runs if the random variable defined at the beginning of the loop is say: (0-0.3 = 30%, A), (0.3-0.4 = 10%, B), etc. This would guarantee 1 and only 1 of the controllers run in a probabilistic pattern. Or generate a number in the range 0-9, and use the switch controller with 10 child samples in the appropriate percentages. If you convert the random number 0-9 into 0-3 in the appropriate percentages, you can use just 4 samples. This can be done using a BSF/JSR223/BeanShell Pre-Processor to create a variable in the appropriate range. Pseudo-code: r=random[0-9] n={0,1,1,1,1,2,2,2,3,3}[r] // index the array Switch Controller ${n} Or you can create a CSV file with a suitable random mix of numbers and use that to define the Switch variable I'll bet you could come up with a couple more ways of tackling it if you really tried, but hopefully these give you enough ideas to get by. -Original Message- From: Philippe Bossu [mailto:pbo...@gmail.com] Sent: Wednesday, October 12, 2011 11:53 AM To: JMeter Users List Subject: Re: Question about ThrouputController Hello, Thanks for this I tried it but I doesn't work . I set 1 threads running 50 LOOP Count = I get 24 executions That's not what I want, I want 50 executions with the repartition, because in this case If I have a sampler waiting for RandomController run result, it will fail since it may not execute. is it something possible ? By the way, percentages are not well respected. 7 / 24 = 30 % = I get 7 executions = OK 4 / 24 = 10% = I get 4 executions = KO 8/ 24 = I get 8 executions = 33% KO 5 / 24 = I get 5 executions = 20% OK Regards Philippe On Wed, Oct 12, 2011 at 7:31 PM, David Parks davidpark...@yahoo.com wrote: I did this as follows: * Thread group (define how many requests should be going through at one time) * Random Controller (pick any of the sub controllers at random each iteration) * Throughput Controller A [10%, By Percent] * Throughput Controller B [40%, By Percent] * Throughput Controller C [30%, By Percent] * Throughput Controller D [20%, By Percent] This generates randomly distributed load over Controllers A-D according to the percentages defined. I also threw in a timer at the Random Controller level to limit the requests to once every X seconds, this way I could define the number of threads as representative of an real-world active user. Hope that gives some food for thought. -Original Message- From: Philippe Bossu [mailto:pbo...@gmail.com] Sent: Wednesday, October 12, 2011 10:13 AM To: jmeter-user@jakarta.apache.org Subject: Question about ThrouputController Hello, First thank's for your help and great JMeter product. I have the following requirement. I would like to execute 4 different samples at the following frequence: - 10% for A - 40% for B - 30% for C - 20% for D A,B,C and D do search on different criterions. At least one of them must be executed because next sampler will use the search result. I tried to use ThroughputCOntroller but when I ran it once, none of the 4 is executed. Random Controller does not do the job. InterleaveController as parent of TPC may be an option but I don't understand how to use it with others SwitchController might also be an option based on a question sebb answered to on the mailing list but how to randomize ? Thank you for your help. Regards
Re: Non GUI mode parameters
On 10 October 2011 05:22, itsbritto brittobt...@gmail.com wrote: Hi all, I'm too tried to parametrize the scheduler field by a user defined variable.but it doesn't work. Using variables for the delay and duration does work. Is thera any other alternate for this? On Fri, Oct 7, 2011 at 3:46 AM, sebb seb...@gmail.com wrote: On 6 October 2011 22:58, Deepak Shetty shet...@gmail.com wrote: as far as I remember , you cant do it from the GUI(which expects a date string i think) - but if you directly modify the JMX file using any editor (to read value from a passed in property - note it has to be a property , not variable) , it does work (never tested) there probably in a thread in the mail archives that mentions this. You can use properties in the Startup Delay and Duration fields. It's not possible to use variables in the Start and End Time fields, but there's an easy work-round: Startup Delay = Start Time - time now Duration = End Time - Start Time. regards deepak On Thu, Oct 6, 2011 at 2:55 PM, skchoppala skchopp...@gmail.com wrote: After putting first variable in start time filed the end time input filed become non-editable. I hope this wont work. Thanks skchoppala -- View this message in context: http://jmeter.512774.n5.nabble.com/Non-GUI-mode-parameters-tp4666306p4878052.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: CPU utilization in jmeter plugin
On 7 October 2011 11:18, vamba vino10.test...@gmail.com wrote: Hi , I have added jemter plugin for the perform counter . how to find the bottlenecks in CPU utilization and memory leak in that report ..pl tel me how to check that using that graph As far as I can tell from the rather brief details above, you are referring to a 3rd-party JMeter plugin. Please ask the provider for help. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Non GUI mode parameters
On 6 October 2011 22:58, Deepak Shetty shet...@gmail.com wrote: as far as I remember , you cant do it from the GUI(which expects a date string i think) - but if you directly modify the JMX file using any editor (to read value from a passed in property - note it has to be a property , not variable) , it does work (never tested) there probably in a thread in the mail archives that mentions this. You can use properties in the Startup Delay and Duration fields. It's not possible to use variables in the Start and End Time fields, but there's an easy work-round: Startup Delay = Start Time - time now Duration = End Time - Start Time. regards deepak On Thu, Oct 6, 2011 at 2:55 PM, skchoppala skchopp...@gmail.com wrote: After putting first variable in start time filed the end time input filed become non-editable. I hope this wont work. Thanks skchoppala -- View this message in context: http://jmeter.512774.n5.nabble.com/Non-GUI-mode-parameters-tp4666306p4878052.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: I am stuck with https with jmeter v 2.5
On 4 October 2011 14:24, itsbritto brittobt...@gmail.com wrote: Hi phillip, I tried to record https site in jmeter2.4 and i'm not able record anything.Is there any particular changes i need to mention in the proxy server. and later tried with spoofing in final no luck. Does the browser show the correct pages? Try stopping the JMeter proxy. Does the browser still show the correct pages? If so, the browser is not actually using the JMeter proxy. Check the browser settings. Again. Otherwise, check the jmeter log file in case of errors. On Tue, Oct 4, 2011 at 3:38 PM, Philippe Mouawad philippe.moua...@gmail.com wrote: Hello, JMeter does https recording fine with proxy without special config since 2.4. Did you follow this: - http://wiki.apache.org/jakarta-jmeter/JMeterAndHTTPS Steps: - Create a Recording Controller under Thread Group - Add a proxy to your workbench (use 8080 for example) - IN your browser Firefox for example , configure proxy as localhost / 8080 (for all protocols) - Start Proxy - Go to your web page - See that recording proxy has samples in it. PS : Don't check Spoofing (not required anymore). What is your error, what happens ? Regards Philippe M. On Tue, Oct 4, 2011 at 11:45 AM, itsbritto brittobt...@gmail.com wrote: I think We are not do with HTTPS in jmeter proxy recording.. Record it in badboy and and make use of it in jmeter On Tue, Oct 4, 2011 at 4:42 AM, Jain, Kapil kapil.j...@logica.com wrote: Can you try the same through badboy? - Original Message - From: Bhuiyan, Hasan (Hasan) [mailto:mahmud.bhui...@searshc.com] Sent: Monday, October 03, 2011 10:51 PM To: JMeter Users List jmeter-user@jakarta.apache.org Subject: RE: I am stuck with https with jmeter v 2.5 Thanks Kapil for replying. I am using proxy to record the app. -Original Message- From: Jain, Kapil [mailto:kapil.j...@logica.com] Sent: Monday, October 03, 2011 3:45 PM To: 'jmeter-user@jakarta.apache.org' Subject: Re: I am stuck with https with jmeter v 2.5 Are you recording via bad boy or jmeter proxy ? - Original Message - From: Bhuiyan, Hasan (Hasan) [mailto:mahmud.bhui...@searshc.com] Sent: Monday, October 03, 2011 10:39 PM To: JMeter Users List jmeter-user@jakarta.apache.org Subject: I am stuck with https with jmeter v 2.5 Friends, I have an eComm app that has functionality of checkout with credit card etc. When it comes to 'https' the proxy server does not record anything. I am using jemter latest version 2.5. Can anyone help me please? Best regards, Hasan Bhuiyan Lead Performance Engineer Sears Holding Corp. Phone: 224-645-1514(BB) This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you. Think green - keep it on the screen. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org Think green - keep it on the screen. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
Re: not all thread group ending with nothing in the logs WARN Thread won't exit after stopping
On 4 October 2011 22:43, Basim Baassiri ba...@baassiri.ca wrote: I'm experiencing the same issue with the latest release 2.5.1 Does it say Test has ended ? On Sun, Oct 2, 2011 at 9:57 AM, sebb seb...@gmail.com wrote: On 1 October 2011 15:52, Basim Baassiri ba...@baassiri.ca wrote: HI just to confirm that this is the bug that might resolve my issue https://issues.apache.org/bugzilla/show_bug.cgi?id=51880 Not exactly - that was a bug exposed/caused by a previous fix to shutdown handling. Please wait until 2.5.1 is released and try again with that. On Sat, Oct 1, 2011 at 5:26 AM, sebb seb...@gmail.com wrote: On 30 September 2011 20:49, Basim Baassiri ba...@baassiri.ca wrote: Hi, I started jmeter with DEBUG logging on (running on window 7) jmeter -Ljmeter.engine=DEBUG i have a test plan that I've seen work and run against a test environment and when i start the testplan against a different environment, jmeter appears to not respond or be active. There is a period of time in the logs that nothing happens so i stopped the test 2011/09/30 15:33:39 INFO - jmeter.gui.action.Start: Stopping test 2011/09/30 15:33:39 INFO - jmeter.threads.JMeterThread: Stopping: Thread Group 1-30 2011/09/30 15:33:39 WARN - jmeter.threads.JMeterThread: Interrupting: Thread Group 1-30 sampler: Product Tab 2011/09/30 15:33:39 INFO - jmeter.threads.JMeterThread: Stopping: Thread Group 1-24 2011/09/30 15:33:39 WARN - jmeter.threads.JMeterThread: Interrupting: Thread Group 1-24 sampler: Program Tab 2011/09/30 15:33:39 INFO - jmeter.threads.JMeterThread: Stopping: Thread Group 1-9 2011/09/30 15:33:39 WARN - jmeter.threads.JMeterThread: Interrupting: Thread Group 1-9 sampler: Contract Tab 2011/09/30 15:33:41 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-9 2011/09/30 15:33:41 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-9 2011/09/30 15:33:42 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-30 2011/09/30 15:33:42 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-30 2011/09/30 15:33:46 WARN - jmeter.engine.StandardJMeterEngine: Thread won't exit: Thread Group 1-24 2011/09/30 15:33:49 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-24 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-24 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Stopping test 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 2011/09/30 15:33:49 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Test has ended 2011/09/30 15:33:51 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 2011/09/30 15:33:51 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 2011/09/30 15:33:51 INFO - jmeter.engine.StandardJMeterEngine: Test has ended Any ideas of why the test plan appears to stop This was due to a bug in the shutdown code, which reported the end of the test, even though one or more threads were still running. This has been fixed in the upcoming 2.5.1, which also allows the user to retry the stop command after dismissing the modal dialog. Note: if some threads refuse to stop, the only solution is to exit the JVM; there is no guaranteed safe way to forcibly kill a thread. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: not all thread group ending with nothing in the logs WARN Thread won't exit after stopping
On 4 October 2011 23:24, Basim Baassiri ba...@baassiri.ca wrote: Test has ended is not written to the logs In that case, the bug fix has worked here. On Tue, Oct 4, 2011 at 6:04 PM, sebb seb...@gmail.com wrote: On 4 October 2011 22:43, Basim Baassiri ba...@baassiri.ca wrote: I'm experiencing the same issue with the latest release 2.5.1 Does it say Test has ended ? On Sun, Oct 2, 2011 at 9:57 AM, sebb seb...@gmail.com wrote: On 1 October 2011 15:52, Basim Baassiri ba...@baassiri.ca wrote: HI just to confirm that this is the bug that might resolve my issue https://issues.apache.org/bugzilla/show_bug.cgi?id=51880 Not exactly - that was a bug exposed/caused by a previous fix to shutdown handling. Please wait until 2.5.1 is released and try again with that. On Sat, Oct 1, 2011 at 5:26 AM, sebb seb...@gmail.com wrote: On 30 September 2011 20:49, Basim Baassiri ba...@baassiri.ca wrote: Hi, I started jmeter with DEBUG logging on (running on window 7) jmeter -Ljmeter.engine=DEBUG i have a test plan that I've seen work and run against a test environment and when i start the testplan against a different environment, jmeter appears to not respond or be active. There is a period of time in the logs that nothing happens so i stopped the test 2011/09/30 15:33:39 INFO - jmeter.gui.action.Start: Stopping test 2011/09/30 15:33:39 INFO - jmeter.threads.JMeterThread: Stopping: Thread Group 1-30 2011/09/30 15:33:39 WARN - jmeter.threads.JMeterThread: Interrupting: Thread Group 1-30 sampler: Product Tab 2011/09/30 15:33:39 INFO - jmeter.threads.JMeterThread: Stopping: Thread Group 1-24 2011/09/30 15:33:39 WARN - jmeter.threads.JMeterThread: Interrupting: Thread Group 1-24 sampler: Program Tab 2011/09/30 15:33:39 INFO - jmeter.threads.JMeterThread: Stopping: Thread Group 1-9 2011/09/30 15:33:39 WARN - jmeter.threads.JMeterThread: Interrupting: Thread Group 1-9 sampler: Contract Tab 2011/09/30 15:33:41 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-9 2011/09/30 15:33:41 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-9 2011/09/30 15:33:42 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-30 2011/09/30 15:33:42 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-30 2011/09/30 15:33:46 WARN - jmeter.engine.StandardJMeterEngine: Thread won't exit: Thread Group 1-24 2011/09/30 15:33:49 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-24 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-24 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Stopping test 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 2011/09/30 15:33:49 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Test has ended 2011/09/30 15:33:51 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 2011/09/30 15:33:51 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 2011/09/30 15:33:51 INFO - jmeter.engine.StandardJMeterEngine: Test has ended Any ideas of why the test plan appears to stop This was due to a bug in the shutdown code, which reported the end of the test, even though one or more threads were still running. This has been fixed in the upcoming 2.5.1, which also allows the user to retry the stop command after dismissing the modal dialog. Note: if some threads refuse to stop, the only solution is to exit the JVM; there is no guaranteed safe way to forcibly kill a thread. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: not all thread group ending with nothing in the logs WARN Thread won't exit after stopping
On 4 October 2011 23:31, Basim Baassiri ba...@baassiri.ca wrote: my current observations are the initial 90 threads start and finish and the remainder appear to be not shutting down There is a period of almost 55 mins where the logs are not being written to at which point i see another thread shutdown message So? That just means that some threads are not completing, or are taking a long time to do so. You need to find out why. A thread dump should indicate why the threads have not finished. Most likely they are waiting for a sample to complete. However, there are other possibilities, e.g. deadlock. Thread dumps tend to be very large, so save it to a file on a public server and send the URL rather than posting here. [Also, it's much harder reading long logs etc in mail messages, because wrapping destroys the formatting.] If the sampler supports it, you might wish to consider adding a timeout; make this somewhat longer than the longest expected response so you don't lose any valid responses. A few minutes might be suitable, or it might have to be longer. snip log file entries - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: While controller condition always evaluating as true
On 3 October 2011 09:49, vineeth vineeth.sasidha...@spi.com wrote: In my TestPlan I have a while controller having few HTTP REQUEST Saplers as it's child. This While loop is being executed Infinitely for different conditions like ${__javaScript(1!=1)} Does not run at all for me ${__javaScript(1==1)} Agreed, never stops, but that is correct. ${__BeanShell(!1.equals(1)) Syntax error, missing final } - see log file Once fixed, behaves correctly - i.e. does not run. ${__BeanShell(1.equals(1)) Syntax error, missing final } - see log file Once fixed, behaves correctly - i.e. does not stop. ${__javaScript(${VariableName}!=value)} Won't stop until VariableName==value ${__javaScript(${VariableName}==value)} As expected, does not run unless the variable==value The while loop is not executed when the condition is hard coded as false. Yes, that is by design. I have tried the same with Jmeter2.4 and Jmeter2.5 What should be the proper format of the condition statement? See http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller Thanks in advance Vineeth -- View this message in context: http://jmeter.512774.n5.nabble.com/While-controller-condition-always-evaluating-as-true-tp4864164p4864164.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: While controller condition always evaluating as true
On 3 October 2011 12:37, vineeth vineeth.sasidha...@spi.com wrote: Thanks Sebb ${__javaScript(1!=1)} I tried this on my colleagues system it works. But when I try the same in my system it fails (While controller executing infinitely). Does this have anything to do with my JDK or JRE versions. Can any one throw some light into this issue Have you checked the jmeter.log file? Regards Vineeth -- View this message in context: http://jmeter.512774.n5.nabble.com/While-controller-condition-always-evaluating-as-true-tp4864164p4864575.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: While controller condition always evaluating as true
On 3 October 2011 13:38, vineeth vineeth.sasidha...@spi.com wrote: It works Now The problem was that I had a javascript expression in the comment field of the while controller which had a syntax error in it. If a test plan does not behave as you expect, it's always worth checking the logi file. When I checked the log file there was an error on that expression. When that is removed it worked. Thanks for lettins us know the problem has been solved. Cheers Vineeth -- View this message in context: http://jmeter.512774.n5.nabble.com/While-controller-condition-always-evaluating-as-true-tp4864164p4864700.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Sending variable name instead of null
On 3 October 2011 21:27, skchoppala skchopp...@gmail.com wrote: I think jmeter loads the csv in to a data structure as key value pairs. If no value present for that column it will treat column name as value. Not quite. JMeter does not replace variable references for variables that don't exist. So ${unknown} is left as ${unknown} if unknown is not a known variable. -- View this message in context: http://jmeter.512774.n5.nabble.com/Sending-variable-name-instead-of-null-tp4864916p4866416.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: not all thread group ending with nothing in the logs WARN Thread won't exit after stopping
On 1 October 2011 15:52, Basim Baassiri ba...@baassiri.ca wrote: HI just to confirm that this is the bug that might resolve my issue https://issues.apache.org/bugzilla/show_bug.cgi?id=51880 Not exactly - that was a bug exposed/caused by a previous fix to shutdown handling. Please wait until 2.5.1 is released and try again with that. On Sat, Oct 1, 2011 at 5:26 AM, sebb seb...@gmail.com wrote: On 30 September 2011 20:49, Basim Baassiri ba...@baassiri.ca wrote: Hi, I started jmeter with DEBUG logging on (running on window 7) jmeter -Ljmeter.engine=DEBUG i have a test plan that I've seen work and run against a test environment and when i start the testplan against a different environment, jmeter appears to not respond or be active. There is a period of time in the logs that nothing happens so i stopped the test 2011/09/30 15:33:39 INFO - jmeter.gui.action.Start: Stopping test 2011/09/30 15:33:39 INFO - jmeter.threads.JMeterThread: Stopping: Thread Group 1-30 2011/09/30 15:33:39 WARN - jmeter.threads.JMeterThread: Interrupting: Thread Group 1-30 sampler: Product Tab 2011/09/30 15:33:39 INFO - jmeter.threads.JMeterThread: Stopping: Thread Group 1-24 2011/09/30 15:33:39 WARN - jmeter.threads.JMeterThread: Interrupting: Thread Group 1-24 sampler: Program Tab 2011/09/30 15:33:39 INFO - jmeter.threads.JMeterThread: Stopping: Thread Group 1-9 2011/09/30 15:33:39 WARN - jmeter.threads.JMeterThread: Interrupting: Thread Group 1-9 sampler: Contract Tab 2011/09/30 15:33:41 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-9 2011/09/30 15:33:41 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-9 2011/09/30 15:33:42 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-30 2011/09/30 15:33:42 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-30 2011/09/30 15:33:46 WARN - jmeter.engine.StandardJMeterEngine: Thread won't exit: Thread Group 1-24 2011/09/30 15:33:49 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-24 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-24 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Stopping test 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 2011/09/30 15:33:49 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Test has ended 2011/09/30 15:33:51 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 2011/09/30 15:33:51 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 2011/09/30 15:33:51 INFO - jmeter.engine.StandardJMeterEngine: Test has ended Any ideas of why the test plan appears to stop This was due to a bug in the shutdown code, which reported the end of the test, even though one or more threads were still running. This has been fixed in the upcoming 2.5.1, which also allows the user to retry the stop command after dismissing the modal dialog. Note: if some threads refuse to stop, the only solution is to exit the JVM; there is no guaranteed safe way to forcibly kill a thread. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: How do I substitute jmeter variable in Summary Report (Listener) Filename.
On 2 October 2011 20:22, Oliver Lloyd oliver_ll...@hotmail.com wrote: JMeter only produces one results file per execution, you can't have multiple results files within one run. Yes, you can. JMeter can write multiple results files; just add a listener in the appropriate scope, and configure it with the file name and other settings However, the -l command-line flag only supports one output file, whose settings are controlled by JMeter properties. {acc_name} is not set because when the file is created (the start of the run) this variable is not set. If you want different files based on different conditions then put this logic into a shell script and run one test per condition passing the value using -l. Or instead, you could use a custom field in the results file, in this field you could write your condition {acc_name} and then filter the results that way - this is a better solution. - http://www.http503.com/ -- View this message in context: http://jmeter.512774.n5.nabble.com/How-do-I-substitute-jmeter-variable-in-Summary-Report-Listener-Filename-tp4858620p4862836.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: How do I substitute jmeter variable in Summary Report (Listener) Filename.
On 3 October 2011 00:24, Oliver Lloyd oliver_ll...@hotmail.com wrote: Really?! I'm curious to know what led you to believe that it was only possible to create one output file? Maybe the documentation needs improving. OK, I just tried it, you're right! (Obviously.) Cool. So Sebb knows about a million times more than I do on these things so I'll just quietly withdraw that last statement and skulk away somewhere. Don't do that ... - http://www.http503.com/ -- View this message in context: http://jmeter.512774.n5.nabble.com/How-do-I-substitute-jmeter-variable-in-Summary-Report-Listener-Filename-tp4858620p4863376.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: If i do a manual execution by adding extended status bar to firefox
On 1 October 2011 06:07, sprasad sprasad.s...@gmail.com wrote: I have calculated manually by adding up all the response times in 'Average' column and divided by number of labels, in my case that would 3920/7=560if i divide it by 1000 to show it in seconds it would 0.56, but here the value is 0.66 which i got in aggregate report... You cannot average averages buy adding them, unless each average represents the same number of samples. You have to multiply each average by the number of samples it represents, add them all together, then divide by the total number of samples. actually the table which i have given you is aggregate report of a simple login test script of my application, instead of the URL I have just given numbers. This Login has been run for 25 users - total 7 navigations One more thing you said last row value is not much useful ? then which value should we consider to say that, you know, this login is taking this amount of time for N number of users.?? Is Min. and Max. values against the labels are the response time (in milliseconds) for that particular label/navigation - right ??? Yes. Thanks, Sd On Fri, Sep 30, 2011 at 10:25 PM, shettyd [via JMeter] ml-node+s512774n4857796...@n5.nabble.com wrote: how have you calculated it manually (the last row value is not much useful anyway)? If Request1 = 10 samples each 10 secs therefore avg =10 seconds and request2 = 1 sample , 1 second therefore avg = 1 second then overall average = (10*10 + 1*1)seconds/(10+1) samples. regards deepak On Thu, Sep 29, 2011 at 11:50 PM, sprasad [hidden email]http://user/SendEmail.jtp?type=nodenode=4857796i=0 wrote: Hi Oliver, I have a small () question for you - I am running some tests and presenting the aggregate report - in this, Average Response Time, which is the second column in agg. report table is the average of set of response times, but the the value displayed in the last row - Total - and under Average column is not matching up when i do the average of response times manually. For ex, have a look at the below table: I have taken Average in seconds. The Average *0.66* in the last row is not matching up when i do the average of the response time manually. Also, Min and Max represent the min. response time and max. response time for that particular label (navigation) - right ? *Label* *Samples* *Average (s)* *Median* *90%Line* *Min* *Max* *Error%* *Throughput* *KB/Sec* URL 75 1.00 749 3019 27 6035 0 8.39 164.26 1 50 0.63 34 2978 20 6031 0 7.38 53.07 Login Page 25 0.14 17 33 12 3009 0 3.74 25.02 2 25 0.13 9 16 7 2939 0 3.74 5.69 3 25 1.10 864 1120 306 4106 0 3.36 146.53 4 Home Page 25 0.87 957 1028 234 1038 0 2.78 121.36 5 25 0.05 52 59 30 77 0 2.86 7.46 *TOTAL* *250* *0.66* *58* *2961* *7* *6035* *0* *24.94* *427.27* Please clear my doubts. Thanks, Sd On Sat, Aug 20, 2011 at 5:11 PM, Oliver Lloyd [via JMeter] [hidden email] http://user/SendEmail.jtp?type=nodenode=4857796i=1 wrote: The problem here is you are trying to do something that is essentially not possible and, crucially, not useful. JMeter is not a browser so it will never give you the exact same response times for rendering a page as you see in your browser. Indeed, different browsers themselves will give you different page load times so there's really no point worrying about the difference. What you really need to do is work out your objectives - what are you trying to do? What are your requirements for testing? You should qualify in verbal terms what you what to achieve and then prove the same using your tests. Then you should quantify these statements to create actual targets to aim for, giving you pass / fail criteria. Having objectives is especially important when thinking about 'rendering' the full page because this experience is effected by multiple things and needs to be understood and planned for. For example, do you even want to simulate page resources? Are you using a CDN? Are there any other types of caches that you need to take account of when designing your load? Based on the requirements you then go away and design a test that meets them. If page rendering is in scope, if you want to validate the client side performance, then this is more of a functional activity - you cannot use a tool like JMeter to test this. In fact you don't need a 'tool' to do this at all, just a mouse and keyboard will suffice. Client side performance is crucial - there are lots of things to be
Re: not all thread group ending with nothing in the logs WARN Thread won't exit after stopping
On 30 September 2011 20:49, Basim Baassiri ba...@baassiri.ca wrote: Hi, I started jmeter with DEBUG logging on (running on window 7) jmeter -Ljmeter.engine=DEBUG i have a test plan that I've seen work and run against a test environment and when i start the testplan against a different environment, jmeter appears to not respond or be active. There is a period of time in the logs that nothing happens so i stopped the test 2011/09/30 15:33:39 INFO - jmeter.gui.action.Start: Stopping test 2011/09/30 15:33:39 INFO - jmeter.threads.JMeterThread: Stopping: Thread Group 1-30 2011/09/30 15:33:39 WARN - jmeter.threads.JMeterThread: Interrupting: Thread Group 1-30 sampler: Product Tab 2011/09/30 15:33:39 INFO - jmeter.threads.JMeterThread: Stopping: Thread Group 1-24 2011/09/30 15:33:39 WARN - jmeter.threads.JMeterThread: Interrupting: Thread Group 1-24 sampler: Program Tab 2011/09/30 15:33:39 INFO - jmeter.threads.JMeterThread: Stopping: Thread Group 1-9 2011/09/30 15:33:39 WARN - jmeter.threads.JMeterThread: Interrupting: Thread Group 1-9 sampler: Contract Tab 2011/09/30 15:33:41 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-9 2011/09/30 15:33:41 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-9 2011/09/30 15:33:42 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-30 2011/09/30 15:33:42 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-30 2011/09/30 15:33:46 WARN - jmeter.engine.StandardJMeterEngine: Thread won't exit: Thread Group 1-24 2011/09/30 15:33:49 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-24 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-24 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Stopping test 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 2011/09/30 15:33:49 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 2011/09/30 15:33:49 INFO - jmeter.engine.StandardJMeterEngine: Test has ended 2011/09/30 15:33:51 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 2011/09/30 15:33:51 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 2011/09/30 15:33:51 INFO - jmeter.engine.StandardJMeterEngine: Test has ended Any ideas of why the test plan appears to stop This was due to a bug in the shutdown code, which reported the end of the test, even though one or more threads were still running. This has been fixed in the upcoming 2.5.1, which also allows the user to retry the stop command after dismissing the modal dialog. Note: if some threads refuse to stop, the only solution is to exit the JVM; there is no guaranteed safe way to forcibly kill a thread. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Command Line option to Enable and Disable ?
On 29 September 2011 18:11, Deepak Shetty shet...@gmail.com wrote: if you know it in advance then add an IF controller (wrapping your loop) that checks a property (where the property is passed by command line) Or you could use a property for the loop count, with default 0, and set the property non-zero when you want to enable it. jmeter 2.5 has setup and teadown threadgroups which might be what you are looking for - http://jakarta.apache.org/jmeter/usermanual/component_reference.html#setUp_Thread_Group regards deepak On Thu, Sep 29, 2011 at 7:31 AM, mkt michaelkturner...@gmail.com wrote: Hello Is there a way via command line to enable and disable loops controllers? I have a test plan that has a clean up set of steps that I disable to run the tests, then disable the test loop and enable the clean up loop. Of course in the GUI you just right click and select enable/disable... Thanks -- View this message in context: http://jmeter.512774.n5.nabble.com/Command-Line-option-to-Enable-and-Disable-tp4853330p4853330.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: XPath Extractor doesn't work if I check 'Use Tidy'
There are two aspects to XML correctness: - well-formed - valid Well-formed just means matching end-tags and no syntax errors, which is probably all you were expecting. Valid means that the XML agrees with its DTD. For XHTML, Tidy knows what the DTD is. Tidy does not know what the DTD for arbitrary XML is unless you tell it, so it cannot know if xyz is valid or not. On 29 September 2011 05:08, freesky h...@windowslive.com wrote: Thanks, after I checked the 'Report errors' and 'Show warnings', the assertion of 'read' sampler is false, the Assertion failure message is ' //record/@id - tidy : 4 errors, 9 warnings. And Sorry, the real response data is like next, I didn't think there is errors, so I simplified the response data : records _actions_=trueread control={objs:[],mode:} totalRecords=2record des={shili:[{enabled:true,name:editable}]} id=6//read/records, I Then I checked the log, it's : jmeter.util.XPathUtil: TidyException: line 1 column 1 - Warning: records attribute _actions_ has invalid value true line 1 column 1 - Error: records is not recognized! line 1 column 1 - Warning: missing lt;!DOCTYPEgt; declaration line 1 column 1 - Warning: discarding unexpected records line 1 column 27 - Error: read is not recognized! line 1 column 27 - Warning: discarding unexpected read line 1 column 297 - Error: record is not recognized! line 1 column 297 - Warning: discarding unexpected record line 1 column 846 - Error: record is not recognized! line 1 column 846 - Warning: discarding unexpected record line 1 column 1,453 - Warning: discarding unexpected /read line 1 column 1,460 - Warning: discarding unexpected /records line 1 column 1,474 - Warning: inserting missing 'title' element InputStream: Document content looks like HTML 2.0 9 warnings, 4 errors were found! This document has errors that must be fixed before using HTML Tidy to generate a tidied up version. But why it said ' records attribute _actions_ has invalid value true ' and ' records is not recognized! '. -- View this message in context: http://jmeter.512774.n5.nabble.com/XPath-Extractor-doesn-t-work-if-I-check-Use-Tidy-tp4848485p4851678.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: counter function bug
On 30 September 2011 16:04, sebb seb...@gmail.com wrote: On 30 September 2011 08:34, Philippe Mouawad philippe.moua...@gmail.com wrote: Hello, I confirm this behaviour also exists in 2.5 and 2.5.1. It may be a documentation issue or a real issue, I opened an issue for clarification: - https://issues.apache.org/bugzilla/show_bug.cgi?id=51923 As it is made I think counter will only change at each iteration. Yes, I think that's the case here. If a variable refers to a function, one would expect the variable to be evaluated once per iteration, so it can be used in multiple samples. Sorry, ignore that; not really relevant here. Regards Philippe On Fri, Sep 30, 2011 at 8:16 AM, Nermin CALUK ner...@atlantbh.com wrote: Confirmed with JMeter 2.4 (confirming the behavior, it looks like a bug): - scenario below produces 1,1 - just increasing number of threads in the thread group also produces all ones 1,1,1,1 - 3 samplers, each containing the same function, loop 3 is 1,1,1,2,2,2,3,3,3 - one sampler loop 3 1,2,3 (I guess this is expected behavior) Nermin -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: 30. septembar 2011 6:38 To: JMeter Users List Subject: counter function bug per the documents The counter generates a new number each time it is called, starting with 1 and incrementing by +1 each time. However ThreadGroup +${__counter(TRUE,ref)}HTTPSampler1 +DebugSampler +${__counter(TRUE,ref)}HTTPSampler2 +DebugSampler +View Results tree Generates the number 1 in both cases. Can someone confirm this is abug? regards deepak - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Cordialement. Philippe Mouawad. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: SSL invalid keystore Connection Reset
On 28 September 2011 09:37, dino past...@gmail.com wrote: Hi, I have problems with testing a site that I access through a VPN tunnel. I have access to the site via any browser. I have added Jmeter Proxy certificate as trusted in my browsers. OK. However you should probably not trust it permanently. But when I record via JMeter proxy, or when I run tests that are previously recorded on a staging environment and where I just have changed the server Name or IP and set protocol to https, I always get 1. as response /java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:185) at sun.security.ssl.InputRecord.readFully(InputRecord.java:312) at sun.security.ssl.InputRecord.read(InputRecord.java:350) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:818) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1158) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1185) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1169) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:440) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:485) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:999) at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:236)/ 2. JMeter log /ERROR jmeter.util.SSLMANAGER: Problem loading keystore: Invalid keystore format / JMeter is trying to read the client keystore. Have you created or changed the client keystore? What are the other log messages from jmeter.util.SSLMANAGER? and /ERROR jmeter.protocol.http.sampler.HTTPJavaImpl: readResponse: java.net.SocketException: Connection reset/ I sure am missing something fundamental, as this is my first time to have to test a HTTPS site I access through VPN Please post if you have any hints -- View this message in context: http://jmeter.512774.n5.nabble.com/SSL-invalid-keystore-Connection-Reset-tp4848387p4848387.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: SSL invalid keystore Connection Reset
On 28 September 2011 12:30, dino past...@gmail.com wrote: Hi sebb-2-2, well as said, this is really new to me. 1. sure I will remove the proxy certificate after testing is done, or set it to untrusted again 2. I have created the directory ~/.keystore by hand as I saw it it in jmeter.log and I have copied in there the sites certificate Why? Do you need a client certificate? 3. sorry for my bad knowledge, but I can not find any jmeter.util.SSLMANAGER Huh? You already provided a part of the log that contained such a message: ERROR jmeter.util.SSLMANAGER: Problem loading keystore: Invalid keystore Were there any other messages in the log before that? -- View this message in context: http://jmeter.512774.n5.nabble.com/SSL-invalid-keystore-Connection-Reset-tp4848387p4848789.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: XPath Extractor doesn't work if I check 'Use Tidy'
On 28 September 2011 11:59, freesky h...@windowslive.com wrote: There are more than one return value, so I have to use ${a_1}, ${a_2}. OK, but that is not what I asked - does ${a} exist? The response data of 'read' sampler is like this : records _actions_=true record id=2/record /records Why use Tidy? Isn't that valid XML? The XPath Extractor is : Reference name : a XPath : //record/@id Use a default; makes debugging easier. The sampler use the the 'Reference name' is like this : ?xml version=1.0 encoding=UTF-8?request id=${a_1}/request Try enabling Report Errors and Show Warnings; disable Quiet. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
On 28 September 2011 12:36, SanderW san...@performancearchitecten.nl wrote: So now we are both able to record the HTTPS traffic. I have a Results Tree listener attached to the HTTP Proxy Server, so I can see what is recorded. Though we are able to record the HTTP requests, We still see sample failed with different response messages: - Software caused connection abort: recv failed - Received fatal alert: unknown_ca - Remote host closed connection during handshake All mentioning ensure browser is set to accept the JMeter proxy certificate Another question is about the jmeter.log: I see that jmeter.protocol.http.proxy.Proxy uses the proxyserver.jks keystore. That's for the proxy cert. And jmeter.util.SSLManager is looking for the keystore in C:\Users\Sander\.keystore That's for a client cert, if used. Why is that? Not sure why it always loads the client keystore. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: SSL invalid keystore Connection Reset
On 28 September 2011 13:23, dino past...@gmail.com wrote: Regarding no2 : I have made the directory as I saw it in the log file. But why? Are you using a client certificate to connect to the site? This is quite unusual. Try deleting the keystore. here are some of the log entries: ... 2011/09/28 13:31:18 INFO - jmeter.util.SSLManager: JmeterKeyStore Location: /home/dino/*.where.com Have you defined the property javax.net.ssl.keyStore? If so, why? 2011/09/28 13:31:18 INFO - jmeter.util.SSLManager: KeyStore created OK, Type: JKS 2011/09/28 13:31:24 ERROR - jmeter.util.SSLManager: Problem loading keystore: Invalid keystore format . 2011/09/28 14:04:25 INFO - jmeter.protocol.http.proxy.Daemon: Proxy up and running! 2011/09/28 14:04:28 ERROR - jmeter.protocol.http.proxy.Proxy: Problem with SSL certificate? Ensure browser is set to accept the JMeter proxy cert: Remote host closed connection during handshake 2011/09/28 14:04:29 ERROR - jmeter.protocol.http.proxy.Proxy: java.net.SocketException: Connection closed by remote host at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1327) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:62) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) at org.apache.jmeter.protocol.http.proxy.Proxy.writeToClient(Proxy.java:437) at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:258) 2011/09/28 14:04:29 ERROR - jmeter.protocol.http.proxy.Proxy: Problem with SSL certificate? Ensure browser is set to accept the JMeter proxy cert: Connection closed by remote host *this is what I get a response in browser* java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:185) at sun.security.ssl.InputRecord.readFully(InputRecord.java:312) at sun.security.ssl.InputRecord.read(InputRecord.java:350) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:818) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1158) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1185) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1169) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:440) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:485) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:999) at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:236) *I have added JMeter Proixy certifcate as trusted in firefox, where I do the recording* ? -- View this message in context: http://jmeter.512774.n5.nabble.com/SSL-invalid-keystore-Connection-Reset-tp4848387p4848904.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Distributed testing - Memory usage
On 28 September 2011 13:48, poox r...@bancha.net wrote: Hi, I'm trying to run a fairly simple test plan in distributed mode and experiencing some interesting memory consumption issues which I hope someone can shed some light on.. The problem is regardless of how many threads I use, each of the slave servers sees growing memory usage until they eventually run out of memory and the jmeter-server process dies with this error: java.lang.OutOfMemoryError: Java heap space I am very confused by this behaviour as my understanding of the slave mode jmeter-server is that it should be passing all data back to the master and the JVM GCs should be taking care of the memory, sadly this is not the case. Regardless of how many threads I use, with or without a constant timer etc.. the memory usage of the java process on each of the slaves ramps up... Config: 1 x Master Server - Linux, GUI mode (CentOS x64) 3 x Slave Server - Linux (CentOS x64) Test plan: - 10,000 loops @ 5 threads - One thread group - Constant Timer (500ms) - 15 HTTP Requests (using HTTP client, non ssl.) Any functions or other test elements (post-processor etc)? - One listener (Aggregate report) Aggregate Listener used to use a lot of memory; remove all Listeners from the test plan, and use -l on the client. Any ideas? JMeter Version? Things I've tried: - Simple test plans. - Upping heap size on master + slaves to 1024 - Batch mode processing for results What do you mean by that? Have you tried running the script non-GUI on the server? - Removing all listeners Tearing my hair out! -- View this message in context: http://jmeter.512774.n5.nabble.com/Distributed-testing-Memory-usage-tp4849000p4849000.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Sample Number
On 27 September 2011 19:04, Bruce Wobbe br...@thewobbes.com wrote: Hi All, is there a way to get the sample number produced in the jtl? I've tried property name=jmeter.save.saveservice.sample_count That's the number of samples in the result; could be 1 for parent sampler. value=true/ but this value is 1 for each sample. I want to be able to look at the jtl and and a particular item to see it line up with the html that is produced. n other words when I look at the html and see for example sample 77 is slow I want to be able to go into the jtl and quickly find sample 77 If you use CSV output, it produces 1 line for each sample (plus header, if selected). Makes finding the sample trivial. Otherwise, you might want to try http://jakarta.apache.org/jmeter/usermanual/listeners.html#sample_variables in conjunction with a global counter variable. Or you can include the variable in the sample label. Or you could process the JTL with a scripting language and add numeric tags to each sample. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Jmeter novice asking help to avoid error 501 during recording using http proxy server
On 27 September 2011 20:05, forfano forf...@hotmail.com wrote: Lads, I am wondering if someone could give me a practical help on how could I avoid the 501 error (Method not implemented) during the recording which I am doing using HTTP proxy server. I can explain the issue: During recording the browser submits the following : GET http://ciweb10.homologacao.extranet.teste:8280/ciweb/buttons.do?buttons=VOLbuttons=ADLbuttons=LIMbuttons=AJUtitulo=Proponente/Arrendatáriotrancode=V034791002subtitulo=80009876-2 This ends up with a sample failed in the View tree listener and therefore my page is not displayed but the error 501 Method not implemented. The cause of this error is due to the word ./Arrendatário It is using an accented Portuguese character á instead of use the html code for it. I know that the page should had been designed correctly (using html codes) but as a load tester I would like to bypass it just like the normal browser (IE, Firefox) does. So how could modiy such characters on the fly before trying to parse it on the http proxy server? I saw some pre-processors components and I am not sure if I could use then during recording and if I can which one and how would be the best way. No, Pre-Processors do not currently apply during the recording phase. Might perhaps be a useful feature; feel free to raise a Bugzilla enhancement. However, you can change the recorded script later to fix the conversion. The problem then becomes - how to get past the failure? One possible method is to temporarily disable the browser proxy setting, get past the login, and then enable the proxy to continue recording. When I tested it without the Jmeter proxy and I did sniffed the network I could see the the á was ripped off which. Any ideas ? If someone needs more explanation I am glad to do it. I will post cross this on www.jmeterforumotion.com Looking forward to hearing from someone. Cheers! Flavio -- View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-novice-asking-help-to-avoid-error-501-during-recording-using-http-proxy-server-tp4846605p4846605.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Generate requests at specified time
On 25 September 2011 13:43, Jian-Ming Zheng jmzh...@gmail.com wrote: Hi, Thanks for your reply. We do not want to model the Zipf-like distribution, but use it as an example of request patterns to test the Web server. We have designed some power management mechanism (i.e., dynamic voltage and frequency scaling approach) for used in Web server. We want to measure the performance of Web server (e.g., power consumption and response time) under several Web workloads, for example, Zipf-like distribution. In addition, we may generate other request patterns (not Zipf-like) and use them to test the server. So we want to control the requests issued by JMeter using a trace file. Yes, we can use the second solution and have already used it. We put all URLs into a file where the number of requests for a particular URL is based on Zipf-like distribution. Then, we use Constant Throughput Timer to control the number of requests sent per minute. However, it may be difficult to create a JMeter test plan if we want to use other request patterns that do not follow any distribution and are based on some user scenarios. That is the number of requests per second is particular, neither constant nor random. So it will be suitable for our case if JMeter can read a trace file to generate requests. JMeter is a powerful Web load testing tool but may not be suitable in our case. Please kindly let us know if other Web benchmark tools can read trace files to generate requests. Thanks for any replies. You may be able to write your own implementation for the http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Access_Log_Sampler That would probably be the most elegant solution. A simpler solution might be to pre-process the input data for each thread to include both the URL and the total elapsed time between the start of the sample and the start of the next sample - let's call this the readyTime, so the next sample should start at this sample start time + readyTime. The test thread then looks like Loop: + Sample URL + Wait until ready to start next sample. It is easy enough to calculate the required pause time. The next sample should start at: sampleStartTime + readyTime So the required pause is sampleStartTime + readyTime - currentTime or equally readyTime - sample Elapsed time (assuming current time == end of sample time, which should be approximately true) Timers are processed before samplers, so it may be easier to use a TestAction sampler or BSF/BSH Post-Processor. For the TestAction sampler, the time can be calculated using one of the scripting functions: http://jakarta.apache.org/jmeter/usermanual/functions.html All the scripting functions have access to the variable: sampleResult - previous SampleResult object (if any) which has methods to obtain the start and elapsed times For example ${readyTime} - sampleResult.getTime() should work. You might need to allow for the calculation returning a negative number - i.e. the previous sample took too long. If you want to log this, it would probably be simpler to use a BSF/BSH Post-Processor to do the work. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: How many loop controlers ?
On 23 September 2011 15:11, mkt michaelkturner...@gmail.com wrote: I was wondering if there is a limit on how many loop controllers can go in one Test Plan or Thread? I am looking to put 500-2000, but in past I've only done around 100. Anyone know if this is going to be a problem? I don't think there's an inherent limit, other than memory usage. Remember that the entire plan has to be copied for each thread. But I wonder whether you really need so many. Large plans can often be simplified by careful use of JMeter variables (which can be read from external files). Or perhaps use the Module Controller. Thanks -- View this message in context: http://jmeter.512774.n5.nabble.com/How-many-loop-controlers-tp4833696p4833696.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: How many loop controlers ?
On 23 September 2011 15:32, mkt michaelkturner...@gmail.com wrote: I will running from the command line so Module is out. I started with The Module Controller does work in non-GUI mode (and client-server); the JMeter unit test file BatchTestLocal.jmx includes an example. variables, but ran into an issue. There are some users that get pages returned that others don't but the logic is done in PL/SQL and I don't see a way to use any logic controller to key off of this. There are no javascript variables to read. And with variables I'm not clear on how it would work, i.e. User1 ID,PW dataentry1,dataentry2,dataentry3 User2 ID,PW dataentry1 User3 ID,PW dataentry1,dataentry2,dataentry3,dataentry4,dataentry5,dataentry6 So we have 3 users lets say, all have the common ID and PW variables, but then each user will enter a different number of data elements then save. How are the variables used? Are they HTTP Parameters? Are you using GET or POST? If using GET, then parameters are ignored if the name is blank, so that may be one way to do it. Also, the Switch Controller might be useful; add child samples with 1,2,3 etc. parameters and use the variable to select which one is used. Alternatively, one can use a BSH or BSF Pre-Processor to populate the parameters; this has been discussed on this list a few times. In this case, the CSV file should probably contain a field with the number of parameters, followed by the actual parameters. That would help with the Switch Controller as well. Not clear on how to reduce the loops other than group them together by the number of data entries they have. See above - there are lots of ways to configure JMeter. -- View this message in context: http://jmeter.512774.n5.nabble.com/How-many-loop-controlers-tp4833696p4833784.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: change the variable's value without the counter
On 21 September 2011 11:59, freesky h...@windowslive.com wrote: Hi, I want to create a variable 'id', the default value is 0. If there is a specific request, such as submit data request, then the variable 'id' will plus 1. Then the 'id' will plus 1 in the next request, so now the value of id is 2, and so on. I don't want to use 'counter', so any other else solutions? Thanks in advance! Have a look at the JMeter functions [1], in particular intSum and StringFromFile [1] http://jakarta.apache.org/jmeter/usermanual/functions.html - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: JMeter GUI vs JMeter Server
On 21 September 2011 14:08, kootsoop koots...@gmail.com wrote: Thanks for the feedback! Oliver Lloyd wrote: Do you also get different response times? Yes, I get different response times because the system under test is taking longer to respond when under higher load. Oliver Lloyd wrote: And are you pacing these requests using timers or are they just going as fast as they can? No, there are no timers, it's just running as fast as possible. However, it's strange that the server seems to think as fast as possible is slower than either the GUI client or the non-GUI client. The server cannot respond any faster than JMeter is able to drive it; however it may respond slower. in which case JMeter will wait for it to respond before sending the next request in the thread. If the server is having problems, then the sample elapsed times will normally start increasing. The JMeter server sends back the samples to the client after the sample has finished, but before the next sample can occur, so any delays in returning the sample to the client will slow down the rate at which the thread can issue requests to the server. This is equivalent to adding a delay after each request. So you need to compare the elapsed times. If these are similar in both situations, then the server is behaving the same. Then compare the gaps between sample requests. If these are much longer than expected from the test plan, it's likely that the server-client communication overhead is causing a problem. -- View this message in context: http://jmeter.512774.n5.nabble.com/JMeter-GUI-vs-JMeter-Server-tp4822852p4826255.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Store extracted data in a file
On 21 September 2011 16:38, ZK stevesenio...@gmail.com wrote: Couldn't you have 1 Thread Group? Like this: Thread group +Admin create +User +Admin delete Then you could change the 'Number of Threads' for that particular thread group Or, use the new setUp and tearDown Thread Groups in 2.5 ZK -- View this message in context: http://jmeter.512774.n5.nabble.com/Store-extracted-data-in-a-file-tp4757868p4826805.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Get max or min Value of a Variable or Regular Expression
On 20 September 2011 08:37, dino past...@gmail.com wrote: Thx for this suggestion. First I will describe the problem a little more detailed. I am testing a web application that creates new records for some db tables. When I create a new record, i.e. fill in all needed data and click save, a new tuple is created and this is reflected in the URL. After I create a tuple I get a URL with the id like http://...htm?id=42;. I have tried to catch this id via regular expression extractor with the regEx \.*htm\?id=(\d+) but I always get the default value set in regex extractor instead of the id ?!! Did you set the Regex Extractor Response field to URL ? So I try to get the id (that is nothing but the PK of the current created tuple) by reading a table view of all records. I need the currently set highest id, plus 1, to have the current value of the PK i.e. the id. I will try with beanshell. Maybe someone has a tip, as I am new to using beanshell. thx -- View this message in context: http://jmeter.512774.n5.nabble.com/Get-max-or-min-Value-of-a-Variable-or-Regular-Expression-tp4818919p4821657.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Get max or min Value of a Variable or Regular Expression
On 20 September 2011 11:29, dino past...@gmail.com wrote: Yes sure I have tried RegEx to captcher URL The prob is when I click save (no id need till here) I get a new URL that contains the ID What do you mean by that? How is the URL communicated to you? - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Get max or min Value of a Variable or Regular Expression
On 20 September 2011 11:38, dino past...@gmail.com wrote: See my previous post please. Yes, I read it, but it's not clear. As mentioned: two http request are generated after clicking safe, and the second one needs id as parameter. What generates the requests? Or do you mean responses? JMeter sends HTTP requests, and the server returns HTTP responses, which can be displayed in a Listener. Please explain your scenario in terms of requests you send and responses you receive. I tried to read it out, but no success right now. -- View this message in context: http://jmeter.512774.n5.nabble.com/Get-max-or-min-Value-of-a-Variable-or-Regular-Expression-tp4818919p4822064.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Get max or min Value of a Variable or Regular Expression
On 20 September 2011 12:31, dino past...@gmail.com wrote: @sebb-2-2 I'll try to describe the problem more detailed. I record the test steps by starting a http proxy. When I generate a new record, i.e. fill out all needed data and proceed with safe, following two http request are recorded 1. http request get on side .../new.htm parameters are all the collected data, various, but id is empty additional a second step is recoreded/generated 2. http request post on side .../show.htm parameter is just id with its numerical value So how does the browser know what id to use? It must be included in the response to step 1. So all you need to do is extract it from the response, and use it in step 2. Do you need any more info. Yes, the section of the response to request one which contains the id for step 2; people can then help with the regex to extract it. See where I have a problem. 1st does not give any value for id. Since it is the server that generates the id, it has to tell the browser what it is. That will be done in the response it sends to step 1. But I need the concrete value of id in the second step. Tried to record all possible ways to record id between step 1 and step 2, but nothing thx -- View this message in context: http://jmeter.512774.n5.nabble.com/Get-max-or-min-Value-of-a-Variable-or-Regular-Expression-tp4818919p4822171.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Jmeter Performance using, jmeter-server VS running in the local instance
On 20 September 2011 17:19, kootsoop koots...@gmail.com wrote: For the record: http://jmeter.512774.n5.nabble.com/JMeter-GUI-vs-JMeter-Server-td4822852.html I am seeing similar problems with JMeter as Eric came across. Running in the GUI, I get ~1400 requests per second; running the same test plan in the server mode, I only get about 400 requests per second. The system under test is the same; the server machine is the same instance size as the GUI machine; I get the same results whether I control the remote server machines from the GUI or from the command line. Remember that the server is controlled from the client, also all responses are sent back to the client. So if the client system is slow, or the network connection to the server is slow, then this can affect the server system throughput. Having said that, a better comparison would be to run the same test non-GUI on the server, and then run it client-server with non-GUI client. That will show you if the client-server connection overhead is too much. The JMeter docs explain how to configure the server sample sending mode; you might find that statistical mode works for you. -- View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4823146.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Make JMeter report error messages in console
On 19 September 2011 16:34, E S electric.or.sh...@gmail.com wrote: No, the error messages are not being written to the jmeter.log file. The only way I was able to get any kind of real time feedback on this was to add the JMeterPlugins Console Status Logger (thanks for the help Andrey). I find this a little surprising. I think this would be a good candidate for a simple JMeter feature. Seems like have an option to see failed requests as they occur would be valuable. Would have saved me a lot of time and frustration, I know that much. So where were the messages being sent? I assume they were being sent to the console. If so, how come you were not able to see them? Standard JMeter script files don't suppress console messages, so you should see them. It would also help to have some examples of the error messages in case they need to be captured and logged. On Wed, Sep 14, 2011 at 4:01 PM, sebb seb...@gmail.com wrote: On 14 September 2011 20:34, Oliver Lloyd oliver_ll...@hotmail.com wrote: You could also tail jmeter.log. But are the errors being logged? Sampler errors are generally only visible in the sample result file or visualisers. - http://www.http503.com/ -- View this message in context: http://jmeter.512774.n5.nabble.com/Make-JMeter-report-error-messages-in-console-tp4803852p4804129.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Make JMeter report error messages in console
On 14 September 2011 20:05, sebb seb...@gmail.com wrote: On 14 September 2011 19:12, E S electric.or.sh...@gmail.com wrote: I was recently running JMeter is headless mode and got a bunch of errors because I was running out of ephemeral ports. However, while JMeter was running, it gave me no indication of this. I had to view the results in either the Summary Report or View Results Tree listener before I realized what was going on. Is it possible to set it up so that I get error messages on the console as they occur? You can add a Summariser and watch for error count != 0. By Summariser I meant http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Generate_Summary_Results This can output to log and/or console. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Will jmeter-maven-plug work with jmeter 2.5
On 16 September 2011 15:03, testerinCO cmola...@comcast.net wrote: Hello I'm trying to get the jmeter-maven-plugin to work with jmeter 2.5. Does the following link https://github.com/Ronnie76er/jmeter-maven-plugin#readme support the latest release of jmeter 2.5? If not what would be a good source. I'm relatively new to maven and jenkins. That code is not part of Apache JMeter, nor is it an Apache project. Please ask the maintainers. Thank you. -- View this message in context: http://jmeter.512774.n5.nabble.com/Will-jmeter-maven-plug-work-with-jmeter-2-5-tp4810792p4810792.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Issue with Response assertion for HTTP Request Sampler
On 15 September 2011 16:30, Karthik110885 karthik110...@gmail.com wrote: Hi ZK, Thanks for the response. I googled for the special characters and found a list of 11 [ \ ^ $ . | ? * + ( ) I have escaped . with a backslash. But the response assertion takes that too in a literal way. Have you read the documentation on Response Assertion? http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Response_Assertion I suspect the problem is that the end of line characters are not being stored correctly. It's quite difficult to match multiple lines correctly, so I suggest you just add multiple single-line patterns; they all have to match. If you want to match the whole contents, then consider using the Size and MD5Hex Assertions; they will be quicker. Or you can use the Save Responses to a file Listener to capture the sample data and complete the comparison after the test run. You should probably use that anyway. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: New to JMeter problems reruning recorded script
On 15 September 2011 15:29, jgagnon jamie.gag...@sumerian.com wrote: Hi there, I am very new to Jmeter and I am struggling with the website I recorded. To explain. We use client portals where clients can access to view reports. These portals are based on the dotnetNuke framework.. I Have managed to record a scrpit without problems but it is on playback I run into issues. There is an HTTP request that calls a webservice called get templates. when it is run it produces error 500The request sent is POST http:///test/DesktopModules/DDLViewer/Services/DDLViewService.asmx/GetTemplates POST data: [no cookies] Did you add a Cookie Manager to the script? Request Headers: Accept-Language: en-gb Accept-Encoding: gzip, deflate Referer: http://XXX/test/InfrastructureloadBusinessRole.aspx#/Root/Infrastructure%20Load User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0) Content-Type: application/json; charset=utf-8 Accept: */* Pragma: no-cache The response is {Message:Access denied,StackTrace: at company.DDLViewer.DDLViewService.GetTemplates(),ExceptionType:System.Security.SecurityException} I cant figure it out. It seems to happen everytime a service is called. Some services call json too. Anyone out there able to help? -- View this message in context: http://jmeter.512774.n5.nabble.com/New-to-JMeter-problems-reruning-recorded-script-tp4807030p4807030.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Constant throughput timer not giving expected results
On 14 September 2011 04:51, E S electric.or.sh...@gmail.com wrote: To answer your question, on the 6000 req/sec tests where this is no throughput timer, it's about what you would expect, around 30 ms for the average request. So that means each thread can do about 33 request per second and if you have 200 threads that's roughly 6000 requests per second. I did just notice something significant though. I am getting errors on the tests that use the constant throughput timer. Some of the requests (usually around 10%) give the following error: Response code: Non HTTP response code: java.net.NoRouteToHostException Response message: Non HTTP response message: Cannot assign requested address From what I've researched and the evidence I've gathered on the JMeter box, I'm running out of ephemeral ports. I find this strange though since it doesn't happen when I run without the throughput timer. Shouldn't a be running out of ports either way? What is the timer doing that makes me use more ports? If everything else in the plan is the same, then it must just be timing-related, because the timers just wait as needed. If the box is near the limit of ports, then changes in timing might have an effect. Which HTTP sampler are you using? HttpClient4 (in version 2.5; fixed but not yet released) has an unfortunate bug that means it uses up lots of connections; best to use HttpClient3.1. On Tue, Sep 13, 2011 at 3:11 AM, Oliver Lloyd oliver_ll...@hotmail.comwrote: What are the response times when you run these tests? - http://www.http503.com/ -- View this message in context: http://jmeter.512774.n5.nabble.com/Constant-throughput-timer-not-giving-expected-results-tp4784904p4797538.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: While Controller | Reverse Logic?
On 14 September 2011 11:42, Oliver Lloyd oliver_ll...@hotmail.com wrote: Is it possible to reverse the logic in the while controller? So, I have this: ThreadGroup ---Sampler | This returns foo --Regexp | My regexp is bar (thus = false) ---While | ${__javaScript(${FOO_VAR})} --Sampler | This returns foobar -Regexp | My regexp is bar (thus = true) Basically, I want the test to poll a request until it sees 'bar' and then, at that point, it should exit the loop. My problem is the regexp returns 'false' when it does NOT find the text so in the example above the logic is reversed. I assume the regex default value is 'false' ? Before I start hacking up a messy workaround I wanted to see if there were a more elegant solution; I feel like I am missing a '!' in the right place... It's very tricky using a regex to not match a subsequence of a string. I suspect the easiest solution is to change the while condition to compare the regex var against the desired value, rather than relying on the regex returning false. - http://www.http503.com/ -- View this message in context: http://jmeter.512774.n5.nabble.com/While-Controller-Reverse-Logic-tp4802300p4802300.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Issue with Response assertion for HTTP Request Sampler
On 14 September 2011 16:16, Karthik110885 karthik110...@gmail.com wrote: Hi All, I am a newbie so please tolerate with my ignorance :) I have installed JMeter 2.5 version and have configured HTTP Request sampler to send a request. I receive the response successfully without any issues. Now, i have to verify that the response contains a particular block of xml (multiple lines) to make sure that i have received the proper response. So i have added response assertion to the HTTP Request sampler and copied the block of xml to it Now, When i send HTTP request to a server in non-windows platform everything works fine. But when i send the same request to a server in windows platform, the response assertion fails even though the response contains the block of xml verified through response assertion. But if i give a one line text or one line xml from the block of xml in response assertion it is passed. Please let me know if i am doing anything wrong. Is multiple line comparison allowed in response assertion? That sounds like an issue with end-of-line matching. I would expect the response to not vary between OSes, but perhaps the regex processing might. You can save the input XML using this Listener: http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Save_Responses_to_a_file and make sure they are the same on both OSes. If so, then it must be an issue with the way the regex is defined or processed. Thanks in advance. -- View this message in context: http://jmeter.512774.n5.nabble.com/Issue-with-Response-assertion-for-HTTP-Request-Sampler-tp4803205p4803205.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Startup Cost on first operation
On 14 September 2011 16:14, Nicholson, Brad (Toronto, ON, CA) bnichol...@hp.com wrote: Hi, I am using jmeter 2.5 and I am triggering my test via Ant and using the Jenkins Performance Plugin to display the data. With each test I run, the first result has heavily inflated times (hundreds of milliseconds instead of a few). I'd like to avoid having such high numbers in the initial operation. Google seems to imply that this is paying the complication time of the jmeter script during this operation. Do you mean compilation time? If so, that is done before the sample is started; sample times include only the time needed to perform the sample. I can absorb the cost of this operation by adding a dummy operation at the start of the test, but I am wondering if there is a simpler/cleaner way of doing this? That should not be necessary; there must be something else happening here. Try using a Java sampler. Does the first sample take longer than the next? What happens if you add a dummy before that? Are you sure that the Jenkins Performance plugin is measuring samples, and not JMeter startup time? Thanks, Brad. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Startup Cost on first operation
On 14 September 2011 17:57, Nicholson, Brad (Toronto, ON, CA) bnichol...@hp.com wrote: -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Wednesday, September 14, 2011 11:27 AM To: JMeter Users List Subject: Re: Startup Cost on first operation On 14 September 2011 16:14, Nicholson, Brad (Toronto, ON, CA) bnichol...@hp.com wrote: Hi, I am using jmeter 2.5 and I am triggering my test via Ant and using the Jenkins Performance Plugin to display the data. With each test I run, the first result has heavily inflated times (hundreds of milliseconds instead of a few). I'd like to avoid having such high numbers in the initial operation. Google seems to imply that this is paying the complication time of the jmeter script during this operation. Do you mean compilation time? Sorry, yes - I mean compilation time. If so, that is done before the sample is started; sample times include only the time needed to perform the sample. I can absorb the cost of this operation by adding a dummy operation at the start of the test, but I am wondering if there is a simpler/cleaner way of doing this? That should not be necessary; there must be something else happening here. Try using a Java sampler. Does the first sample take longer than the next? No - they are fairly uniform What happens if you add a dummy before that? Dummy request takes a higher startup time, no change the Java request. All my requests (including the dummy request) are HTTP Request's and are connecting via https. https is much more expensive in connection setup Are you sure that the Jenkins Performance plugin is measuring samples, and not JMeter startup time? I'm sure it's not. I've confirmed by checking the raw output files written by Jmeter. To completely eliminate other moving pieces, I've re-run the test repeatedly directly from Jmeter and I see the same behavior. The only thing I can think of that might be causing the problem is the connection setup. First time JMeter init for a connection will be slightly slower, but should barely be noticeable; it will be the external stuff that takes the most time. And that will apply to browsers as well. Does the additional time apply to other target hosts? Which sampler are you using? Are you using Keep-Alive? If you switch it off, each sampler will have to create the connection anew, so I would expect all the samples to take longer. AFAIK, JMeter itself does not do any expensive first-time init for either https or http (obviously if it does that should be fixed to exclude that time). However connections do have a setup overhead, which will apply to any application, including browsers, and need to be included in the JMeter sample time. Brad. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Constant throughput timer not giving expected results
On 14 September 2011 17:51, E S electric.or.sh...@gmail.com wrote: I'm seeing a jar file in the lib directory called commons-httpclient-3.1, so I assume I'm using HttpClient 3.1. Not necessarily. There were two Http Sampler implementations in JMeter 2.4. These are merged in JMeter 2.5, which has a drop-down list for the implementation. What do you mean when you say it might be related to timing? Depending on timing, the OS may have had time to free up the resources or not. On Wed, Sep 14, 2011 at 3:45 AM, sebb seb...@gmail.com wrote: On 14 September 2011 04:51, E S electric.or.sh...@gmail.com wrote: To answer your question, on the 6000 req/sec tests where this is no throughput timer, it's about what you would expect, around 30 ms for the average request. So that means each thread can do about 33 request per second and if you have 200 threads that's roughly 6000 requests per second. I did just notice something significant though. I am getting errors on the tests that use the constant throughput timer. Some of the requests (usually around 10%) give the following error: Response code: Non HTTP response code: java.net.NoRouteToHostException Response message: Non HTTP response message: Cannot assign requested address From what I've researched and the evidence I've gathered on the JMeter box, I'm running out of ephemeral ports. I find this strange though since it doesn't happen when I run without the throughput timer. Shouldn't a be running out of ports either way? What is the timer doing that makes me use more ports? If everything else in the plan is the same, then it must just be timing-related, because the timers just wait as needed. If the box is near the limit of ports, then changes in timing might have an effect. Which HTTP sampler are you using? HttpClient4 (in version 2.5; fixed but not yet released) has an unfortunate bug that means it uses up lots of connections; best to use HttpClient3.1. On Tue, Sep 13, 2011 at 3:11 AM, Oliver Lloyd oliver_ll...@hotmail.comwrote: What are the response times when you run these tests? - http://www.http503.com/ -- View this message in context: http://jmeter.512774.n5.nabble.com/Constant-throughput-timer-not-giving-expected-results-tp4784904p4797538.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Make JMeter report error messages in console
On 14 September 2011 19:12, E S electric.or.sh...@gmail.com wrote: I was recently running JMeter is headless mode and got a bunch of errors because I was running out of ephemeral ports. However, while JMeter was running, it gave me no indication of this. I had to view the results in either the Summary Report or View Results Tree listener before I realized what was going on. Is it possible to set it up so that I get error messages on the console as they occur? You can add a Summariser and watch for error count != 0. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Startup Cost on first operation
On 14 September 2011 19:20, Nicholson, Brad (Toronto, ON, CA) bnichol...@hp.com wrote: -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Wednesday, September 14, 2011 1:29 PM To: JMeter Users List Subject: Re: Startup Cost on first operation On 14 September 2011 17:57, Nicholson, Brad (Toronto, ON, CA) bnichol...@hp.com wrote: -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Wednesday, September 14, 2011 11:27 AM To: JMeter Users List Subject: Re: Startup Cost on first operation On 14 September 2011 16:14, Nicholson, Brad (Toronto, ON, CA) bnichol...@hp.com wrote: Hi, I am using jmeter 2.5 and I am triggering my test via Ant and using the Jenkins Performance Plugin to display the data. With each test I run, the first result has heavily inflated times (hundreds of milliseconds instead of a few). I'd like to avoid having such high numbers in the initial operation. Google seems to imply that this is paying the complication time of the jmeter script during this operation. Do you mean compilation time? Sorry, yes - I mean compilation time. If so, that is done before the sample is started; sample times include only the time needed to perform the sample. I can absorb the cost of this operation by adding a dummy operation at the start of the test, but I am wondering if there is a simpler/cleaner way of doing this? That should not be necessary; there must be something else happening here. Try using a Java sampler. Does the first sample take longer than the next? No - they are fairly uniform What happens if you add a dummy before that? Dummy request takes a higher startup time, no change the Java request. All my requests (including the dummy request) are HTTP Request's and are connecting via https. https is much more expensive in connection setup Are you sure that the Jenkins Performance plugin is measuring samples, and not JMeter startup time? I'm sure it's not. I've confirmed by checking the raw output files written by Jmeter. To completely eliminate other moving pieces, I've re-run the test repeatedly directly from Jmeter and I see the same behavior. The only thing I can think of that might be causing the problem is the connection setup. First time JMeter init for a connection will be slightly slower, but should barely be noticeable; it will be the external stuff that takes the most time. And that will apply to browsers as well. Does the additional time apply to other target hosts? Yes - I've run it against a number of different hosts and the first request is always significantly higher. Which sampler are you using? HTTP Request Yes, but which implementation? Java, HttpClient3.1, HttpClient4? Are you using Keep-Alive? Yes If you switch it off, each sampler will have to create the connection anew, so I would expect all the samples to take longer. I tried with keep alive off and there is no statistically interesting difference. First operation is always around 600ms, all subsequent run between 8ms to 25ms. It's the same for both keep-alive enabled and disabled. I've tested with a variety of URL's btw, and the result is always the same. Are some of these URLs public? If so, can you create a Bugzilla issue and attach the JMX test script? AFAIK, JMeter itself does not do any expensive first-time init for either https or http (obviously if it does that should be fixed to exclude that time). However connections do have a setup overhead, which will apply to any application, including browsers, and need to be included in the JMeter sample time. There seems to be something in Jmeter causing this. I tried testing some of the same URL's with Apache Benchmark and I pay no startup cost on those tests. Or it could be Java. AFAIK AB is C code. Brad. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Constant throughput timer not giving expected results
On 14 September 2011 19:36, Deepak Shetty shet...@gmail.com wrote: then you are on httpclient 3.1 Perhaps we are talking about different things. JMeter 2.4 supports 2 different HTTP Samplers: - HTTP Request (this is Java) - HTTP Request HTTPClient (this is HttpClient 3.1) which of these is being used? On Wed, Sep 14, 2011 at 11:34 AM, E S electric.or.sh...@gmail.com wrote: I am using JMeter 2.4 r961953. On Wed, Sep 14, 2011 at 1:18 PM, Deepak Shetty shet...@gmail.com wrote: if you are using JMeter 2.5 on the HTTP Sampler , there is a drop down named implementation On Wed, Sep 14, 2011 at 11:06 AM, E S electric.or.sh...@gmail.com wrote: So how do I tell which HttpClient I am using? Is there a config option for that somewhere? I looked in jmeter.conf and saw some comments related to http client 3.x but nothing that looked very definitive. In terms of running out of ephemeral ports, I guess my options are to try to increase the port range, lower the TIME_WAIT value so the ports are freed up faster, or use distributed load generation. Other options? On Wed, Sep 14, 2011 at 12:32 PM, sebb seb...@gmail.com wrote: On 14 September 2011 17:51, E S electric.or.sh...@gmail.com wrote: I'm seeing a jar file in the lib directory called commons-httpclient-3.1, so I assume I'm using HttpClient 3.1. Not necessarily. There were two Http Sampler implementations in JMeter 2.4. These are merged in JMeter 2.5, which has a drop-down list for the implementation. What do you mean when you say it might be related to timing? Depending on timing, the OS may have had time to free up the resources or not. On Wed, Sep 14, 2011 at 3:45 AM, sebb seb...@gmail.com wrote: On 14 September 2011 04:51, E S electric.or.sh...@gmail.com wrote: To answer your question, on the 6000 req/sec tests where this is no throughput timer, it's about what you would expect, around 30 ms for the average request. So that means each thread can do about 33 request per second and if you have 200 threads that's roughly 6000 requests per second. I did just notice something significant though. I am getting errors on the tests that use the constant throughput timer. Some of the requests (usually around 10%) give the following error: Response code: Non HTTP response code: java.net.NoRouteToHostException Response message: Non HTTP response message: Cannot assign requested address From what I've researched and the evidence I've gathered on the JMeter box, I'm running out of ephemeral ports. I find this strange though since it doesn't happen when I run without the throughput timer. Shouldn't a be running out of ports either way? What is the timer doing that makes me use more ports? If everything else in the plan is the same, then it must just be timing-related, because the timers just wait as needed. If the box is near the limit of ports, then changes in timing might have an effect. Which HTTP sampler are you using? HttpClient4 (in version 2.5; fixed but not yet released) has an unfortunate bug that means it uses up lots of connections; best to use HttpClient3.1. On Tue, Sep 13, 2011 at 3:11 AM, Oliver Lloyd oliver_ll...@hotmail.comwrote: What are the response times when you run these tests? - http://www.http503.com/ -- View this message in context: http://jmeter.512774.n5.nabble.com/Constant-throughput-timer-not-giving-expected-results-tp4784904p4797538.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e
Re: Startup Cost on first operation
On 14 September 2011 20:25, Nicholson, Brad (Toronto, ON, CA) bnichol...@hp.com wrote: -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Wednesday, September 14, 2011 3:12 PM To: JMeter Users List Subject: Re: Startup Cost on first operation On 14 September 2011 19:20, Nicholson, Brad (Toronto, ON, CA) bnichol...@hp.com wrote: -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Wednesday, September 14, 2011 1:29 PM To: JMeter Users List Subject: Re: Startup Cost on first operation On 14 September 2011 17:57, Nicholson, Brad (Toronto, ON, CA) bnichol...@hp.com wrote: -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Wednesday, September 14, 2011 11:27 AM To: JMeter Users List Subject: Re: Startup Cost on first operation On 14 September 2011 16:14, Nicholson, Brad (Toronto, ON, CA) bnichol...@hp.com wrote: Hi, I am using jmeter 2.5 and I am triggering my test via Ant and using the Jenkins Performance Plugin to display the data. With each test I run, the first result has heavily inflated times (hundreds of milliseconds instead of a few). I'd like to avoid having such high numbers in the initial operation. Google seems to imply that this is paying the complication time of the jmeter script during this operation. Do you mean compilation time? Sorry, yes - I mean compilation time. If so, that is done before the sample is started; sample times include only the time needed to perform the sample. I can absorb the cost of this operation by adding a dummy operation at the start of the test, but I am wondering if there is a simpler/cleaner way of doing this? That should not be necessary; there must be something else happening here. Try using a Java sampler. Does the first sample take longer than the next? No - they are fairly uniform What happens if you add a dummy before that? Dummy request takes a higher startup time, no change the Java request. All my requests (including the dummy request) are HTTP Request's and are connecting via https. https is much more expensive in connection setup Are you sure that the Jenkins Performance plugin is measuring samples, and not JMeter startup time? I'm sure it's not. I've confirmed by checking the raw output files written by Jmeter. To completely eliminate other moving pieces, I've re-run the test repeatedly directly from Jmeter and I see the same behavior. The only thing I can think of that might be causing the problem is the connection setup. First time JMeter init for a connection will be slightly slower, but should barely be noticeable; it will be the external stuff that takes the most time. And that will apply to browsers as well. Does the additional time apply to other target hosts? Yes - I've run it against a number of different hosts and the first request is always significantly higher. Which sampler are you using? HTTP Request Yes, but which implementation? Java, HttpClient3.1, HttpClient4? How can I tell? I built the test with the Jmeter 2.4 GUI and added them with Add-Sampler-HTTP Request That's the Java version, the other one is called HTTP Request HTTPClient. Are you using Keep-Alive? Yes If you switch it off, each sampler will have to create the connection anew, so I would expect all the samples to take longer. I tried with keep alive off and there is no statistically interesting difference. First operation is always around 600ms, all subsequent run between 8ms to 25ms. It's the same for both keep-alive enabled and disabled. I've tested with a variety of URL's btw, and the result is always the same. Are some of these URLs public? If so, can you create a Bugzilla issue and attach the JMX test script? None of the URLS are public. I will see if I can get a test case together that does the same using a public URL though. Thanks, Brad. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Make JMeter report error messages in console
On 14 September 2011 20:34, Oliver Lloyd oliver_ll...@hotmail.com wrote: You could also tail jmeter.log. But are the errors being logged? Sampler errors are generally only visible in the sample result file or visualisers. - http://www.http503.com/ -- View this message in context: http://jmeter.512774.n5.nabble.com/Make-JMeter-report-error-messages-in-console-tp4803852p4804129.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: About Constant Timer / Constant Throughtput Timer
On 13 September 2011 09:59, Shmuel Krakower shmul...@gmail.com wrote: Hi, What I'm doing is calculating it like this: If I want a specific Sampler/iteration to be executed in a certain frequency, for example 6000 Samples/iterations per Minute and supposed we set 100 threads, put a timer on the thread group / sampler and calculate the timer like this: timer = 6000 requests / 60 seconds / 100 threads = 1 second in this case - I set the timer to constant 500 milliseconds and random 1000. The main problem with this calculation is that it does not consider the response time of the sample itself - so this formula is only correct if the response time is 0. If you want it to be more accurate, you will have to subtract the average response time from the result. There is another solution for this - implemented by HP Load Runner, which is also relevant to another discussion on the JMeter Users mailing list just running: Flaw in how JMeter runs threads... Load Runner enables you to run the same load without being dependent on the response time - so each iteration for each thread will start in a fixed interval, without wait for the last iteration to finish. In JMeter terms this would mean starting a new user thread (to make sure cookies/vars etc are maintained). It's not possible currently to start extra threads once the test has started, however one can just configure more threads initially. (this can be configured in the Run time setting - pacing tab of Load Runner). So I think this can be useful for you and for anyone who need to run a certain fixed load. Without this option on JMeter we get the usual case where after certain load the throughput gets lower instead of getting higher (response times getting higher making the load test to generate less throughput). Only if you have not configured sufficient JMeter threads initially. Shmuel Krakower. On Mon, Sep 12, 2011 at 9:22 AM, Raghavendra Kristam raghala...@yahoo.comwrote: Hi, I am using JMeter(2.4) for doing the loading testing of XMPP server and my test plan is configured as following: - Test plan - Thread group - Loop Controller - Java Request - Generate Summary Results - Constant timer/Constant throughput timer - CSV Data Set Config - CSV Data Set Config - CSV Data Set Config For example : Number of Threads: 80 Ramp up period: 80 Duration: 1800 secs a) If I use constant timer = 1000 milli secs then the output as follows: Number of samples/Throughput/Avg/Error = 129307 / 71.2/sec / 64 milli secs / 0.00% b) If I use constant throughput timer, target throughput (in samples per minute): 100 and Calculate throughput based on: this thread only then the output as follows: Number of samples/Throughput/Avg/Error = 214372 / 119.6/sec / 72 milli secs / 12.7% I need to configure the test plan to get the throughput as around 2400 samples per sec (144000 /min 864/hr). Please suggest me what timer should I use How do I calculate the number of threads / rampup period / constant timer values for this. Thanks - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Flaw in how JMeter runs threads...
On 12 September 2011 20:02, Robin D. Wilson rwils...@gmail.com wrote: Perhaps there is a workaround for this, but I have identified a small flaw in how JMeter is running threads. Assume for a second that I have a test where I want to run a 100 simultaneous users through a procedure. I'd like the test to start and finish running 100 simultaneous threads. The way JMeter runs threads, it pre-divides the number of iterations among the 100 threads - so if you are going to run 1000 loops, each thread will get 1000 iterations to run through. Normally, you'd think this was OK... Since each thread will do 1000 loops, on 'average' they will work out to do the same amount of work. But in practice, threads complete their 1000 loops at different intervals, so that by the time the test completes - only a few threads were still running at the very end. When you are trying to measure performance under load, this skews your result - because the last few iterations occur with almost none of the intended load. This means the last few threads execute very quickly compared to threads operating while under 100 simultaneous requests - so the reported data shows the last few threads having a significant impact on the overall performance of the test. What I need is a test thread group that runs 'n' simultaneous threads from beginning to end - and runs until 'n' _total_ iterations are complete, instead of just 'n' per thread. Is there a thread group that works like that? You can set the test group to run unlimited loops, and give it a scheduled duration such that the start-up time is a small portion of the total time. Or just take the JTL data from an existing test and ignore the startup and shutdown portion in the analysis. -- Robin D. Wilson Sr. Director of Web Development KingsIsle Entertainment, Inc. VOICE: 512-777-1861 www.KingsIsle.com - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org