Synchronizing Timers buggy?
Hi group! I'm experimenting with adding a synchronzing timer to my existing XML-RPC load test (hitting on a simple web service[1]) to emulate some peak load we're seeing on our live servers. However, the test has gone a bit wonky... it doesn't seem to end cleanly. For example, in the test I've got running right now, I had 80 threads with a sync timer to group them into five at a time, with a timer on the thread group of 30 seconds. The test ended over ten minutes ago but the JMeter UI claims 2/80 threads are still active; I've hit stop test and that's wedged on shutting down all test threads, please be patient. netstat -n shows no active connections to my webservice so it's not a socket timeout thing (been there, done that, got the scars to prove it too :oD) I vaguely recall reading somewhere that the synchronizing timer can have these problems, but googling the list hasn't turned anything up. Is there any work around? (I'm using Sun's JDK 1.5.0 reg 09-b03 and JMeter 2.2.) [1] simple test: thread group | - XML-RPC sampler | - size assertion | - save (failed) responses to file | - sync timer
SOAP/XML-RPC Request in JMeter
Hi, I am a new bie i have searched the entire forum for an example to use SOAP/XML-RPC Request. Kindly enlighten me on how to use SOAP/XML-RPC Request and not WebServices Request. Plz do provide me the URL where sample code exits Xpecting an early reply Rgds, Vaish -- View this message in context: http://www.nabble.com/SOAP-XML-RPC-Request-in-JMeter-tf2761128.html#a7697973 Sent from the JMeter - User mailing list archive at Nabble.com.
OpenJMS Alpha and JMeter
Hi, I am trying to run the jmeter performance tests on the OpenJMS. Though I am able to get the tests running and results for release version there is an exception thrown in the duable/persistant subscriber for the OpenJMS alpha. Mismatched destination properties for destination with name=TOOL.DEFAULT.TOPIC0 at org.exolab.jms.messagemgr.ConsumerManagerImpl.getDestination(ConsumerMan agerImpl.java:772) at org.exolab.jms.messagemgr.ConsumerManagerImpl.createInactiveDurableConsu mer(ConsumerManagerImpl.java:571) at org.exolab.jms.messagemgr.ConsumerManagerImpl.createDurableConsumer(Cons umerManagerImpl.java:345) at org.exolab.jms.server.ServerSessionImpl.createDurableConsumer(ServerSess ionImpl.java:343) at org.exolab.jms.server.net.RemoteServerSession.createDurableConsumer(Remo teServerSession.java:245) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(DefaultORB.java:553) at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB.java:511) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:595) ON searching i found the explaination for this (By Tim Anderson): The topic you are using doesn't have the same properties as a destination with the same name, being managed by the server. This will typically happen if you have used the TopicSession.createTopic()method giving a name for a topic that is persistent on the server. For persistent topics, you should look them up using JNDI. -Tim == As I dont build the JMeter or OpenJMS locally and hence have no control over the source. I have this topic populated using the OpenJMS config file using AdministeredDestinations AdministeredTopic name=TOOL.DEFAULT.TOPIC0/ /AdministeredDestinations Can there be any settings which makes me work this with the alpha version. Things are already working with the same test case using the OpenJMS release version. Relevant code from the openJMS ConsumerManagerImpl.getDestination() if(!destination.getClass().getName().equals(existing.getClass().getName( ))) throw new InvalidDestinationException(Mismatched destination properties for destination with name= + name); if(existing.getPersistent() != destination.getPersistent()) throw new InvalidDestinationException(Mismatched destination properties for destination with name= + name); Thanks, Hemant Gaur
Re: OpenJMS Alpha and JMeter
I would suggest asking openJMS what the error means. peter On 12/5/06, Hemant Gaur [EMAIL PROTECTED] wrote: Hi, I am trying to run the jmeter performance tests on the OpenJMS. Though I am able to get the tests running and results for release version there is an exception thrown in the duable/persistant subscriber for the OpenJMS alpha. Mismatched destination properties for destination with name=TOOL.DEFAULT.TOPIC0 at org.exolab.jms.messagemgr.ConsumerManagerImpl.getDestination(ConsumerMan agerImpl.java:772) at org.exolab.jms.messagemgr.ConsumerManagerImpl.createInactiveDurableConsu mer(ConsumerManagerImpl.java:571) at org.exolab.jms.messagemgr.ConsumerManagerImpl.createDurableConsumer(Cons umerManagerImpl.java:345) at org.exolab.jms.server.ServerSessionImpl.createDurableConsumer(ServerSess ionImpl.java:343) at org.exolab.jms.server.net.RemoteServerSession.createDurableConsumer(Remo teServerSession.java:245) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(DefaultORB.java:553) at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB.java:511) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:595) ON searching i found the explaination for this (By Tim Anderson): The topic you are using doesn't have the same properties as a destination with the same name, being managed by the server. This will typically happen if you have used the TopicSession.createTopic()method giving a name for a topic that is persistent on the server. For persistent topics, you should look them up using JNDI. -Tim == As I dont build the JMeter or OpenJMS locally and hence have no control over the source. I have this topic populated using the OpenJMS config file using AdministeredDestinations AdministeredTopic name=TOOL.DEFAULT.TOPIC0/ /AdministeredDestinations Can there be any settings which makes me work this with the alpha version. Things are already working with the same test case using the OpenJMS release version. Relevant code from the openJMS ConsumerManagerImpl.getDestination() if(!destination.getClass().getName().equals(existing.getClass().getName( ))) throw new InvalidDestinationException(Mismatched destination properties for destination with name= + name); if(existing.getPersistent() != destination.getPersistent()) throw new InvalidDestinationException(Mismatched destination properties for destination with name= + name); Thanks, Hemant Gaur
RE: OpenJMS Alpha and JMeter
The topic you are using doesn't have the same properties as a destination with the same name, being managed by the server. This will typically happen if you have used the TopicSession.createTopic()method giving a name for a topic that is persistent on the server. For persistent topics, you should look them up using JNDI. -Tim This is the reply from the OpenJMS folks. Just thought some one have might come across this error. Thanks, Hemant -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 5:53 PM To: JMeter Users List Subject: Re: OpenJMS Alpha and JMeter I would suggest asking openJMS what the error means. peter On 12/5/06, Hemant Gaur [EMAIL PROTECTED] wrote: Hi, I am trying to run the jmeter performance tests on the OpenJMS. Though I am able to get the tests running and results for release version there is an exception thrown in the duable/persistant subscriber for the OpenJMS alpha. Mismatched destination properties for destination with name=TOOL.DEFAULT.TOPIC0 at org.exolab.jms.messagemgr.ConsumerManagerImpl.getDestination(ConsumerMan agerImpl.java:772) at org.exolab.jms.messagemgr.ConsumerManagerImpl.createInactiveDurableConsu mer(ConsumerManagerImpl.java:571) at org.exolab.jms.messagemgr.ConsumerManagerImpl.createDurableConsumer(Cons umerManagerImpl.java:345) at org.exolab.jms.server.ServerSessionImpl.createDurableConsumer(ServerSess ionImpl.java:343) at org.exolab.jms.server.net.RemoteServerSession.createDurableConsumer(Remo teServerSession.java:245) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(DefaultORB.java:553) at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB.java:511) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:595) ON searching i found the explaination for this (By Tim Anderson): The topic you are using doesn't have the same properties as a destination with the same name, being managed by the server. This will typically happen if you have used the TopicSession.createTopic()method giving a name for a topic that is persistent on the server. For persistent topics, you should look them up using JNDI. -Tim == As I dont build the JMeter or OpenJMS locally and hence have no control over the source. I have this topic populated using the OpenJMS config file using AdministeredDestinations AdministeredTopic name=TOOL.DEFAULT.TOPIC0/ /AdministeredDestinations Can there be any settings which makes me work this with the alpha version. Things are already working with the same test case using the OpenJMS release version. Relevant code from the openJMS ConsumerManagerImpl.getDestination() if(!destination.getClass().getName().equals(existing.getClass().getName( ))) throw new InvalidDestinationException(Mismatched destination properties for destination with name= + name); if(existing.getPersistent() != destination.getPersistent()) throw new InvalidDestinationException(Mismatched destination properties for destination with name= + name); Thanks, Hemant Gaur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Losing Cookie while following redirect
The Http Sampler2 is the Http Request HTTP Client! Try to use the standard sampler HTTP Request, be sure you selected Follow Redirects. Add the HTTP Cookie Manager, select Clear Cookies for each interaction, set cookie Policy to compatibility. Don't try to add Session IDs or something like that here, the Cookie Manager will store these things for you and the will automatical sended with your HTTP Requests Add a HTTP Header Manager! If this things don't work try the HTTP Proxy Server! This is the best way to create a test script!!! -- Ein Herz für Kinder - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Recording HTTPS requests with basic authentication
Hi, I want to record the https request with basic authentication by using Jmeter's HTTP proxy server. But I couldnt do that. After receiving the first request,Jmeter made pop up dialog that ask key store password. (If its normal access,browser would make pop up dialog that ask id and password for basic authentication in this timing) As I know,only the case of client authentication,Jmerer ask this password. Q1 : Why did jmeter mistake basic authentication for client authentication Although I use only basic authentication. Q2 : Jmeter cant record the https request with basic authentication? If there is the solution,Please tell me the steps. Below is the steps I did : 1. install Jmeter v2.2 2. install JDK1.4.2 and copy jsse.jar of JDK1.4.2 to jmeter'sinstall directory/lib. 3. modify jameter.properties (add ssl.provider=com.sun.net.ssl.internal.ssl.Provider) 4. make Jmeter's HTTP proxy server and start it 5. change the internet option to use Jmeter's HTTP proxy server(127.0.0.1 8080). 6. send the https request masa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Test failed! java.lang.ExceptionInInitializerError
Hi, I am using SOAP/XML-RPC Request. I have started the jmeter as jmeter -L jorphan=DEBUG The request has url as http://localhost:8080/servlets-examples/servlet/EchoServlet When i Run, i do see the box gets iluminated to green then to grey. I cudn't see any Result (View Result, Graph Result- where i have added) Log file gives the error message as: Test failed! java.lang.ExceptionInInitializerError Submitting the log file for reference Plz do let me know what needs to be done Xpecting an early reply Thnx Rgds, Vaish -- View this message in context: http://www.nabble.com/Test-failed%21-java.lang.ExceptionInInitializerError-tf2761784.html#a7699794 Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Test failed!
Hi, I am using SOAP/XML-RPC Request. I have started the jmeter as jmeter -L jorphan=DEBUG The request has url as http://localhost:8080/servlets-examples/servlet/EchoServlet When i Run, i do see the box gets iluminated to green then to grey. I cudn't see any Result (View Result, Graph Result- where i have added) Log file gives the error message as: Test failed! java.lang.ExceptionInInitializerError Submitting the log file for reference Plz do let me know what needs to be done Xpecting an early reply Thnx Rgds, Vaish http://www.nabble.com/file/4469/jmeter.log jmeter.log -- View this message in context: http://www.nabble.com/Test-failed%21-tf2761793.html#a7699824 Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Current JMeter development branch
Hi, What is the current development branch? I saw a note saying that the main head was out of date. I've checked out branches/rel-2-2 but want to make sure it's the right one before poking at it too much. Thanks. /Paul
Re: Test failed!
Looks like the logging jar(s) are missing or corrupted. Try using a different sampler and see if you get a similar error. On 05/12/06, vaishjan [EMAIL PROTECTED] wrote: Hi, I am using SOAP/XML-RPC Request. I have started the jmeter as jmeter -L jorphan=DEBUG The request has url as http://localhost:8080/servlets-examples/servlet/EchoServlet When i Run, i do see the box gets iluminated to green then to grey. I cudn't see any Result (View Result, Graph Result- where i have added) Log file gives the error message as: Test failed! java.lang.ExceptionInInitializerError Submitting the log file for reference Plz do let me know what needs to be done Xpecting an early reply Thnx Rgds, Vaish http://www.nabble.com/file/4469/jmeter.log jmeter.log -- View this message in context: http://www.nabble.com/Test-failed%21-tf2761793.html#a7699824 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: Current JMeter development branch
On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Hi, What is the current development branch? I saw a note saying that the main head was out of date. I've checked out branches/rel-2-2 but want to make sure it's the right one before poking at it too much. Yes, that's the correct one. Perhaps we should a merge at some point, but it's a _lot_ of work. [Or maybe we could do some judicious renames instead...] Thanks. /Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Current JMeter development branch
Thanks. I'm trying to extend the XML Schema assertion to make it able to use multiple XSD files during the validation. Of course, if it's possible to do such now, please let me know so I don't waste my time. :-) Thanks! /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:44 AM To: JMeter Users List Subject: Re: Current JMeter development branch On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Hi, What is the current development branch? I saw a note saying that the main head was out of date. I've checked out branches/rel-2-2 but want to make sure it's the right one before poking at it too much. Yes, that's the correct one. Perhaps we should a merge at some point, but it's a _lot_ of work. [Or maybe we could do some judicious renames instead...] Thanks. /Paul - 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: Current JMeter development branch
I don't think it's possible to provide multiple files to the assertion. However, you can have multiple assertions applied to the same sample result. I don't know anything about the underlying XML API, but unless it's possible to provide multiple files to a single validation invocation, then using multiple assertions won't be much slower. Also, I think assertions stop being processed as soon as one fails. S. On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Thanks. I'm trying to extend the XML Schema assertion to make it able to use multiple XSD files during the validation. Of course, if it's possible to do such now, please let me know so I don't waste my time. :-) Thanks! /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:44 AM To: JMeter Users List Subject: Re: Current JMeter development branch On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Hi, What is the current development branch? I saw a note saying that the main head was out of date. I've checked out branches/rel-2-2 but want to make sure it's the right one before poking at it too much. Yes, that's the correct one. Perhaps we should a merge at some point, but it's a _lot_ of work. [Or maybe we could do some judicious renames instead...] Thanks. /Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Current JMeter development branch
It is possible to lump multiple XSDs into one validator. I'll have to modify my existing code to not use the Java 5 specific methods, but I know it is possible. Unfortunately the cleanest way of doing it does require the javax.xml.validation API. See http://www-128.ibm.com/developerworks/xml/library/x-javaxmlvalidapi.html for a detailed example. To use multiple XSDs you declare a different Source for each XSD then create an array of all Source classes that is passed into the factory.newSchema() method. What is the roadmap for moving to Java 5 as the required JVM? Or is it on the roadmap at all? /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:56 AM To: JMeter Users List Subject: Re: Current JMeter development branch I don't think it's possible to provide multiple files to the assertion. However, you can have multiple assertions applied to the same sample result. I don't know anything about the underlying XML API, but unless it's possible to provide multiple files to a single validation invocation, then using multiple assertions won't be much slower. Also, I think assertions stop being processed as soon as one fails. S. On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Thanks. I'm trying to extend the XML Schema assertion to make it able to use multiple XSD files during the validation. Of course, if it's possible to do such now, please let me know so I don't waste my time. :-) Thanks! /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:44 AM To: JMeter Users List Subject: Re: Current JMeter development branch On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Hi, What is the current development branch? I saw a note saying that the main head was out of date. I've checked out branches/rel-2-2 but want to make sure it's the right one before poking at it too much. Yes, that's the correct one. Perhaps we should a merge at some point, but it's a _lot_ of work. [Or maybe we could do some judicious renames instead...] Thanks. /Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exceptions during the DB Performance Test
Hi: I get the following Error while running the Database Performance test scripts. And the error % is really high because of this issue. Please do explain why this is happening and how it can be fixed. I don't get this error when I run the test with 1 thread, but as I keep increasing the number of threads my errors occur earlier in the test. Please explain as early as possible why this is happening: And in my Jmeter View Results Tree I get the message org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: Could not create enough Components to service your request (Timed out). under the sample Result. In the Jmeter.log file I get the following exception: JDBC Users 1-409 started 2006/11/27 13:14:44 INFO - jmeter.threads.JMeterThread: Thread JDBC Users 1-410 started 2006/11/27 13:14:44 WARN - jmeter.protocol.jdbc.config.DataSourceElement: Could not return Connection java.lang.Exception: Could not create enough Components to service your request (Timed out). at org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPool.java:350) at org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.get(ValidatedResourceLimitingPool.java:130) at org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource.getConnection(ResourceLimitingJdbcDataSource.java:222) at org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:90) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247) at java.lang.Thread.run(Thread.java:595) 2006/11/27 13:14:44 ERROR - jmeter.protocol.jdbc.sampler.JDBCSampler: Error in JDBC sampling org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: Could not create enough Components to service your request (Timed out). Thanks -- View this message in context: http://www.nabble.com/Exceptions-during-the-DB-Performance-Test-tf2762930.html#a7703468 Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Remote Testing
Hi: I am doing the Database Performance Test and I would like to do Remote Testing. I was reading the Jmeter Manual for Remote testing and I was not able to understand the following statement: The recommended approach is to have one or more machines on the same Ethernet segment as your application server that you configure to run the JMeter Engine. This will minimize the impact of the network on the test results without impacting the performance of the application serer itself. Please clarify. Thanks -- View this message in context: http://www.nabble.com/Remote-Testing-tf2763024.html#a7703778 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: Exceptions during the DB Performance Test
The log message suggests that you have run out of connections. How many did you confgure? And how many threads are you running? On 05/12/06, socio_pal [EMAIL PROTECTED] wrote: Hi: I get the following Error while running the Database Performance test scripts. And the error % is really high because of this issue. Please do explain why this is happening and how it can be fixed. I don't get this error when I run the test with 1 thread, but as I keep increasing the number of threads my errors occur earlier in the test. Please explain as early as possible why this is happening: And in my Jmeter View Results Tree I get the message org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: Could not create enough Components to service your request (Timed out). under the sample Result. In the Jmeter.log file I get the following exception: JDBC Users 1-409 started 2006/11/27 13:14:44 INFO - jmeter.threads.JMeterThread: Thread JDBC Users 1-410 started 2006/11/27 13:14:44 WARN - jmeter.protocol.jdbc.config.DataSourceElement: Could not return Connection java.lang.Exception: Could not create enough Components to service your request (Timed out). at org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPool.java:350) at org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.get(ValidatedResourceLimitingPool.java:130) at org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource.getConnection(ResourceLimitingJdbcDataSource.java:222) at org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:90) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247) at java.lang.Thread.run(Thread.java:595) 2006/11/27 13:14:44 ERROR - jmeter.protocol.jdbc.sampler.JDBCSampler: Error in JDBC sampling org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: Could not create enough Components to service your request (Timed out). Thanks -- View this message in context: http://www.nabble.com/Exceptions-during-the-DB-Performance-Test-tf2762930.html#a7703468 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: Synchronizing Timers buggy?
I've not used the Sync Timer in earnest, so I don't know if it has these problems. I do know that sometimes the 2/80 display can go wrong (I've seen -1/n !), but the fact that stop test is having a problem suggests that there are indeed still some threads active. [BTW, Shutdown is a less forceful version - it does not kill threads] It might be worth replacing the sampler with a Java Request Sampler (use a similar time delay) to see how the Sync Timer behaves with a simpler test. S. On 05/12/06, Richard Gaywood [EMAIL PROTECTED] wrote: Hi group! I'm experimenting with adding a synchronzing timer to my existing XML-RPC load test (hitting on a simple web service[1]) to emulate some peak load we're seeing on our live servers. However, the test has gone a bit wonky... it doesn't seem to end cleanly. For example, in the test I've got running right now, I had 80 threads with a sync timer to group them into five at a time, with a timer on the thread group of 30 seconds. The test ended over ten minutes ago but the JMeter UI claims 2/80 threads are still active; I've hit stop test and that's wedged on shutting down all test threads, please be patient. netstat -n shows no active connections to my webservice so it's not a socket timeout thing (been there, done that, got the scars to prove it too :oD) I vaguely recall reading somewhere that the synchronizing timer can have these problems, but googling the list hasn't turned anything up. Is there any work around? (I'm using Sun's JDK 1.5.0 reg 09-b03 and JMeter 2.2.) [1] simple test: thread group | - XML-RPC sampler | - size assertion | - save (failed) responses to file | - sync timer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Current JMeter development branch
Java 5 is not on the roadmap at present. We have abandoned support for Java 1.3, but there are too many people still using Java 1.4. There was a long discussion about this earlier this year. You can of course create your own samplers that rely on Java 5. S. On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: It is possible to lump multiple XSDs into one validator. I'll have to modify my existing code to not use the Java 5 specific methods, but I know it is possible. Unfortunately the cleanest way of doing it does require the javax.xml.validation API. See http://www-128.ibm.com/developerworks/xml/library/x-javaxmlvalidapi.html for a detailed example. To use multiple XSDs you declare a different Source for each XSD then create an array of all Source classes that is passed into the factory.newSchema() method. What is the roadmap for moving to Java 5 as the required JVM? Or is it on the roadmap at all? /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:56 AM To: JMeter Users List Subject: Re: Current JMeter development branch I don't think it's possible to provide multiple files to the assertion. However, you can have multiple assertions applied to the same sample result. I don't know anything about the underlying XML API, but unless it's possible to provide multiple files to a single validation invocation, then using multiple assertions won't be much slower. Also, I think assertions stop being processed as soon as one fails. S. On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Thanks. I'm trying to extend the XML Schema assertion to make it able to use multiple XSD files during the validation. Of course, if it's possible to do such now, please let me know so I don't waste my time. :-) Thanks! /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:44 AM To: JMeter Users List Subject: Re: Current JMeter development branch On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Hi, What is the current development branch? I saw a note saying that the main head was out of date. I've checked out branches/rel-2-2 but want to make sure it's the right one before poking at it too much. Yes, that's the correct one. Perhaps we should a merge at some point, but it's a _lot_ of work. [Or maybe we could do some judicious renames instead...] Thanks. /Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exceptions during the DB Performance Test
In the JDBC Connection Configuration, the Max. number of Connections as 10 and am using 50 threads to run my performance test. But my Database allows upto 500 sessions. Is there any max. limit for Jmeter? I thought 10 is the allowed number of connections, can I configure it to have more connections? But why is that I get the error only after an hour or so? I use 50 threads and ramp up period of 5 secs. So, once all the 50 threads are started shoudln't i get the error? My test runs successfully for an hour or so and then I get this error. Please explain as early as possible. Thanks sebb-2 wrote: The log message suggests that you have run out of connections. How many did you confgure? And how many threads are you running? On 05/12/06, socio_pal [EMAIL PROTECTED] wrote: Hi: I get the following Error while running the Database Performance test scripts. And the error % is really high because of this issue. Please do explain why this is happening and how it can be fixed. I don't get this error when I run the test with 1 thread, but as I keep increasing the number of threads my errors occur earlier in the test. Please explain as early as possible why this is happening: And in my Jmeter View Results Tree I get the message org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: Could not create enough Components to service your request (Timed out). under the sample Result. In the Jmeter.log file I get the following exception: JDBC Users 1-409 started 2006/11/27 13:14:44 INFO - jmeter.threads.JMeterThread: Thread JDBC Users 1-410 started 2006/11/27 13:14:44 WARN - jmeter.protocol.jdbc.config.DataSourceElement: Could not return Connection java.lang.Exception: Could not create enough Components to service your request (Timed out). at org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPool.java:350) at org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.get(ValidatedResourceLimitingPool.java:130) at org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource.getConnection(ResourceLimitingJdbcDataSource.java:222) at org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:90) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247) at java.lang.Thread.run(Thread.java:595) 2006/11/27 13:14:44 ERROR - jmeter.protocol.jdbc.sampler.JDBCSampler: Error in JDBC sampling org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: Could not create enough Components to service your request (Timed out). Thanks -- View this message in context: http://www.nabble.com/Exceptions-during-the-DB-Performance-Test-tf2762930.html#a7703468 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/Exceptions-during-the-DB-Performance-Test-tf2762930.html#a7705621 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: Losing Cookie while following redirect
Hi Stefan, Stefan Adamovsky wrote: The Http Sampler2 is the Http Request HTTP Client! Try to use the standard sampler HTTP Request, be sure you selected Follow Redirects. Add the HTTP Cookie Manager, select Clear Cookies for each interaction, set cookie Policy to compatibility. Don't try to add Session IDs or something like that here, the Cookie Manager will store these things for you and the will automatical sended with your HTTP Requests Add a HTTP Header Manager! I tried this, but without success. Looking at the first request I see that the cookie was sent: GET / HTTP/1.1 Connection: keep-alive User-Agent: Java/1.5.0_06 Host: test.jerrywho.de Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-type: application/x-www-form-urlencoded HTTP/1.1 302 Found Date: Tue, 05 Dec 2006 19:00:52 GMT Server: Apache/1.3.37 (Unix) PHP/4.4.3 mod_perl/1.29 X-Powered-By: PHP/4.4.3 Set-Cookie: MeinCookie=1165345252 Location: /ziel.php Connection: close Transfer-Encoding: chunked Content-Type: text/html But the redirected request doesn't use the cookie: GET /ziel.php HTTP/1.1 Connection: keep-alive User-Agent: Java/1.5.0_06 Host: test.jerrywho.de Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-type: application/x-www-form-urlencoded HTTP/1.1 200 OK Date: Tue, 05 Dec 2006 19:00:52 GMT Server: Apache/1.3.37 (Unix) PHP/4.4.3 mod_perl/1.29 X-Powered-By: PHP/4.4.3 Connection: close Transfer-Encoding: chunked Content-Type: text/html I put my Jmeter-config on that webserver: http://test.jerrywho.de/Demo.jmx Maybe you can have a look at it? TIA -- View this message in context: http://www.nabble.com/Losing-Cookie-while-following-redirect-tf2761354.html#a7705832 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: Current JMeter development branch
I've been able to get it working with 1.4. Right now I'm fighting the GUI config portion of the assertion. Where would the best place for any patches to be sent, here or the -dev list? /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 12:17 PM To: JMeter Users List Subject: Re: Current JMeter development branch Java 5 is not on the roadmap at present. We have abandoned support for Java 1.3, but there are too many people still using Java 1.4. There was a long discussion about this earlier this year. You can of course create your own samplers that rely on Java 5. S. On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: It is possible to lump multiple XSDs into one validator. I'll have to modify my existing code to not use the Java 5 specific methods, but I know it is possible. Unfortunately the cleanest way of doing it does require the javax.xml.validation API. See http://www-128.ibm.com/developerworks/xml/library/x-javaxmlvalidapi.ht ml for a detailed example. To use multiple XSDs you declare a different Source for each XSD then create an array of all Source classes that is passed into the factory.newSchema() method. What is the roadmap for moving to Java 5 as the required JVM? Or is it on the roadmap at all? /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:56 AM To: JMeter Users List Subject: Re: Current JMeter development branch I don't think it's possible to provide multiple files to the assertion. However, you can have multiple assertions applied to the same sample result. I don't know anything about the underlying XML API, but unless it's possible to provide multiple files to a single validation invocation, then using multiple assertions won't be much slower. Also, I think assertions stop being processed as soon as one fails. S. On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Thanks. I'm trying to extend the XML Schema assertion to make it able to use multiple XSD files during the validation. Of course, if it's possible to do such now, please let me know so I don't waste my time. :-) Thanks! /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:44 AM To: JMeter Users List Subject: Re: Current JMeter development branch On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Hi, What is the current development branch? I saw a note saying that the main head was out of date. I've checked out branches/rel-2-2 but want to make sure it's the right one before poking at it too much. Yes, that's the correct one. Perhaps we should a merge at some point, but it's a _lot_ of work. [Or maybe we could do some judicious renames instead...] Thanks. /Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Current JMeter development branch
Please create a Bugzilla enhancement request. Once created, patches (unified diff format please, as used by Eclipse) can be attached to the issue. Patches sent to mailing lists tend to get mangled and/or forgotten. If you get stuck with the GUI part, just add a note and I can probably finish it. S. On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: I've been able to get it working with 1.4. Right now I'm fighting the GUI config portion of the assertion. Where would the best place for any patches to be sent, here or the -dev list? /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 12:17 PM To: JMeter Users List Subject: Re: Current JMeter development branch Java 5 is not on the roadmap at present. We have abandoned support for Java 1.3, but there are too many people still using Java 1.4. There was a long discussion about this earlier this year. You can of course create your own samplers that rely on Java 5. S. On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: It is possible to lump multiple XSDs into one validator. I'll have to modify my existing code to not use the Java 5 specific methods, but I know it is possible. Unfortunately the cleanest way of doing it does require the javax.xml.validation API. See http://www-128.ibm.com/developerworks/xml/library/x-javaxmlvalidapi.ht ml for a detailed example. To use multiple XSDs you declare a different Source for each XSD then create an array of all Source classes that is passed into the factory.newSchema() method. What is the roadmap for moving to Java 5 as the required JVM? Or is it on the roadmap at all? /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:56 AM To: JMeter Users List Subject: Re: Current JMeter development branch I don't think it's possible to provide multiple files to the assertion. However, you can have multiple assertions applied to the same sample result. I don't know anything about the underlying XML API, but unless it's possible to provide multiple files to a single validation invocation, then using multiple assertions won't be much slower. Also, I think assertions stop being processed as soon as one fails. S. On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Thanks. I'm trying to extend the XML Schema assertion to make it able to use multiple XSD files during the validation. Of course, if it's possible to do such now, please let me know so I don't waste my time. :-) Thanks! /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:44 AM To: JMeter Users List Subject: Re: Current JMeter development branch On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Hi, What is the current development branch? I saw a note saying that the main head was out of date. I've checked out branches/rel-2-2 but want to make sure it's the right one before poking at it too much. Yes, that's the correct one. Perhaps we should a merge at some point, but it's a _lot_ of work. [Or maybe we could do some judicious renames instead...] Thanks. /Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exceptions during the DB Performance Test
There is a pool timeout; default 10 seconds. I think that means that the connection pool will only give up if it has to wait longer to get a free connection. So long as enough connections are returned to the pool in time, you won't necessarily need as many as 1 per thread. But of course some threads may wait to get a connection. Try increasing the connection count. S. On 05/12/06, socio_pal [EMAIL PROTECTED] wrote: In the JDBC Connection Configuration, the Max. number of Connections as 10 and am using 50 threads to run my performance test. But my Database allows upto 500 sessions. Is there any max. limit for Jmeter? I thought 10 is the allowed number of connections, can I configure it to have more connections? But why is that I get the error only after an hour or so? I use 50 threads and ramp up period of 5 secs. So, once all the 50 threads are started shoudln't i get the error? My test runs successfully for an hour or so and then I get this error. Please explain as early as possible. Thanks sebb-2 wrote: The log message suggests that you have run out of connections. How many did you confgure? And how many threads are you running? On 05/12/06, socio_pal [EMAIL PROTECTED] wrote: Hi: I get the following Error while running the Database Performance test scripts. And the error % is really high because of this issue. Please do explain why this is happening and how it can be fixed. I don't get this error when I run the test with 1 thread, but as I keep increasing the number of threads my errors occur earlier in the test. Please explain as early as possible why this is happening: And in my Jmeter View Results Tree I get the message org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: Could not create enough Components to service your request (Timed out). under the sample Result. In the Jmeter.log file I get the following exception: JDBC Users 1-409 started 2006/11/27 13:14:44 INFO - jmeter.threads.JMeterThread: Thread JDBC Users 1-410 started 2006/11/27 13:14:44 WARN - jmeter.protocol.jdbc.config.DataSourceElement: Could not return Connection java.lang.Exception: Could not create enough Components to service your request (Timed out). at org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPool.java:350) at org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.get(ValidatedResourceLimitingPool.java:130) at org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource.getConnection(ResourceLimitingJdbcDataSource.java:222) at org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:90) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247) at java.lang.Thread.run(Thread.java:595) 2006/11/27 13:14:44 ERROR - jmeter.protocol.jdbc.sampler.JDBCSampler: Error in JDBC sampling org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: Could not create enough Components to service your request (Timed out). Thanks -- View this message in context: http://www.nabble.com/Exceptions-during-the-DB-Performance-Test-tf2762930.html#a7703468 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/Exceptions-during-the-DB-Performance-Test-tf2762930.html#a7705621 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: Losing Cookie while following redirect
On 05/12/06, sebb [EMAIL PROTECTED] wrote: The test plan has only one sampler, and loop count is zero, and the ^one^ Cookie Manager is set to clear cookies each iteration. So there is no chance that the cookie will be sent anywhere. The sampler is also set to Redirect Automatically, which means you should not be seeing 302s. On 05/12/06, JerryWho [EMAIL PROTECTED] wrote: Hi Stefan, Stefan Adamovsky wrote: The Http Sampler2 is the Http Request HTTP Client! Try to use the standard sampler HTTP Request, be sure you selected Follow Redirects. Add the HTTP Cookie Manager, select Clear Cookies for each interaction, set cookie Policy to compatibility. Don't try to add Session IDs or something like that here, the Cookie Manager will store these things for you and the will automatical sended with your HTTP Requests Add a HTTP Header Manager! I tried this, but without success. Looking at the first request I see that the cookie was sent: GET / HTTP/1.1 Connection: keep-alive User-Agent: Java/1.5.0_06 Host: test.jerrywho.de Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-type: application/x-www-form-urlencoded HTTP/1.1 302 Found Date: Tue, 05 Dec 2006 19:00:52 GMT Server: Apache/1.3.37 (Unix) PHP/4.4.3 mod_perl/1.29 X-Powered-By: PHP/4.4.3 Set-Cookie: MeinCookie=1165345252 Location: /ziel.php Connection: close Transfer-Encoding: chunked Content-Type: text/html But the redirected request doesn't use the cookie: GET /ziel.php HTTP/1.1 Connection: keep-alive User-Agent: Java/1.5.0_06 Host: test.jerrywho.de Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-type: application/x-www-form-urlencoded HTTP/1.1 200 OK Date: Tue, 05 Dec 2006 19:00:52 GMT Server: Apache/1.3.37 (Unix) PHP/4.4.3 mod_perl/1.29 X-Powered-By: PHP/4.4.3 Connection: close Transfer-Encoding: chunked Content-Type: text/html I put my Jmeter-config on that webserver: http://test.jerrywho.de/Demo.jmx Maybe you can have a look at it? TIA -- View this message in context: http://www.nabble.com/Losing-Cookie-while-following-redirect-tf2761354.html#a7705832 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: response assertion: 2 questions
\d{10} not quite... \d{10} is true for any string of numeric *at least* 10 in length. The response I'm looging for is: 1. I'm looking for a single numeric string of *exactly* 10. No more, no less. 2. Nothing else in the response. It's simple, but I'm missing it... On 12/4/06, sebb [EMAIL PROTECTED] wrote: On 04/12/06, Ed Young [EMAIL PROTECTED] wrote: Question 1. I'm trying to figure out how to test for a numeric value of a particular character length. An example is: 234335675 or 001454668 The easy part is the numeric check: [0-9] or \d I'm not sure how to check the length part and combine it with the numeric part into the regexp. I see that {n} says match exactly n times. I'm using the demo applet at: http://jakarta.apache.org/oro/demo.html to test my regexps but so far no luck. \d{n} e.g. \d{9} You can even use \d{1,10} to mean 1-10 digits. Question 2: If I add a pattern to test is it logically AND'd to the other patterns I set up? Sort of - if any match fails, then it sets the response failed flag. Thanks, -- Ed - 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] -- Ed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Losing Cookie while following redirect
The test plan has only one sampler, and loop count is zero, and the Cookie Manager is set to clear cookies each iteration. So there is no chance that the cookie will be sent anywhere. The sampler is also set to Redirect Automatically, which means you should not be seeing 302s. On 05/12/06, JerryWho [EMAIL PROTECTED] wrote: Hi Stefan, Stefan Adamovsky wrote: The Http Sampler2 is the Http Request HTTP Client! Try to use the standard sampler HTTP Request, be sure you selected Follow Redirects. Add the HTTP Cookie Manager, select Clear Cookies for each interaction, set cookie Policy to compatibility. Don't try to add Session IDs or something like that here, the Cookie Manager will store these things for you and the will automatical sended with your HTTP Requests Add a HTTP Header Manager! I tried this, but without success. Looking at the first request I see that the cookie was sent: GET / HTTP/1.1 Connection: keep-alive User-Agent: Java/1.5.0_06 Host: test.jerrywho.de Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-type: application/x-www-form-urlencoded HTTP/1.1 302 Found Date: Tue, 05 Dec 2006 19:00:52 GMT Server: Apache/1.3.37 (Unix) PHP/4.4.3 mod_perl/1.29 X-Powered-By: PHP/4.4.3 Set-Cookie: MeinCookie=1165345252 Location: /ziel.php Connection: close Transfer-Encoding: chunked Content-Type: text/html But the redirected request doesn't use the cookie: GET /ziel.php HTTP/1.1 Connection: keep-alive User-Agent: Java/1.5.0_06 Host: test.jerrywho.de Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-type: application/x-www-form-urlencoded HTTP/1.1 200 OK Date: Tue, 05 Dec 2006 19:00:52 GMT Server: Apache/1.3.37 (Unix) PHP/4.4.3 mod_perl/1.29 X-Powered-By: PHP/4.4.3 Connection: close Transfer-Encoding: chunked Content-Type: text/html I put my Jmeter-config on that webserver: http://test.jerrywho.de/Demo.jmx Maybe you can have a look at it? TIA -- View this message in context: http://www.nabble.com/Losing-Cookie-while-following-redirect-tf2761354.html#a7705832 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: response assertion: 2 questions
\d{10} *does* mean to match exactly 10 digits. But you are right that it can match something *containing* more than 10 - it will match the 10 and stop looking further. Sorry, I should have spotted that ... To look for exactly 10 digits with nothing else, use the matches checkbox. This only succeeds if the RE matches everything. If you are looking for a 10 digit string which can be surrounded by non-digits, you can try: \D\d{10}\D S. On 05/12/06, Ed Young [EMAIL PROTECTED] wrote: \d{10} not quite... \d{10} is true for any string of numeric *at least* 10 in length. The response I'm looging for is: 1. I'm looking for a single numeric string of *exactly* 10. No more, no less. 2. Nothing else in the response. It's simple, but I'm missing it... On 12/4/06, sebb [EMAIL PROTECTED] wrote: On 04/12/06, Ed Young [EMAIL PROTECTED] wrote: Question 1. I'm trying to figure out how to test for a numeric value of a particular character length. An example is: 234335675 or 001454668 The easy part is the numeric check: [0-9] or \d I'm not sure how to check the length part and combine it with the numeric part into the regexp. I see that {n} says match exactly n times. I'm using the demo applet at: http://jakarta.apache.org/oro/demo.html to test my regexps but so far no luck. \d{n} e.g. \d{9} You can even use \d{1,10} to mean 1-10 digits. Question 2: If I add a pattern to test is it logically AND'd to the other patterns I set up? Sort of - if any match fails, then it sets the response failed flag. Thanks, -- Ed - 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] -- Ed - 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: Exceptions during the DB Performance Test
I have increased the Max. Number of Connections from 10 to 200 now. I did this gradually test after test. But as I increase the No. of connections the throughput/sec in my Summary Report seems to be coming down. Shouldn't I see a increase in throughput as I increase the Number of Connections? And can you please let me what Idle Cleanup Interval field stands for. I ahve the default as 6ms, do I have reduce this as well? My Database is configured to have 500 sessions and I want to try and use all of those 500 sessions, but seeing a decrease in Throughput as I keep increasing the number of connections doesn't make me happy. Please clarify. Thanks. sebb-2 wrote: There is a pool timeout; default 10 seconds. I think that means that the connection pool will only give up if it has to wait longer to get a free connection. So long as enough connections are returned to the pool in time, you won't necessarily need as many as 1 per thread. But of course some threads may wait to get a connection. Try increasing the connection count. S. On 05/12/06, socio_pal [EMAIL PROTECTED] wrote: In the JDBC Connection Configuration, the Max. number of Connections as 10 and am using 50 threads to run my performance test. But my Database allows upto 500 sessions. Is there any max. limit for Jmeter? I thought 10 is the allowed number of connections, can I configure it to have more connections? But why is that I get the error only after an hour or so? I use 50 threads and ramp up period of 5 secs. So, once all the 50 threads are started shoudln't i get the error? My test runs successfully for an hour or so and then I get this error. Please explain as early as possible. Thanks sebb-2 wrote: The log message suggests that you have run out of connections. How many did you confgure? And how many threads are you running? On 05/12/06, socio_pal [EMAIL PROTECTED] wrote: Hi: I get the following Error while running the Database Performance test scripts. And the error % is really high because of this issue. Please do explain why this is happening and how it can be fixed. I don't get this error when I run the test with 1 thread, but as I keep increasing the number of threads my errors occur earlier in the test. Please explain as early as possible why this is happening: And in my Jmeter View Results Tree I get the message org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: Could not create enough Components to service your request (Timed out). under the sample Result. In the Jmeter.log file I get the following exception: JDBC Users 1-409 started 2006/11/27 13:14:44 INFO - jmeter.threads.JMeterThread: Thread JDBC Users 1-410 started 2006/11/27 13:14:44 WARN - jmeter.protocol.jdbc.config.DataSourceElement: Could not return Connection java.lang.Exception: Could not create enough Components to service your request (Timed out). at org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPool.java:350) at org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.get(ValidatedResourceLimitingPool.java:130) at org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource.getConnection(ResourceLimitingJdbcDataSource.java:222) at org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:90) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247) at java.lang.Thread.run(Thread.java:595) 2006/11/27 13:14:44 ERROR - jmeter.protocol.jdbc.sampler.JDBCSampler: Error in JDBC sampling org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: Could not create enough Components to service your request (Timed out). Thanks -- View this message in context: http://www.nabble.com/Exceptions-during-the-DB-Performance-Test-tf2762930.html#a7703468 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/Exceptions-during-the-DB-Performance-Test-tf2762930.html#a7705621 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:
Re: Losing Cookie while following redirect
sebb-2 wrote: The test plan has only one sampler, and loop count is zero, and the Cookie Manager is set to clear cookies each iteration. So there is no chance that the cookie will be sent anywhere. The sampler is also set to Redirect Automatically, which means you should not be seeing 302s. Maybe I don't understand how JMeter really works. But the sampler requests the url /. This page redirects to /ziel.php and sets the cookie. So /ziel.php has to be downloaded (what really happens) but without the cookie been sent. This seems a little bit strange to me because a normal browser sends the cookie to /ziel.php. -- View this message in context: http://www.nabble.com/Losing-Cookie-while-following-redirect-tf2761354.html#a7708536 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: Current JMeter development branch
Hi, I looked through the outstanding bugzilla entries and 39328 looked to be for a similar feature. The GUI part is functional, but is probably somewhat brittle. I did my best, but it's definitely not production quality. (I'm a server-side SW engineer, not a GUI person.) Any help on getting it production quality would be appreciated. I attached a patch file to the 39328 bug with my changes. Only 3 files were modified, so it's pretty self-contained. /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 1:45 PM To: JMeter Users List Subject: Re: Current JMeter development branch Please create a Bugzilla enhancement request. Once created, patches (unified diff format please, as used by Eclipse) can be attached to the issue. Patches sent to mailing lists tend to get mangled and/or forgotten. If you get stuck with the GUI part, just add a note and I can probably finish it. S. On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: I've been able to get it working with 1.4. Right now I'm fighting the GUI config portion of the assertion. Where would the best place for any patches to be sent, here or the -dev list? /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 12:17 PM To: JMeter Users List Subject: Re: Current JMeter development branch Java 5 is not on the roadmap at present. We have abandoned support for Java 1.3, but there are too many people still using Java 1.4. There was a long discussion about this earlier this year. You can of course create your own samplers that rely on Java 5. S. On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: It is possible to lump multiple XSDs into one validator. I'll have to modify my existing code to not use the Java 5 specific methods, but I know it is possible. Unfortunately the cleanest way of doing it does require the javax.xml.validation API. See http://www-128.ibm.com/developerworks/xml/library/x-javaxmlvalidapi. ht ml for a detailed example. To use multiple XSDs you declare a different Source for each XSD then create an array of all Source classes that is passed into the factory.newSchema() method. What is the roadmap for moving to Java 5 as the required JVM? Or is it on the roadmap at all? /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:56 AM To: JMeter Users List Subject: Re: Current JMeter development branch I don't think it's possible to provide multiple files to the assertion. However, you can have multiple assertions applied to the same sample result. I don't know anything about the underlying XML API, but unless it's possible to provide multiple files to a single validation invocation, then using multiple assertions won't be much slower. Also, I think assertions stop being processed as soon as one fails. S. On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Thanks. I'm trying to extend the XML Schema assertion to make it able to use multiple XSD files during the validation. Of course, if it's possible to do such now, please let me know so I don't waste my time. :-) Thanks! /Paul -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:44 AM To: JMeter Users List Subject: Re: Current JMeter development branch On 05/12/06, Paul Kuykendall (PL/EUS) [EMAIL PROTECTED] wrote: Hi, What is the current development branch? I saw a note saying that the main head was out of date. I've checked out branches/rel-2-2 but want to make sure it's the right one before poking at it too much. Yes, that's the correct one. Perhaps we should a merge at some point, but it's a _lot_ of work. [Or maybe we could do some judicious renames instead...] Thanks. /Paul -- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remote Testing
if you didn't read the tutorial on distributed testing, I would recommend doing that. There's 2 reasons why you want jmeter on the same ethernet segment. More specifically on the same subnet. java RMI doesn't work over multiple subnets out of the box, so jmeter has the same requirements. peter On 12/5/06, socio_pal [EMAIL PROTECTED] wrote: Hi: I am doing the Database Performance Test and I would like to do Remote Testing. I was reading the Jmeter Manual for Remote testing and I was not able to understand the following statement: The recommended approach is to have one or more machines on the same Ethernet segment as your application server that you configure to run the JMeter Engine. This will minimize the impact of the network on the test results without impacting the performance of the application serer itself. Please clarify. Thanks -- View this message in context: http://www.nabble.com/Remote-Testing-tf2763024.html#a7703778 Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
another extractor question
This should be obvious, but since when is should reality? OK, so I'm trying to extract the viewstate out of a dotnet app. Jmeter recorded it just fine, but of course, that recording won't quite work due to the viewstate stuff. So I figured, I'd just put a regex extractor in the sampler that returns with a viewstate variable. Reference Name: viewstate O Body O Headers X URL Regular Expression: __VIEWSTATE=(.*?) Match No.: 1 Default Value: Can't find viewstate! But all I ever see in my logs is the Can't find viewstate default value. At first I thought I put it in the wrong sampler, but no matter which sampler I put it in, it doesn't find the variable. So... what am I doing wrong? Thanks, Kyle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another extractor question
Hum. I don't know if it would be in the body, but it makes sense, on second thought, that it wouldn't be in the url (it's post not get). Reference Name: viewstate O Body O Headers X URL does this mean you are checking against the URL? And yes, that meant it was checking against the URL, though the body didn't fare any better... Could it actually be in the body and my regex is completely malformed? Any clues as to how to go about viewing the post variables inside of a body? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another extractor question
On 06/12/06, Kyle Schmitt [EMAIL PROTECTED] wrote: Hum. I don't know if it would be in the body, but it makes sense, on second thought, that it wouldn't be in the url (it's post not get). Reference Name: viewstate O Body O Headers X URL does this mean you are checking against the URL? And yes, that meant it was checking against the URL, though the body didn't fare any better... Could it actually be in the body and my regex is completely malformed? Any clues as to how to go about viewing the post variables inside of a body? Just look for the string viewstate? It might be generated by Javascript, but it should be possible to find. If necessary, use the response saver to save a few pages. - 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]
results of load test
i am a new user of jmeter. so please tell me how to interpret the results we get from the listener aggregate report. -- View this message in context: http://www.nabble.com/results-of-load-test-tf2766086.html#a7713435 Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]