Re: Cookie Manager
There is nothing complicated about the CookieManager that requires more explanation. If you're having a problem, it is likely related to something else. -Mike On 3 Apr 2003 at 12:23, Renee Dunn wrote: Is there any manuals/documentation/articles other than what is listed at http://jakarta.apache.org/jmeter/ that explains in more detail how to use the cookie manager, both to accept and to manually add existing cookies. I have not been able to get this to work sucessfully yet. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Jmeter -SESSION problem
Except there's no need to know the cookie name or anything. The cookiemanager receives and returns cookies just like your browser. The only time you need to manually add cookies to the cookie manager is if you have a specific need to initialize the cookies to some particular value -Mike On 1 Apr 2003 at 13:14, Wolfram Rittmeyer wrote: There are two ways how a servlet-container can deal with HttpSessions: The one way is to transfer a cookie with each request (you do not have to programm this, this is the default behaviour of at least most of the JSP-/Servlet-Containers) or you have to use URL-Rewriting which needs additional programming but has the advantage of not relying on cookies on the client-side. Therefore it is highly probable that you are using cookies as a means to deal with cookies. For the CookieyManager to work properly you have to know the cooky-name. Tomcat and JRun use jsessionid as the name of the cooky by default. You should try with this one in the CookyManager. Greetings, Wolfram -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any known flaw recording post/submit of values/fields?
an error could be expanded upon to help us out a bit.Otherwise I have no idea. Does this last page use SSL? (ie https) -Mike On 1 Apr 2003 at 14:51, Joao Pedro Clemente wrote: I'm testing a kind of webmail app, and I was recording a use case like this: Login, go to compose, compose and send some mail. When I do this last step I get an error on my browser. This error does not happen if I'm surfing normally (without the proxy recorder) However, the login process is similar (a form) so at the same time it doesn't feel that the problem is the proxy.. -- Joao Pedro Clemente jpcl @ rnl.ist.utl.pt (when not working out) (when not sleeping) (when not surfing) (when not ... ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running multiple GUI sessions
You can run JMeter as many times as you like, on as many machines as you like. I can't stop you :-) I think I don't really understand your question. -Mike On 1 Apr 2003 at 9:23, Casadonte, Joe wrote: Is it possible to run multiple GUI sessions, each controlling a different remote machine with a different test plan? If it is, is it a deprecated use? -- Regards, joe Joe Casadonte Global Logistics Technologies, Inc. [EMAIL PROTECTED] 1016 West Ninth Avenue King of Prussia, PA 19406 610-491-9881 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any known flaw recording post/submit of values/fields?
It might be helpful to see just what JMeter did record for this. On 1 Apr 2003 at 15:30, Joao Pedro Clemente wrote: an error could be expanded upon to help us out a bit.Otherwise I have no idea. Does this last page use SSL? (ie https) Of course, sorry for such lame thing: There is no error reported at the console where jmeter is started. When I submit the mail I've written, I get this at the browser: HTTP ERROR: 500 Internal Server Error RequestURI=/webmail/jwmasm The page does not use ssl. It's plain http. I get the request recorded at jmeter. It seems (to me) that the proxy is then unable to reproduce the request correctly to the server. Should I send you the .jmx file regarding the request that was recorded? Unless there is a log somewhere (the jmeter.log file is empty) I see no way to provide you extra information about what is happening... If you have any ideia on what I could do to debug, I'm all ears... Thank you Joao Clemente On 1 Apr 2003 at 14:51, Joao Pedro Clemente wrote: I'm testing a kind of webmail app, and I was recording a use case like this: Login, go to compose, compose and send some mail. When I do this last step I get an error on my browser. This error does not happen if I'm surfing normally (without the proxy recorder) However, the login process is similar (a form) so at the same time it doesn't feel that the problem is the proxy.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running multiple GUI sessions
I have 3 different tests to run, each against different servers. I have 3 remote engines available to me, as well as my desktop machine which I'm using as the controller for the remote machines. You can do this type of thing 2 different ways. One is to create multiple threadgroups in a single test plan. Each threadgroup can run completely separate scripts. However, you can only either run the test or not - so each remote machine would be running all of your threadgroups in parallel. the other option is to run JMeter's GUI multiple times and have each one control a different remote machine. If possible, option 1 is better - it's less resource intensive. there's also no real advantage to having each remote machine doing something different. Even if all three are running the same threadgroups, you can still balance the number of total users doing each activity as you like. Not knowing how the engine - controller communication works, I was unsure whether or not I could start up multiple GUI sessions simultaneously and have them each talk to remote engines running different tests, without stomping all over each other. Further, I didn't know if the (potentially) heavy load on my controller machine would then affect the remote machine's performance w/r/t data gathering and reporting. I would hope that the generating of the sample result data is as independent of the persisting of it as possible, but I don't know the limits of what's possible. Running without the gui is generally a performance gain. But, funny stuff can happen, and the latest CVS code actually fixes some of that funny stuff (it depends on how many processors the remote machines have). Finally, when using remote engines, is there any performance difference running the controller in gui-mode versus from the command line? see above. I could quantify all of this myself, and will if I can't get a definitive answer, but my tests are a little on the long side and my time on the machines is somewhat limited, so I'd rather spend my time testing the app, not the tool. Thanks for the help!! -- Regards, joe Joe Casadonte Global Logistics Technologies, Inc. [EMAIL PROTECTED] 1016 West Ninth Avenue King of Prussia, PA 19406 610-491-9881 -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 9:31 AM To: JMeter Users List Subject: Re: Running multiple GUI sessions You can run JMeter as many times as you like, on as many machines as you like. I can't stop you :-) I think I don't really understand your question. -Mike On 1 Apr 2003 at 9:23, Casadonte, Joe wrote: Is it possible to run multiple GUI sessions, each controlling a different remote machine with a different test plan? If it is, is it a deprecated use? -- Regards, joe Joe Casadonte Global Logistics Technologies, Inc. [EMAIL PROTECTED] 1016 West Ninth Avenue King of Prussia, PA 19406 610-491-9881 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - 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] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Q: Can't record struts requests
Did you add a threadgroup with a recording controller to your test plan? did you configure your browser to use JMeter as it's proxy server? Believe me - it's got nothing to do with struts. -Mike On 1 Apr 2003 at 10:23, Jurkiewicz, Robert wrote: Hi, I can't record struts actions (i.e. http://MYSERVER/home.do). I have correct response from proxy but request is NOT recorded. When I try access jsp or html everything works fine. Thank you in advance for your help. Regards, Robert ___ Robert Jurkiewicz, GTECH UK Ltd. Link House, 19 Radlett Road, Watford, WD24 4JL, United Kingdom * mailto:[EMAIL PROTECTED] *+44 1923 474831 7+44 1923 474830 CONFIDENTIALITY NOTICE _ This message is intended only for the recipient and may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, or the recipient's agent for delivery, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited, and you are requested to notify us immediately by telephone and return the original message to us. _ - This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nested sample results
I believe it's the former - the times are added up on redirects. On 1 Apr 2003 at 10:26, Casadonte, Joe wrote: If I make a request, get a redirect with follow-redirects set to on, I get sample results like the following: sampleResult responseCode=302 time=7641 timeStamp=1049210426166 responseMessage=Moved Temporarily threadName=stress_test-1 label=/servlets/glog.webserver.accessorialcost.AccessorialCostManagementSer vlet success=false sampleResult responseCode=200 time=7621 timeStamp=0 responseMessage=OK dataType=text label=/servlets/glog.webserver.accessorialcost.AccessorialCostManagementSer vlet success=true/ /sampleResult Does the time of the outer result (7641) include the time of the inner one (7621)?, or is the total time for both requests the sum of them? I'm thinking it's the former. Thanks! -- Regards, joe Joe Casadonte Global Logistics Technologies, Inc. [EMAIL PROTECTED] 1016 West Ninth Avenue King of Prussia, PA 19406 610-491-9881 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running multiple GUI sessions
In JMeter 1.8.1, a multiple CPU machine could experience slower performance as a JMeter remote server than as a full JMeter GUI client. This was due to the way results were being queued up and sent to the controlling machine. I made some changes in the current CVS code that should fix that problem, however. This is a different from just straight gui-mode vs non-gui-mode, however. non-gui- mode should always be faster than gui-mode. -Mike On 1 Apr 2003 at 11:14, Sherwood, Steve wrote: Mike, Could you elaborate on the funny stuff that can happen when running without the GUI? I'm using a remote Solaris server (6 CPU) for running tests and my PC running the GUI. Since my PC is pegged at 100% CPU usage while the test is running I was planning on running the test without the GUI on the Solaris box. Thanks, Steve -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 10:04 AM To: JMeter Users List Subject: RE: Running multiple GUI sessions I have 3 different tests to run, each against different servers. I have 3 remote engines available to me, as well as my desktop machine which I'm using as the controller for the remote machines. You can do this type of thing 2 different ways. One is to create multiple threadgroups in a single test plan. Each threadgroup can run completely separate scripts. However, you can only either run the test or not - so each remote machine would be running all of your threadgroups in parallel. the other option is to run JMeter's GUI multiple times and have each one control a different remote machine. If possible, option 1 is better - it's less resource intensive. there's also no real advantage to having each remote machine doing something different. Even if all three are running the same threadgroups, you can still balance the number of total users doing each activity as you like. Not knowing how the engine - controller communication works, I was unsure whether or not I could start up multiple GUI sessions simultaneously and have them each talk to remote engines running different tests, without stomping all over each other. Further, I didn't know if the (potentially) heavy load on my controller machine would then affect the remote machine's performance w/r/t data gathering and reporting. I would hope that the generating of the sample result data is as independent of the persisting of it as possible, but I don't know the limits of what's possible. Running without the gui is generally a performance gain. But, funny stuff can happen, and the latest CVS code actually fixes some of that funny stuff (it depends on how many processors the remote machines have). Finally, when using remote engines, is there any performance difference running the controller in gui-mode versus from the command line? see above. I could quantify all of this myself, and will if I can't get a definitive answer, but my tests are a little on the long side and my time on the machines is somewhat limited, so I'd rather spend my time testing the app, not the tool. Thanks for the help!! -- Regards, joe Joe Casadonte Global Logistics Technologies, Inc. [EMAIL PROTECTED] 1016 West Ninth Avenue King of Prussia, PA 19406 610-491-9881 -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 9:31 AM To: JMeter Users List Subject: Re: Running multiple GUI sessions You can run JMeter as many times as you like, on as many machines as you like. I can't stop you :-) I think I don't really understand your question. -Mike On 1 Apr 2003 at 9:23, Casadonte, Joe wrote: Is it possible to run multiple GUI sessions, each controlling a different remote machine with a different test plan? If it is, is it a deprecated use? -- Regards, joe Joe Casadonte Global Logistics Technologies, Inc. [EMAIL PROTECTED] 1016 West Ninth Avenue King of Prussia, PA 19406 610-491-9881 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - 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] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777
Re: Q: How to get from http to https?
The proxy recorded cannot deal with https and ssl. You should turn off ssl while recording. -Mike On 1 Apr 2003 at 11:25, Jurkiewicz, Robert wrote: Hi, I have one more question. I try to record actions as follow: 1. Go to home page -- using HTTP 2. Login -- use HTTPS When I am recording these steps after submitting usernane and password error page is displayed with error message: The page cannot be displayed When I try to run recorded test with username and password as parameters following error occurs: javax.net.ssl.SSLHandshakeException: Couldn't find trusted certificate. I assume that JMeter proxy is not passing certificate from IE. How to work it out? Cheers, Robert ___ Robert Jurkiewicz, GTECH UK Ltd. Link House, 19 Radlett Road, Watford, WD24 4JL, United Kingdom * mailto:[EMAIL PROTECTED] *+44 1923 474831 7+44 1923 474830 CONFIDENTIALITY NOTICE _ This message is intended only for the recipient and may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, or the recipient's agent for delivery, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited, and you are requested to notify us immediately by telephone and return the original message to us. _ - This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No result for Throughput
Before we go through what the problem might be, do you mind upgrading to JMeter version 1.8.1? -Mike On 29 Mar 2003 at 22:18, luojia chen wrote: Hi, I'm starting to use JMeter1.8 on Win2K, and follow the instruction to create a web test plan in the User Manu for the server:jakarta.apache.org. But after I run the test, there's no value appear for the throughput, but a big value for the deviation. Can anyone please tell me what's the possible reason to cause the result? Any mis-configuration? I used the JDK1.4.0,and JMeter 1.8. Thanks in advance,Jenny - Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Send parameters with http request
The SOAP Sampler may be what you are looking for. -Mike On 27 Mar 2003 at 10:43, Ananda wrote: Hi, Can someone throw some light on the doubts below: I'm trying to figure out how to tell jmeter to POST the exact message body content I specified without adding its own default stuff. I tried the following: 1) Send a file with the request - this prefixes my message body content with: -7d159c1302d0y0..Content-Disposition: form-data; name=; filename=D:\\cns\\rm1.4\\jmeter\\messages\\SessionStart.xml..Content-Type: and postfixes my message body content with: ..-7d159c1302d0y0-- 2) Send parameters with HTTP request - this allows me to specify a parameter (e.g. parm1) and a corresponding value (in this case my POST message body content). But this prefixes my content with: parm1= Is there a way around this? Thanks. Ananda. -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to Setup SOAP RPC Handler Problem with content type for a SOAP RPC Handler
I took a look at the code, and the internal structure of HTTPSampler changed somewhat recently. SOAPSampler, which extends it, didn't keep up. I've made a quick modification that I think should fix this problem, though I have no easy way to test it, so I'll check it in, you can grab the latest nightly tomorrow and try it out. Let me know if it works. -Mike On 26 Mar 2003 at 13:36, [EMAIL PROTECTED] wrote: Hi, I'm having also problems with the content type of a the soap handler ( application/x-www-form-urlencoded ) Did anybody solve this problem or know how to configure it properly ?? I followed the instructions on : http://javaboutique.internet.com/tutorials/JMeter/ But the setting of the content type in the http header does not work, ( When i set the useragent header in the same http header it works ) I'm using jmeter 1.8.1 and apache soap 2.3.1. thanks Joost Maenen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using data from one request in another request
On 24 Mar 2003 at 15:49, Casadonte, Joe wrote: It's bad for to respond to your own question, I know, but I think I figured out my own answer. I need to use __regexFunction, right? The tricky part of WHERE to put it still remains, though. What I have is not really Requests AB, but rather Requests A-F, where A has the data I want to parse out, and F is where I need to use it. I gather I need to put it in as a config element in B's request, even though B is not related to either the Request generating the value or the one using it. That's a bit ugly, but I've seen (and coded :) worse. You are right. In the latest CVS code, this issue is fixed (though, it's not as stable as 1.8.1, so I'm not recommending you get it right now). Does each thread get it's own value of this parameter? Thanks for the help! Yes. -Mike -- Regards, joe Joe Casadonte Global Logistics Technologies, Inc. [EMAIL PROTECTED] 1016 West Ninth Avenue King of Prussia, PA 19406 610-491-9881 -Original Message- From: Casadonte, Joe [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 3:29 PM To: JMeter Users List Subject: Using data from one request in another request Say I have two requests: A B. Part of the data sent back in response to Request A is needed as a parameter to B. Is there any existing way to make this work? Thanks! -- Regards, joe Joe Casadonte Global Logistics Technologies, Inc. [EMAIL PROTECTED] 1016 West Ninth Avenue King of Prussia, PA 19406 610-491-9881 - 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] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jmeter problem
You can make it dynamic via other methods. Read up on some of the functions available to you in JMeter. -Mike On 21 Mar 2003 at 17:48, Benjamin Gantier wrote: Thank Mike, Does it mean that if i 've got 2 frames toto.html and titi.html in my tutu.jsp, I have to realize 3 http requests : one for each one. So it's not dynamic... -Ben Mike Stover a écrit : You just need to tell jmeter to request those frame pages as separate requests. If you record your browser actions, JMeter will record every request and you can use that as your test plan. -Mike On 21 Mar 2003 at 9:11, Benjamin Gantier wrote: Hi, I'm a beginner in jmeter application I made some tests with static pages and images contains in are not always request by jmeter. I made some tests with a jsp page which is a frameset with 2 frames (2 html pages) and jmeter request only the jsp page, not the 2 html ones. Is there any special configuration of jmeter to do ? Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - 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] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: capture/replay style recording tool for JMeter
forget about the HTTP Request Defaults. in the TestPlan element, create user-defined variables (read about here: http://jakarta.apache.org/jmeter/usermanual/functions.html). For instance: namevalue server jakarta.apache.org then start recording. JMeter will find all instances of jakarta.apache.org and replace with ${server} while recording. Then, when you play back, you can just change the value of the server variable. I think you can to the same with the port, and you can certainly do the same with parts of the path. -Mike On 20 Mar 2003 at 14:39, root wrote: On Thu, Mar 20, 2003 at 08:50:07AM -0500, Mike Stover wrote: This wasn't clear, but are you saying you can't abstract out the server name? But, of course you can - in both tools. Both tools let you define a variable (say ${server} ) whose value is your current server. JMeter's proxy recorder will automatically replace all occurrences of your server name with the ${server} variable. Then, to use the test plan against another server, just change the value of the variable in one place. BadBoy appeared to be similar. About a month ago I posted this problem in the ML. I had a reply saying that it was a known problem and that there has been filled a bug report for it at that time. In my post I said that I've tried every combination I could think of: I've setted the http request defaults with the server name, port and path I was testing a) At test level b) At thread level c) At Controller level d) At proxy level None of this tries had produced a recording that was free from server,port and path variables. Maybe I setted up BadBoy in a wrong way, but I'm quite sure that JMeter had thi problem and was confirmed by others. If you have a sucessfull story doing this, I think we'ld love to know how it's done... Joao Clemente - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validating results from JDBC test
I don't use JDBC with JMeter much, but I tried it and it worked fine for me. I'm using the latest code in CVS, so maybe something's been fixed since 1.8.1? I was able to see the results in the View Results Tree, and I was able to apply the ResponseAssertion to it successfully. -Mike On 17 Mar 2003 at 13:49, Tim Wilkinson wrote: This question was asked about a month ago, but I never saw an answer to this, so I'll ask again. Is there a way to validate the results from a JDBC test? Looking at the user manual, it seems to say that an assertion can be used to verify the results from a query, but when I have tried this, the assertion always passes, whether or not I put in invalid check or not. In fact, I can verify that I am actually hitting the database with JMeter, using the driver and URL and user name and password. If some one has a way to check all this, please let me know. Thanks, Tim -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Q: How to use with Java Objects?
It's somewhat complicated, because the exact behavior of how long connections are kept open is an implementation detail of Sun's HTTPClient. You have some control via the keep-alive checkbox. If keep-alive is not checked, http connections will be closed after each sample. Otherwise, they are closed as needed in sun's client - not unlike the way unused objects are garbage collected by the JVM. -Mike On 9 Mar 2003 at 13:20, bjh02 wrote: I have a question regarding threads and jmeter If I have a thread group with only one thread and use the select loop forever option, do the threads ever get stopped/terminated - or do all connections made to a web server remain open? Thanks Ben On Sat, 8 Mar 2003 18:47:23 -0500, Mike Stover [EMAIL PROTECTED] wrote: You'll have to write some sampler code that talks to your app server (probably can mostly be taken from your existing app), and make yourself a plug-in to JMeter. It's not hard, but it will require an investment of your time learning some basics of JMeter's architecture, and a willingness to write the code. -Mike On 7 Mar 2003 at 17:38, Dennison, Karl wrote: I have a SWING-based app (connecting to the app server through RMI) which I'd like to response test. I could not find any examples in the documentation. I know that there is this Java Request element that can be used to execute an object but I'm not quite sure how. Any help will be highly appreciated. -- Karl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - 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] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Limitation of JMeter UI
On large scale tests you must be careful which listeners you use. Use low-memory visualizers, such as Graph Results and Aggregate Report. I have made over 30,000 requests with over 500 threads by being careful that way with no problems. This is on a 600mhz machine and 512MB RAM. Listeners like View Results Tree and the Results Table are for fine-tuning your test cases prior to launching them full-scale. Remove them once you are confident everything is working as desired. I have had thoughts that visualizers should have the option of only recording failure results - to save memory while still allowing users to review failures. It would be stupid easy to implement. So many things to do -Mike On 6 Mar 2003 at 13:59, Ananda wrote: Hi, I have to simulate more than 1000 http request. The JMeter UI is not able to display more than 1000 (is getting stuck at exactly 1164) rows in the Results Table. It gets stuck though it is in the run mode. Is this a limitation ? Please let me know if there is a workaround or a preferred solution. Thanks Regards, Ananda. Infosys Technologies Ltd. Bangalore. Ph: +91-80-5010149 www.infosys.com -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Null pointer in JavaSamplerClient whenn using AssertionVisualizer
That's interesting. The Java Sampler is not a particularly mature implementation. What it should do for you is create the SampleResult object for you and set the SamplerData (which is the JavaSampler class you are plugging into). However, you would likely be better off implementing your component as a full Sampler in it's own right. You would extend AbstractSampler rather than AbstractJavaClient (or whatever it is). Not significantly harder to do, but it would require throwing together a little GUI class (extending AbstractSamplerGui), putting in some text fields or whatever so you could configure it. For now, I'd recommend creating a dummy Sampler class to put in the SampleResult (it could just be new HTTPSampler() - whatever, I don't think you care too much what it is for now). -Mike On 6 Mar 2003 at 11:18, Alistair Hopkins wrote: Hi, I'm using Jmeter 1.8.1 and jdk 1.4 to do some interface testing on a legacy application which uses nasty text over tcp sockets for interprocess comms. I've implemented a SocketSampler which extends JavaSamplerClient and will write a command (as specified in the UI) to the socket, then return the response line as the SamplerResult response data: long start = System.currentTimeMillis(); byte[] response = makeRequest(request); //does the nasty socket thing long finish = System.currentTimeMillis(); SampleResult result = new SampleResult(); result.setDataType(SampleResult.TEXT); result.setResponseData(response); result.setTime(finish - start); The only problem is that when I try to use the AssertionVisualizer I get a null pointer exception at AssertionVisualilzer:116 and the test run never exits. I know that the SleepTest sample has the same problem. AssertionVisualizer:116 textArea.append(sample.getSamplerData().toString()); So, I try to add result.setSamplerData(this); to my class - but then none of the visualizers work! SamplerData is a TestElement - what TestElement is expected? It seems to be only for adding a label to the panel anyway. Can anyone tell me what I have to do to get the AssertionVisualizer working? (without hacking the JMeter source - I want to give this test set to 3rd parties and I want to keep on the development track!) Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Authorization Weirdness
Siteminder - I've heard so much about this application. Sounds positively dreadful. So, instead of removing the header from the header manager, why didn't you just put the function in there too (or the functions reference name)? -Mike On 5 Mar 2003 at 16:25, Drew Gulino wrote: I am trying to authentication to a web application but having problems. I recorded the Test Plan using the proxy and then modified it to use different user account via the new _StringFromFile function. Then running the test I found it was always authenticating as the user I had recorded it with. I then found that the Browser-derived headers contained the Basic Authorization string for that user. I deleted that and now I can no longer authenticate to the application at all. If I use a proper Authentication Manager I get java.io.IOException: Stream closed errors in JMeter If I don't use the AM then I get 401 errors - authentication required. The weird part is when I tried authenticating with other clients to get a different perspective: 1) Mozilla 1.0 on Linux respondse after a few attempts at loading the page - saying response is null 2) IE and Netscape 7 on Win2K works fine 3) Wget on linux goes into a similar loop that mozilla does, with the message End of file while parsing headers 4) Opera 6 on Linux works fine 5) Netscape 4.78 on AIX works fine The web page I am testing has a very simple JavaScript redirect and uses a SSO product called SiteMinder. Has anyone else seen behavior like this? __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic HTTP Request variables
You're probably looking at the HTML Link Parser, which will search the previous result for form or link arguments that match the ones in your Request. If you have '.*' in your value, or some other regular expression that successfully matches, it will be replaced by the value found in the web page. The regex function and regex config element (only in nightly builds) work similarly, but have more general applications. -Mike On 4 Mar 2003 at 11:59, Mo, Jennifer wrote: Is there a way to change the value in the name-value pair dynamically? I looked at the Modification Manager.jmx and noticed that for value there is a .* Is that value being read from a text file? Thanks. Jen -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Making sense of the listener data
you might be able to get some of what you want by checking the follow redirects and Retrieve all Images and Applets ( which I think will do css and js files, but probably not frames - not sure). A better solution, for you, is likely to be the transactional listener, which would let you group requests into a single data point (it's a current enhancement request). -Mike On 4 Mar 2003 at 11:12, Casadonte, Joe wrote: Hi, New to JMeter (as of yesterday) and I have some questions regarding the output. Bringing up a single page in our system consists of numerous requests, with some overlap between pages. I've grouped the requests logically under Simple Controllers, but that is lost in the output. Is there any way to get the parent controller label, or even ultimate ancestor controller's label included in the output? Without that, I'm afraid it's not of much use, as I can't get an aggregate of what it took to load the page. I suppose I could have each controller have their own output file. Thanks! -- Regards, joe Joe Casadonte Global Logistics Technologies, Inc. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LoopController end on error
This would be the wrong approach because it is not the controller's responsibility to call the sample method. Also, if you just want to end the loop, your controller should return false from the hasNext() method rather than returning true from the done() method. Being done technically means your controller will never have more samplers to deliver, which I assume you don't mean. What you'll want is access to the latest sampleresult, in which case you can make your controller implement the SampleResultListener interface. And, in the very near future, there will be a JMeterContextService that will provide access to that type of thing. -Mike On 27 Feb 2003 at 20:49, Richard Han wrote: Hi all, I would like to implement a loop controller that end the loop on error condition. This has been discussed on the list before for the issue of spider toolkit. (see the message attached), http://www.mail-archive.com/[EMAIL PROTECTED]/msg01206.html there, Mike suggested to extend the LoopController to end on error condition. Could Mike or anyone give me some pointers on the implementation? The obvious and most likely wrong approach I can think of is: public class EndOnErrorLoopController extends LoopController { public boolean isDone() { blar blar Iterator iter = subControllersAndSamplers.iterator(); while (iter.hasNext()) { Object item = iter.next(); if(item instanceof Sampler) { SampleResult result = item.sample(true) ; if(!result.isSuccessful()) { return true; } } } } But this approach does the sampling twice, one extra more than the normal testing thead I just started to use JMeter and still in the early learning process, but I am very impressed and I hope I could give some contributions. Thanks Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Important: Doubt in a test plan
There are no conditional capabilities in JMeter currently. -Mike On 27 Feb 2003 at 9:22, Ananda wrote: Hi Friends, In my test plan I send a http request. Based on a response assertion I want to send a second http request. Like, if the criteria turns true send the second request else not. I tried adding my second http request as a child to the response assertion as shown in the attached picture. But here in this case in the View Results in table the second http request does not show up thought the assertion is true. I would be grateful if someone can help me on this. Regards, Ananda. Infosys Technologies Ltd. Bangalore. Ph: +91-80-5010149 www.infosys.com -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Meaning of fields in listeners
These numbers are the average response time (in MS), the minimum response time received, the max, the percent of requests that failed, and the throughput rate (responses/time). -Mike On 27 Feb 2003 at 17:33, Ananda wrote: Hi, In View Results in Table we have 'Sample-ms' (Is this the time taken for each thread's request-response cycle ?) In Aggregate Report we have 'Average', 'Min', 'Max', 'Error%' and 'Rate'. Can someone point me to the web-page where the meaning of each is explained. Please throw some light on this. Thanks Regards, Ananda. -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Meaning of fields in listeners
i don't think so. On 27 Feb 2003 at 10:02, Puri, Manish wrote: Hi, Refer the mail below. Does the throughput rate a/c for the failure Error responses as well? rgds, Manish -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 8:01 AM To: JMeter Users List Subject: Re: Meaning of fields in listeners These numbers are the average response time (in MS), the minimum response time received, the max, the percent of requests that failed, and the throughput rate (responses/time). -Mike On 27 Feb 2003 at 17:33, Ananda wrote: Hi, In View Results in Table we have 'Sample-ms' (Is this the time taken for each thread's request-response cycle ?) In Aggregate Report we have 'Average', 'Min', 'Max', 'Error%' and 'Rate'. Can someone point me to the web-page where the meaning of each is explained. Please throw some light on this. Thanks Regards, Ananda. -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to have 1000 users?
Try the new function recently added: StringFromFile.java. It's pretty simple to use. You make a file that has values (1 per line) that are put into a variable. The file is read one value at a time, so it shouldn't overload memory at all.. -Mike On 27 Feb 2003 at 9:46, Drew Gulino wrote: I having problems creating a test plan with over 1000 distinct users. Directly creating individual thread groups in a *.jmx creates 13Mb files that JMeter's parser chokes on (SAX error). If I create over 1000 entries with User Parameters directly in the *.jmx, then JMeter doesn't give an error, but never comes up. It just hangs for over 5 minutes with my PIII 500 at 100% CPU utilization, and then I stop the process. If it takes more than 5 minutes to open it probably will not run. I think this is the direct result of the tight integration between the data and the gui. I believe JMeter is having trouble displaying a 1000+ entry table. I understand the HTTP User Parameter Modifier is deprecated, but it seems my only choice. How does this work? There is no documentation. It doesn't seem to work with the ${variable} syntax. I am under a deadline, so don't have time to modify the code. Any help would be greatly appreciated. __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to have 1000 users?
Yes it is. Also, you can provide the function with a reference name, and then use the reference name in subsequent uses of it. Just like the other functions. -Mike On 27 Feb 2003 at 13:17, Drew Gulino wrote: Yes it's after 1.8.1, I used the nightly build from 02/07. --- Tana (Cicero) Franko [EMAIL PROTECTED] wrote: Was this added after 1.8.1? I don't see it in the Function Helper Dialog. Can't wait to try it though! -Original Message- From: Drew Gulino [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 1:00 PM To: JMeter Users List; [EMAIL PROTECTED] Subject: Re: How to have 1000 users? Belay that last email (which only went to the list, not to mstover). It seems multiple calls to _StringFromFile keep the same value through the iteration of the thread. My data is fairly repeditive, so it was hard to tell what was happening. I just threw 1,2,3,4... into it and all was clear. --- Mike Stover [EMAIL PROTECTED] wrote: Try the new function recently added: StringFromFile.java. It's pretty simple to use. You make a file that has values (1 per line) that are put into a variable. The file is read one value at a time, so it shouldn't overload memory at all.. -Mike On 27 Feb 2003 at 9:46, Drew Gulino wrote: I having problems creating a test plan with over 1000 distinct users. Directly creating individual thread groups in a *.jmx creates 13Mb files that JMeter's parser chokes on (SAX error). If I create over 1000 entries with User Parameters directly in the *.jmx, then JMeter doesn't give an error, but never comes up. It just hangs for over 5 minutes with my PIII 500 at 100% CPU utilization, and then I stop the process. If it takes more than 5 minutes to open it probably will not run. I think this is the direct result of the tight integration between the data and the gui. I believe JMeter is having trouble displaying a 1000+ entry table. I understand the HTTP User Parameter Modifier is deprecated, but it seems my only choice. How does this work? There is no documentation. It doesn't seem to work with the ${variable} syntax. I am under a deadline, so don't have time to modify the code. Any help would be greatly appreciated. __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.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] __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServletFilters
JMeter simulates a browser, and only talks HTTP to your server. It is completely independent of servlets, cgi scripts, ASP, etc. -Mike On 26 Feb 2003 at 7:27, Vance Arocho wrote: Does JMeter work with a ServletFilter? - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Proxy Server, default http settings simple controller
How about using the Recording Controller? -Mike On 26 Feb 2003 at 23:27, Joao Pedro Clemente wrote: I'm trying to record a web session usage with JMeter's Proxy Server. It seems to be missing some functionality that is described in the docs: a) I set up a thread group with a simple controller, and the events get recorded in the thread group instead of inside the simple controller. a1) Tried with simple controller inside ThreadGroup a1) Tried with simple controller inside WorkBench b) I've set up a HTTP Request Defaults with server/port info, to get my recorded events without servername and serverport, but every event got their info hardcoded. I've tried with a HTTP Requests Defaults inside b1) The Test Plan b2) The Thread Group b3) The Simple Controller b4) The workbench c) The manual says that starting the proxy server outputs a console message. It doesn't. This last one its really of no importance, since the proxy server works ok. Am I doing something wrong? My test plan (after all tries) is something like this: |Test Plan | \- Thread Group | | \- SimpTest Plan | \- Thread Group | | \- le Controller | | | \HTTP Request Defaults | | | | | | HTTP Request Defaults | | | |-- [events get always recorded here] | |HTTP Request Defaults | |WorkBench \Http Proxy Server |Simple Controller |Http Request Defaults As I've said, this was my final attemps, with all tries togheter. My initial setup was quite smaller. The results have been always the same. My http proxy was configured to listen at 7070 My http defaults set server=localhost, protocol=http, port=8080. I've tried this under Linux Windows, Sun's j2sdk_1.4.1_01, jmeter 1.8.0 and 1.8.1 Thank you Joao Clemente -- Joao Pedro Clemente jpcl @ rnl.ist.utl.pt (when not working out) (when not sleeping) (when not surfing) (when not ... ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Conditional Logic
No one has written a conditional controller that I know of. -Mike On 25 Feb 2003 at 9:51, James hughes wrote: I would like to add some kind of conditional logic to my test plan. I am making a http request, and would like to take different routes through the test plan depending on the content of the http response. Is there a mechanism in JMeter to do this? Thanks J --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.458 / Virus Database: 257 - Release Date: 24/02/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sharing objects between samplers ?
You just have to implement the clone() method correctly. Samplers are cloned because their data is often modified during test runs. -Mike On 20 Feb 2003 at 11:25, Grommes, Ben wrote: I think using JMeterVariables to share an object between multiple custom sampler classes only works if the samplers execute ONCE per test plan. AbstractSampler implements PerSampleClonable which means that the sampler object is cloned each iteration. If a custom sampler class implements ThreadListener the instance that is registered with JMeterThread when it starts up will be different from each cloned instance that is used each iteration, thus making it impossible to access the JMeterVariables after the first iteration in the test plan. Does anyone know why it is necessary to clone sampler objects each iteration? -Original Message- From: Bruno Dillenseger [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 3:10 AM To: JMeter Users List Subject: Re: Sharing objects between samplers ? Mike Stover a écrit: What you're doing is similar to what the JMeterVariables object provides you - a place to store values by thread. By implementing the ThreadListener interface, you are given access to the JMeterVariables. Currently, it only allows the storage of string variables, but there's no reason you could simply modify it to store objects as well. Thanks for these guidelines. Regarding samplers that can do more than one thing - I'd like to expand the sampler interface to allow one sampler to return multiple SampleResults (via a callback interface) and do mutliple things. I'd then like to make a scripted Sampler that allowed one to write some J/Python code into JMeter's gui that would then be run as the Sampler's sample() method. Is this kind of what you mean by allowing a single sampler to do more? Scripting is an important feature (e.g. J/Python code in Grinder or TestMaker). Jmeter's new Javascript extension brought by Thad Smith seems very interesting. What I mean is: I would feel it convenient to create a kind of virtual user class holding several sampling methods and a virtual user state. From the GUI, instead of choosing a Java sampler class, I would simply choose a sampling method of my virtual user. Or, to simplify, there could be a single sampling method like it is now, and I would give arguments in the GUI that allows my code to switch to the right sampling method; this is what I actually do today, using a static hashtable variable to store the states of my virtual users. It seems that Jmeter has another approach/granularity using Samplers and JMeterVariables instead of virtual users. Do you know the reason for such a design choice? About my deadlocks: is it allowed/safe to do synchronization (synchronized/wait/notify) of Jmeter's threads in samplers? Thanks for your support, -- Bruno. On 17 Feb 2003 at 9:42, Bruno Dillenseger wrote: I don't know if what I do is the cleanest way (it might be actually a dirty way), but it is straightforward: - the connect sampler fills a static hashtable object with its current thread as key and your custom server reference object as value; - the disconnect sampler retrieves the reference from the hashtable, using its current thread as key. I even do some synchronization on this thread object (wait()/notify()) and I get deadlocks in a couple of threads from time to time, without knowing if it is caused by a bug in my code, or if it results from a conflict between by code and internal synchronization of Jmeter's thread management From my point of view, I don't feel it convenient to proceed this way. I would feel it more convenient to have a single sampler object with its own state, performing a variety of operations during the test plan. If a Jmeter developper reads this, probably s/he can comment on my workaround? - 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] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sharing objects between samplers ?
Ok, then you'll have to wait a little bit. A guy name Thad Smith is working on it as we speak :-) -Mike On 20 Feb 2003 at 20:11, Vjeran Marcinko wrote: - Original Message - From: Mike Stover [EMAIL PROTECTED] To: JMeter Users List [EMAIL PROTECTED] Sent: Monday, February 17, 2003 4:05 PM Subject: Re: Sharing objects between samplers ? What you're doing is similar to what the JMeterVariables object provides you - a place to store values by thread. By implementing the ThreadListener interface, you are given access to the JMeterVariables. Currently, it only allows the storage of string variables, but there's no reason you could simply modify it to store objects as well. You mean I should change and recompile this JMeterVariables class to add storing of java objects other then String ? Maybe this question sounds stupid, but I'm just newbie who is scared of changing core APIs ... Regards, Vjeran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Applets
JMeter can be instructed to download and time the downloading of applet code, but it doesn't run the applet, or call it's init method. That's client side processing, which JMeter, by nature, can't test. -Mike On 20 Feb 2003 at 15:04, Jacqui Guerrero wrote: Does anyone know if JMeter is configurable(or if it does by default) to time when an applet in an HTTP request finishes loading and has been started (init() has been called on applet object)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Testing RMI application
It's probably possible. You'd have to write your own sampler, as no one else can write the code that talks to your app. Whether this would be a good idea or not, I can't tell. Do you have a need to simulate 50 users using your SWING app simultaneously? -Mike On 19 Feb 2003 at 16:08, Kannan wrote: Hi all, My application is a java application with swing.It uses RMI and user authentication from the first screen itself. Based on the user only the other screens will be loaded. Can I test application which uses this kind of SWING and RMI? Can anybody explain about it ? Thanks, P.Kannan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sharing objects between samplers ?
I wasn't very clear on what you meant by virtual users and virtual user state. JMeter is the way it is mostly out of a desire to provide non-programmers with a full-featured testing tool. Scripting is desirable, but being gui-driven and not requiring programming experience is just as important to me. I'm not trying to recreate TestMaker. -Mike On 19 Feb 2003 at 10:09, Bruno Dillenseger wrote: Mike Stover a écrit: What you're doing is similar to what the JMeterVariables object provides you - a place to store values by thread. By implementing the ThreadListener interface, you are given access to the JMeterVariables. Currently, it only allows the storage of string variables, but there's no reason you could simply modify it to store objects as well. Thanks for these guidelines. Regarding samplers that can do more than one thing - I'd like to expand the sampler interface to allow one sampler to return multiple SampleResults (via a callback interface) and do mutliple things. I'd then like to make a scripted Sampler that allowed one to write some J/Python code into JMeter's gui that would then be run as the Sampler's sample() method. Is this kind of what you mean by allowing a single sampler to do more? Scripting is an important feature (e.g. J/Python code in Grinder or TestMaker). Jmeter's new Javascript extension brought by Thad Smith seems very interesting. What I mean is: I would feel it convenient to create a kind of virtual user class holding several sampling methods and a virtual user state. From the GUI, instead of choosing a Java sampler class, I would simply choose a sampling method of my virtual user. Or, to simplify, there could be a single sampling method like it is now, and I would give arguments in the GUI that allows my code to switch to the right sampling method; this is what I actually do today, using a static hashtable variable to store the states of my virtual users. It seems that Jmeter has another approach/granularity using Samplers and JMeterVariables instead of virtual users. Do you know the reason for such a design choice? About my deadlocks: is it allowed/safe to do synchronization (synchronized/wait/notify) of Jmeter's threads in samplers? Thanks for your support, -- Bruno. On 17 Feb 2003 at 9:42, Bruno Dillenseger wrote: I don't know if what I do is the cleanest way (it might be actually a dirty way), but it is straightforward: - the connect sampler fills a static hashtable object with its current thread as key and your custom server reference object as value; - the disconnect sampler retrieves the reference from the hashtable, using its current thread as key. I even do some synchronization on this thread object (wait()/notify()) and I get deadlocks in a couple of threads from time to time, without knowing if it is caused by a bug in my code, or if it results from a conflict between by code and internal synchronization of Jmeter's thread management From my point of view, I don't feel it convenient to proceed this way. I would feel it more convenient to have a single sampler object with its own state, performing a variety of operations during the test plan. If a Jmeter developper reads this, probably s/he can comment on my workaround? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Picking the element from the list dynamically
You can use the regex function, or, sometimes you can use the HTML Link Parser. And if you grab the lastest from CVS, there is a new Extractor component that will also let you grab values using regular expressesions (works like the regex function, only easier). -Mike On 18 Feb 2003 at 11:09, rami reddy wrote: Hi all, I am using JMeter for Load testing my web application. There is list box (list elements are dynamic) in my application . (For that matter it can be combo,check box , radio button or can be any thing similar to these ) How will I prepare JMeter script so that JMeter picks any one from list and send request? Let us say there are 3 elements in list,how will I send 3 requests one by one to test all possible options ? Pls let me know and mail me sample script if you can. Thanks. -Rami _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sharing objects between samplers ?
What you're doing is similar to what the JMeterVariables object provides you - a place to store values by thread. By implementing the ThreadListener interface, you are given access to the JMeterVariables. Currently, it only allows the storage of string variables, but there's no reason you could simply modify it to store objects as well. Regarding samplers that can do more than one thing - I'd like to expand the sampler interface to allow one sampler to return multiple SampleResults (via a callback interface) and do mutliple things. I'd then like to make a scripted Sampler that allowed one to write some J/Python code into JMeter's gui that would then be run as the Sampler's sample() method. Is this kind of what you mean by allowing a single sampler to do more? -Mike On 17 Feb 2003 at 9:42, Bruno Dillenseger wrote: I don't know if what I do is the cleanest way (it might be actually a dirty way), but it is straightforward: - the connect sampler fills a static hashtable object with its current thread as key and your custom server reference object as value; - the disconnect sampler retrieves the reference from the hashtable, using its current thread as key. I even do some synchronization on this thread object (wait()/notify()) and I get deadlocks in a couple of threads from time to time, without knowing if it is caused by a bug in my code, or if it results from a conflict between by code and internal synchronization of Jmeter's thread management (should have a look at the code...) From my point of view, I don't feel it convenient to proceed this way. I would feel it more convenient to have a single sampler object with its own state, performing a variety of operations during the test plan. If a Jmeter developper reads this, probably s/he can comment on my workaround ? Regards, -- Bruno. Vjeran Marcinko wrote: Hi all. I'm developing samplers for my custom java server, and basically I have 2 samplers - Connect and Disconnect request ... Thing is that Connect sampler instantiates socket connection, and needs to pass that Socket object to Disconnect sampler so I could send my custom disconnect object through that Socket instance. But I dunno still how to share objects between samplers ? I see few components in JMeter that seem to be able to do this (Configuration, Modifier...), but I ask this way if someone can suggest me the cleanest and simpliest way - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Loading existing Result Files for Viewing in GUI
This has been the most surreal conversation. To load a previously saved .jtl file into any listener, simply select that .jtl file from the listener's gui (ie, click the browse button, find file, open it). -Mike On 14 Feb 2003 at 6:03, OhEocha, Colm wrote: Whooa! It just clicked! I was trying to load the jtl file itself - I didn't realise that loading a test plan which references that jtl file causes the results in the jtl to be loaded. Should have been obvious - sorry! Thanks for your patience Rami. Colm -Original Message- From: rami reddy [mailto:[EMAIL PROTECTED]] Sent: 14 February 2003 11:47 To: [EMAIL PROTECTED] Subject: RE: Loading existing Result Files for Viewing in GUI Colm, I am able to open it. I open JMeter and added 'View Results in Table' to empty test plan. loaded .jtl file ,it opened,nothing wrong with your jtl file . or you online on any msnger? -rami C From: OhEocha, Colm [EMAIL PROTECTED] Reply-To: JMeter Users List [EMAIL PROTECTED] To: 'JMeter Users List' [EMAIL PROTECTED] CC: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Loading existing Result Files for Viewing in GUI Date: Fri, 14 Feb 2003 05:36:33 -0600 Rami, Here is the jtl - looks well formed to me. Thanks, Colm -Original Message- From: rami reddy [mailto:[EMAIL PROTECTED]] Sent: 14 February 2003 11:30 To: [EMAIL PROTECTED] Subject: RE: Loading existing Result Files for Viewing in GUI It should work. did you checked it for wel-formedness? can you mail me the .jtl file if it is possible to attach with mail. if it is not welofrmed edit it manually to make it well-formed and open it. -Rami From: OhEocha, Colm [EMAIL PROTECTED] Reply-To: JMeter Users List [EMAIL PROTECTED] To: 'JMeter Users List' [EMAIL PROTECTED] Subject: RE: Loading existing Result Files for Viewing in GUI Date: Fri, 14 Feb 2003 04:50:30 -0600 Hi Rami, Perhaps I'm not following you but I can't get this to work - I've run my test script saved the results using a View Results in Table listener. Then I close JMeter, restart it, add a View Results in Table listener to an empty test plan, right click it on the tree, select open. It lists jmx files, and when I select the jtl file nothing happens - am I doing something wrong? Thanks, Colm -Original Message- From: rami reddy [mailto:[EMAIL PROTECTED]] Sent: 14 February 2003 10:07 To: [EMAIL PROTECTED] Subject: Re: Loading existing Result Files for Viewing in GUI Yes, Open the JMeter and add Lister(Aggregate Report/View Results in Table) to the empty test plan and right click on the lister and open the result(.jtl) file. Open your test file in the browser to check it for wel-formedness before opening in JMeter. -Rami From: OhEocha, Colm [EMAIL PROTECTED] Reply-To: JMeter Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Loading existing Result Files for Viewing in GUI Date: Fri, 14 Feb 2003 03:56:35 -0600 Is it possible to reload previously saved JMeter test result data into the app view it via the GUI? TIA, Colm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - 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 photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - 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] olm _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - 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
Re: How to get regular expression with parameter?
The problem is, the function syntax is not parsed in a recursive manner, and embedding a function as the parameter to another function is not possible right now. However, if you grab the latest code from CVS, you can use the new regex Extractor, which will work as you desire (I just verified being able to do exactly what you described below). And, FYI, functions are multi-thread aware, and would keep values separate on a per thread basis. -Mike On 13 Feb 2003 at 9:52, Lorenc, Swavek wrote: Hi I am trying to setup a multiuser test for my web application. My test creates entities called datasets. Datasets have ids which are guids and names. Users see names but links for selecting the datasets contain ids. e.g. a href='selectDataset?id=7f0100f8140200f35493ea2c8004'Northwind1/a In my test I create a dataset and the system assigns it a unique name. After it has been saved I return to the page which contains a list of datasets. From this page I want to go to the page that lets me edit a dataset that was just created. Then I return to the list page and finally I want to delete the created dataset. My problem is that I would like to setup this test for more than one user and I can't extract the dataset id based on dynamically assigned name. After I created the dataset I extract the name assigned by the system with __regexFunction and store it in datasetName parameter. BTW, I added this parameter to user parameters as well because I thought it is needed if I have more than one user. Is this necessary? Will the results of __regexFunction be put in a separate instance of datasetName user parameter if I am running multiple threads. Once I get back to the page with list of datasets I want to extract the id, but the link that I parse to get it contains the name that is dynamic. In case above it is 'Northwind1'. But for the next user it will be 'Northwind2' or 'Northwind3' if 2 is already used up. I created regular expression like this for extracting the id and putting it in the user parameter 'datasetid' : 'selectDataset\?id=(.*)'\$\{datasetName\}/a which translates into a call to __regexFunction. ${__regexFunction(%27selectDataset%3Fid%3D%28.*%29%27%3E%24%7BdatasetName%7D%3C%2Fa%3E,%241%24,1,,,datasetid)} unfortunately it doesn't work and I get an empty datasetid. How could accomplish this behavior? Swavek Lorenc Senior Software Engineer SPSS, Inc, 312-651-3566 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to get regular expression with parameter?
I think you misunderstood. The new Extractor in the latest CVS is not a function at all. It's a new gui element that gives you the same capabilities as the __regexFunction. Look for it in the right-click menu under your sampler. Your example below seems impossible, so I don't know what to say. I don't see how your second regex could have possibly worked. -Mike On 13 Feb 2003 at 13:33, Lorenc, Swavek wrote: Mike, I downloaded and built the 02-13-2003 source. It fixed the regex fucntion problem but I still can't get it to work entirely. The first regex call is to get the datasetName. Here is how I construct it in Helper dialog. RegEx: value=(.*) onChange=javasrcipt:validateDatasetName Tempalte: $1$ Which match: 1 Between text: Default text: name of Function: datasetName generates this function call: ${__regexFunction(%22%28.*%29%22+onChange%3D%22javasrcipt%3AvalidateDatasetName,%241%24,1,,,datasetName)} From this piece of html text: input type=text name=datasetName class=formcontrol onChange=javascript:setDirty() value=Northwind3 onChange=javasrcipt:validateDatasetName() we get in the datasetName. Northwind3 This works as expected. The next regex for getting the dataset id is: RegEx: '(.*)','\$\{datasetName\}'\)Delete Tempalte: $1$ Which match: 1 Between text: Default text: name of Function: datasetid Generates this function call: ${__regexFunction(%27%28.*%29%27%2C%27%5C%24%5C%7BdatasetName%5C%7D%5C%29%22%3EDelete,%241%24,1,,,datasetid)} From this piece of text: a href=javascript:delDataset('0a0a48ce00bb982900f348febce48004','Northwind3')Delete/a we get: 0a0a48ce00bb982900f348febce48004 This gets correctly substituted into HTTP request 'id' parameter first time: http://localhost:80/metadata/action/selectDataset?id=7f0100f8140200f35493ea2c8004 After this request I have another request without any parameters and then I have a request for delete. The delete request uses ${datasetid} the second time but it does NOT get substituted. I get this url. http://localhost:80/metadata/action/deleteDataset?id=${datasetid} Any ideas? Looks like the 'datasetid' variable is lost. Should it persist through the entire session? Thanks, Swavek -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 10:40 AM To: JMeter Users List Subject: Re: How to get regular expression with parameter? The problem is, the function syntax is not parsed in a recursive manner, and embedding a function as the parameter to another function is not possible right now. However, if you grab the latest code from CVS, you can use the new regex Extractor, which will work as you desire (I just verified being able to do exactly what you described below). And, FYI, functions are multi-thread aware, and would keep values separate on a per thread basis. -Mike On 13 Feb 2003 at 9:52, Lorenc, Swavek wrote: Hi I am trying to setup a multiuser test for my web application. My test creates entities called datasets. Datasets have ids which are guids and names. Users see names but links for selecting the datasets contain ids. e.g. a href='selectDataset?id=7f0100f8140200f35493ea2c8004'Northwind1/a In my test I create a dataset and the system assigns it a unique name. After it has been saved I return to the page which contains a list of datasets. From this page I want to go to the page that lets me edit a dataset that was just created. Then I return to the list page and finally I want to delete the created dataset. My problem is that I would like to setup this test for more than one user and I can't extract the dataset id based on dynamically assigned name. After I created the dataset I extract the name assigned by the system with __regexFunction and store it in datasetName parameter. BTW, I added this parameter to user parameters as well because I thought it is needed if I have more than one user. Is this necessary? Will the results of __regexFunction be put in a separate instance of datasetName user parameter if I am running multiple threads. Once I get back to the page with list of datasets I want to extract the id, but the link that I parse to get it contains the name that is dynamic. In case above it is 'Northwind1'. But for the next user it will be 'Northwind2' or 'Northwind3' if 2 is already used up. I created regular expression like this for extracting the id and putting it in the user parameter 'datasetid' : 'selectDataset\?id=(.*)'\$\{datasetName\}/a which translates into a call to __regexFunction. ${__regexFunction(%27selectDataset%3Fid%3D%28.*%29%27%3E%24%7BdatasetName%7D%3C%2Fa%3E,%241%24,1,,,datasetid)} unfortunately it doesn't work and I get an empty datasetid. How could accomplish this behavior
Re: testing peformance of C SOAP stack with JMeter
JMeter's SOAP support is alpha code, at best. It's there waiting for a developer to fix it up and make it work for them. -Mike On 6 Feb 2003 at 17:50, Tomas Bahnik wrote: I would like to know your opinion if it is reasonable to test performance of C (C++) SOAP stack with JMeter, or any Java multihreaded SOAP neutral testing tool. By SOAP neutral I mean that no serialization/deserialization framework is used on the client side to generate SOAP request and processing the SOAP response, but raw SOAP message is sent using http POST and some validation of response is done. Thanks Tomas Bahnik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pull value from response and put in future request
Oh, I think I understand now. No, it doesn't parse every previous request. Only the last request that has fully finished processing. The regex in your Assertion is getting processed prior to that HTTP Request being executed. This is probably counter-intuitive, but that's the way it works. All the function processing surrounding a particular request is done before the request is run. Therefore, to extract values from the response to a request, you have to put the function in the next request, or in a config element of the next request. Sorry I didn't think of this before. -Mike On 5 Feb 2003 at 11:05, Michael C. Lee Jr. wrote: Hey, I think I'm narring down on how this worksit is kind of odd The problem I was having was - where do you stick your regular expression function to get the data? I put it in the response to an http request. Logic being, where else are you going to put it? It has to parse the current response to populate the variables you want right? It couldn't go back and parse through all the previous responses right? Well, my tests seem to say differently We use struts. I call actions with a .do extension. These forward to jsps. If I put the response assertion with the regular expression function on the struts call, it doesn't work. But if I call the jsp directly afterwards it does. Here's the tricky part. I'm not keeping these variables in the session. They are of the scope 'request'! If you look at the response of the jsp the data is not there obviously but the response assertion with the regular expression function is on that jsp response. And this is working?!?! Why? This tells me that regular expression function is not parsing just the last response but apparently all previous responses (correct?). I match on just the first one. Is this correct? Cuz if this is so, I can just add a response assertion anywhere with my regular expression function as long as it follow 2 rules; 1) It comes AFTER the request to get the data (if it is a struts.do you can just add a response assertion to it because it does not parse it correctly) 2) It comes BEFORE where you want to use the variable. Example; This does not work; http request to a struts.do response assertion containing regexp function putting value in ${receiptID} (I use a NOT on this assertion so it will not show as a failure) http request to different struts.do using ${receiptID} This does; http request to a struts.do http request to the jsp file that the struts.do forwards to response assertion containing regexp function putting value in ${receiptID} http request to different struts.do using ${receiptID} If you have the regexp function not throttled using the first occurrence (chosen using the third parameter to the function) would it just go through all the previous responses? thanks, Michael Lee - Original Message - From: Mike Stover [EMAIL PROTECTED] To: JMeter Users List [EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 3:04 PM Subject: Re: pull value from response and put in future request Typically, you put the regex function in the request you want to use it in. If your case is overly complicated, then the assertion idea may work - you could try putting the regex in the name field (and you could use an assertion, or a timer, or any empty config object attached directly under the request). It is messy, and I'm right now working on a better option :-) -Mike On 4 Feb 2003 at 14:45, Michael C. Lee Jr. wrote: Im using 1.8.1. I got it to work in one case. What I did was create a reponse assertion and added it as a NOT ${_regex. I added it to another case and the regular expression didn't match for some reasonstill looking but got one case to work. I put receiptID as the variable name as parameter 6. My question really is, where is a good place to put the regular expression so it grabs the variable for the next http request? Should it be in a response assertion as a not? That's where I put it. - Original Message - From: Mike Stover [EMAIL PROTECTED] To: JMeter Users List [EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 2:29 PM Subject: Re: pull value from response and put in future request If you are trying to access your variable as ${receiptID}, then you're probably running JMeter 1.8, and it's not working. It would work under JMeter 1.8.1. To get it working immediately for you, you probably need to access the variable as ${receiptID_g1} (g1 stands for group 1, which you appear to be looking for). -Mike On 4 Feb 2003 at 14:06, Michael C. Lee Jr. wrote: How can I pull a value from a response, put it in some variable and use that variable in a future post/get http request? I've read through the documentation and tried to do it using
Re: Sending XML over HTTP
content-type is an HTTP Header. You need the Header Manager. Attach it to your Request and add your value to the table of values. See http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Hea der_Manager -Mike On 5 Sep 2002 at 13:53, Ritu wrote: Hi All, Basically I am sending an XML over HTTP to a Server at a particular post. The problem is that I have to set the content-type to text/xml instead of application/x-www-form-urlencoded. How do I do this? I tried setting the mime-type to text/xml in the HTTP Request Sampler. That does not work! Thanks in advance Ritu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New article about JMeter
That's really nice. Do you mind if I provide a link to it from Apache? One thing, about proxy recording, there is a Recording Controller that can be added to your test plan that will get all recorded samples directed to it. Recording samples under the ThreadGroup is only the default behavior when JMeter can't find the Recording Controller. You mention some memory problems and indicate there are solutions, but don't mention them specifically. Two that come to mind are increasing the heap size and avoiding specific listeners on large test runs. Simply mentioning that would not take much space, and would at least give me peace of mind that you found ways around the problem :-) And wow! You got SOAP testing to work?! I'm shocked. -Mike On 4 Feb 2003 at 19:32, Keld Helbig Hansen wrote: As a supplement to the fine JMeter User's Manual I've written an article about JMeter. It's meant as a tutorial on how you'd use JMeter in your daily work. If you're interested then read on http://javaboutique.internet.com/tutorials/JMeter/ Comments on the article are most welcome. /Keld - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pull value from response and put in future request
If you are trying to access your variable as ${receiptID}, then you're probably running JMeter 1.8, and it's not working. It would work under JMeter 1.8.1. To get it working immediately for you, you probably need to access the variable as ${receiptID_g1} (g1 stands for group 1, which you appear to be looking for). -Mike On 4 Feb 2003 at 14:06, Michael C. Lee Jr. wrote: How can I pull a value from a response, put it in some variable and use that variable in a future post/get http request? I've read through the documentation and tried to do it using the regexFunctoin but cant get it to work ${__regexFunction(receiptID%3D%28.*%29%22,%241%24,1,,277,receiptID)} That is the expression I have. I want to go to a search page to search on receipts and get a list of receipts back in a series of URLs. At the end is ?receiptID=12345 I want the 12345 put in a variable called receiptID. Then I want to call another page with that variable as one of the parameters. Help! Mike Lee -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pull value from response and put in future request
Typically, you put the regex function in the request you want to use it in. If your case is overly complicated, then the assertion idea may work - you could try putting the regex in the name field (and you could use an assertion, or a timer, or any empty config object attached directly under the request). It is messy, and I'm right now working on a better option :-) -Mike On 4 Feb 2003 at 14:45, Michael C. Lee Jr. wrote: Im using 1.8.1. I got it to work in one case. What I did was create a reponse assertion and added it as a NOT ${_regex. I added it to another case and the regular expression didn't match for some reasonstill looking but got one case to work. I put receiptID as the variable name as parameter 6. My question really is, where is a good place to put the regular expression so it grabs the variable for the next http request? Should it be in a response assertion as a not? That's where I put it. - Original Message - From: Mike Stover [EMAIL PROTECTED] To: JMeter Users List [EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 2:29 PM Subject: Re: pull value from response and put in future request If you are trying to access your variable as ${receiptID}, then you're probably running JMeter 1.8, and it's not working. It would work under JMeter 1.8.1. To get it working immediately for you, you probably need to access the variable as ${receiptID_g1} (g1 stands for group 1, which you appear to be looking for). -Mike On 4 Feb 2003 at 14:06, Michael C. Lee Jr. wrote: How can I pull a value from a response, put it in some variable and use that variable in a future post/get http request? I've read through the documentation and tried to do it using the regexFunctoin but cant get it to work ${__regexFunction(receiptID%3D%28.*%29%22,%241%24,1,,277,receiptID)} That is the expression I have. I want to go to a search page to search on receipts and get a list of receipts back in a series of URLs. At the end is ?receiptID=12345 I want the 12345 put in a variable called receiptID. Then I want to call another page with that variable as one of the parameters. Help! Mike Lee -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - 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] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JMeter 1.8.1 is out
JMeter 1.8.1 has been released and is available for download at: http://jakarta.apache.org/builds/jakarta-jmeter/release/v1.8/ -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Finding the nightly builds
Hey thanks - I had no idea they were over there. I'll provide a link on JMeter's home page to both places so people can find it. -Mike On 31 Jan 2003 at 11:00, SEYB, DAN A (SBCSI) wrote: Hi The JMeter downloads (http://jakarta.apache.org/builds/jakarta-jmeter/) no longer lists the nightly builds. Is this a bug/oversight, or deliberate? It really isn't a big problem, since the nightlys are at http://cvs.apache.org/builds/jakarta-jmeter/nightly/, but it was kind of nice to have everything together. Just wondering. dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More info on creating a function to change the DOMAIN name
Almost there. Section 14.3 has your answer. On 31 Jan 2003 at 16:00, Foley, Michael J. wrote: Hi, Section 14.1 begins to describe how to create a function to change the DOMAIN field of all HTTP requests. User-defined static values allows the user to define variables to be replaced with their static value when a test tree is compiled and submitted to be run. This replacement happens once at the beginning of the test run. This could be used to replace the DOMAIN field of all HTTP requests, for example - making it a simple matter to change a test to target a different server with the same test. This is exactly what I want to do. Has anyone done this? Or can someone give me more specific information on how to do exactly this? Many thanks, Mike Foley -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with session ID's in URL returned by application
In addition to the list archives, there is the JMeter documentation. You're answer can be found here: http://jakarta.apache.org/jmeter/usermanual/build-adv-web-test-plan.html#session_url_rewriting -Mike On 29 Jan 2003 at 8:45, Smits.Dolf wrote: Hello, I do have the following problem. I want to test an application which uses sessionID's The starting url = localhost://servlet/DirXweb/DSL/Main.htm. The response shows has an url like localhost://servlet/DirXweb/SID=127.0.0.1.897234561645/DSL/Main.htm now I need to send the following request: localhost://servlet/DirXweb/SID=number form above/DSl/ComplexSearch.htm This request needs to have some parameters, but the most important part is that the correct sessionID is filled in. After some testing, and looking trough the archives, I cannot find the answer how to achive this. Did any meet a problem like this, or give me some hints how to solve this? Thanks a lot. Dolf Smits Consultant MetaDirectory Solutions Siemens Nederland N.V. ICS SBD Bezoekadres Prinses Beatrixlaan 800 Den Haag Correspondentieadres Postbus 16068 NL-2500 BB Den Haag Tel. +31 (0)70 333 3654 Fax +31 (0)70 333 2509 Mobiel +31 (0)6 55 84 48 37 [EMAIL PROTECTED] www.siemens.nl Deze e-mail is uitsluitend bedoeld voor kennisneming door de geadresseerde(n), en mag niet aan anderen worden doorgestuurd of op andere wijze ter kennis worden gebracht. Indien u niet de geadresseerde bent, verzoek ik u om de afzender te waarschuwen en de e-mail direct te verwijderen/vernietigen. De afzender wijst elke aansprakelijkheid voor (de inhoud van) deze e-mail af. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using JMeter
Frankly, I'm not sure how you'd go about comparing EJB's to servlets. Sounds a bit like apples and oranges to me. Do you have two applications to test? You could compare your two applications, but I'm not sure what conclusions you could draw from such a test about EJB's and servlets. In any case, it sounds like you just need to get JMeter working for you on whatever you have. But you say you did get results one time. So, what's the problem, exactly? Be specific please. -Mike On 29 Jan 2003 at 14:19, temidayo ogunsanwo wrote: Thanks for replying! But how do i go about doing a comparison between session EJBS and servlets? How is the test plan to look like and also what is it to contain? I added listeners. The SSl you are talking about( I am not sure what it is! ,is it the session cmps and session jdbc?), is what my supervisor told me to compare now, i am not sure how it relates to EJBs and servlets. PS:I did add listeners!!! Does it matter if i add the listeners to the test plan, as when i did that graph results were produced, but when i read the user manual, in the examples it gave it added the listener(graph result) to the thread group. Thanks... --On 28 January 2003 14:45 -0500 Mike Stover [EMAIL PROTECTED] wrote: Did you add any listeners? Why are you testing SSL if you're interested in a comparison of EJB's and servlets? SSL is another variable that has nothing to do with that comparison. On 28 Jan 2003 at 19:30, temidayo ogunsanwo wrote: I am doing a major project called Systems testing. The project is comparing the nature, functionality and performance between Java servlets and Session EJBs. The two applications are to be tested in Jakarta-JMeter. I have read the User Manual but I dont seem to understand how to run this tests. I am running tests now between session-cmp/ session and session-jdbc/session And session-cmp stateless and session-jdbc stateless. These are both https and the server is vega.opmath.com. I tried running the tests initially by putting in two HTTP reguests int he same thread group, one for cmp session and the other for jdbc session but it seems the system(JMeter) froze. I am doing everything wrong I think.. Any ideas? Any help? Thanks.. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with session ID's in URL returned by application
Then it looks like you'll have to the regex function. http://jakarta.apache.org/jmeter/usermanual/component_reference.html#__regexFunction It's not the easiest thing to use, but it should work if you figure it out. -Mike On 29 Jan 2003 at 15:58, Smits.Dolf wrote: Hi, I do know this part of the manual, but it's not working. it looks like this modifier hanles two cases. the sessionid is passed as an parameter (index.html?sessionID=9265765) the sessionID is passed in the url, with a ; as seperator (index.html;sessionID=5787657) Neither case is what i want. If you really think it should apply, can you try to explain how it should work. ( checked it by saving the returned pages, and i see that the sessionID is not equal in the different pages) Thanks anyhow for the help Dolf Smits -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED]] Sent: woensdag 29 januari 2003 15:30 To: JMeter Users List Subject: Re: Problem with session ID's in URL returned by application In addition to the list archives, there is the JMeter documentation. You're answer can be found here: http://jakarta.apache.org/jmeter/usermanual/build-adv-web-test-plan.html#ses sion_url_rewriting -Mike On 29 Jan 2003 at 8:45, Smits.Dolf wrote: Hello, I do have the following problem. I want to test an application which uses sessionID's The starting url = localhost://servlet/DirXweb/DSL/Main.htm. The response shows has an url like localhost://servlet/DirXweb/SID=127.0.0.1.897234561645/DSL/Main.htm now I need to send the following request: localhost://servlet/DirXweb/SID=number form above/DSl/ComplexSearch.htm This request needs to have some parameters, but the most important part is that the correct sessionID is filled in. After some testing, and looking trough the archives, I cannot find the answer how to achive this. Did any meet a problem like this, or give me some hints how to solve this? Thanks a lot. Dolf Smits Consultant MetaDirectory Solutions Siemens Nederland N.V. ICS SBD Bezoekadres Prinses Beatrixlaan 800 Den Haag Correspondentieadres Postbus 16068 NL-2500 BB Den Haag Tel. +31 (0)70 333 3654 Fax +31 (0)70 333 2509 Mobiel +31 (0)6 55 84 48 37 [EMAIL PROTECTED] www.siemens.nl Deze e-mail is uitsluitend bedoeld voor kennisneming door de geadresseerde(n), en mag niet aan anderen worden doorgestuurd of op andere wijze ter kennis worden gebracht. Indien u niet de geadresseerde bent, verzoek ik u om de afzender te waarschuwen en de e-mail direct te verwijderen/vernietigen. De afzender wijst elke aansprakelijkheid voor (de inhoud van) deze e-mail af. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - 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] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running java applications?
You are able to test it through the web now, but it runs out of memory, and now you want to test just the pdf generating program minus the web server part. Is this correct? You can do this in JMeter, but you have to write what's called a Java Sampler - your own code that bridges from JMeter to the PDF generating application (I'm assuming you have some way of running it from Java). Is this what you want to do? -Mike On 28 Jan 2003 at 19:41, Mòñòjít® wrote: Well..sorry for such a question. I have used jmeter along with web applications successfully. Now I have this pdf generating application which is plugged into the web applications to get pdf reports.Now the problem is, after a number of reports are generated , I am getting Out of memory exception. I want to use the Thread Group feature of jmeter so that i can know how many instances of the same class can be run at the same time. Hope this makes some sense to u. - Original Message - From: Scott Eade [EMAIL PROTECTED] To: JMeter Users List [EMAIL PROTECTED] Sent: Tuesday, January 28, 2003 7:30 PM Subject: Re: running java applications? Here is a useful resource that should help answer your question: http://jakarta.apache.org/jmeter/ Here is a useful resource that should help you ask a better question: http://www.tuxedo.org/%7Eesr/faqs/smart-questions.html Cheers, Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au .Mac Chat/AIM: seade at mac dot com On 29/01/2003 12:50 AM, Mòñòjít® [EMAIL PROTECTED] wrote: I just want to give a demo to some of my clients.And I have with me a Pdf Report generation application.I just want to run it through jmeter so that I can demonstrate it working.:-). - Original Message - From: Scott Eade [EMAIL PROTECTED] To: JMeter Users List [EMAIL PROTECTED] Sent: Tuesday, January 28, 2003 7:13 PM Subject: Re: running java applications? On 29/01/2003 12:45 AM, Mòñòjít® [EMAIL PROTECTED] wrote: Hi Can I run a simple java application through jmeter? What would you be hoping to achieve? Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au .Mac Chat/AIM: seade at mac dot com -- How to ask questions the smart way: http://www.tuxedo.org/%7Eesr/faqs/smart-questions.html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Comparing response times on local/remote tetsing
I saw your first post - I honestly don't know the answer. My only guess is the extra time comes from the serialization of all the SampleResults to be passed via RMI to the controlling machine. 50 threads are probably producing a lot of results that have to be serialized. You could turn on DEBUG for log_level.jmeter.engine (in /bin/jmeter.properties) and see what the log says. You'll probably see a lot of lines having to do with the result queue. If it is consistently getting up to 200, then that may be the problem. Are the times stable, or do they fluctuate? -Mike On 28 Jan 2003 at 22:27, Keld Helbig Hansen wrote: I've posted this before, but got no responses, so I'll try once more under a new subject :-) I've done some experimentation with remote testing. It works fine, but I get some results that I don't fully understand. Maybe you do? Here's the setup: 3 identical Win2000 computers, 512Mb RAM, approx. 500MHz. JDK is 1.4 on all machines. Number one running a Tomcat 4.1.12 with a simple servlet application (2 screens, 7 user functions). Number two running the JMeter Server. Number three running the JMeter Client in GUI mode. Nothing else is running on the three machines. I've recorded a use case with 10 user interactions. If I run non-remote mode (from computer three to computer one) with a single thread I get response times around 55 msec. The JMeter computer (computer three) has 100% cpu. Using remote testing I get respnse times around 40 msec. I can see that the JMeter server has 95% cpu, and the web server only 10% cpu. I realize that it would be better if the CPU was not so busy on the JMeter server. But I get better response times with the remote testing setup, and this was what I expected. Here comes the part that I can not explan. Now I set 50 threads, and a JMeter timer delay between 1 and 3 seconds (to simulate a realistic load). On the non-remote setup I get response times around 200 msec. Cpu is 100% on the JMeter client (computer three) and 10% on the web server (computer one). On the remote setup I get response times around 500 msec, 100% cpu on the JMeter server (computer two), 10% on the web server (computer one). Why are the response times so much poorer with remote testing??? It also seems that I need a real big machine for the JMeter server in order to put real load on the web server. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: trying to compile
Any code you want to add and run with JMeter should go in the /lib/ext directory. JMeter should ideally be started via the script files (jmeter.bat/jmeter). Maybe you weren't providing JMeter with the path to the properties file? I can only guess since you didn't specify exactly how you were trying to start JMeter (but I got the impression you weren't using the provided scripts). Regarding the counter problem - the 1.8 counter did have a bug, but not quite what you are reporting. Nonetheless, you might want to grab the latest code. Many problems have been fixed. -Mike On 5 Jan 2000 at 1:01, Michael Lee wrote: I think I fixed the port problem with HTTP Request Defaults and I was trying to build the system. When I finally got it to build correctly it kept saying 'Java Virtual Machine. Can not find main clas...etc.' I had NewDriver defined as the main class in the manifest. I had it defined in my JBuilder project and it gave me the same error. I noticed that NewDriver has a static initalizer that loads some jars. I created a jar and even stuck it in the same dir at the ApacheJMeter.jar file! Help?! What am I doing wrong? I would like to help add some code to this great tool but I can't get it to run! (The one I compile, not the distribution jar..which works). thanks, Michael Lee -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Testing HTTP Requests
Is it possible the problem is that View Results Tree isn't showing JDBC results correctly? I thought I read that people were having trouble with that? -Mike On 24 Jan 2003 at 13:35, Jordi Salvat i Alabart wrote: OK, then, you DO know what the URL is (which is the bit that definitely is in the manuals). The problem you have is that it still doesn't work. Make sure to drop your JDBC driver's classes into the jakarta-jmeter/lib directory. I've sometimes found that adding them to the CLASSPATH is not sufficient (don't ask me why). You may want to check the jmeter.log file for errors -- they may give you a clue on what's going on. Hope this helps. Salut, Jordi. [EMAIL PROTECTED] wrote: Yes Jordi, that was very polite and mature. I hope you tackle all users queries with such enthusiasm. I dont see the point in a help list for responses such as that. I have the URL jdbc:inetdae:hostname:1433 for the driver but that doesnt seem to work through the JMeter that is why I was wondering if there was a specific way to enter the details as nowhere have you specified the database type as you have to do in previous JMeter releases. -Original Message- From: Jordi Salvat i Alabart [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 12:16 PM To: JMeter Users List Subject: Re: Testing HTTP Requests Looks like Mike was just too polite, so I'll be clearer: RTFM If you don't know what RTFM means, please hire someone who does. Salut, Jordi. [EMAIL PROTECTED] wrote: can you give me some examples so that I can possibly work it out?? Driver is SPRINTA2000 and database is MYSQL JMeter has two fields: JDBC URL and Driver class. The Driver class is com.inet.tds.TdsDriver This is for the Sprinta2000 driver. The database on the server is MYSQL Can you just give a generalisation as to how the string would be put together. IE IPaddress/portnumber/databasetype/databasename exc. -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 5:20 PM To: JMeter Users List Subject: RE: Testing HTTP Requests It's got to be the full jdbc connection string. The format depends on your database and your jdbc driver. If you don't know what it is, your jdbc driver documentation should be able to tell you. -Mike On 23 Jan 2003 at 16:59, [EMAIL PROTECTED] wrote: How can one enter a jdbc url in JMeter 1.8 I have the ip adress where the database is; I have the port number; I have the name of the database. How do I stick all these variables together to get the database URl so it works. Am i missing anything. Do you have to state protocol?? IPAddress:portnumber/Database ie 132.157.33.9:1456/Derrick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Totally confused
On 23 Jan 2003 at 17:49, Cameron Zemek wrote: [snip] The jmeter-server script was running on the web server. Is this okay? How does remote testing with JMeter work?? JMeter simulates a client. Clients don't run their browser right on your server - and certainly 100 clients don't do that. If you run JMeter on your app server, that is in effect what you are simulating, which makes no sense. Run JMeter on a different machine. Regarding how does it work - the JMeter remote server runs the test script and reports results back to the gui. Since Java GUI's are very resource intensive, the fact that the JMeter server doesn't run any gui means it doesn't put such a load on it's cpu and memory. -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Testing HTTP Requests
It's got to be the full jdbc connection string. The format depends on your database and your jdbc driver. If you don't know what it is, your jdbc driver documentation should be able to tell you. -Mike On 23 Jan 2003 at 16:59, [EMAIL PROTECTED] wrote: How can one enter a jdbc url in JMeter 1.8 I have the ip adress where the database is; I have the port number; I have the name of the database. How do I stick all these variables together to get the database URl so it works. Am i missing anything. Do you have to state protocol?? IPAddress:portnumber/Database ie 132.157.33.9:1456/Derrick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Testing HTTP Requests
I think the Tree Results listener should simply be enhanced to show the request in HTTP format. That makes most sense to me. -Mike On 23 Jan 2003 at 13:08, Amos Sonnenwirth wrote: I only see there the request data which is NOT in the HTTP format , unlike the response which is in HTTP format. Is there any other option in JMeter, instead of using a TCP sniffer ? If not, can you please recommend on some easy to use free of charge sniffers that can show HTTP requests ? (i prefare sniffers that can sniff on localhosts as well) Thanks in advanced Amos -Original Message- From: Jordi Salvat i Alabart [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 12:58 PM To: JMeter Users List Subject: Re: Testing HTTP Requests It's called View Results Tree in the menus. If it doesn't show enough detail, you'll have to resort to a TCP sniffer. Salut, Jordi. Amos Sonnenwirth wrote: Where can i find this TreeVisualizer in the GUI ? The only listner type of visualizer I found was the Spline Visualizer. Maybe i'm looking at the wrong place . Please advise Thanks in advanced Amos -Original Message- From: Scott Eade [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 12:49 PM To: JMeter Users List Subject: Re: Testing HTTP Requests I *think* the information you are after is available in the TreeVisualizer. HTH, Scott -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Remote Testing memory issues.
I'm thinking that it's something to do with the fact that the 'distant' machine is on a different subnet. Perhaps, it can't offload it's numbers to my Master machine quick enough. I mean, it works in standalone. It's doing the same thing as a slave, only reporting the numbers back to the Master, no? That's possible too. It's only possible on a multi-processor machine, because the result queue ups it's thread priority if it gets too full. On a multi-processor machine, that may not be enough. If this is so, I'm guessing you'd never see this on a single processor machine. I'm trying to think how this situation could be handled, but I'm drawing a blank. The only thing coming to mind is that one would have to create one queue thread for each processor the machine has. That wouldn't be an easy thing to do in the code. The stack is normally 1MB, I think. You can increase it similarly to the way you increased the heap size to 512 (read the java documentation - I haven't got it memorized). I read the following, although quite what they mean is beyond me : -XmxsizeSet maximum Java heap size -Xosssize Set maximum Java stack size for any thread -XsssizeSet maximum native stack size for any thread So.. I edited my jmeter.bat and inserted this : java -Xmx512m -Xoss384m -Xss384m Oh no, you'd only increase the stack to, say, 2MB. Sorry I didn't make that clear. I doubt this is the problem. I think you're guess is better. -Mike And it complains that it can't create a native thread. I did java -Xmx512m -Xoss64m -Xss64m And it starts but continues to give me the same out of memory errors, although it's memory size (according to perfmon) never gets above 20 meg. I'm out of my depth here. I have no idea what these heap sizes / stack sizes are, or what the difference between a Java stack size, or a Native stack size is. Or indeed which Jmeter uses. Steve. -Mike On 21 Jan 2003 at 15:35, Lawrence, Steve wrote: Hi all, I'm seeing some very strange behaviour when running Jmeter in 'distributed mode'. I've successfully gotten my client / server set up, running on Windows 2k. (Still can't get it working under Linux, but that's another story). I've recorded a very small script which hits a couple of urls on my webserver. The entire script comes in at 39k. I have my Master machine, a local slave machine, a distant slave machine, and a webserver which is on my local subnet. Master Machine - NT4, 256Mb Memory. Local slave - NT4, 256Mb Memory Distant slave - 4 processor NT2k, 2 gig memory. (I'll call him Waldo) Webserver - Linux, 4 gig.. I've set up my test for 50 threads, 10 loops, 1 second ramp. I can run it locally on the Master machine fine. I can remote start it on my local slave (256Mb machine). It maxes the processor and ends up using between 50 and 80 meg of memory for the app - It finished the script fine. If I remote run it on Waldo it gets about halfway through the threads (it's done about 500 counts) and then hangs. It first stops reporting back to my master machine, and eventually it gives me java.lang.out of memory error on the console. It's used about 80 meg of memory at this point. If I load up the gui, and run the script locally on Waldo it runs fine. Its memory usage runs between 89 meg and 50 meg, often with large drops followed by smaller incrementals up. I've tried setting the switch -Xmx512m in the jmeter.bat file, but that seems to make no difference. Can anyone clue me in to why this doesn't work remotely? This certainly isn't a lack of memory issue. :( Thanks in advance, and thanks in retrospect to Scott Eade for posting his ENV scripts for Windoze. Steve. -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc.
Re: Remote Testing memory issues.
Is it possible it's running out of stack memory, as opposed to heap? I've had that problem before when I was parsing response HTML for certain things, there's a lot of recursive calls in the parsing of HTML sometimes, and for one particular test, I was running out of stack memory. The 4 processor machine may have been able to fill up the stack faster than the other machines... The stack is normally 1MB, I think. You can increase it similarly to the way you increased the heap size to 512 (read the java documentation - I haven't got it memorized). -Mike On 21 Jan 2003 at 15:35, Lawrence, Steve wrote: Hi all, I'm seeing some very strange behaviour when running Jmeter in 'distributed mode'. I've successfully gotten my client / server set up, running on Windows 2k. (Still can't get it working under Linux, but that's another story). I've recorded a very small script which hits a couple of urls on my webserver. The entire script comes in at 39k. I have my Master machine, a local slave machine, a distant slave machine, and a webserver which is on my local subnet. Master Machine - NT4, 256Mb Memory. Local slave - NT4, 256Mb Memory Distant slave - 4 processor NT2k, 2 gig memory. (I'll call him Waldo) Webserver - Linux, 4 gig.. I've set up my test for 50 threads, 10 loops, 1 second ramp. I can run it locally on the Master machine fine. I can remote start it on my local slave (256Mb machine). It maxes the processor and ends up using between 50 and 80 meg of memory for the app - It finished the script fine. If I remote run it on Waldo it gets about halfway through the threads (it's done about 500 counts) and then hangs. It first stops reporting back to my master machine, and eventually it gives me java.lang.out of memory error on the console. It's used about 80 meg of memory at this point. If I load up the gui, and run the script locally on Waldo it runs fine. Its memory usage runs between 89 meg and 50 meg, often with large drops followed by smaller incrementals up. I've tried setting the switch -Xmx512m in the jmeter.bat file, but that seems to make no difference. Can anyone clue me in to why this doesn't work remotely? This certainly isn't a lack of memory issue. :( Thanks in advance, and thanks in retrospect to Scott Eade for posting his ENV scripts for Windoze. Steve. -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how send current date in HTTP request?
I've done it by setting a user-defined variable for the date, and just changing it when I wanted to update the date. I used search and replace in the .jmx file to do so. If I'd needed it for anything but a short term solution, however, I'd've made a function or modifier for it. Modifier is probably the best way to go (more in line with the thinking behind Extractors) -Mike On 16 Jan 2003 at 9:09, Scott Eade wrote: I can think of two ways: 1. It's kind of a hack, but if there is a date on the preceding HTML page you could grab it using the __regex() function and then use it on the next page. 2. Someone could create a new function that provides the current date in various formats (perhaps accepting a SimpleDateFormat pattern as a parameter). Does anyone else have further suggestions? Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au .Mac Chat/AIM: seade at mac dot com On 16/01/2003 7:00 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am using JMeter to test the screen flow of a web application. One of the web pages prompts the user to enter the current date. I cannot just record the current date as i would like to run this test on any given day. How can i get the current date sent in an HTTP request on any given day? Thanks, Kimberly Ann Fisher Software Developer 360Commerce 11800 Stonehollow Drive, Suite 100, Austin, TX 78758 Work Phone: (512) 491-2611 http://www.360Commerce.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem reading large jtl file
JMeter uses Avalon's Configuration code to save jtl's, and yes it is dom-style. The solution is that the jtl files need to be in a format other than xml - it's just not well suited. CSV files would be better. -Mike On 1 Jan 2003 at 23:30, Scott Eade wrote: Mike, It is an Aggregate Reporter that I am using. I eventually noticed a couple of OutOfMemoryExceptions sitting in the console window used to start JMeter. After upping mx to 256m, then 300m and then finally to 512m it was eventually able to load all 57MB of jtl data. Windows task manager shows 350MB of memory in use and that almost 15 minutes of CPU time were used to load the file (on a paltry by today's standards dual Celeron 500 machine). I'll take a stab in the dark and suggest that the jtl file is being read using a dom style parser (reads the entire tree into memory before dishing the data out) rather than a sax parser (which can dish the data out and dispose of it as it reads the file). I'll add a note to check this to my steadily growing list of JMeter bugs and enhancements. Thanks, Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au .Mac Chat/AIM: seade at mac dot com On 31/12/2002 12:53 AM, Mike Stover [EMAIL PROTECTED] wrote: Which visualizer are you trying to open it with? I would suggest trying the aggregate reporter since it uses the least memory (avoid the tree results visualizers), and let JMeter work on it for a long time - the operation of opening jtl files is sadly, very slow. -Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Remote JMeter
Yes, using 1.8. I don't know what all this talk of a pause in the script is about. I start rmiregistry on one command line, and then go start jmeter in a different one. I never use system-wide classpaths, as that's a recipe for hard-to-debug problems. instead, I define a more local classpath in the command line for rmiregistry, and then start rmiregistry. Admittedly, windows doesn't localize such things as well as L/Unix, but, that's how I do it since I'm more used to Unix in that regard. So, anyway, I just tried it again, and it worked perfectly my first try. For rmiregistry, I opened a windows command prompt, set the CLASSPATH to the full paths to jorphan.jar, logkitxxx.jar, and ApacheJMeter_core.jar. Then I started rmiregistry. Then, I opened a new command prompt, and changed directory to jmeter's bin dir, and started the server via jmeter -s. then, I verified that my jmeter properties file included the remote_hosts line uncommented (it did, with ip of 127.0.0.1 - I have only one computer, but that shouldn't matter, it's still using RMI to communicate). Then, I started the JMeter gui, made a simple script,and ran it through the remote ip. No problems. I am running Windows2000, jdk1.4.0, and latest JMeter code from CVS, which is not different from 1.8 in this area. -Mike On 1 Jan 2003 at 14:10, [EMAIL PROTECTED] wrote: To Mike, Steve, Barry: Hi Mike: As far as problems with remote testing, all I can say is that, on Windows2000, jdk1.4.0, it works for me. I won't deny that the classpath issues can be tricky, however. Using JMeter 1.8? Would you mind sending your classpath and any related environment variables you have set? Maybe this will help Steve as well? Maybe I have conflict with other java paths already defined not related to JMeter. Just don't know java well enough to debug this on my own. Hi Steve: Thanks for the sympathy. ;) Other team members here are in dialog with Mercury Interactive if you can afford to go the consulting route. They're _very_ expensive (at least when you have no money). Estimate cost so far 50-70K: http://www.mercuryinteractive.com/ but, I believe they're doing much more than load testing. Hi Barry: I have gotten JMeter working remotely. I run the GUI on a RedHat 8 box, andhave 5 Windows 2000 boxes running as slaves. Getting the CLASSPATH was a little tricky, and I put a pause in the .bat file... Using JMeter 1.8 and jre 1.4.0 ? Please confirm since there seems to be 3 big variances here, outside of classpath, which _could_ be causing the problem (OS,JMeter, and JRE versions). I did just try following the instructions first. Simply adding the 3 stated items to my classpath did not work. Did notice the missing .jar extension on logkit. Had a pause in my script as well. ;) Thanks for all the replies. Hoping to sort this out. Happy New Year All! -Ryan ---Start Whining [Read at own risk]:--- This is very frustrating since I've taken all the time to develop scripts for testing yet I am now stuck with having a limited load I can apply. I need to simulate 1000's of users on PC's which can probably only handle at best 10-20 threads. Just not practical to scale up my load testing without the remote testing portion working. BTW: I had similar java out of memory problems as stated on the list running 50 threads on a Win2k box with 512mg memory also encountered same issue on PIII 450 128mg running RH 8 (20 threads if my memory serves). The bulk testing machines I would have access to are only Win98 boxes with 64mg mem End Whining. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Is JMeter using too much memory?
In which case, don't require JMeter to encode the parameters that don't need it. As far as problems with remote testing, all I can say is that, on Windows2000, jdk1.4.0, it works for me. I won't deny that the classpath issues can be tricky, however. -Mike On 31 Dec 2002 at 9:43, Lawrence, Steve wrote: 1.4 JDKs have a pretty serious performance bug in the URL.encode method. You'll run much MUCH faster if you use JDK 1.3 or you don't encode your parameters, etc. Um.. doesn't the current version of Jmeter require 1.4? Steve. -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problems setting up remotely..
rmiregistry has to be running first, and then start the jmeter server (jmeter -s). The system classpath has to include the appropriate jars for rmiregistry, not for JMeter. Also note that rmiregistry can sometimes leave processes hanging, even when it looks shut down. I have in the past found that rebooting my NT machine to be the only sure way of clearing such things out. If JMeter says rmiregistry is not running, it's pretty good bet it's right. -Mike On 18 Dec 2002 at 10:19, Lawrence, Steve wrote: verify things and then in the same console launch rmiregistry. Thanks for the help on this. I didn't have a classpath set, and um... now I do. [root@000193402-d root]# echo $CLASSPATH /home/lawreste/jakarta-jmeter/lib/ext/ApacheJMeter_core.jar:/home/lawreste/j akarta-jmeter/lib/jorphan.jar:/home/lawreste/jakarta-jmeter/lib/logkit-1.0.1 However, I'm still getting bad calls. I took a peek at the /bin/jmeter.log which reports : 12/18/2002 9:57:52 AM ERROR - jmeter.engine: rmiregistry needs to be running to start JMeter in server mode java.rmi.ServerError: Error occurred in server thread; nested exception is: blah... However.. I *have* started rmiregistry : root 4316 4149 0 09:57 tty1 00:00:00 /usr/java/j2sdk1.4.1_01/bin/rmiregistry I've tried running it plain : 1) rmiregistry and I've tried explicitly declaring the path to the one from the SDK : 2) /usr/java/j2sdk1.4.1_01/bin/rmiregistry I can see it's running with a netstat -a tcp0 0 *:1099 *:* LISTEN Any ideas on why my Jmeter isn't seeing it? Steve. -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Sending a file with HTTP Request doubt
Is there a reason you think JMeter wouldn't accept the variable name in the filename currently? It seems to me that should work. -Mike On 17 Dec 2002 at 11:35, Michal Kostrzewa wrote: Hi Ananda, I wish to do the following : In a looped HTTP POST you can send a file along with your request. e.g. the file looks like this - ?xml version=1.0 encoding=UTF-8 standalone=no? DeviceDetails DeviceIDdevice1/DeviceID HostNameMy-device/HostName /DeviceDetails I want to change the DeviceIDdevice1/DeviceID to device2, device3,... for each new thread I am spawning, i.e for each connection to the server I am testing. So you want to send different file with subsequent request... Impossible thing I think. The only way I can see about it is to: - prepare n files for n threads with appropriate content (DeviceIDdevicen/DeviceID). You could do it pretty easy with perl or something like that - patch jMeter to accept variables in filenames. You could set filename to /foo/bar/myfile${__threadnum}.xml. It's nice improvement, so If you want it that way I may try to do it today evening (however I cannot promise anything). Also you may want try to do it by yourself (source code is available). Please tell me what you decided. best regards Michal Kostrzewa -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Timer functionality
You are correct about everything. On 15 Dec 2002 at 16:20, Scott Eade wrote: Reading the documentation on timers (s4.4) I get the impression that a timer will only be applied at the thread group level. In actual practice it appears that I can put a timer in a controller and it will only affect the timing of the samplers within the controller. The actual behaviour makes sense as there is clearly a need to cater for long delays on some pages and shorter delays in others. So in practice I can do this: Thread group HTTP Request Loop controller HTTP Request Constant timer 5 seconds HTTP Request ...and only the requests within the loop will have the 5 second delay. The same documentation refers to the possibility of having multiple timers within a thread group, but confusingly states that these will be applied cumulatively. I take this to mean that: Thread group HTTP Request HTTP Request Constant timer 5 seconds Constant timer 5 seconds ...will result in 10 seconds between each request - this makes sense. But what about this: Thread group HTTP Request Loop controller HTTP Request Constant timer 5 seconds HTTP Request Constant timer 5 seconds ...I assume in this case that the request in the loop will be delayed by 10 seconds and the remaining requests by 5 seconds. It is a little difficult to confirm this one manually - can someone please confirm that this is correct? If the above comments are correct then we should update the documentation to clarify these points. Cheers, Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au .Mac Chat/AIM: seade at mac dot com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 404 Novel Ichain error
The proxy recorder doesn't work if the server is SSL protected. You have to turn off SSL to record. You can turn it back on when you run the test through JMeter. -Mike On 13 Dec 2002 at 21:24, natraj wrote: Hi, Steps that i do in Jmeter. 1) Create a new Test Plan 2) Add new thread Group 3) Add recording controller to thread group 4) Add HTTP Cookie Manager. 5) Start the Proxy . 6) Record. I also tried 1) Making the necessary changes in the jmeter.properties for enabliling SSL 2) Open SSL Manager - Open the saved certificate. These were done on both Internet Explorer(6.0) and Netscape Navigator 4.7. On a Netscape Navigator i am getting an error saying document contains no data Please let me know where i am wrong . Natraj -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 8:45 PM To: JMeter Users List Subject: Re: 404 Novel Ichain error I probably need a lot more information from you about what and how you are doing, but as a first try - did you include a Cookie Manager in your test plan? -Mike On 13 Dec 2002 at 18:23, natraj wrote: Hi I am trying to record a web server which has novell ichain inbetween. After entering the user name and the password i get an error in the web page as Status: 404 Bad Request Description: invalid request URI I am facing the same problem even on www.novel.com/products/icain download setion's user loggin page. how do i contine with this. Natraj -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Books being written, requests for feedback
Hi all, There are a couple authors writing chapters about JMeter who are looking for feedback. Specifically, anyone who has worked with both JMeter and Apache's ab would be beneficial to one of the authors, and also anyone able to offer insight in comparing JMeter to other testing tools (especially other open source tools). If you're interested, let me know, and I'll pass along his email address. -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: regexpFunction
Could it be that you are using __regexpFunction when the name is actually __regexFunction? (ie, no 'p'). At first, I thought it was just a typo in your email, but I noticed you did it twice Using the Function Dialog Helper would avoid such problems too. -Mike On 12 Dec 2002 at 16:56, Scott Eade wrote: I can't for the life of me get a regexp function to work. Here is what I have set up: JMeter version: cvs head JDK: 1.4.0_01 Test Plan Thread Group Recording Controller HTTP Request 1: Output includes numerous anchor elements HTTP Request 2 (POST): Sends a parameter thus: Name: parm1 Value: ${__regexpFunction(a href=(.*),$1$,1,,,)} Encode: No This is a contrived example based on Mike's original posting of the regexp functionality, the real expression I would like to execute is quite different. My problem is that I cannot get this to work - the result is always empty (i.e. The query data always shows parm1= rather than parm1=_some_value_found_by_the_regexp_function_). Any assistance you can provide with making this work would be greatly appreciated. Cheers, Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Unable to edit User Defined Variables in Test Plan
If I had any clue what the problem was, maybe I could fix it. But I don't know what they did to mess up jdk1.4.1. JMeter was Swing training grounds for me, and you can probably tell - I'm no expert. -Mike On 12 Dec 2002 at 14:49, Scott Eade wrote: Hi Mike, Yes, you are right. If I switch back to jdk 1.4.0 it works properly. I suspected that the problem was that ArgumentsPanel did not provide a default cell editor to the JTable, but adding one did not appear to fix the problem. Obviously the problem permeates JMeter when it is run under 1.4.1. This is a bit of a problem, as sometimes it is not easy to switch JDKs. Cheers, Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au From: Mike Stover [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 11 Dec 2002 21:40:40 -0500 To: Scott Eade [EMAIL PROTECTED] Subject: Re: Unable to edit User Defined Variables in Test Plan I'm not entirely sure, but I bet you would not see this behavior in jsdk1.4.0. I do not have this problem, and I remember some people using 1.4.1 beta had a similar problem. I didn't think the 1.4.1 release would still have the problem, but maybe it does. Not suggesting you go back to 1.4.0, but maybe you could test it and verify? -Mike On 12 Dec 2002 at 13:16, Scott Eade wrote: I want to use some user defined variables, but when I attempt to add these to the Test Plan element, the GUI won't let me enter values or edit the names after a variable has been created (it is as if the cell editing has been disabled). Workaround: It is actually possible to a cell for an already created variable by adding a further variable - clicking an existing cell immediately after the Add will allow it to be edited (you can then delete the blank variable that was added). I have had a look at the JMeter source, but I can't spot the problem (PowerTableModel.isCellEditable() always returns true). I also don't see any entries in bugzilla that describe this problem. I am using cvs head and j2sdk 1.4.1_01. The behaviour is the same in JMeter 1.8. If someone can steer me in the right direction I will attempt a fix, otherwise I will create a bugzilla entry. Cheers, Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: regexFunction
Yeow, I looked at the Recording Controller, and I can't see anything that would be a problem. What??? This makes no sense. -Mike On 12 Dec 2002 at 20:23, Scott Eade wrote: Okay, I have managed to make it work. The problem was the Recording Controller that was the parent of the HTTP Requests. I included it in the original post just in case it was relevant and it turns out that it was. It existed because I originally recorded the script using the proxy. Now that I am manipulating the script by hand I have moved the requests out of the Recording Controller and the regex functions now work. Thanks for your help Mike. Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au From: Scott Eade [EMAIL PROTECTED] Reply-To: JMeter Users List [EMAIL PROTECTED] Date: Thu, 12 Dec 2002 20:05:59 +1100 To: JMeter Users List [EMAIL PROTECTED] Subject: Re: regexFunction Nah, I mistyped it in the email message. I have been using the Function Helper Dialog with the same result. Any other suggestions? Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au From: Mike Stover [EMAIL PROTECTED] Reply-To: JMeter Users List [EMAIL PROTECTED] Date: Thu, 12 Dec 2002 03:48:35 -0500 To: JMeter Users List [EMAIL PROTECTED] Subject: Re: regexpFunction Could it be that you are using __regexpFunction when the name is actually __regexFunction? (ie, no 'p'). At first, I thought it was just a typo in your email, but I noticed you did it twice Using the Function Dialog Helper would avoid such problems too. -Mike On 12 Dec 2002 at 16:56, Scott Eade wrote: I can't for the life of me get a regexp function to work. Here is what I have set up: JMeter version: cvs head JDK: 1.4.0_01 Test Plan Thread Group Recording Controller HTTP Request 1: Output includes numerous anchor elements HTTP Request 2 (POST): Sends a parameter thus: Name: parm1 Value: ${__regexpFunction(a href=(.*),$1$,1,,,)} Encode: No This is a contrived example based on Mike's original posting of the regexp functionality, the real expression I would like to execute is quite different. My problem is that I cannot get this to work - the result is always empty (i.e. The query data always shows parm1= rather than parm1=_some_value_found_by_the_regexp_function_). Any assistance you can provide with making this work would be greatly appreciated. Cheers, Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Reusing the result of a regex in the same request
It's actually quite common to want to do this, I've found - particularly with sites that use javascript, pop-up windows, etc. Just for further explanation, the 'g1' part is short for group #1. Group 0 is a built- in group that refers to whatever the entire regular expression matches. -Mike On 12 Dec 2002 at 13:59, Michal Kostrzewa wrote: HTTP Request param1 ${__regexFunction(some(value),$1$,RAND,,,var1)} param2 ${var1} Please use ${var1_g1} as param2. Hovewer I've never used it in such way - I used previously parsed value in next requests. best regards Michal Kostrzewa -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Configure loop controller at runtime
Nope, no way to do this that I know of. Enabling it might not be so tough - just need to widen the scope of where functions are allowed. A loop controller should allow you to do what you wanted, but I know the GUI, for starters requires integer input currently. And I can think of a further issue that would be tough to explain, but - it's doable with a bit of development. Sound like an enhancement request. -Mike On 12 Dec 2002 at 21:57, Scott Eade wrote: In the session I am scripting there is a page that will repeat n times where n is provided on the page immediately preceding the start of the loop. Is there a way I can set this up with JMeter? Allowing a regex function to be used in the Loop Count parameter of a Loop Controller would achieve the desired result, but currently this is not allowed. Any suggestions? Thanks, Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au .Mac Chat/AIM: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Deprecation of HTML Parameter Mask and HTTP User Parameter Modifier
On 13 Dec 2002 at 16:35, Scott Eade wrote: HTML Parameter Mask actually indicates that the Counter config element be used as its replacement - I can see how this is a better (i.e. more flexible) solution than HTML Parameter Mask (it is a shame that the only code I have contributed to JMeter is part of HTML Parameter Mask ;-( ). Not a shame. That was a while ago, and it is the nature of good software that it evolves. If things work out, a day will come when my last bit of code is replaced. I think my comments concerning HTTP User Parameter Modifier are still relevant however - for a moderate number of users I think the xml file would be easier to set up than the User Parameters config element. Could be. For large numbers of users, a file is easier to deal with. However - you could directly modify the *.jmx that stores the info as XML. Thus, if you had a script generating the data, it could generate it in the appropriate format and insert it in. Strikes me as no more difficult than user.xml is. Also, HTTP User Parameter Modifier is limited to HTTP Requests, and only the arguments at that. Whereas the User Parameters config element creates user- defined values that can be used almost anywhere. -Mike For my purpose the Counter config element should do the trick. Cheers, Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au .Mac Chat/AIM: [EMAIL PROTECTED] From: Scott Eade [EMAIL PROTECTED] Reply-To: JMeter Users List [EMAIL PROTECTED] Date: Fri, 13 Dec 2002 16:09:55 +1100 To: JMeter Users List [EMAIL PROTECTED] Subject: Deprecation of HTML Parameter Mask and HTTP User Parameter Modifier In the JMeter documentation the HTML Parameter Mask and HTTP User Parameter Modifier modifiers are marked as deprecated with a recommendation that the User Parameters config element be used in their place. Surely HTTP User Parameter Modifier is going to be much more convenient when all but a few users are involved. Surely HTML Parameter Mask is going to be way more convenient when large numbers of users are involved. In my case I want to have 1000 users. With the current deprecations it would seem that the recommendation is that I sit here entering bunches of values into a User Parameters config element. This is crazy when I can achieve the desired using just two HTML Parameter Mask modifiers (one for the userid and another for the password). I would suggest that all three mechanisms have their place thus: 1. User Parameters config element: Useful when there are a small number of users with potentially many parameters 2. HTML User Parameter Modifier modifier: Useful when there are a moderate number of users with potentially many parameters 3. HTML Parameter Mask modifier: Useful when there are large numbers of users and the parameter values are able to be generated using the available structure Please consider revoking the deprecations on the HTML Parameter Mask and HTTP User Parameter Modifier modifiers. Regards, Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au .Mac Chat/AIM: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to Use Counter
I have to say, it worked for me just now. The counter will increment with each iteration through the test plan. If you use a Loop Controller within your test plan and set it to 'forever', then it wouldn't work - because as I said, the counter only increments with each iteration through the whole test plan. -Mike On 10 Dec 2002 at 9:00, Kenny Smith wrote: Hello all, I know this is a simple question, but I'm having trouble getting the Counter to work. I want to send x number of requests to fetch x number of files that have increasing numbers in the filenames. I've added a counter to my thread group with a reference name of myCounter and I've set this in my http request settings: http://192.168.100.100/misc/test_${myCounter}.html However, when I run the test it makes a request for http://192.168.100.100/misc/test_1.html over and over again. The counter never increments. Am I putting it in the wrong place, have I configured it wrong in some way? The documenation on this is really thin and I haven't been able to find any examples on the web. Thanks Kenny Smith -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Grouping HTTP Request
There isn't any very good way to do this. One thing you can do is place these requests under a Simple Controller, and then add a visualizer to this controller. This visualizer will only log results from these requests. It's not exactly what you want, but it might give you some of what you're looking for. There is no transaction visualizer - but there is an enhancement request for one. I've just never been able to think up a way to do it that made me happy. -Mike On 10 Dec 2002 at 16:26, Arnaud Bailly wrote: Hi, I'm using JMeter 1.8 and I would like to have sampling result of several HTTP Requests grouped together to give an overall time for a full page, including its components. I didn't find the way to do this in the doc ? Anybody got an answer ? Thanks a lot Arnaud Bailly -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: HTTP Header Manager
A better way to do it is to use user-defined variables. By doing this, you can use the same variable name in HTTP Requests, HTTP Header Manager - just about everywhere. Also, if you define your user-defined variables before recording using the proxy, JMeter will substitute the values for you automatically. However, yes, the HTTP Header Manager should work to add in specific headers, but the header in question must be deleted from the specific Header Manager. -Mike On 10 Dec 2002 at 14:43, Eugene Grant wrote: Hi, I have Version 1.8 of JMeter. I have recorded a scenario against a test server. I now want to run that recording against a production server. However the referer attribute in the Browser-derived headers node still refers to the test server. I am using a HTTP Request Defaults node which I thought might be used to replace the domain name in the referer value as it already does with the domain name in all my HTTP Request nodes Is it possible to use the HTTP Header Manager to replace the domain name part of the referer value in the Browser-derived headers? Regards, Eugene Software Developer Email: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JMetter Sample Listener creation?
Well, it should get added into the menu automatically. There is a method getStaticLabel() which needs to deliver the String that will be used in the menu. How it happens is by magic :-) The current documentation that is there for developers is very out-of-date. I tried a long time ago to write up some instructions, but they were a dismal failure, and I haven't bothered with it too much since. I know, bad bad bad. Here are the basics: The key is what the class type is. A class called org.apache.jmeter.gui.util.MenuFactory uses a class called org.apache.jorphan.reflect.ClassFinder to find all available classes of certain types. For instance, it finds all visualizers, all samplers, all timers, all config elements, etc. These are grouped in their categories. When you implement one of these, the class must indicate which group it belongs in. However, this is mostly for flexibility - usually the group is obvious, and you do not need to do anything except extend AbstractVisualizer, which takes care of this. You'll see methods in there like createPopupMenu() and getMenuCategories(). These methods call on the MenuFactory to do what is necessary to make your visualizer play nice with the menuing system. Furthermore, visualizers are especially easy because you likely don't need to override the createTestElement() method. The AbstractVisualizer creates a org.apache.jmeter.reporters.ResultCollector, which is the runtime stand-in for the GUI component that collects the sample logs and delivers the info to your visualizer via the add() method. Now, that may not have made much sense, because I don't know if you understand the big picture of how JMeter separates GUI code from the engine code, but that is a discussion for another time. -Mike On 8 Dec 2002 at 10:44, James Whitfield wrote: Thanks so much for your support Mike, sorry my response wasn't as rapid as yours. Been super busy lately. The classes you mentioned I had already my eye on. Thanks for ensuring my assumptions. I need look no further. The next question is simply, if I copy those classes to a new name say com.apache.jmeter.visualizers.NewAssertionVisualizer and change some variables that are unique to that class only, will I have a new listener? My ignorance comes when integrating objects with JMeter, I don't understand how that class becomes apart of the Menu or how it is invoked. For instance, in a servlet war file you have the web.xml contained in the WEB-INF directory. There you will find how each class is invoked, and each invoked servlet extends the HttpServlet class etc. If I get a good understanding of this, I wouldn't mind contributing to the documentation of this cool tool. As a developer (soon to be opensource as well), I understand it is very difficult to document things you understand so well. Lastly, coding is much more fun than explaining:) Thanks for any help you can provide. Cheers. James Whitfield - Original Message - From: Mike Stover [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 06, 2002 11:55 AM Subject: Re: JMetter Sample Listener creation? org.apache.jmeter.visualizers.gui.AbstractVisualizer is an abstract class that you will want to extend. To create a visualizer, you have to create a GUI element. A simple visualizer to study is com.apache.jmeter.visualizers.AssertionVisualizer. It does only the basics. If I've misinterpreted your needs, don't hesitate to clarify. -Mike On 6 Dec 2002 at 7:49, james whitfield wrote: Hey Michael, thank you for your work on the JMetter project. I find it to be most impressive and a very useful tool. I am sorry to mail and am sure you are very busy, but I was wondering if you could point me in the direction of creating a Sample Listener (Much like Assertion Results). I've done my best to understand the Developer documentation, but I'm afraid at present I remain oblivious. I'm am no Newbie by any means of the word, but was unable to decipher the requirements necessary. I'll gladly settle for which Source files encompess the most simple Listener. As in, everything that's required, no more no less, much like the Hello World of Sample Listeners. Any help would be gladly appreciated. James Whitfield __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: typical load
Yes, multiple thread groups. they will run concurrrently On 9 Dec 2002 at 15:45, Stuart Barlow wrote: I would like to load a system with a typical set of users. i.e. 1. so many viewers of static data 2. so many data editors 3. and a few admin users altering system settings/security Is it possible to get jmeter to do this? Do I create multiple thread groups? 3 thead groups in the example above? Thanks. Stuart. Stuart Barlow Tel: +44 131 468 8205 * Information in this email is confidential and may be privileged. It is intended for the named addressee(s) only. If you have received it in error please notify the sender immediately and delete it from your system. You should not otherwise copy, retransmit, use or disclose its contents to anyone. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Multiple values for a parameter
The User Parameters config element is similar to this, except it's values are held in a gui table. It would be a simple matter to study that code and figure out how to do the same thing but reading the values from a file instead of the gui table. -Mike On 6 Dec 2002 at 16:23, Bryan Baker wrote: I'm currently trying to create a test-plan with JMeter version 1.8 which would have a parameter that gets its value from a list of potentially thousands of values. So for example my URL may look like this: http://www.myurl.com/application.cgi?searchstring=value The string 'value' would then be replaced by a value taken from a list (in memory, from file etc). So if I had a file that looks like... ---START OF FILE--- jim jane bill [thousands of additional lines] ---END OF FILE--- On the first iteration the URL sent would appear like: http://www.myurl.com/application.cgi?searchstring=jim The second: http://www.myurl.com/application.cgi?searchstring=jane ...and so on where this list would likely contain thousands of unique values. The closest I've found to this is using a counter where its numeric value is a part of the parameter value generated. This obviously only allows me to change the counter value (instead of increment through a list of values). The brute force way to accomplish this would be to create an HTTP Request Default node for every variation (by copying the XML or manually entering each node). This does not accomplish what I need. I'm new to JMeter but I feel like I'm on the fringe of JMeter's functionality. My gut feeling is that what I'm describing would be accomplished with a combination of using the said counter and creating my own Config Element 'Java Sample.' Thanks, Bryan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Using __regexFunction to parse HTML response
Your error was in treating the User Parameters modifier as though it is a Sample Request. It is only a config element - thus it is not part of the sequence of requests. The request following your Request 1 is actually the HTTP Request 2. Your __regexFunction should go directly in Request 2, and you have no apparent need for the getSuToken variable name. -Mike On 3 Dec 2002 at 14:12, Jung, Harald wrote: Hi all, I looked into the archive of this mailing list and encountered that there are a lot of questions in regard to the usage of __regexFunction and passing infomation between different requests. I had a similiar problem as discussed within these tracks but Im still not able to see where my problem is. Following a short description of my Testplan: Thread Group | Simple Controller | HTTP Request 1: - Simple call to a servlet User Parameter - Name: SuToken - User_1: ${__regexFunction(%2FmySearch%3FSuToken%3D(.*)%22+CLASS%3D%22DANavPageLinkTx t,,%241%24,1,,,getSuToken)} HTTP Request 2: POST request Path /Solution?SuStepName=SearchSuToken=${getSuToken_g1} | | HTTP Defaults, CookieManager, Result view etc. As you hopefully see my intention, I what to parse the result HTML page of request 1 for the the string '/mySearch?SuToken=value CLASS=DANavPageLinkTxt' and store the value assigned to SuToken in the variable getSuToken. This value changes on each request. This stored value should now be passed to the 2nd HTTP request as part of the request path. My question, is this approach correct in general or did I missunderstood something essential? When I try to run this Testplan, I got a class cast exception (in user parameter): java.lang.ClassCastException at org.apache.jmeter.modifiers.UserParameters.setVariables(UserParameters.java: 105) at org.apache.jmeter.modifiers.UserParameters.iterationStarted(UserParameters.j ava:41) at org.apache.jmeter.threads.JMeterThread.notifyThreadListeners(JMeterThread.ja va:214) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:132) at java.lang.Thread.run(Thread.java:536) so I think, my user parameter element is not correct. Does anybody has an idea on how to solve this problem or can point me to the right direction. Many thanks in advance. Regards, Harald Jung -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Remote testing issue
Why would you ever run JMeter on the same machine as the server you're testing? -Mike On 21 Oct 2002 at 18:19, Vola, Guillaume wrote: Hello, When testing an application internally, is it possible to run the threads remotly but without using most of the CPU ressource of the machine on which the server is running. In other words how to avoid jmeter-server uses most of the CPU ressource ? Is there a solution to run jmeter on a different machine ? I would try to explain my issue: My app is running two java processes (rmi server + tomcat) on a machine (PC 1Ghz, 512 Mo) The front-end needs lot of CPU for computing data. If I launch jmeter -s on the same machine, after a while it takes 70 % of the CPU, and so the results of the test are not realistic at all. Help or advise would be appreciated. Thanks in advance. -- Guillaume Vola Project Leader - Quality Assurance Support XEROX Innovation Group / MKMS 6, chemin de Maupertuis 38240 Meylan phone: +33 4 76 61 50 06 http://www.mkms.xerox.com -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:jmeter-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:jmeter-user-help;jakarta.apache.org
Re: Function in Jmeter
Updated! I've actually been doing some JMeter work recently. I'm currently making a save service component, so that more options are available (and, like everything else, it'll be plug and play, so you can implement it be a Database saving service, if the fancy strikes you). I'm being very slow, though, cause I've gotten lazy since becoming unemployed :-( -Mike On 21 Oct 2002 at 23:21, Michal Kostrzewa wrote: Referencing to the result of a function in following requests is a bit tricky, it depends on functions and I personally saw no documentation about this. For example to refer to previous regex result, matching group one, Oh, I'm sorry, I've just seen the documentation and everything is explained (_g1 and so..) I was blind or the docs were upgraded recently (thank you Mike Stover) best regards Michal Kostrzewa -- To unsubscribe, e-mail: mailto:jmeter-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:jmeter-user-help;jakarta.apache.org -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:jmeter-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:jmeter-user-help;jakarta.apache.org
Re: Trouble with User Parameters
Yes, also see: http://jakarta.apache.org/jmeter/usermanual/component_reference.html#User_Para meters -Mike On 21 Oct 2002 at 23:48, Michal Kostrzewa wrote: I´m trying to use JMeter1.8 to simulate multiple logins from diferent users. I´ve created an User Parameters containing the following: Variable User1 User2 login one two passwd one1 two2 well, it looks, like you didn't add parameter to your request (at least you didn't mention about this) In your sampler, please add parameter login containing value ${login} Then it should work. best regards Michal Kostrzewa -- To unsubscribe, e-mail: mailto:jmeter-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:jmeter-user-help;jakarta.apache.org -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:jmeter-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:jmeter-user-help;jakarta.apache.org
Re: Error when starting a remote test
When setting up the system classpath for rmiregistry, you must also include the jars: lib/jorphan.jar lib/logkit-1.0.1.jar I'll update the docs. -Mike On 17 Oct 2002 at 16:45, Vola, Guillaume wrote: Hi, I get the following trace when I try to start my Test Plan in remote mode. I have also an error message pop-up from Jmeter Bad call to remote host That feature was working in version 1.7.3 with jdk 1.3 I have now upgraded to version 1.8 with jdk 1.4.1 Please help! -Gui java.rmi.NotBoundException: JMeterEngine at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106) at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:342) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) at java.lang.Thread.run(Thread.java:536) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:350) at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at java.rmi.Naming.lookup(Naming.java:84) at org.apache.jmeter.engine.ClientJMeterEngine.init(ClientJMeterEngine.java:97) at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:122) at org.apache.jmeter.gui.action.ActionRouter.actionPerformed(ActionRouter.java:108) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257) at javax.swing.AbstractButton.doClick(AbstractButton.java:289) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943) at java.awt.Component.processMouseEvent(Component.java:5093) at java.awt.Component.processEvent(Component.java:4890) at java.awt.Container.processEvent(Container.java:1566) at java.awt.Component.dispatchEventImpl(Component.java:3598) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Component.dispatchEvent(Component.java:3439) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095) at java.awt.Container.dispatchEventImpl(Container.java:1609) at java.awt.Window.dispatchEventImpl(Window.java:1585) at java.awt.Component.dispatchEvent(Component.java:3439) at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99) -- Guillaume Vola Project Leader - Quality Assurance Support XEROX Innovation Group / MKMS 6, chemin de Maupertuis 38240 Meylan phone: +33 4 76 61 50 06 http://www.mkms.xerox.com -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:jmeter-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:jmeter-user-help;jakarta.apache.org
RE: Impossible to add parameter's value in HTTP Request sample
I don't have this problem. Is it possible you're using the JDK1.4.1 beta release? I seem to remember it having a problem like this. -Mike On 17 Oct 2002 at 18:35, Vola, Guillaume wrote: The bug is both on windows and solaris 8. Workaround=check/uncheck GET/POST option to make text-field active -Gui -Original Message- From: Vola, Guillaume [mailto:Guillaume.Vola;mkms.xerox.com] Sent: Thursday, October 17, 2002 5:31 PM To: '[EMAIL PROTECTED]' Subject: Impossible to add parameter's value in HTTP Request sample Hi, Since JMeter 1.8 I cannot use correctly the HTTP Request. When I try to add a parameter to the request, once I have filled the 'name' field, the 'value' field becomes inactive. Please help! -- Guillaume Vola Project Leader - Quality Assurance Support XEROX Innovation Group / MKMS 6, chemin de Maupertuis 38240 Meylan phone: +33 4 76 61 50 06 http://www.mkms.xerox.com -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:jmeter-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:jmeter-user-help;jakarta.apache.org
RE: Error when starting a remote test
You understand you have to change the classpath for rmiregistry, not for JMeter? JMeter finds its classes without help. -Mike On 18 Oct 2002 at 15:25, Vola, Guillaume wrote: Mike, I always get the same trace and error even after changed the CLASSPATH variable. I'm using the rmiregistry exe from j2sdk1.4.1 -Gui -Original Message- From: Mike Stover [mailto:mstover1;apache.org] Sent: Thursday, October 17, 2002 7:02 PM To: JMeter Users List Subject: Re: Error when starting a remote test When setting up the system classpath for rmiregistry, you must also include the jars: lib/jorphan.jar lib/logkit-1.0.1.jar I'll update the docs. -Mike On 17 Oct 2002 at 16:45, Vola, Guillaume wrote: Hi, I get the following trace when I try to start my Test Plan in remote mode. I have also an error message pop-up from Jmeter Bad call to remote host That feature was working in version 1.7.3 with jdk 1.3 I have now upgraded to version 1.8 with jdk 1.4.1 Please help! -Gui java.rmi.NotBoundException: JMeterEngine at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106) at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:342) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) at java.lang.Thread.run(Thread.java:536) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:350) at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at java.rmi.Naming.lookup(Naming.java:84) at org.apache.jmeter.engine.ClientJMeterEngine.init(ClientJMeterEngine.java:97) at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:122) at org.apache.jmeter.gui.action.ActionRouter.actionPerformed(ActionRouter.java:108) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257) at javax.swing.AbstractButton.doClick(AbstractButton.java:289) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943) at java.awt.Component.processMouseEvent(Component.java:5093) at java.awt.Component.processEvent(Component.java:4890) at java.awt.Container.processEvent(Container.java:1566) at java.awt.Component.dispatchEventImpl(Component.java:3598) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Component.dispatchEvent(Component.java:3439) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095) at java.awt.Container.dispatchEventImpl(Container.java:1609) at java.awt.Window.dispatchEventImpl(Window.java:1585) at java.awt.Component.dispatchEvent(Component.java:3439) at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99) -- Guillaume Vola Project Leader - Quality Assurance Support XEROX Innovation Group / MKMS 6, chemin de Maupertuis 38240 Meylan phone: +33 4 76 61 50 06 http://www.mkms.xerox.com -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:jmeter-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:jmeter-user-help;jakarta.apache.org -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya
RE: How many threads can JMeter handle?
Well, you have quite the machine there, and it can probably handle 500 threads fairly well. It never hurts to bump up the memory of the JVM, so you might as well. Give it half a gig, why not? But, like I always say, run a separate machine in parallel with just one thread to get really accurate timing info. Ie, stress the machine with the big guns, and then run the same test on the side from a different client, just one thread, and compare the times between the two - this will give you an idea of how well JMeter is holding up under 500 threads. -Mike On 15 Oct 2002 at 23:08, Schmukler, Stuart wrote: Mike, I mean that I have 100 threads per thread group, one thread group in the test. Have you tuned the memory of the JVM for those 500 thread group tests? My JMeter machine is a 2GB 2 CPU 1.2MHz machine connected to an isolated 100 Mb Ethernet. The target machine is 1GB 2 CPU 1.2MHz machine. I am thinking that increasing the memory to the JVM of JMeter. Here is the test plan: Generated GETs with Asserts [Function Test Mode = false ] Users Thread Group [# of Threads=100, Ramp-up=1 (sec), Loop Count= either 10 or Forever] HTTP Request Defaults[ IP address, Port=8080 ] demoServlet HTTP Request [useInputPage = false littleButton = Submit UserID = * SiteID = * CategoryID = * InitialPrice = * Duration = 5 ] UserID Parameter Mask SiteID Parameter Mask CategoryID Parameter Mask InitialPrice Parameter Mask Graph Results [Filename=] Arggretgate Report [Filename=logfile.jtl] Response Assertion [Text Response=true, Pattern Matching Rules = Contains, Pattern=Total] View Results Tree {Disabled } This is my test plan to date. SaS -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 9:09 AM To: JMeter Users List Subject: Re: How many threads can JMeter handle? Do you mean 100 thread groups or 100 threads? If thread groups, how many threads in each? 100 threads isn't that many. I've run 500 on my Windows 2000, 600mhz athlon, 512MB RAM successfully. Not that I would trust the timing data overly much in those conditions. -Mike On 14 Oct 2002 at 23:24, Schmukler, Stuart wrote: Folks, Has anyone used JMeter to generate loads of on the order of 100 thread groups via one JMeter instance? (I am using the 02-10-07 build.) I have a tomcat 4.0.4 application that seems to behaving oddly under heavy loads. Sending back various java errors like: java.io Connection Closed end of server file and The JMeter View Results Tree sometimes marks a result as bad, but I can find nothing wrong with the text of the result. The Response Assertion is looking for the word Total which should be at the end of the output stream. --- Stuart Schmukler 408-376-6724 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Error when running test in non-GUI mode
Yes, your testfile wasn't an entire TestPlan. You need to save your test plan from the TestPlan tree node. -Mike On 16 Oct 2002 at 17:51, Vola, Guillaume wrote: C:\TMP\Tools\ApacheJMeter_1.7.3\jakarta-jmeter\binjmeter.bat -n -t testfiles/aOsearch.jmx -l testfiles/chichet2.jtl Created the tree successfully Starting the test Running the test! Error in NonGUIDriverjava.lang.ArrayIndexOutOfBoundsException at org.apache.jmeter.engine.StandardJMeterEngine.setMode(StandardJMeterEngine.java:182) at org.apache.jmeter.engine.StandardJMeterEngine.runTest(StandardJMeterEngine.java:136) at org.apache.jmeter.JMeter.run(JMeter.java:329) at org.apache.jmeter.JMeter.startNonGui(JMeter.java:302) at org.apache.jmeter.JMeter.start(JMeter.java:220) at java.lang.reflect.Method.invoke(Native Method) at org.apache.jmeter.NewDriver.main(NewDriver.java:180) org.apache.jmeter.engine.JMeterEngineException: java.lang.ArrayIndexOutOfBoundsException at org.apache.jmeter.engine.StandardJMeterEngine.setMode(StandardJMeterEngine.java:182) at org.apache.jmeter.engine.StandardJMeterEngine.runTest(StandardJMeterEngine.java:136) at org.apache.jmeter.JMeter.run(JMeter.java:329) at org.apache.jmeter.JMeter.startNonGui(JMeter.java:302) at org.apache.jmeter.JMeter.start(JMeter.java:220) at java.lang.reflect.Method.invoke(Native Method) at org.apache.jmeter.NewDriver.main(NewDriver.java:180) at org.apache.jmeter.engine.StandardJMeterEngine.runTest(StandardJMeterEngine.java:173) at org.apache.jmeter.JMeter.run(JMeter.java:329) at org.apache.jmeter.JMeter.startNonGui(JMeter.java:302) at org.apache.jmeter.JMeter.start(JMeter.java:220) at java.lang.reflect.Method.invoke(Native Method) at org.apache.jmeter.NewDriver.main(NewDriver.java:180) Any idea? -- Guillaume Vola Project Leader - Quality Assurance Support XEROX Innovation Group / MKMS 6, chemin de Maupertuis 38240 Meylan phone: +33 4 76 61 50 06 http://www.mkms.xerox.com -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: OutOfMemoryError during test perf
On 16 Oct 2002 at 15:29, Michal Kostrzewa wrote: Hi, I'll tell you what I know, don't sure it's true (not having much experience with distributed testing): Should i do the same when launching jmeter -s on the remote server. I have numerous traces on the server console too! I think server is more important, because IT is doing the test. It has to have memory for results. This is not the case - the server sends all results back to the controlling GUI machine, which stores and displays the results. The server does not hang onto the results in memory after passing them. When you're talking about using jdk 1.4.1 instead of 1.3, is it for both jmeter client and server ? Well, server or client - it's the same application. If I were you I would replace it on every jmeter's machine but I'm not sure if it's absolutely neccessary. Should I use non-GUI mode for high load testing ? Hmmm... is there a possibility to use non-GUI mode for remoted testing? I was always using it that way: several servers (jmeter -s) of course without gui and one control console with GUI where you can order servers to run... How can you run test on servers without GUI? When not using remote testing I always use non-GUI mode for load testing. best regards Michal Kostrzewa -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Connection timed out !!!
What went wrong with the proxy recorder? I'd recommend upgrading to JDK1.4+ -Mike On 16 Oct 2002 at 11:28, Vola, Guillaume wrote: Mike, I did not use the record mode with proxy beacause I was not able to make it working correctly. I mofidied my thread group removing some of controllers. The test is now simpler but seems to work better. When I increase the # threads I get some out of memory errors from the JVM (I'mm using jdk1.3.1). Attached is a error log generated by jmeter (I suppose). -Gui -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 6:09 PM To: JMeter Users List Subject: RE: Connection timed out !!! Did you record these requests using JMeter's recording proxy? I suspect there's some weird redirection problem going on, or maybe you forget to attach a cookie manager? Best thing to do is send your .jmx file to me and a log of the responses with one run-through of the test (functional testing turned on). -Mike On 15 Oct 2002 at 9:04, Vola, Guillaume wrote: Everything goes right in my browser. I have another scenario (thread) in JMeter which does only one request on 13.202.220.44:2828/askonce.jsp e.g. the home page of the application. When I run this thread even with 500 users, it is okay, no connection timed out to be noticed. -Guillaume -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 7:36 PM To: [EMAIL PROTECTED] Subject: Re: Connection timed out !!! Using telnet to test an HTTP port is kind of weird. What happens when you request 13.202.220.44:2828/askonce.jsp in your browser? -Mike On 14 Oct 2002 at 19:25, Vola, Guillaume wrote: All, Let me introduce myself first, I work in Grenoble (france) on the askOnce product. I'm in charge of the tests and validation. I'm trying to use JMeter for stress/load tests but I encounter some issues. I'm using Jmeter 1.7.3 client-server option (remote testing) with jdk1.3 aOguest.jmx In one of my scenario when I run the test (with only one thread), It tooks a very long time to answer (more than 100 s) the first HTTP request. In the Assertion Results element I get a Connection timed out message. http://12.202.220.44:2828/askonce.jsp Query Data: java.net.ConnectException: Connection timed out The operation lasted to long: It took 104,615 milliseconds, but should not have lasted longer than 3,000 milliseconds. http://12.202.220.44:2828/askonce.jsp Query Data: action=searchstringDomains=Testexpression=toto java.net.ConnectException: Connection timed out The operation lasted to long: It took 104,620 milliseconds, but should not have lasted longer than 3,000 milliseconds. When I do the same in a telnet session I get an immediate answer: MONT-ROSE:/temp/askOnce22/www/tomcat/webapps/docs/jsptelnet 13.202.220.44 2828 Trying 13.202.220.44... Connected to 13.202.220.44. Escape character is '^]'. GET /askonce.jsp HTTP/1.0 HTTP/1.1 200 OK Content-Type: text/html;charset=UTF-8 Date: Mon, 14 Oct 2002 16:11:30 GMT Pragma: no-cache Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector) Cache-Control: no-cache Connection: close Expires: Thu, 01 Jan 1970 00:00:00 GMT Set-Cookie: JSESSIONID=871091958034F7F262318662322342B5;Path=/ Do you see any reason of that problem occurs ? A problem a cookie management ? Thanks for your time. Kind regards -- Guillaume Vola Project Leader - Quality Assurance Support XEROX Innovation Group / MKMS 6, chemin de Maupertuis 38240 Meylan phone: +33 4 76 61 50 06 http://www.mkms.xerox.com -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Database logging and log integration idea [implementation que stion]
Yes, that's true. But CSV will just be a base to start from. My point was that, instead of trying to be an open format, JMeter should go for efficiency. -Mike On 16 Oct 2002 at 10:18, Michal Kostrzewa wrote: Hi, Now I have an xml file Obviously lots of things parse xml and I bet excel does too, just not as readily as it did csv. I think csv has one problem xml and rdbs don't have. It can't store relations. there are some relations in jMeter - e.g. to one sample there may me several assertion results, one sample can have some subsamples... there is no problem for DB but CSV has flat structure best regards Michal Kostrzewa -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JOrphan?
The docs have been upgraded to indicate that JDK 1.4 and above is required for JMeter now. JOrphan is just a bunch of classes that are independent of any other classes, and I have factored them out of the JMeter org.apache.jmeter.* structure and into their own. I grew tired of copy/pasting these highly useful classes amongst all my different projects. The source code for jorphan will live someplace on Sourceforge, once I can arrange it. I don't see any great advantage to making things work with JDK1.3 (it's not just the jorphan libs). JDK1.4 is available, it's free, and it's got a lot of nice features. Plus, JMeter is a client app - it makes no difference what it runs on in relation to the server app you're testing. And hush! I haven't even announcedd 1.8 yet. Let me know how it works for you :-) -Mike I just upgraded from JMeter 1.7.3 to 1.8. I had been using Sun's Java 1.3.1, but when I tried using it with JMeter 1.8, I got: java.lang.reflect.InvocationTargetException: java.lang.UnsupportedClassVersionError: org/jorphan/test/UnitTestManager (Unsupported major.minor version 48.0) Upgrading to Sun's Java 1.4 enabled me to use JMeter 1.8. I'm curious about what JOrphan is and what it does for us. When I tried a search on Google, the only thing I found that I could read was a comic book about Jimmy Olsen - Orphan! It's interesting that he got amnesia and forgot that he was Superman's friend, but they never revealed his load testing strategy. It would be nice if JMeter was usable on Jave versions less than 1.4. Would it be difficult to remove the JOrphan dependencies? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HTTP URL Re-writing Modifier in the nonGUI [PATCH]
There's a fix in CVS too, so the latest nightly tarball should work for you. You should install cygwin on your NT machine and then you could use it's patch utility. cygwin goes on every windows machine first chance I get :-) -Mike On 15 Oct 2002 at 13:12, Michael Morris wrote: Thanks a lot for the patch but I am woriking on an NT machine, is there any chance you could send me the source and I will rebuild it myself. Michael -Original Message- From: Michal Kostrzewa [mailto:[EMAIL PROTECTED]] Sent: 14 October 2002 20:55 To: JMeter Users List Subject: Re: HTTP URL Re-writing Modifier in the nonGUI [PATCH] Hello This tests works fine when I run it in the GUI but when I try to run it from the command line, I only get the following response: Http req 1 Http req 2 Http req 6 It seems that the all the request-siblings of the HTTP URL Re-writing Modifier are ignored. I think you've found a bug! So I'm sending you the patch :) The reason of this bug is, that method setArgumentName of class org.apache.jmeter.protocol.http.modifier.URLRewritingModifier, which initializes regular expressions, is called only from gui. (URLRewritingModifierGUI). When loading test without gui, only setParameter method is called and in result, case1, case2, case3 variables are uninitialized (and you can see NullPointer errors in log). To Michael Stover: Am I correct? I've implemented patch overriding setProperty of URLRewritingModifier, and initializing casexxx variables when appropriate, instead of doing this in setArgumentName. Is it politically correct? :) To Michael Morris: It should work :) apply the patch to src/protocol/http/org/apache/jmeter/protocol/http/modifier/URLRewritingModif ier.java please do: cd src/protocol/http/org/apache/jmeter/protocol/http/modifier/ patch URLRewritingModifier.java URLRewritingModifier.java.patch and rebuild jmeter. Please note, i'm using the latest CVS version (but you have fresh snapshot, I think you can try with that). Please tell me your success (or failure) story. To Michael Stover again :) It may be that my patch contains some formatting caused by my IDE. Sorry about this hope that helps and best regards Michal Kostrzewa -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How many threads can JMeter handle?
Do you mean 100 thread groups or 100 threads? If thread groups, how many threads in each? 100 threads isn't that many. I've run 500 on my Windows 2000, 600mhz athlon, 512MB RAM successfully. Not that I would trust the timing data overly much in those conditions. -Mike On 14 Oct 2002 at 23:24, Schmukler, Stuart wrote: Folks, Has anyone used JMeter to generate loads of on the order of 100 thread groups via one JMeter instance? (I am using the 02-10-07 build.) I have a tomcat 4.0.4 application that seems to behaving oddly under heavy loads. Sending back various java errors like: java.io Connection Closed end of server file and The JMeter View Results Tree sometimes marks a result as bad, but I can find nothing wrong with the text of the result. The Response Assertion is looking for the word Total which should be at the end of the output stream. --- Stuart Schmukler 408-376-6724 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Connection timed out !!!
Did you record these requests using JMeter's recording proxy? I suspect there's some weird redirection problem going on, or maybe you forget to attach a cookie manager? Best thing to do is send your .jmx file to me and a log of the responses with one run-through of the test (functional testing turned on). -Mike On 15 Oct 2002 at 9:04, Vola, Guillaume wrote: Everything goes right in my browser. I have another scenario (thread) in JMeter which does only one request on 13.202.220.44:2828/askonce.jsp e.g. the home page of the application. When I run this thread even with 500 users, it is okay, no connection timed out to be noticed. -Guillaume -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 7:36 PM To: [EMAIL PROTECTED] Subject: Re: Connection timed out !!! Using telnet to test an HTTP port is kind of weird. What happens when you request 13.202.220.44:2828/askonce.jsp in your browser? -Mike On 14 Oct 2002 at 19:25, Vola, Guillaume wrote: All, Let me introduce myself first, I work in Grenoble (france) on the askOnce product. I'm in charge of the tests and validation. I'm trying to use JMeter for stress/load tests but I encounter some issues. I'm using Jmeter 1.7.3 client-server option (remote testing) with jdk1.3 aOguest.jmx In one of my scenario when I run the test (with only one thread), It tooks a very long time to answer (more than 100 s) the first HTTP request. In the Assertion Results element I get a Connection timed out message. http://12.202.220.44:2828/askonce.jsp Query Data: java.net.ConnectException: Connection timed out The operation lasted to long: It took 104,615 milliseconds, but should not have lasted longer than 3,000 milliseconds. http://12.202.220.44:2828/askonce.jsp Query Data: action=searchstringDomains=Testexpression=toto java.net.ConnectException: Connection timed out The operation lasted to long: It took 104,620 milliseconds, but should not have lasted longer than 3,000 milliseconds. When I do the same in a telnet session I get an immediate answer: MONT-ROSE:/temp/askOnce22/www/tomcat/webapps/docs/jsptelnet 13.202.220.44 2828 Trying 13.202.220.44... Connected to 13.202.220.44. Escape character is '^]'. GET /askonce.jsp HTTP/1.0 HTTP/1.1 200 OK Content-Type: text/html;charset=UTF-8 Date: Mon, 14 Oct 2002 16:11:30 GMT Pragma: no-cache Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector) Cache-Control: no-cache Connection: close Expires: Thu, 01 Jan 1970 00:00:00 GMT Set-Cookie: JSESSIONID=871091958034F7F262318662322342B5;Path=/ Do you see any reason of that problem occurs ? A problem a cookie management ? Thanks for your time. Kind regards -- Guillaume Vola Project Leader - Quality Assurance Support XEROX Innovation Group / MKMS 6, chemin de Maupertuis 38240 Meylan phone: +33 4 76 61 50 06 http://www.mkms.xerox.com -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]