HTTP Req defaults combined Random contr.
Hello, I'm trying to stress test a server net where we have 3 webserver nodes. Loadbalancing is done by our client side application (that is, each client randomly selects which of the webnodes it'll talk to). To test this correctly I wanted to create the same behavior in JMeter - but preferrably without setting up my rather long list of request once per each server. So I thought the following test plan would do the trick (see the lines with *): - Test Plan -- Thread Group --- Random Controller * HTTP Request Defaults (www1) * HTTP Request Defaults (www2) * HTTP Request Defaults (www3) * --- HTTP Get --- HTTP Get --- HTTP Post --- Loop (blah blah blah) However - this does nothing. Not a single request is sent. I did not understand much until I suspected that no server were set by the "HTTP Request Defaults" config elements in the random controller. So I tried inserting another "HTTP Request Defaults" before the Random Controller - and it works. I suppose the problem is that the config block only applies to its parent level (ie the Random Controller). Any tips on how to get a setup like this to work? Thanks for your time! Magnus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: add postfix to save response file
JMeter does not care what filename extension is used, so I assumed you wanted to rename the file for use with some other program. In which case, using the OS to rename the file seems a reasonable approach. On 19/07/2008, Jose Castro <[EMAIL PROTECTED]> wrote: > I did not know you can call command line functions within jmeter. > > > > On Fri, Jul 18, 2008 at 7:31 PM, sebb <[EMAIL PROTECTED]> wrote: > > On 18/07/2008, Jose Castro <[EMAIL PROTECTED]> wrote: > >> and the file > >> > can easily be renamed. > >> > >> > >> Please post code. > > > > That depends on the OS, but in Windows one can use: > > > > RENAME prefix1.unknown prefix1.txt > > > >> > >> > >> The way I see it. Little enhancements like this make jmeter more > >> useful to more people. > >> It will definitively will be useful to me. And I am sure to many > >> others. Because there is another way to rename a file does not mean > >> that the functionality will not be used or appreciated by us "Users". > >> It also make jmeter a more powerful tool. > >> > >> Thank you > >> > >> > >> > >> > >> > >> On Fri, Jul 18, 2008 at 3:14 PM, sebb <[EMAIL PROTECTED]> wrote: > >> > On 18/07/2008, Jose Castro <[EMAIL PROTECTED]> wrote: > >> >> Is there anyway to add a postfix to the save responses to a file. > >> >> > >> >> I am saving the response of a sql query and always get a .unknown > >> >> > >> > > >> > Because the Content-Type is unknown. > >> > > >> >> Where can I ask the developers for this new feature? > >> > > >> > Here or as a Bugzilla enhancement request. > >> > > >> >> If there is already a prefix, why not a postfix? > >> > > >> > Because it was not considered necessary. > >> > > >> > The file type does not prevent the file from being used; and the file > >> > can easily be renamed. > >> > > >> >> > >> >> > >> >> Thank you > >> >> > >> >> - > >> >> 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: add postfix to save response file
I did not know you can call command line functions within jmeter. On Fri, Jul 18, 2008 at 7:31 PM, sebb <[EMAIL PROTECTED]> wrote: > On 18/07/2008, Jose Castro <[EMAIL PROTECTED]> wrote: >> and the file >> > can easily be renamed. >> >> >> Please post code. > > That depends on the OS, but in Windows one can use: > > RENAME prefix1.unknown prefix1.txt > >> >> >> The way I see it. Little enhancements like this make jmeter more >> useful to more people. >> It will definitively will be useful to me. And I am sure to many >> others. Because there is another way to rename a file does not mean >> that the functionality will not be used or appreciated by us "Users". >> It also make jmeter a more powerful tool. >> >> Thank you >> >> >> >> >> >> On Fri, Jul 18, 2008 at 3:14 PM, sebb <[EMAIL PROTECTED]> wrote: >> > On 18/07/2008, Jose Castro <[EMAIL PROTECTED]> wrote: >> >> Is there anyway to add a postfix to the save responses to a file. >> >> >> >> I am saving the response of a sql query and always get a .unknown >> >> >> > >> > Because the Content-Type is unknown. >> > >> >> Where can I ask the developers for this new feature? >> > >> > Here or as a Bugzilla enhancement request. >> > >> >> If there is already a prefix, why not a postfix? >> > >> > Because it was not considered necessary. >> > >> > The file type does not prevent the file from being used; and the file >> > can easily be renamed. >> > >> >> >> >> >> >> Thank you >> >> >> >> - >> >> 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: HTTPClient request fail where default HTTP Request succeeds
On 18/07/2008, msmolyak <[EMAIL PROTECTED]> wrote: > > My JMeter test has been built using default HTTP requests. It works in > general, except when the requests time out. It appears that for standard > HTTP Requests there is no way to set a timeout. Consequently JMeter just > sits waiting for the response and eventually the test has to be stopped. (My > first question is whether there is a way to tell JMeter to time out if no > response is received). JMeter uses the standard Java Http implementation, so see http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html for the properties you can set. These can be added to system.properties or defined on the command-line using -D. It looks like there are some timeouts you can specify, depending on the JVM you are using. > I tried to use HTTPClient requests instead since JMeter allows setting the > timeout for those. When I tried using the same requests as before (same > parameters, same headers) only using HTTPClient implementation, I received a > browser error. The environment where I test is very restrictive and they > check for browser version for their applications (e.g., Firefox is not > permitted). The error says that "Web browser is sending a WWW-Authenticate > header field that the Web server is not configured to accept". The HTTP > error is 401.2 - Unauthorized: Access is denied due to server configuration. > > As I said, the headers did not change from those used by regular JMeter HTTP > requests, which worked fine. What makes the IIS web server reject calls from > HTTPClient and how to make HTTP Client requests work? Perhaps the server is using NTLMv2? HttpClient only supports NTLMv1. You'll need to use a protocol analyser such as WireShark to see what the differences are. BTW, NTLM support is only available in Sun Java on Windows platforms. > Thank you, > > Michael > > > > -- > View this message in context: > http://www.nabble.com/HTTPClient-request-fail-where-default-HTTP-Request-succeeds-tp18538479p18538479.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: add postfix to save response file
On 18/07/2008, Jose Castro <[EMAIL PROTECTED]> wrote: > and the file > > can easily be renamed. > > > Please post code. That depends on the OS, but in Windows one can use: RENAME prefix1.unknown prefix1.txt > > > The way I see it. Little enhancements like this make jmeter more > useful to more people. > It will definitively will be useful to me. And I am sure to many > others. Because there is another way to rename a file does not mean > that the functionality will not be used or appreciated by us "Users". > It also make jmeter a more powerful tool. > > Thank you > > > > > > On Fri, Jul 18, 2008 at 3:14 PM, sebb <[EMAIL PROTECTED]> wrote: > > On 18/07/2008, Jose Castro <[EMAIL PROTECTED]> wrote: > >> Is there anyway to add a postfix to the save responses to a file. > >> > >> I am saving the response of a sql query and always get a .unknown > >> > > > > Because the Content-Type is unknown. > > > >> Where can I ask the developers for this new feature? > > > > Here or as a Bugzilla enhancement request. > > > >> If there is already a prefix, why not a postfix? > > > > Because it was not considered necessary. > > > > The file type does not prevent the file from being used; and the file > > can easily be renamed. > > > >> > >> > >> Thank you > >> > >> - > >> 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]
HTTPClient request fail where default HTTP Request succeeds
My JMeter test has been built using default HTTP requests. It works in general, except when the requests time out. It appears that for standard HTTP Requests there is no way to set a timeout. Consequently JMeter just sits waiting for the response and eventually the test has to be stopped. (My first question is whether there is a way to tell JMeter to time out if no response is received). I tried to use HTTPClient requests instead since JMeter allows setting the timeout for those. When I tried using the same requests as before (same parameters, same headers) only using HTTPClient implementation, I received a browser error. The environment where I test is very restrictive and they check for browser version for their applications (e.g., Firefox is not permitted). The error says that "Web browser is sending a WWW-Authenticate header field that the Web server is not configured to accept". The HTTP error is 401.2 - Unauthorized: Access is denied due to server configuration. As I said, the headers did not change from those used by regular JMeter HTTP requests, which worked fine. What makes the IIS web server reject calls from HTTPClient and how to make HTTP Client requests work? Thank you, Michael -- View this message in context: http://www.nabble.com/HTTPClient-request-fail-where-default-HTTP-Request-succeeds-tp18538479p18538479.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: add postfix to save response file
and the file > can easily be renamed. Please post code. The way I see it. Little enhancements like this make jmeter more useful to more people. It will definitively will be useful to me. And I am sure to many others. Because there is another way to rename a file does not mean that the functionality will not be used or appreciated by us "Users". It also make jmeter a more powerful tool. Thank you On Fri, Jul 18, 2008 at 3:14 PM, sebb <[EMAIL PROTECTED]> wrote: > On 18/07/2008, Jose Castro <[EMAIL PROTECTED]> wrote: >> Is there anyway to add a postfix to the save responses to a file. >> >> I am saving the response of a sql query and always get a .unknown >> > > Because the Content-Type is unknown. > >> Where can I ask the developers for this new feature? > > Here or as a Bugzilla enhancement request. > >> If there is already a prefix, why not a postfix? > > Because it was not considered necessary. > > The file type does not prevent the file from being used; and the file > can easily be renamed. > >> >> >> Thank you >> >> - >> 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: add postfix to save response file
On 18/07/2008, Jose Castro <[EMAIL PROTECTED]> wrote: > Is there anyway to add a postfix to the save responses to a file. > > I am saving the response of a sql query and always get a .unknown > Because the Content-Type is unknown. > Where can I ask the developers for this new feature? Here or as a Bugzilla enhancement request. > If there is already a prefix, why not a postfix? Because it was not considered necessary. The file type does not prevent the file from being used; and the file can easily be renamed. > > > Thank you > > - > 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]
add postfix to save response file
Is there anyway to add a postfix to the save responses to a file. I am saving the response of a sql query and always get a .unknown Where can I ask the developers for this new feature? If there is already a prefix, why not a postfix? Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeter tests stop abruptly
Please start a new thread for a new question, and please use a suitable subject line. On 18/07/2008, Jose Castro <[EMAIL PROTECTED]> wrote: > Is there anyway to add a postfix to the save responses to a file. > > I am saving the response of a sql query and always get a .unknown > > Where can I ask the developers for this new feature? If there is > already a prefix, why not a postfix? > > > Thank you > > > - > 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 tests stop abruptly
Is there anyway to add a postfix to the save responses to a file. I am saving the response of a sql query and always get a .unknown Where can I ask the developers for this new feature? If there is already a prefix, why not a postfix? Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JMeter tests stops abruptly
Adrian, How do you do it? Michael Fitzpatrick, Adrian wrote: > > > Have you checked the JMeter logs file? If theres nothing there, I'd > suggest > doing some thread dumps against JMeter to see what all your threads are > doing. > > - Adrian > > -Original Message- > From: msmolyak [mailto:[EMAIL PROTECTED] > Sent: 18 July 2008 00:38 > To: jmeter-user@jakarta.apache.org > Subject: JMeter tests stops abruptly > > > * > > This e-mail has been received by the Revenue Internet e-mail service. (IP) > > * > > > I am running stress tests against a EJB3 application deployed on Oracle > Application Server 10.1.3. In the development environment (small company > network) the JMeter tests run fine. When I try running the same tests in > the > target environment (large corporate network) the tests runs for a certain > number of iterations and then stops. > > The test includes a series of HTTP requests. I tried thread running 40, 20 > and 10 users, 50 iterations each. The point where JMeter stops generating > request looks rather random. The test is definitely not complete (although > usually one thread usually completes by the time it stops). There are no > error messages. I waited for up to 30 minutes with no results. The only > thing I do it to stop the test. All the requests up to the point where > test > stops are successful. > > I tried setting httpclient.timeout value to 6 (ms) in > jmeter.properties > file hoping that requests would time out. The property had no effect on > the > test. > > How do I discover the reason for interrupted tests? > > Thank you, > > Michael > -- > View this message in context: > http://www.nabble.com/JMeter-tests-stops-abruptly-tp18520055p18520055.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] > > > > > > This message has been delivered to the Internet by the Revenue Internet > e-mail service (OP) > > * > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/JMeter-tests-stop-abruptly-tp18520055p18530837.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: Error - csNoServiceDefined,Content-Transfer-Encoding: 8bit
On 18/07/2008, Anand79 <[EMAIL PROTECTED]> wrote: > > > The observation during my run is as follows: > 1. Run the test as Sysadmin (Oracle Content Management) works fine > 2. Change the Authentication Manager to use an exter user getting > authenticated using Active Directory - Fails with the below error > In other words - We have NTLM authentication as the default and fails in > this case, were as when made Basic it works fine > > Can you provide any pointers why this could happen.. > Are you using NTLMv2? JMeter HttpClient sampler only supports NTLMv1. I'm not sure if the other (Java) Http Sampler supports NTLMv2 or not. The Java Http Sampler only supports NTLM when run on Windows. I suggest you record a session using the JMeter Proxy and compare with the test plan. Or use a wire protocol analyser such as WireShark to compare JMeter with the browaer. > - Anand > > > > sebb-2-2 wrote: > > > > On 17/07/2008, Anand79 <[EMAIL PROTECTED]> wrote: > >> > >> Hi All, > >> > >> When I run a HTTP Request sampler of a POST method I get the following > >> error > >> message: > >> > >> }!csNoServiceDefined,Content-Transfer-Encoding: > >> 8bitCHECKIN_NEW!syExceptionType,java.lang.Throwable > >> java.lang.Throwable > >> at intradoc.common.IdcLogWriter.doMessageAppend(Unknown Source) > >> at intradoc.common.Log.addMessage(Unknown Source) > >> at intradoc.common.Log.errorEx2(Unknown Source) > >> at intradoc.common.LoggingUtils.logMessage(Unknown Source) > >> at intradoc.common.SystemUtils.reportErrorEx(Unknown Source) > >> at intradoc.common.SystemUtils.errEx(Unknown Source) > >> at intradoc.common.SystemUtils.err(Unknown Source) > >> at intradoc.server.ServiceManager.onError(Unknown Source) > >> at intradoc.server.ServiceManager.processCommand(Unknown Source) > >> at intradoc.server.IdcServerThread.run(Unknown Source) > >> > > > > The above is not a JMeter errror message; I've no idea what it means. > > > >> Is there a configuration in JMeter where I can configure the > >> 'Content-Transfer-Encoding: 8bit' entry. > >> > > > > The Header Manager can be used to send any headers you want: > > > > > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Header_Manager > > > > but it does not affect the data format, so it may not help. > > > >> - Anand > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Error---csNoServiceDefined%2CContent-Transfer-Encoding%3A-8bit-tp18501857p18501857.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/Error---csNoServiceDefined%2CContent-Transfer-Encoding%3A-8bit-tp18501857p18523631.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: JMeter tests stops abruptly
Have you checked the JMeter logs file? If theres nothing there, I'd suggest doing some thread dumps against JMeter to see what all your threads are doing. - Adrian -Original Message- From: msmolyak [mailto:[EMAIL PROTECTED] Sent: 18 July 2008 00:38 To: jmeter-user@jakarta.apache.org Subject: JMeter tests stops abruptly * This e-mail has been received by the Revenue Internet e-mail service. (IP) * I am running stress tests against a EJB3 application deployed on Oracle Application Server 10.1.3. In the development environment (small company network) the JMeter tests run fine. When I try running the same tests in the target environment (large corporate network) the tests runs for a certain number of iterations and then stops. The test includes a series of HTTP requests. I tried thread running 40, 20 and 10 users, 50 iterations each. The point where JMeter stops generating request looks rather random. The test is definitely not complete (although usually one thread usually completes by the time it stops). There are no error messages. I waited for up to 30 minutes with no results. The only thing I do it to stop the test. All the requests up to the point where test stops are successful. I tried setting httpclient.timeout value to 6 (ms) in jmeter.properties file hoping that requests would time out. The property had no effect on the test. How do I discover the reason for interrupted tests? Thank you, Michael -- View this message in context: http://www.nabble.com/JMeter-tests-stops-abruptly-tp18520055p18520055.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] This message has been delivered to the Internet by the Revenue Internet e-mail service (OP) * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]