Getting error(10%)in listner when no of threads are increased gradually for some transactions
Hi I have prepared a thread group consisting of 10 transactuions it runs for 5 threads for 30 minutes without any problem but if the threads are increased to 10 then for last 2 transactions I get error the percentage is around 10,If some delay is introduced then I do not get any error and again if the no of threads are increased to 20 and some more delay is introduced then I do not get any error, so the problem here is that every time To run the script for increased no of threads without error, I have to increase the delay time in the transactions. Another query is that does Jmeter includes the delay time in calculating the Response time. Need help on this. Thanks in advance Jitendra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Eddie O'Sullivan is out of the office.
I will be out of the office starting 06/10/2008 and will not return until 06/24/2008. For performance questions contact Ray Kinsella, Derek Bradley or Rick Tennock. I will respond to your message when I return. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeter with JMS Point-to-Point using Oracle JMS Provider-Failing
Hi Peter, Yeah I am able to connect to Oracle JMS and the MDB listening to the queue where the JMeter is dumping messages via 'Request queue' is also getting fired.On the 'receive Queue' it reads the messages which I can monitor from Oracle Application server admin console.However at Jmeter end it's unable to show the message it's reading from the 'receive queue'.Onclicking 'Run' the instance becomes red.However for only 'Request' mode of operation JMeter is working fine.But I need to test correlation so I need 'Request/Response' mode to work.I am using Oracle Application server 10.1.3.1g.Please let me know what is the possible cause of this error. Thanks. Peter Lin wrote: not sure what you mean. are you able to connect to oracle jms? Is the problem displaying the results of the messages in JMeter? or something other problem. On Wed, Jun 11, 2008 at 9:19 AM, JMeterWithOracle [EMAIL PROTECTED] wrote: Hi All, I am trying to set up JMeter in Request-Response mode for Point-to-Point JMS using Oracle app server JMS provider.It is able to post messages to the queue and also read those messages from another queue but unable to render the response it reads from the receive Queue. The configuration I used is as attached as a screenshot: http://www.nabble.com/file/p1386/Screenshot.JPG Screenshot.JPG Please advice what can be a possible way to make it work. Thanks. -- View this message in context: http://www.nabble.com/JMeter-with-JMS-Point-to-Point-using-Oracle-JMS-Provider-Failing-tp1386p1386.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/JMeter-with-JMS-Point-to-Point-using-Oracle-JMS-Provider-Failing-tp1386p17795103.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action to failed assertion
On 12/06/2008, David Schulberg [EMAIL PROTECTED] wrote: Hi, Want to stop a thread when an assertion fails. Can the Results Status Action Handler do this? Yes. It's easy to test this using the Java Request. The description for this Post-Processor states that this test element allows the user to stop the thread or the whole test if the relevant sampler failed. The Action to be taken by the handler is on a Sampler error. Trying to differentiate alternate behaviours based on error vs failure. David Schulberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting error(10%)in listner when no of threads are increased gradually for some transactions
On 12/06/2008, Jitendra Kumar Mohanty [EMAIL PROTECTED] wrote: Hi I have prepared a thread group consisting of 10 transactuions it runs for 5 threads for 30 minutes without any problem but if the threads are increased to 10 then for last 2 transactions I get error the percentage is around 10,If some delay is introduced then I do not get any error and again if the no of threads are increased to 20 and some more delay is introduced then I do not get any error, so the problem here is that every time To run the script for increased no of threads without error, I have to increase the delay time in the transactions. Sounds like you are overloading something, probably the server, but it is difficult to say without knowing what the errors are. Another query is that does Jmeter includes the delay time in calculating the Response time. No, though it will obviously affect throughput calculations. Need help on this. Thanks in advance Jitendra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Monitor Results shows nothing
hi. I added to a Test Plan Loop Controller a Monitor Results listener. Both tabs Health Performance are empty. And also in the performance tab there is no server defined. According to the user manual i need to do: Add -- Listener -- Monitor Results which is what i did. Any ideas why this does not work? Thanks -- View this message in context: http://www.nabble.com/Monitor-Results-shows-nothing-tp17797650p17797650.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Monitor Results shows nothing
See: http://jakarta.apache.org/jmeter/usermanual/build-monitor-test-plan.html You need to ensure that the loop count is set to (say) 100 as the listener does not update with every sample. On 12/06/2008, Michal Singer [EMAIL PROTECTED] wrote: hi. I added to a Test Plan Loop Controller a Monitor Results listener. Both tabs Health Performance are empty. And also in the performance tab there is no server defined. According to the user manual i need to do: Add -- Listener -- Monitor Results which is what i did. Any ideas why this does not work? Thanks -- View this message in context: http://www.nabble.com/Monitor-Results-shows-nothing-tp17797650p17797650.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Monitor Results shows nothing
Hi. I run 100 threads with loop count =1, but I have a loop controller that is set to forever. it does not work. thanks, Michal sebb-2-2 wrote: See: http://jakarta.apache.org/jmeter/usermanual/build-monitor-test-plan.html You need to ensure that the loop count is set to (say) 100 as the listener does not update with every sample. On 12/06/2008, Michal Singer [EMAIL PROTECTED] wrote: hi. I added to a Test Plan Loop Controller a Monitor Results listener. Both tabs Health Performance are empty. And also in the performance tab there is no server defined. According to the user manual i need to do: Add -- Listener -- Monitor Results which is what i did. Any ideas why this does not work? Thanks -- View this message in context: http://www.nabble.com/Monitor-Results-shows-nothing-tp17797650p17797650.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Monitor-Results-shows-nothing-tp17797650p17798052.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Monitor Results shows nothing
It does not make sense to use multiple threads. On 12/06/2008, Michal Singer [EMAIL PROTECTED] wrote: Hi. I run 100 threads with loop count =1, but I have a loop controller that is set to forever. it does not work. thanks, Michal sebb-2-2 wrote: See: http://jakarta.apache.org/jmeter/usermanual/build-monitor-test-plan.html You need to ensure that the loop count is set to (say) 100 as the listener does not update with every sample. On 12/06/2008, Michal Singer [EMAIL PROTECTED] wrote: hi. I added to a Test Plan Loop Controller a Monitor Results listener. Both tabs Health Performance are empty. And also in the performance tab there is no server defined. According to the user manual i need to do: Add -- Listener -- Monitor Results which is what i did. Any ideas why this does not work? Thanks -- View this message in context: http://www.nabble.com/Monitor-Results-shows-nothing-tp17797650p17797650.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Monitor-Results-shows-nothing-tp17797650p17798052.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jmeter to Load Test a WEB APPLICATION
Hi New to Jmeter Can somebody on form suggest me HOWTO. Using Jmeter to Load Test a WEB APPLICATION with 1000 concurrent Threads each holding the Http Session for 20+ Minuts with regards karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Builtin properties
Hi, Just wondering if there's a list of built in properties somewhere, that are available inside any test plan. For instance, the name of the file of the test plan or time of execution could be useful as such properties. Does anyone know about any such thing? I will greatly appreciate any help. Best regards, Chris
Re: Monitor Results shows nothing
I use 100 threads to simulate 100 users. I want to simulate 100 users sending in a forever loop requests every 1 minute. However, even when i use 1 thread, it does not help. sebb-2-2 wrote: It does not make sense to use multiple threads. On 12/06/2008, Michal Singer [EMAIL PROTECTED] wrote: Hi. I run 100 threads with loop count =1, but I have a loop controller that is set to forever. it does not work. thanks, Michal sebb-2-2 wrote: See: http://jakarta.apache.org/jmeter/usermanual/build-monitor-test-plan.html You need to ensure that the loop count is set to (say) 100 as the listener does not update with every sample. On 12/06/2008, Michal Singer [EMAIL PROTECTED] wrote: hi. I added to a Test Plan Loop Controller a Monitor Results listener. Both tabs Health Performance are empty. And also in the performance tab there is no server defined. According to the user manual i need to do: Add -- Listener -- Monitor Results which is what i did. Any ideas why this does not work? Thanks -- View this message in context: http://www.nabble.com/Monitor-Results-shows-nothing-tp17797650p17797650.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Monitor-Results-shows-nothing-tp17797650p17798052.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Monitor-Results-shows-nothing-tp17797650p17798647.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jmeter to Load Test a WEB APPLICATION
try: http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.pdf. And, when you have read the document cited in the previous sentence: to do some serious multi-threaded testing try: http://jakarta.apache.org/jmeter/usermanual/jmeter_distributed_testing_step_by_step.pdf. HTH. karthikn wrote .. Hi New to Jmeter Can somebody on form suggest me HOWTO. Using Jmeter to Load Test a WEB APPLICATION with 1000 concurrent Threads each holding the Http Session for 20+ Minuts with regards karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yet some, not wise, go to the other side of the globe, to barbarous and unhealthy regions, and devote ten or twenty years, in that they may live,-that is, keep comfortably warm,- and die in New England at last. Henry David Thoreau - Walden - 1845 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jmeter to Load Test a WEB APPLICATION
Hi http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.pdf. This means JMETER is only able to Simulate the Load Test the WEB application but cannot test the Http Session Object ? am i missing some thing . with regards Karthik David Brown wrote: try: http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.pdf. And, when you have read the document cited in the previous sentence: to do some serious multi-threaded testing try: http://jakarta.apache.org/jmeter/usermanual/jmeter_distributed_testing_step_by_step.pdf. HTH. karthikn wrote .. Hi New to Jmeter Can somebody on form suggest me HOWTO. Using Jmeter to Load Test a WEB APPLICATION with 1000 concurrent Threads each holding the Http Session for 20+ Minuts with regards karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yet some, not wise, go to the other side of the globe, to barbarous and unhealthy regions, and devote ten or twenty years, in that they may live,-that is, keep comfortably warm,- and die in New England at last. Henry David Thoreau - Walden - 1845 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jmeter to Load Test a WEB APPLICATION
JMeter can record any session variable you define. The load test is not simulated but is the same as if you had a user for each ThreadGroup defined. HTH. karthikn wrote .. Hi http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.pdf. This means JMETER is only able to Simulate the Load Test the WEB application but cannot test the Http Session Object ? am i missing some thing . with regards Karthik David Brown wrote: try: http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.pdf. And, when you have read the document cited in the previous sentence: to do some serious multi-threaded testing try: http://jakarta.apache.org/jmeter/usermanual/jmeter_distributed_testing_step_by_step.pdf. HTH. karthikn wrote .. Hi New to Jmeter Can somebody on form suggest me HOWTO. Using Jmeter to Load Test a WEB APPLICATION with 1000 concurrent Threads each holding the Http Session for 20+ Minuts with regards karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yet some, not wise, go to the other side of the globe, to barbarous and unhealthy regions, and devote ten or twenty years, in that they may live,-that is, keep comfortably warm,- and die in New England at last. Henry David Thoreau - Walden - 1845 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yet some, not wise, go to the other side of the globe, to barbarous and unhealthy regions, and devote ten or twenty years, in that they may live,-that is, keep comfortably warm,- and die in New England at last. Henry David Thoreau - Walden - 1845 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't add more than one Constant Throughput Timer
Hi, I enjoy using Jmeter very much. I think it is a superb application. I am using Jmeter 2.3.1, but for some reason i can not add (via the Jmeter gui) more than one Constant throughput timer to my test plan. One Constant throughput timer works well. But the Jmeter GUI does NOT enable adding another Constant throughput timer. It just ignores the add operation. Why is this? is this a constraint, or am i doing something wrong? 10x Assaf -- View this message in context: http://www.nabble.com/Can%27t-add-more-than-one-Constant-Throughput-Timer-tp17799946p17799946.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to build jar files for jmeter
Hi, I want to build the jars for jmeter, do any one knew what command can be used To build the jmeter jars? Thanks. -Kurt.
Re: JMeter with JMS Point-to-Point using Oracle JMS Provider-Failing
If I understand correctly, you want to correlate the id for the point-to-point messages. unfortunately, I didn't work on that, so I don't have any suggestions off hand. peter On Thu, Jun 12, 2008 at 4:50 AM, JMeterWithOracle [EMAIL PROTECTED] wrote: Hi Peter, Yeah I am able to connect to Oracle JMS and the MDB listening to the queue where the JMeter is dumping messages via 'Request queue' is also getting fired.On the 'receive Queue' it reads the messages which I can monitor from Oracle Application server admin console.However at Jmeter end it's unable to show the message it's reading from the 'receive queue'.Onclicking 'Run' the instance becomes red.However for only 'Request' mode of operation JMeter is working fine.But I need to test correlation so I need 'Request/Response' mode to work.I am using Oracle Application server 10.1.3.1g.Please let me know what is the possible cause of this error. Thanks. Peter Lin wrote: not sure what you mean. are you able to connect to oracle jms? Is the problem displaying the results of the messages in JMeter? or something other problem. On Wed, Jun 11, 2008 at 9:19 AM, JMeterWithOracle [EMAIL PROTECTED] wrote: Hi All, I am trying to set up JMeter in Request-Response mode for Point-to-Point JMS using Oracle app server JMS provider.It is able to post messages to the queue and also read those messages from another queue but unable to render the response it reads from the receive Queue. The configuration I used is as attached as a screenshot: http://www.nabble.com/file/p1386/Screenshot.JPG Screenshot.JPG Please advice what can be a possible way to make it work. Thanks. -- View this message in context: http://www.nabble.com/JMeter-with-JMS-Point-to-Point-using-Oracle-JMS-Provider-Failing-tp1386p1386.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/JMeter-with-JMS-Point-to-Point-using-Oracle-JMS-Provider-Failing-tp1386p17795103.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Monitor Results shows nothing
The Monitor Results Listener is only for use when monitoring a server. If you want to show other (non-monitoring) samples, please use a different listener. See the documentation for details. On 12/06/2008, Michal Singer [EMAIL PROTECTED] wrote: I use 100 threads to simulate 100 users. I want to simulate 100 users sending in a forever loop requests every 1 minute. However, even when i use 1 thread, it does not help. sebb-2-2 wrote: It does not make sense to use multiple threads. On 12/06/2008, Michal Singer [EMAIL PROTECTED] wrote: Hi. I run 100 threads with loop count =1, but I have a loop controller that is set to forever. it does not work. thanks, Michal sebb-2-2 wrote: See: http://jakarta.apache.org/jmeter/usermanual/build-monitor-test-plan.html You need to ensure that the loop count is set to (say) 100 as the listener does not update with every sample. On 12/06/2008, Michal Singer [EMAIL PROTECTED] wrote: hi. I added to a Test Plan Loop Controller a Monitor Results listener. Both tabs Health Performance are empty. And also in the performance tab there is no server defined. According to the user manual i need to do: Add -- Listener -- Monitor Results which is what i did. Any ideas why this does not work? Thanks -- View this message in context: http://www.nabble.com/Monitor-Results-shows-nothing-tp17797650p17797650.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Monitor-Results-shows-nothing-tp17797650p17798052.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Monitor-Results-shows-nothing-tp17797650p17798647.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Martin Ruschak/Szg/PorscheInt ist außer Haus.
Ich werde ab 13.06.2008 nicht im Büro sein. Ich kehre zurück am 16.06.2008. Bitte wenden sie sich in meiner Abwesenheit an Herrn Zecha Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't add more than one Constant Throughput Timer
On 12/06/2008, Assaf49 [EMAIL PROTECTED] wrote: Hi, I enjoy using Jmeter very much. I think it is a superb application. I am using Jmeter 2.3.1, but for some reason i can not add (via the Jmeter gui) more than one Constant throughput timer to my test plan. One Constant throughput timer works well. But the Jmeter GUI does NOT enable adding another Constant throughput timer. It just ignores the add operation. Why is this? is this a constraint, or am i doing something wrong? It's a known bug. Fixed in JMeter 2.3.2 which is due very soon. 10x Assaf -- View this message in context: http://www.nabble.com/Can%27t-add-more-than-one-Constant-Throughput-Timer-tp17799946p17799946.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to build jar files for jmeter
On 12/06/2008, Chen, Kurt [EMAIL PROTECTED] wrote: Hi, I want to build the jars for jmeter, do any one knew what command can be used To build the jmeter jars? The README file describes how to build JMeter Thanks. -Kurt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Builtin properties
http://jakarta.apache.org/jmeter/usermanual/functions.html#predefinedprops http://jakarta.apache.org/jmeter/usermanual/functions.html#predefinedvars On 12/06/2008, Krzysieq [EMAIL PROTECTED] wrote: Hi, Just wondering if there's a list of built in properties somewhere, that are available inside any test plan. For instance, the name of the file of the test plan or time of execution could be useful as such properties. Does anyone know about any such thing? I will greatly appreciate any help. Best regards, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to run jmeter from within JAVA program
Hi Sebb I am still not clear as to how can I make my jmx file run in non gui mode from within a JAVA program. Apparently, the way I am trying to pass the arg to NewDriver class is wrong (no matter whether I use -t or --testfile). I am unable to make my java program know about the jmx testfile and the logfile. Any suggestions ? Thanks!! Nikesh On 6/11/08, sebb [EMAIL PROTECTED] wrote: On 11/06/2008, Nikesh Goel [EMAIL PROTECTED] wrote: The invoke() is just fine... I am actually not sure of these: argListForInvokedMain[0] = -testfile=test.jmx; argListForInvokedMain[1] = -logfile=test-1-1-1.xml; No idea where you got these parameters from, but they are incorrect. The long options require -- rather than -, as can be seen from checking: http://jakarta.apache.org/jmeter/usermanual/get-started.html#options or running jmeter -? in a command shell. And you can easily test them using the jmeter script. I don't know the correct way of passing those two values to that NewDriver class. It may be that I am trying with wrong class or most likely wrong parameters but looking at the ApacheJMeter.jar manifest file, the class ought to be NewDriver only. Looking at the code of Ant JMeter task is of little help.. The code suggests the use of Runtime.exec() internally which I am trying to avoid. Thanks!! On 6/11/08, sebb [EMAIL PROTECTED] wrote: On 11/06/2008, Nikesh Goel [EMAIL PROTECTED] wrote: Hi, I am new to this list so please excuse me if you are receiving this message in duplicate. Please see my question below. Thanks!! Hi How can I setup my JAVA code to run the testfile (.JMX file) and collect the logs in some .xml file ? The help file (help.txt) which comes along with the installation shows running the Apache Jmeter in non GUI mode by using the following command on command prompt *java -jar ApacheJMeter.jar -n -t test-file [-p property-file] [-l log-file] * The same I have to achieve using JAVA code without any script file. I do not want to run using Runtime.exec(..) as this will spawn a new process. I am actually running a WAS 5.1 server with database connections and other resources managed by the server. If a new process spawns, I think it will not have access to those resources. But will JMeter have access to the resources even if it is run in the same process? How do you propose to give access to the resources? So I am trying something like code snippet below but not certain of passing the testfile and logfile parameters. Kindly suggest something on how to achieve this. Looks OK, but please consult the appropriate Java documentation for invoke(). You could also have a look at the code for the JMeter Ant task. Class[] argTypes = new Class[1]; argTypes[0] = String[].class; try { Method mainMethod = Class.forName(org.apache.jmeter.NewDriver).getDeclaredMethod(main, argTypes); String[] argListForInvokedMain = new String[2]; argListForInvokedMain[0] = -testfile=test.jmx; argListForInvokedMain[1] = -logfile=test-1-1-1.xml; mainMethod.invoke(null, argListForInvokedMain); } catch (Exception e) { e.printStackTrace(); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]