Re: Stop thread after a sampler error
Look at Test Action sampler. Regards Philippe http://www.ubik-ingenierie.com On Wed, Feb 22, 2012 at 2:12 PM, Shmuel Krakower wrote: > Hi all, > > I am looking for a way to stop a thread if a specific sampler failed. > I cannot use the Thread Group configuration as it affects all samplers in > it and I need to stop the thread only if a specific sampler failed. > > E.g. I have a login sampler in once only controller, and want to stop the > thread only if the login fails and not when any other sampler in this > thread group will fail. > > Regards, > Shmuel Krakower. > -- Cordialement. Philippe Mouawad.
Re: CSV issue?
Also, where is you Config folder located ? in jmeter bin folder ? or where the JMX plan is located ? Regards Philippe On Wed, Feb 22, 2012 at 4:42 PM, Shaba K wrote: > Sounds like a bug am on 2.5.1 it works perfectly fine > > -Shabana > > On Wed, Feb 22, 2012 at 12:38 PM, ZK wrote: > > > Hi, > > I am having an issue reading txt files using the CSV Data Set Config in > > jmeter 2.6 > > > > Test plan: > > +User Defined Variables [Name = configPathValue = ./Config/] > > +CSV [Filename = ${configPath}test.txt] > > +Debug Sampler > > > > In jmeter 2.4 this worked for me to get CSV data from a folder relative > to > > the .jmx > > In 2.6 this doesnt work, I get a file not found error > > > > However; if I create this in 2.4 and merge with 2.6 it works as expected, > > is > > this a bug? > > > > > > > > ZK > > > > -- > > View this message in context: > > http://jmeter.512774.n5.nabble.com/CSV-issue-tp5504973p5504973.html > > Sent from the JMeter - User mailing list archive at Nabble.com. > > > > --------- > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > -- Cordialement. Philippe Mouawad.
Re: Cookie manager not getting more than one set-cookie per response?
Is your Test case using parallel downloads ? (I don't think so cause in 2.4 feature didn't exist) Regards Philippe On Wed, Feb 22, 2012 at 10:03 PM, sebb wrote: > On 22 February 2012 20:53, Robin D. Wilson wrote: > > I have a test case that used to work fine in JMeter 2.4 (still does). > But it started failing when I upgraded to JMeter 2.6. > > > > The failure is a direct result of the test case failing to find a cookie > that is set early in the test samples. It is from a > > response that contains 3 "Set-Cookie:" headers. Apparently, JM2.6 Cookie > Manager is only storing the first cookie being set in the > > response. Subsequent "Set-Cookie:" response headers are being ignored. > > > > I am able to work around the issue by using a Regular Expression > Extractor and getting the cookies manually through a regular > > expression, but this means that I have to go back a re-code a bunch of > test cases. > > > > Is there a setting that I'm missing? > > Not that I know of. > > Can you provide a test case via Bugzilla? > > > -- > > Robin D. Wilson > > Sr. Director of Web Development > > KingsIsle Entertainment, Inc. > > VOICE: 512-777-1861 > > www.KingsIsle.com > > > > > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > ----- > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Cookie manager not getting more than one set-cookie per response?
Can you give an example of the page that returns the 3 cookies (attach the HTML response for example) and extract from your Test Plan the part that manages the Cookie ? Regards Philippe On Wed, Feb 22, 2012 at 10:19 PM, Robin D. Wilson wrote: > I'll try to get a test case out there - but the failing test case is > pretty complicated, and stripping everything down to a level to > show this problem will take me a while. > > -- > Robin D. Wilson > Sr. Director of Web Development > KingsIsle Entertainment, Inc. > VOICE: 512-777-1861 > www.KingsIsle.com > > > -Original Message- > From: sebb [mailto:seb...@gmail.com] > Sent: Wednesday, February 22, 2012 3:03 PM > To: JMeter Users List > Subject: Re: Cookie manager not getting more than one set-cookie per > response? > > On 22 February 2012 20:53, Robin D. Wilson wrote: > > I have a test case that used to work fine in JMeter 2.4 (still does). > But it started failing when I upgraded to JMeter 2.6. > > > > The failure is a direct result of the test case failing to find a cookie > that is set early in the test samples. It is from a > > response that contains 3 "Set-Cookie:" headers. Apparently, JM2.6 Cookie > Manager is only storing the first cookie being set in the > > response. Subsequent "Set-Cookie:" response headers are being ignored. > > > > I am able to work around the issue by using a Regular Expression > Extractor and getting the cookies manually through a regular > > expression, but this means that I have to go back a re-code a bunch of > test cases. > > > > Is there a setting that I'm missing? > > Not that I know of. > > Can you provide a test case via Bugzilla? > > > -- > > Robin D. Wilson > > Sr. Director of Web Development > > KingsIsle Entertainment, Inc. > > VOICE: 512-777-1861 > > www.KingsIsle.com > > > > > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Cookie manager not getting more than one set-cookie per response?
This settings is false since 2.3.2, see: http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Cookie_Manager *"Received Cookies can be stored as JMeter thread variables (versions of JMeter after 2.3.2 no longer do this by default). To save cookies as variables, define the property "CookieManager.save.cookies=true"." * Regards On Thu, Feb 23, 2012 at 4:04 PM, Robin D. Wilson wrote: > Nevermind, I found the issue - it was this setting: > >CookieManager.save.cookies=true > > Apparently this was on by default previously in JMeter2.4 (or was > configured somewhere that I didn't know about), but adding it to > my 'user.properties' fixed the problem. > > -- > Robin D. Wilson > Sr. Director of Web Development > KingsIsle Entertainment, Inc. > VOICE: 512-777-1861 > www.KingsIsle.com > > From: Robin D. Wilson [mailto:rwils...@gmail.com] > Sent: Thursday, February 23, 2012 8:58 AM > To: 'JMeter Users List' > Subject: RE: Cookie manager not getting more than one set-cookie per > response? > > OK, I have setup a test case for this... > > My test script returns 2 cookies, here's a look at the response headers > from a request to that page: > > > Response headers: > HTTP/1.1 200 OK > Date: Thu, 23 Feb 2012 14:51:51 GMT > Server: Apache/2.2.17 (Unix) > Expires: Thu, 02 Feb 2012 23:59:59 GMT > Set-Cookie: theCookie1=value1; Expires=Wed, 09 Jun 2021 12:00:00 GMT > Set-Cookie: theCookie2=value2 > Keep-Alive: timeout=15, max=100 > Connection: Keep-Alive > Transfer-Encoding: chunked > Content-Type: text/html; charset=UTF-8 > > My second sampler in the test attempts to use the cookies set above in the > POST of the request - using "${COOKIE_theCookie1}" and > "${COOKIE_theCookie2}". But when I look at the values posted, I get this > instead: > > POST data: > > POSTVARCOOKIE1=%24%7BCOOKIE_theCookie1%7D&POSTVARCOOKIE2=%24%7BCOOKIE_theCookie2%7D > > However, in the request headers of the second sampler, I can see that the > cookies are both actually set: > > Cookie Data: > theCookie1=value1; theCookie2=value2 > > They just aren't being accessed by the "${COOKIE_}" > convention anymore... Did this change in JM2.6? > > -- > Robin D. Wilson > Sr. Director of Web Development > KingsIsle Entertainment, Inc. > VOICE: 512-777-1861 > www.KingsIsle.com > > -Original Message- > From: Philippe Mouawad [mailto:philippe.moua...@gmail.com] > Sent: Wednesday, February 22, 2012 3:37 PM > To: JMeter Users List > Subject: Re: Cookie manager not getting more than one set-cookie per > response? > > Can you give an example of the page that returns the 3 cookies (attach the > HTML response for example) and extract from your Test Plan the part that > manages the Cookie ? > > Regards > Philippe > On Wed, Feb 22, 2012 at 10:19 PM, Robin D. Wilson < rwils...@gmail.com> rwils...@gmail.com>wrote: > > > I'll try to get a test case out there - but the failing test case is > > pretty complicated, and stripping everything down to a level to > > show this problem will take me a while. > > > > -- > > Robin D. Wilson > > Sr. Director of Web Development > > KingsIsle Entertainment, Inc. > > VOICE: 512-777-1861 > > <http://www.KingsIsle.com> www.KingsIsle.com > > > > > > -Original Message- > > From: sebb <mailto:[mailto:seb...@gmail.com]> [mailto:seb...@gmail.com] > > Sent: Wednesday, February 22, 2012 3:03 PM > > To: JMeter Users List > > Subject: Re: Cookie manager not getting more than one set-cookie per > > response? > > > > On 22 February 2012 20:53, Robin D. Wilson < <mailto:rwils...@gmail.com> > rwils...@gmail.com> wrote: > > > I have a test case that used to work fine in JMeter 2.4 (still does). > > But it started failing when I upgraded to JMeter 2.6. > > > > > > The failure is a direct result of the test case failing to find a > cookie > > that is set early in the test samples. It is from a > > > response that contains 3 "Set-Cookie:" headers. Apparently, JM2.6 > Cookie > > Manager is only storing the first cookie being set in the > > > response. Subsequent "Set-Cookie:" response headers are being ignored. > > > > > > I am able to work around the issue by using a Regular Expression > > Extractor and getting the cookies manually through a regular > > > expression, but this means that I have to go back a re-code a bunch of > > test cases. > > > &g
Re: JMS Publisher test versus IBM Performance Harness for Java Message Service
Can you create a Bugzilla and attach your test case ? Thanks Regards Philippe On Sun, Feb 26, 2012 at 2:42 PM, Bruno Antunes wrote: > Just one correction. Test period was 60 seconds (one minute) > > regards, > -- > Bruno Antunes > Software Engineer > > > On Fri, Feb 24, 2012 at 6:38 PM, Bruno Antunes > wrote: > > > I have performed a very simple test, using JMS Publisher sampler on > > JMeter, and a "jms.r11.Sender" test case on Harness , with similar test > > conditions: > > * No ramp-up, only one thread > > * same message size (1000 bytes) > > * same destination queue > > * same duration test period (60 minutes) > > * running as fast as possible (no delay between samples) > > > > From this tests, I observe that Harness generates almost 90% more > messages > > than JMeter. As such we achieve greater throughput with one thread in a > one > > minute test using Harness > > > > In order to get same throughput for jmeter, we must configure more > threads. > > > > Tested with JMeter 2.6, and IBM Performance Harness for Java Message > > Service 1.2 ( > > > https://www.ibm.com/developerworks/community/groups/service/html/communityview?communityUuid=1c020fe8-4efb-4d70-afb7-0f561120c2aa > > ) > > > > Any ideas of why JMeter generates much less load? I have even run jmeter > > with no gui, and saves results in CSV format. > > > > -- > > Bruno Antunes > > Software Engineer > > > -- Cordialement. Philippe Mouawad.
Re: JMS Publisher test versus IBM Performance Harness for Java Message Service
Hello, In fact the BIG difference comes from the fact that JMeter with your test case uses PERSISTENT messages while your perfharness Test uses NON PERSISTENT messages. I made a test on my machine with a local AMQ 5.5.0 server: JMETER : Generate Summary Results = 199630 in 60,1s = 3319,2/s Avg: 0 Min: 0 Max: 695 Err: 0 (0,00%) Perfharness : totalIterations=219579,avgDuration=60,12,maxrateR=3933,03 Note that if I add a setup Thread Group that runs one sample (to warm up ) (which is what is done by Perfharness I think), I get : Generate Summary Results = 210270 in 60,6s = 3469,2/s Avg: 0 Min: 0 Max: 841 Err: 0 (0,00%) I think documentation should be clearer about this PERSISTENT settings and we should add a new Option to enable NON PERSISTENT messages Regards Philippe M. http://www.ubik-ingenierie.com On Sun, Feb 26, 2012 at 5:23 PM, Bruno Antunes wrote: > Reported > https://issues.apache.org/bugzilla/show_bug.cgi?id=52773 > > -- > Bruno Antunes > Software Engineer > > On Sun, Feb 26, 2012 at 1:45 PM, Philippe Mouawad < > philippe.moua...@gmail.com> wrote: > > > Can you create a Bugzilla and attach your test case ? > > > > Thanks > > Regards > > Philippe > > > > On Sun, Feb 26, 2012 at 2:42 PM, Bruno Antunes > > wrote: > > > > > Just one correction. Test period was 60 seconds (one minute) > > > > > > regards, > > > -- > > > Bruno Antunes > > > Software Engineer > > > > > > > > > On Fri, Feb 24, 2012 at 6:38 PM, Bruno Antunes > > > wrote: > > > > > > > I have performed a very simple test, using JMS Publisher sampler on > > > > JMeter, and a "jms.r11.Sender" test case on Harness , with similar > > test > > > > conditions: > > > > * No ramp-up, only one thread > > > > * same message size (1000 bytes) > > > > * same destination queue > > > > * same duration test period (60 minutes) > > > > * running as fast as possible (no delay between samples) > > > > > > > > From this tests, I observe that Harness generates almost 90% more > > > messages > > > > than JMeter. As such we achieve greater throughput with one thread > in a > > > one > > > > minute test using Harness > > > > > > > > In order to get same throughput for jmeter, we must configure more > > > threads. > > > > > > > > Tested with JMeter 2.6, and IBM Performance Harness for Java Message > > > > Service 1.2 ( > > > > > > > > > > https://www.ibm.com/developerworks/community/groups/service/html/communityview?communityUuid=1c020fe8-4efb-4d70-afb7-0f561120c2aa > > > > ) > > > > > > > > Any ideas of why JMeter generates much less load? I have even run > > jmeter > > > > with no gui, and saves results in CSV format. > > > > > > > > -- > > > > Bruno Antunes > > > > Software Engineer > > > > > > > > > > > > > > > -- > > Cordialement. > > Philippe Mouawad. > > > -- Cordialement. Philippe Mouawad.
Re: JMS Publisher test versus IBM Performance Harness for Java Message Service
Hello, I added option, you will find it in next upcoming nightly (r1293947 or superior) build at: - https://builds.apache.org/job/JMeter-trunk/lastSuccessfulBuild/artifact/trunk/dist/ Regards Philippe M. http://www.ubik-ingenierie.com On Sun, Feb 26, 2012 at 10:42 PM, Philippe Mouawad < philippe.moua...@gmail.com> wrote: > Hello, > In fact the BIG difference comes from the fact that JMeter with your test > case uses PERSISTENT messages while your perfharness Test uses NON > PERSISTENT messages. > > I made a test on my machine with a local AMQ 5.5.0 server: > JMETER : Generate Summary Results = 199630 in 60,1s = 3319,2/s Avg: 0 > Min: 0 Max: 695 Err: 0 (0,00%) > Perfharness : totalIterations=219579,avgDuration=60,12,maxrateR=3933,03 > > Note that if I add a setup Thread Group that runs one sample (to warm up ) > (which is what is done by Perfharness I think), I get : > Generate Summary Results = 210270 in 60,6s = 3469,2/s Avg: 0 Min: > 0 Max: 841 Err: 0 (0,00%) > > > I think documentation should be clearer about this PERSISTENT settings and > we should add a new Option to enable NON PERSISTENT messages > Regards > Philippe M. > http://www.ubik-ingenierie.com > > > On Sun, Feb 26, 2012 at 5:23 PM, Bruno Antunes > wrote: > >> Reported >> https://issues.apache.org/bugzilla/show_bug.cgi?id=52773 >> >> -- >> Bruno Antunes >> Software Engineer >> >> On Sun, Feb 26, 2012 at 1:45 PM, Philippe Mouawad < >> philippe.moua...@gmail.com> wrote: >> >> > Can you create a Bugzilla and attach your test case ? >> > >> > Thanks >> > Regards >> > Philippe >> > >> > On Sun, Feb 26, 2012 at 2:42 PM, Bruno Antunes >> > wrote: >> > >> > > Just one correction. Test period was 60 seconds (one minute) >> > > >> > > regards, >> > > -- >> > > Bruno Antunes >> > > Software Engineer >> > > >> > > >> > > On Fri, Feb 24, 2012 at 6:38 PM, Bruno Antunes >> > > wrote: >> > > >> > > > I have performed a very simple test, using JMS Publisher sampler on >> > > > JMeter, and a "jms.r11.Sender" test case on Harness , with similar >> > test >> > > > conditions: >> > > > * No ramp-up, only one thread >> > > > * same message size (1000 bytes) >> > > > * same destination queue >> > > > * same duration test period (60 minutes) >> > > > * running as fast as possible (no delay between samples) >> > > > >> > > > From this tests, I observe that Harness generates almost 90% more >> > > messages >> > > > than JMeter. As such we achieve greater throughput with one thread >> in a >> > > one >> > > > minute test using Harness >> > > > >> > > > In order to get same throughput for jmeter, we must configure more >> > > threads. >> > > > >> > > > Tested with JMeter 2.6, and IBM Performance Harness for Java >> Message >> > > > Service 1.2 ( >> > > > >> > > >> > >> https://www.ibm.com/developerworks/community/groups/service/html/communityview?communityUuid=1c020fe8-4efb-4d70-afb7-0f561120c2aa >> > > > ) >> > > > >> > > > Any ideas of why JMeter generates much less load? I have even run >> > jmeter >> > > > with no gui, and saves results in CSV format. >> > > > >> > > > -- >> > > > Bruno Antunes >> > > > Software Engineer >> > > > >> > > >> > >> > >> > >> > -- >> > Cordialement. >> > Philippe Mouawad. >> > >> > > > > -- > Cordialement. > Philippe Mouawad. > > > > -- Cordialement. Philippe Mouawad.
Re: JMS Publisher test versus IBM Performance Harness for Java Message Service
See this page for installation instructions and usage limits as pointed by Sebb : http://jmeter.apache.org/nightly.html Regards Philippe On Monday, February 27, 2012, sebb wrote: > On 26 February 2012 22:24, Philippe Mouawad > > > wrote: > > Hello, > > I added option, you will find it in next upcoming nightly (r1293947 or > > superior) build at: > > > > - > > > https://builds.apache.org/job/JMeter-trunk/lastSuccessfulBuild/artifact/trunk/dist/ > > Note that nightly builds are provided AS IS. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Performance difference between released 2.6 and nighly r1095243
Hello, I suggest you open a Bugzilla issue attaching your Test Plan. Do you use GUI testing or NON GUI ? Remote or non remote ? Are you using any third party plugin ? Regards Philippe On Tue, Feb 28, 2012 at 4:00 PM, ivan.rancati wrote: > Hello, > > I've been using a nightly build (r1095243) for a while to develop a test > plan that runs against Jetty servers. > Today I downloaded the 2.6 release, tried the .jmx with 80 concurrent users > and the number of processed requests/second was way off. > With r1095243 I could get approx 125 requests/seconds, with 2.6 released > build approx 30 requests/second. > JMeter is run on the same computer (Debian) with the same Java vm (Java(TM) > SE Runtime Environment build 1.6.0_26-b03) > > A quick diff on bin/jmeter shows this difference > o1@vsrv005:~/bin$ diff jmeter/bin/jmeter > jakarta-jmeter-r1095243/bin/jmeter > 77,78c77,78 > < # Increase MaxPermSize if you use a lot of Javascript in your Test Plan : > < PERM="-XX:PermSize=64m -XX:MaxPermSize=128m" > --- > > # PermSize is a scam. Leave it like this: > > PERM="-XX:PermSize=64m -XX:MaxPermSize=64m" > > I will now try to change MaxPermSize to 64m, but I doubt that would cause a > 4x difference in reported performance. I am also the only person currently > using the test server I am running against, so the load is quite under > control. > > Diffing jmeter.properties show differences, but they seem to be for LAF and > other settings that should not affect performance. In both the nightly and > the released version, the only customization I did was > onload.expandtree=false > > Other than changing MaxPermSize to 64m, is there any other obvious thing to > try? > > thanks > Ivan > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Performance-difference-between-released-2-6-and-nighly-r1095243-tp5522066p5522066.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > ----- > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Performance difference between released 2.6 and nighly r1095243
It would be useful also to join to Bugzilla thread dumps of 2.6 run (5 TD with 5 seconds intervall) . Call kill -3 Also add these options: -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -Xverbosegclog: And join the output file to Bugzilla. Thank you very much Philippe M. http://www.ubik-ingenierie.com On Wed, Feb 29, 2012 at 9:57 AM, ivan.rancati wrote: > Hello, > good point about entering a Bugzilla issue. I would have to make a few > changes to the test plan and see how I can expose externally the server > under test, though, as there is confidential information. > > more details > - I am using GUI. The test plan has only one active listener (Aggregate > Report) > There are two CSV Data set configs for two files (each 9 lines long) > The request is a plain http call, that uses values read from the files as > part of the GET request > - Non remote > - No 3rd party plugin > - I ran the test plan under release 2.6 and then under r1095243 again. top > showed a higher cpu usage with r1095243 > > thanks, > Ivan > > > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Performance-difference-between-released-2-6-and-nighly-r1095243-tp5522066p5524406.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Performance difference between released 2.6 and nighly r1095243
Hello, This setting is true by default so it works the same as old versions. And if working fine it's job is to reuse the SSL context providing better performances than set to false. So I don't think it's the explanation unless it was tweaked to false in your current configuration. What makes you think it's the cause of issues ? Thanks Regards Philippe http://www.ubik-ingenierie.com On Wed, Feb 29, 2012 at 3:59 PM, ivan.rancati wrote: > hi Philippe, > > I think I have found the difference between the nightly build and the > released 2.6 > > While running with the gc switches that you suggested, I found this line in > the jmeter.log of the released 2.6 > jmeter.protocol.http.sampler.HTTPSamplerBase: Reuse SSL session context on > subsequent iterations: true > > Nightly: if there is an authorization manager, it will attempt basic > authentication only on requests where the server sends a challenge > Released 2.6: if there is an authorization manager, it will always attempt > basic authentication. The api that I am testing is not sending any > username/password. > > Now, I think that entering a Bugzilla issue is probably not required. > However, I did not see a mention of this change on > http://jmeter.apache.org/changes.html, so it's possible that other users > will find the same problem. > > I think the setting in jmeter.properties that changed is > #https.use.cached.ssl.context=true > > If I get it right, the proper solution, if one initial ssl http call is > required, is to put the authorization manager only in the relevant Thread > Group, otherwise it will have a global effect (i.e. also on http calls > where > the server does not challenge). > > Or am I missing something obvious? > > thanks > Ivan > > > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Performance-difference-between-released-2-6-and-nighly-r1095243-tp5522066p5525155.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Performance difference between released 2.6 and nighly r1095243
Hello, I tried to reproduce your issue with the info you provided but I am not able to. It would be useful to submit a simplified test plan that reproduces the issue so we can see where it comes from. Thanks Regards Philippe On Wed, Feb 29, 2012 at 4:40 PM, ivan.rancati wrote: > Hello, > to summarize: > > - I did not tweak https.use.cached.ssl.context. Neither in the nightly, nor > in the released build. No changes to jmeter.properties, or > system.properties, I left the files untouched, as they were in the > downloaded .zip file. > > - In my test plan, I had some https calls. I disabled all of them long ago, > but I left the authorization manager, as I thought it would not be used > anyway. > With the nightly build: test plan runs fast, 240 req/second. With the 2.6 > release build, same test plan: 15 req/second. > > - Now I disabled the (unused) authorization manager. Test plan runs fast > with both 2.6 release and nightly build. > > regards, > Ivan > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Performance-difference-between-released-2-6-and-nighly-r1095243-tp5522066p5525278.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: How to use/enable Keystore Configuration (rather than SSL Manager)?
Hello, You can achieve the first by setting: - HTTPClient 3.1 or 4 as implementation - setting https.use.cached.ssl.context=false Regards Philippe M. http://www.ubik-ingenierie.com On Fri, Mar 9, 2012 at 7:59 AM, wrote: > Hi, > > I am using Jmeter 2.6, and want to have the HTTPS requests that Jmeter > sends use different client certificates that I have in a JKS keystore which > has 3 client certs/keys in it.. > > I've been able to configure a test plan that works, but it is only sending > one of the certs in the JKS. I added a Keystore configuration and set > start to 1 and last to 3, but when I run the test plan, I can see that it's > still using only the one client cert. > > Besides adding the Keystore Configuration to the thread group, is there > something else that I need to do to get Jmeter to use the client certs, > one-by-one for each test request? > > Thanks, > Jim > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: How to use/enable Keystore Configuration (rather than SSL Manager)?
Hello, In fact it seems this feature only works with HTTPCLient 3.1. See: - https://issues.apache.org/bugzilla/show_bug.cgi?id=52871 Thank you Regards Philippe M. http://www.ubik-ingenierie.com On Fri, Mar 9, 2012 at 12:56 PM, wrote: > Philippe, > > Thanks. I'll try again later, but it seems like I only get the multiple > certs behavior with HTTPClient 3.1, and not HttpClient 4? > > Jim > > > Philippe Mouawad wrote: > > Hello, > > > > You can achieve the first by setting: > > - HTTPClient 3.1 or 4 as implementation > > - setting https.use.cached.ssl.context=false > > > > Regards > > Philippe M. > > http://www.ubik-ingenierie.com > > > > > > > > On Fri, Mar 9, 2012 at 7:59 AM, wrote: > > > > > Hi, > > > > > > I am using Jmeter 2.6, and want to have the HTTPS requests that Jmeter > > > sends use different client certificates that I have in a JKS keystore > which > > > has 3 client certs/keys in it.. > > > > > > I've been able to configure a test plan that works, but it is only > sending > > > one of the certs in the JKS. I added a Keystore configuration and set > > > start to 1 and last to 3, but when I run the test plan, I can see that > it's > > > still using only the one client cert. > > > > > > Besides adding the Keystore Configuration to the thread group, is there > > > something else that I need to do to get Jmeter to use the client certs, > > > one-by-one for each test request? > > > > > > Thanks, > > > Jim > > > > > > - > > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > > > > > > > > -- > > Cordialement. > > Philippe Mouawad. > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: How to use/enable Keystore Configuration (rather than SSL Manager)?
Hello, It should be fixed now in r1299216. Lookt at nightly builds: - http://jmeter.apache.org/nightly.html Regards Philippe M. http://www.ubik-ingenierie.com On Fri, Mar 9, 2012 at 2:16 PM, Philippe Mouawad wrote: > Hello, > In fact it seems this feature only works with HTTPCLient 3.1. > See: > >- https://issues.apache.org/bugzilla/show_bug.cgi?id=52871 > > > Thank you > > Regards > Philippe M. > http://www.ubik-ingenierie.com > > On Fri, Mar 9, 2012 at 12:56 PM, wrote: > >> Philippe, >> >> Thanks. I'll try again later, but it seems like I only get the multiple >> certs behavior with HTTPClient 3.1, and not HttpClient 4? >> >> Jim >> >> >> Philippe Mouawad wrote: >> > Hello, >> > >> > You can achieve the first by setting: >> > - HTTPClient 3.1 or 4 as implementation >> > - setting https.use.cached.ssl.context=false >> > >> > Regards >> > Philippe M. >> > http://www.ubik-ingenierie.com >> > >> > >> > >> > On Fri, Mar 9, 2012 at 7:59 AM, wrote: >> > >> > > Hi, >> > > >> > > I am using Jmeter 2.6, and want to have the HTTPS requests that Jmeter >> > > sends use different client certificates that I have in a JKS keystore >> which >> > > has 3 client certs/keys in it.. >> > > >> > > I've been able to configure a test plan that works, but it is only >> sending >> > > one of the certs in the JKS. I added a Keystore configuration and set >> > > start to 1 and last to 3, but when I run the test plan, I can see >> that it's >> > > still using only the one client cert. >> > > >> > > Besides adding the Keystore Configuration to the thread group, is >> there >> > > something else that I need to do to get Jmeter to use the client >> certs, >> > > one-by-one for each test request? >> > > >> > > Thanks, >> > > Jim >> > > >> > > --------- >> > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org >> > > For additional commands, e-mail: user-h...@jmeter.apache.org >> > > >> > > >> > >> > >> > -- >> > Cordialement. >> > Philippe Mouawad. >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org >> For additional commands, e-mail: user-h...@jmeter.apache.org >> >> > > > -- > Cordialement. > Philippe Mouawad. > > > > -- Cordialement. Philippe Mouawad.
Re: Recording proxy truncates cookie names. Bug?
Hello, This is related to HTTPS spoofing. Since 2.4 it's better not to use Spoofing when recording HTTPS traffic. Regards Philippe M. http://www.ubik-ingenierie.com On Mon, Mar 12, 2012 at 9:07 AM, David Parks wrote: > When recording using the JMeter proxy (v2.6) against an https site we are > seeing cookie names truncated in the browser. > > > > Specifically, all cookies that start with 'secure' get the word 'secure' > truncated. > > > > Example: > > During recording, when the site sets a cookie named 'secure_token', the > cookie that shows up in the browser is '_token' > > > > We tested this with another cookie 'secure_test_cookie', again, the browser > ends up with a cookie called '_test_cookie'. Other cookie names seem > unaffected. > > > > This only happens when recording through the JMeter proxy. Normal site > operation stores the correct cookie name. > > > > Any thoughts from anyone on this weird behavior? > > -- Cordialement. Philippe Mouawad.
Re: Recording proxy truncates cookie names. Bug?
Hello, There was indeed a bug even if spoofing was not active. Issues : - https://issues.apache.org/bugzilla/show_bug.cgi?id=52886 - https://issues.apache.org/bugzilla/show_bug.cgi?id=52885 Are now fixed in r1299631. You can get nightly build to test here: - http://jmeter.apache.org/nightly.html Regards Philippe M. http://www.ubik-ingenierie.com On Mon, Mar 12, 2012 at 10:40 AM, David Parks wrote: > Thanks for the fast response! > > I don't have HTTPS spoofing checked on the JMeter Proxy, nor anything in > the > 'Only spoof URLs maching:' field. > > Can you explain more about where you're going with this thought? > > Thanks, > Dave > > > -Original Message- > From: Philippe Mouawad [mailto:philippe.moua...@gmail.com] > Sent: Monday, March 12, 2012 3:28 PM > To: JMeter Users List > Subject: Re: Recording proxy truncates cookie names. Bug? > > Hello, > This is related to HTTPS spoofing. > > Since 2.4 it's better not to use Spoofing when recording HTTPS traffic. > > Regards > Philippe M. > http://www.ubik-ingenierie.com > > On Mon, Mar 12, 2012 at 9:07 AM, David Parks > wrote: > > > When recording using the JMeter proxy (v2.6) against an https site we > > are seeing cookie names truncated in the browser. > > > > > > > > Specifically, all cookies that start with 'secure' get the word 'secure' > > truncated. > > > > > > > > Example: > > > > During recording, when the site sets a cookie named 'secure_token', > > the cookie that shows up in the browser is '_token' > > > > > > > > We tested this with another cookie 'secure_test_cookie', again, the > > browser ends up with a cookie called '_test_cookie'. Other cookie > > names seem unaffected. > > > > > > > > This only happens when recording through the JMeter proxy. Normal site > > operation stores the correct cookie name. > > > > > > > > Any thoughts from anyone on this weird behavior? > > > > > > > -- > Cordialement. > Philippe Mouawad. > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Did I just find a bug?
Hello, I think there is an issue. I suggest that you open a Bug attaching your test plan Regards Philippe M. http://www.ubik-ingenierie.com On Tue, Mar 13, 2012 at 8:48 AM, Joe McCall wrote: > I wanted to confirm this behavior before filing a bug report. I'm > running JMeter 2.6 on Windows 7 x64. My service accepts a PUT request > with a file as the body. According to the documentation this is > accomplished by setting up an HTTP Sampler with no parameters and one > unnamed file to include with the request. > > When I run this however I get a NullPointerException: > > java.lang.NullPointerException: charsetName at > java.lang.String.(Unknown Source) at > java.lang.String.(Unknown Source) at > > org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sendPutData(HTTPHC4Impl.java:1067) > at > org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:274) > at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62) > at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1054) > at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1043) > at > org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:416) > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271) > at java.lang.Thread.run(Unknown Source) > > After some searching to no avail I checked out the source code and > added some logging. The error occurs in HTTPHC4Impl.java: > >// If the request entity is repeatable, we can send it first to >// our own stream, so we can return it >if(put.getEntity().isRepeatable()) { >ByteArrayOutputStream bos = new ByteArrayOutputStream(); >put.getEntity().writeTo(bos); >bos.flush(); >// We get the posted bytes using the charset that was > used to create them >putBody.append(new String(bos.toByteArray(), >(String) > putParams.getParameter(CoreProtocolPNames.HTTP_CONTENT_CHARSET))); >bos.close(); >} > > getParameter() is being called on a parameter that is only set if > getSendParameterValuesAsPostBody() is true. I copy/pasted that section > of code into the if statement above (if (!hasArguments() && > getSendFileAsPostBody()) and ran the build. It seemed to work fine as > long as I specified a content-encoding (in my case, UTF-8). > > I can submit a patch if requested, but be warned I'm not really up to > date with the coding standards used in apache projects. > > Thanks for your consideration! > > Joe > > ----- > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Default value for collapse
Hello, This is very reachable utopia :-) Regarding focus although, today some added components require focus: - ThreadGroupGui in Thread field at init of JMeter So opening a Test plan that contains Thread Group will focus on the "Number of threads (users)" field. So implementing this new behaviour can disturb some users (not me :-) ) But I also vote for what Oliver proposed. Regards Philippe M. On Tue, Mar 13, 2012 at 9:36 PM, Robin D. Wilson wrote: > I agree with this! > > -- > Robin D. Wilson > > > > On Mar 13, 2012, at 2:50 PM, Oliver Lloyd > wrote: > > > Actually, I also find myself pressing CMD minus every time I open a > testplan. > > > > In an ideal world, the testplan would open with the tree expanded to the > > testplan level and no further. > > > > In JMeter utopia, the focus would also default to the root of the tree so > > when I hit the arrow keys they let me traverse without having to mouse > click > > their first. > > > > - > > http://www.http503.com/ > > -- > > View this message in context: > http://jmeter.512774.n5.nabble.com/Default-value-for-collapse-tp5560230p5562360.html > > Sent from the JMeter - User mailing list archive at Nabble.com. > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > ----- > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Did I just find a bug?
Hello, Issue https://issues.apache.org/bugzilla/show_bug.cgi?id=52897 you opened is now fixed in nightly build. - http://jmeter.apache.org/nightly.html It would be nice from you to check that fix is OK for you and comment the bug. Thanks Regards Philippe M. http://www.ubik-ingenierie.com On Tue, Mar 13, 2012 at 1:53 PM, Philippe Mouawad < philippe.moua...@gmail.com> wrote: > Hello, > I think there is an issue. > I suggest that you open a Bug attaching your test plan > > Regards > Philippe M. > http://www.ubik-ingenierie.com > > > On Tue, Mar 13, 2012 at 8:48 AM, Joe McCall < > joemcc...@intrepid-networks.com> wrote: > >> I wanted to confirm this behavior before filing a bug report. I'm >> running JMeter 2.6 on Windows 7 x64. My service accepts a PUT request >> with a file as the body. According to the documentation this is >> accomplished by setting up an HTTP Sampler with no parameters and one >> unnamed file to include with the request. >> >> When I run this however I get a NullPointerException: >> >> java.lang.NullPointerException: charsetName at >> java.lang.String.(Unknown Source) at >> java.lang.String.(Unknown Source) at >> >> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sendPutData(HTTPHC4Impl.java:1067) >> at >> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:274) >> at >> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62) >> at >> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1054) >> at >> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1043) >> at >> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:416) >> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271) >> at java.lang.Thread.run(Unknown Source) >> >> After some searching to no avail I checked out the source code and >> added some logging. The error occurs in HTTPHC4Impl.java: >> >>// If the request entity is repeatable, we can send it first to >>// our own stream, so we can return it >>if(put.getEntity().isRepeatable()) { >>ByteArrayOutputStream bos = new ByteArrayOutputStream(); >>put.getEntity().writeTo(bos); >>bos.flush(); >>// We get the posted bytes using the charset that was >> used to create them >>putBody.append(new String(bos.toByteArray(), >>(String) >> putParams.getParameter(CoreProtocolPNames.HTTP_CONTENT_CHARSET))); >>bos.close(); >>} >> >> getParameter() is being called on a parameter that is only set if >> getSendParameterValuesAsPostBody() is true. I copy/pasted that section >> of code into the if statement above (if (!hasArguments() && >> getSendFileAsPostBody()) and ran the build. It seemed to work fine as >> long as I specified a content-encoding (in my case, UTF-8). >> >> I can submit a patch if requested, but be warned I'm not really up to >> date with the coding standards used in apache projects. >> >> Thanks for your consideration! >> >> Joe >> >> - >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org >> For additional commands, e-mail: user-h...@jmeter.apache.org >> >> > > > -- > Cordialement. > Philippe Mouawad. > > > > -- Cordialement. Philippe Mouawad.
Re: GUI problem with new "Post Body" feature of Http Sampler
Hello, Hello I tested your case and I can reproduce it in JMEter 2.6 but not with Trunk, cause I think it has been fixed with : - https://issues.apache.org/bugzilla/show_bug.cgi?id=52613 This issue is fixed in trunk. Regards Philippe On Mon, Mar 19, 2012 at 5:15 PM, Adrian Speteanu wrote: > Hi guys, > > Got a weird one for you today. When entering non-ASCII characters in the > Post Body section of the Http Sampler, the structure of the test plan is > corrupted. The GUI fails to update and I've found out the hard way: when > quick saving (I've looked in the saved jmx, I think, the structure is not > proper). Used the following test char-group to reproduce this one: > > > !#$%_?§ÄäÖöÜüßÁÀÂÃÇÉÈÊÍÌÎÏÑÓÒÔÕÚÙÛÝáàâãçéèêíìîïñóòôõúùûýÅÆÐËØßþåæðëøµÞ£ƒ®©¥¿ > > -- > My plan looks like: > + thread group > ++ http request [gui configs: Method = POST / Content encoding = utf-8 > / use "Post Body" to add raw post data of multi-part type] > +++ Pre-processors / Counters / Http Header Manager (defines custom > multi-part content type & boundary) / Assertions / Timer / Regex / Xpath > checker > * the last hierarchic level doesn't affect reproduction of issue > This is needed because some basics tweaks of the post data must be made > before making the requests. > > After saving the plan, the jmx seems to be messed up, I think the nodes are > broken or not properly formatted. > Other details: ubuntu, > > Two problems: > 1. The raw field should work with any characters from the encoding > specified. Shouldn't it? >- I thought of a quick fix here, to paste the URI-encoded version of > the string > > 2. This issue messed up some changes that are rather important. Do you > have any suggestion on what tools to use to repair an XML? :) > I've tried removing the content of the Raw Post Body or the entire sampler > that caused the problem, but the first doesn't solve the problem and the > second only messes the test plan more. > > Regards, > Adrian > -- Cordialement. Philippe Mouawad.
Re: Using multiple ActiveMQ MessageBroker version in parallel and testing general accessibility of message broker?
Hello, copying All these différent versions of amq is a bad idéa as you may have conflicts. You should either pût the latest version if it's compatible with oldest or use différent instances of jmeter containing each version alone. Regarding Health not to m'y knowledge in standard jmeter, look for Jmx advisory messages in amq. Regards Philippe Http://www.ubik-Ingenierie.com On Tuesday, March 20, 2012, Ben Stover wrote: > I want to use JMeter to send Messages to the well know ActiveMQ Message Broker. > > 1.) However we use currently various different versions of ActiveMQ in parallel (on different computers): > v5.3.0 > v5.4 > v5.5.1 > > As far as I know JMeter needs the ActiveMQ libraries in its /lib subdirectory. > > So do I have to copy ALL libraries > > activemq-all-5.3.0.jar > activemq-all-5.4.0.jar > activemq-all-5.5.1.jar > > into JMeter or is the latest *.jar sufficient (even for older versions of ActiveMQ)? > Can the *.jar libs co-exist in JMeter at all? In other words does JMeter automatically recongize the target version of ActiveMQ > and take the appropriate corresponding *.jar? > > 2.) Before running the actual test I want to let JMeter (automatically) check the general accessibility of the ActiveMQ message > broker. If it is up and running. > > Is there somewhere a function in JMeter "check message broker" which takes the BrokerURLs from the JNDI Properties > of all active ThreadGroups and check this general availability WITHOUT sending any particular request? > > Thank you > Ben > > > > > > > > > > > > > > > > > > > > > > > > > > > --------- > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Display total execution time for test plan
atistics then in GUI (how > > long > > >>> the test ran). You can also schedule a test to run for a certain > amount > > >>> of > > >>> time, or starting / stopping at certain hours (so you don't have to > > worry > > >>> about this stuff). > > >>> > > >>> If you are interested in response times, however, the sum of all > > >>> requests, > > >>> then things get more complicated. > > >>> > > >>> Adrian > > >>> > > >>> On Tue, Mar 20, 2012 at 6:21 PM, Erik Pragt > > >>> wrote: > > >>> > > >>> Hi all, > > >>>> > > >>>> I've created a test plan to put some load on a flow of pages we > have. > > >>>> I'm quite new to JMeter, and I have a small question on how to get > the > > >>>> information I'm looking for. I've got a working test plan, I can see > > >>>> the samples, the throughput, etc, but I can't find anywhere what the > > >>>> time was to execute this testplan, or a single loop of this testplan > > >>>> when I execute it multiple times. > > >>>> > > >>>> Can someone give me a small heads up how I can record and view this > > >>>> time? > > >>>> > > >>>> Kind regards, > > >>>> > > >>>> Erik Pragt > > >>>> > > >>>> --**--** > > >>>> - > > >>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.**apache.org< > > user-unsubscr...@jmeter.apache.org> > > >>>> For additional commands, e-mail: user-h...@jmeter.apache.org > > >>>> > > >>>> > > >>>> --**--** > > >> - > > >> To unsubscribe, e-mail: user-unsubscribe@jmeter.**apache.org< > > user-unsubscr...@jmeter.apache.org> > > >> For additional commands, e-mail: user-h...@jmeter.apache.org > > >> > > >> > > > > > > -- > > > > > > Ing. Sergio Boso > > > > > > In caso di erronea ricezione da parte di persona diversa, siete pregati > > di > > > eliminare il messaggio e i suoi allegati in modo definitivo dai vostri > > > archivi e di volercelo comunicare immediatamente restituendoci il > > messaggio > > > via e-mail al seguente indirizzosergio@**bosoconsulting.it< > > indirizzoser...@bosoconsulting.it> > > sergiob...@yahoo.it> > > > L’interessato può, inoltre, esercitare tutti i diritti di accesso sui > > > propri dati previsti dal decreto 196/2003, tra i quali i diritti di > > > rettifica, aggiornamento e cancellazione, inviando un messaggio all’ > > > indirizzo:sergio@**bosoconsulting.it< > > indirizzo%3aser...@bosoconsulting.it> > > sergiob...@yahoo.it> > > > > > > > > > > > > > > > > > > > > > > --**--**- > > > To unsubscribe, e-mail: user-unsubscribe@jmeter.**apache.org< > > user-unsubscr...@jmeter.apache.org> > > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > > > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: JMeter crash with JMSSampler NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
6) >at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271) >at java.lang.Thread.run(Unknown Source) > > 2012/03/25 14:44:14 INFO - jmeter.threads.JMeterThread: Thread finished: > testsuite (send 1 XML msg; request only) 1-1 > 2012/03/25 14:44:14 INFO - jmeter.engine.StandardJMeterEngine: Ending > thread testsuite (send 1 XML msg; request only) 1- > 1 > 2012/03/25 14:44:14 INFO - jmeter.engine.StandardJMeterEngine: Notifying > test listeners of end of test > 2012/03/25 14:44:14 INFO - jmeter.gui.util.JMeterMenuBar: > setRunning(false,*local*) > 2012/03/25 14:44:14 INFO - jmeter.engine.StandardJMeterEngine: Test has > ended on host null > 2012/03/25 14:45:33 INFO - jmeter.engine.StandardJMeterEngine: Running > the test! > 2012/03/25 14:45:33 INFO - jmeter.gui.util.JMeterMenuBar: > setRunning(true,*local*) > 2012/03/25 14:45:33 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 > threads for group testsuite (send 1 XML msg; > request only). > 2012/03/25 14:45:33 INFO - jmeter.engine.StandardJMeterEngine: Thread > will continue on error > 2012/03/25 14:45:33 INFO - jmeter.engine.StandardJMeterEngine: All > threads have been started > 2012/03/25 14:45:33 INFO - jmeter.threads.JMeterThread: Thread started: > testsuite (send 1 XML msg; request only) 1-1 > 2012/03/25 14:45:33 ERROR - jmeter.protocol.jms.sampler.JMSSampler: Could > not initialize class > org.apache.activemq.ActiveMQPrefetchPolicy java.lang.NoClassDefFoundError: > Could not initialize class > org.apache.activemq.ActiveMQPrefetchPolicy >at > org.apache.activemq.ActiveMQConnectionFactory.(ActiveMQConnectionFactory.java:88) >at > org.apache.activemq.ActiveMQConnectionFactory.(ActiveMQConnectionFactory.java:131) >at > org.apache.activemq.ActiveMQConnectionFactory.(ActiveMQConnectionFactory.java:127) >at > org.apache.activemq.jndi.ActiveMQInitialContextFactory.createConnectionFactory > (ActiveMQInitialContextFactory.java:202) >at > org.apache.activemq.jndi.ActiveMQInitialContextFactory.createConnectionFactory > (ActiveMQInitialContextFactory.java:141) >at > org.apache.activemq.jndi.ActiveMQInitialContextFactory.getInitialContext(ActiveMQInitialContextFactory.java:66) >at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) >at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) >at javax.naming.InitialContext.init(Unknown Source) >at javax.naming.InitialContext.(Unknown Source) >at > org.apache.jmeter.protocol.jms.sampler.JMSSampler.getInitialContext(JMSSampler.java:423) >at > org.apache.jmeter.protocol.jms.sampler.JMSSampler.threadStarted(JMSSampler.java:318) >at > org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:579) >at > org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:974) >at > org.apache.jorphan.collections.HashTree.traverse(HashTree.java:959) >at > org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:551) >at > org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:539) >at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:266) >at java.lang.Thread.run(Unknown Source) > > 2012/03/25 14:45:33 WARN - jmeter.protocol.jms.sampler.JMSSampler: > Session may not be null while creating message > java.lang.IllegalStateException: Session may not be null while creating > message >at > org.apache.jmeter.protocol.jms.sampler.JMSSampler.createMessage(JMSSampler.java:179) >at > org.apache.jmeter.protocol.jms.sampler.JMSSampler.sample(JMSSampler.java:140) >at > org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:416) >at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271) > at java.lang.Thread.run(Unknown Source) > > 2012/03/25 14:45:33 INFO - jmeter.threads.JMeterThread: Thread finished: > testsuite (send 1 XML msg; request only) 1-1 > 2012/03/25 14:45:33 INFO - jmeter.engine.StandardJMeterEngine: Ending > thread testsuite (send 1 XML msg; request only) 1- > 1 > 2012/03/25 14:45:33 INFO - jmeter.engine.StandardJMeterEngine: Notifying > test listeners of end of test > 2012/03/25 14:45:33 INFO - jmeter.gui.util.JMeterMenuBar: > setRunning(false,*local*) > 2012/03/25 14:45:33 INFO - jmeter.engine.StandardJMeterEngine: Test has > ended on host null > > > > > > > > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: SSL and HttpClient
Hello, See Bug 52871 - Multiple Certificates not working with HTTP Client 4. It is currently fixed in nightly builds. Regards Philippe http://www.ubik-ingenierie.com On Mon, Apr 16, 2012 at 11:57 AM, Shmuel Krakower wrote: > Hi, > I am trying to use SSL private key with HTTPS samplers. > It seems like only JAVA and HttpClient3.1 implementations are using the key > defined on SSL manager, while newer HttpClient4 Implementation doesn't. > > Is it only broken for me, or should I open a bug on this? > (Currently I can live with the older implementations, but in future > scenarios, I may want to use HttpClient4) > > Regards, > Shmuel. > -- Cordialement. Philippe Mouawad.
Re: Problem recording HTTPS with JMeter Proxy (java.io.EOFException)
Hello, Are you using spoofing in jmeter proxy ? If so try to remove it CAN you give options used in jmeter proxy ? And also how you configured certificate in jmeter.properties ? Thanks On Monday, April 16, 2012, Abraham Iglesias (redsauce) wrote: > Hi, > I tried every Http client implementation and I had the same error. > > I installed modify-headers addon for firefox and wrote the header > "Accept-Encoding: ". It solved the problem, but now I can't get the gif, > jpeg, and css files.. I just can get html and .js files. > > thanks for the suggestion :) > > -bram > > El 16/04/2012, a las 21:20, Milamber escribió: > > > > > > > Le 16/04/2012 10:10, Abraham Iglesias (redsauce) a ecrit : > >> Hi all, > >> I'm having some weird problems when recording the HTTPS conversation to > my webapp. > >> I tried to record the HTTPS login, and I'm having an error on my > browser. > >> When I enter the URL, then the Apache JMeter certificate notification > appears in my browser warning that i must accept the certificate (thought > it's an invalid certificate) > >> > >> After accepting and installing certificate in my certificate store, the > following response appear in the browser: > >> > >> > >> java.io.EOFException > >> at > java.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java:202) > >> at > java.util.zip.GZIPInputStream.readUShort(GZIPInputStream.java:192) > >> at java.util.zip.GZIPInputStream.readUInt(GZIPInputStream.java:184) > >> at > java.util.zip.GZIPInputStream.readTrailer(GZIPInputStream.java:174) > >> at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:89) > >> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > >> at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) > >> at java.io.BufferedInputStream.read(BufferedInputStream.java:313) > >> at java.io.FilterInputStream.read(FilterInputStream.java:90) > >> at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1620) > >> at > org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:236) > >> at > org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.readResponse(HTTPJavaImpl.java:282) > >> at > org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:512) > >> at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62) > >> at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1054) > >> at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:236) > >> > >> > >> > >> > >> That's what I have already tried: > >> -Jmeter proxy is working on other sites (I configured proxy settings in > my browser) > >> -I accepted the Apache JMeter Proxy (fake) certificate > >> -I tried running JMeter both with jre1.6 and 1.5 > >> -I tried several browsers (firefox, safari, chrome) > >> -I tried both Windows XP and Mac > >> -I tried several Internet connections > >> > >> Any ideas? > >> > > > > In your JMeter Proxy element, in HTTP Sample settings section, try to > > change the Type to HTTPClient 3.1 (or 4) > > > > Bye > > Milamber > > > > > >> thanks. > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >> For additional commands, e-mail: user-h...@jmeter.apache.org > >> > >> > >> > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Cookie manager not getting more than one set-cookie per response?
Hello, Could you open a bug with: - A simplified attached Test Plan showing the issue on a public website if possible - A detailed description of the issue you face - Some Fiddler capture of HTTP traffic and particularly the header received and what JMeter captures Cause from what R. Wilson described there was no issue one we CookieManager.save.cookies was set to true. And reading the code I don't think that if false it does impact cookies reading. Regards Philippe M. http://www.ubik-ingenierie.com On Sun, Apr 15, 2012 at 10:13 PM, sergio wrote: > Hi everybody, > > I run into this issue today, exactly the same way Robin described. > > In fact, it seems that, if the property: > > "CookieManager.save.cookies=**false" > > > then only the first cookie of the header is read. > > The solution that was found by R.Wilson is quite straight forward, however > it may take quite a long time to understand where the problem comes from. > I think that it should be fixed.. > > regards > > Sergio > Il 23/02/2012 16:07, Philippe Mouawad ha scritto: > >> This settings is false since 2.3.2, see: >> http://jmeter.apache.org/**usermanual/component_** >> reference.html#HTTP_Cookie_**Manager<http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Cookie_Manager> >> *"Received Cookies can be stored as JMeter thread variables (versions of >> >> JMeter after 2.3.2 no longer do this by default). To save cookies as >> variables, define the property "CookieManager.save.cookies=**true"." >> * >> >> Regards >> >> On Thu, Feb 23, 2012 at 4:04 PM, Robin D. Wilson >> wrote: >> >> Nevermind, I found the issue - it was this setting: >>> >>>CookieManager.save.cookies=**true >>> >>> Apparently this was on by default previously in JMeter2.4 (or was >>> configured somewhere that I didn't know about), but adding it to >>> my 'user.properties' fixed the problem. >>> >>> -- >>> Robin D. Wilson >>> Sr. Director of Web Development >>> KingsIsle Entertainment, Inc. >>> VOICE: 512-777-1861 >>> www.KingsIsle.com >>> >>> From: Robin D. Wilson [mailto:rwils...@gmail.com] >>> Sent: Thursday, February 23, 2012 8:58 AM >>> To: 'JMeter Users List' >>> Subject: RE: Cookie manager not getting more than one set-cookie per >>> response? >>> >>> OK, I have setup a test case for this... >>> >>> My test script returns 2 cookies, here's a look at the response headers >>> from a request to that page: >>> >>> >>> Response headers: >>> HTTP/1.1 200 OK >>> Date: Thu, 23 Feb 2012 14:51:51 GMT >>> Server: Apache/2.2.17 (Unix) >>> Expires: Thu, 02 Feb 2012 23:59:59 GMT >>> Set-Cookie: theCookie1=value1; Expires=Wed, 09 Jun 2021 12:00:00 GMT >>> Set-Cookie: theCookie2=value2 >>> Keep-Alive: timeout=15, max=100 >>> Connection: Keep-Alive >>> Transfer-Encoding: chunked >>> Content-Type: text/html; charset=UTF-8 >>> >>> My second sampler in the test attempts to use the cookies set above in >>> the >>> POST of the request - using "${COOKIE_theCookie1}" and >>> "${COOKIE_theCookie2}". But when I look at the values posted, I get this >>> instead: >>> >>> POST data: >>> >>> POSTVARCOOKIE1=%24%7BCOOKIE_**theCookie1%7D&POSTVARCOOKIE2=%** >>> 24%7BCOOKIE_theCookie2%7D >>> >>> However, in the request headers of the second sampler, I can see that the >>> cookies are both actually set: >>> >>> Cookie Data: >>> theCookie1=value1; theCookie2=value2 >>> >>> They just aren't being accessed by the "${COOKIE_}" >>> convention anymore... Did this change in JM2.6? >>> >>> -- >>> Robin D. Wilson >>> Sr. Director of Web Development >>> KingsIsle Entertainment, Inc. >>> VOICE: 512-777-1861 >>> www.KingsIsle.com >>> >>> >>> > > -- > > Ing. Sergio Boso > > In caso di erronea ricezione da parte di persona diversa, siete pregati di > eliminare il messaggio e i suoi allegati in modo definitivo dai vostri > archivi e di volercelo comunicare immediatamente restituendoci il messaggio > via e-mail al seguente > indirizzosergio@**bosoconsulting.it sergiob...@yahoo.it> > L’interessato può, inoltre, esercitare tutti i diritti di accesso sui > propri dati previsti dal decreto 196/2003, tra i quali i diritti di > rettifica, aggiornamento e cancellazione, inviando un messaggio all’ > indirizzo:sergio@**bosoconsulting.it sergiob...@yahoo.it> > > > > > > --**--**- > To unsubscribe, e-mail: > user-unsubscribe@jmeter.**apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: NTLM Auth: Load test with multiple/different user logins
Hello, I confirm NTLM1 works OK using HC3.1 as I had the opportunity to test it working on INVALID Bug 52457: - https://issues.apache.org/bugzilla/show_bug.cgi?id=52457 Regards Philippe M. On Wed, Apr 18, 2012 at 10:57 PM, sebb wrote: > On 18 April 2012 18:29, Shmuel Krakower wrote: > > Just to be clear on this, currently NTLM authentication is not supported > by > > JMeter? > > NTLM (v1) does work, as far as I know, with the Java and HC 3.1 samplers. > > NTLMv2 may perhaps work with the Java sampler when running on a Microsoft > host. > AIUI there was some NTLM support code included in Java, but only on > Windows implementations. > > > On Wed, Apr 18, 2012 at 4:46 PM, sebb wrote: > > > >> On 18 April 2012 09:59, iyerbalaji wrote: > >> > Hi, > >> > I am testing a web application. > >> > > >> > Application Description: > >> > • The application uses NTLM V2 authentication. > >> > • It’s hosted on IIS 7.5. > >> > > >> > Scenario : > >> > • On entering the URL,the application accepts the NTLM (domain) > >> credentials > >> > without prompting for credentials and authenticates the user i.e. the > >> user > >> > is not providing the credentials here. > >> > • I am able to capture the HTTP request using (JAVA) HTTP Sampler but > not > >> > with HTTPClient 3.1 or HTTPClient 4. > >> > > >> > 1st Method: > >> > > >> > Observations: > >> > • When the scenario is replayed it works properly but the only > challenge > >> > here is to provide user credentials.There is no way to provide > >> credentials. > >> > • It uses the same credentials with which the recording was done. > >> > • And Load test would require me to supply multiple/different > credentials > >> > • I have not used HTTP AUTH Manager so far. > >> > • Now, when HTTP Auth Manager is used in conjunction with (JAVA) HTTP > >> > Sampler,the credentials supplied in HTTP Authorization Manager has no > >> > effect. i.e. irrespective of the login credentials supplied in"HTTP > >> > Authorization Manager" it is logging with the user credentials with > which > >> > the recording was done. > >> > > >> > Note: The request sent does not contain NTLM Auth(challenge) specific > >> > headers under REQUEST Headers of each request. > >> > > >> > Ultimately,there is no way to provide different credentials with this > >> > approach. > >> > > >> > 2nd Method: > >> > > >> > Since,HTTP Client (3.1 or 4) does not capture the requests while > >> recording,I > >> > constructed the application requests manually using HTTP client (3.1 > & 4) > >> > and supplied the credentials using HTTP Auth Manager. > >> > > >> > Observations: > >> > • Now,when replayed the script,the request sent contains NTLM > >> > Auth(challenge) specific headers under REQUEST Headers of each > request. > >> > • But the request fails with 401 error code [401 - Unauthorized: > Access > >> is > >> > denied due to invalid credentials].It does not authorize the user with > >> the > >> > credentials provided in HTTP Authorization Manager but it understands > >> NTLM > >> > challenge response. > >> > > >> > Challenges: > >> > • With Java HTTP Sampler i am not able to login with multiple > credentials > >> > even though the requests is sent successfully.It does not use the > >> > credentials provided in HTTP Auth Manager. > >> > • With HTTP Client sampler,the request fails with 401-Unauthorized > error > >> > code with the credentials provided in HTTP Auth Manager. > >> > > >> > Is there a way to send the requests successfully and also provide > >> different > >> > credentials to log in with either of the samplers? > >> > > >> > Appreciate your help in this regard. > >> > >> I don't think there's any way round this, sorry. > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >> For additional commands, e-mail: user-h...@jmeter.apache.org > >> > >> > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: NTLM Auth: Load test with multiple/different user logins
Hello, Tested it on an intranet site. Rare but still exists. Regards Philippe On Sat, Apr 21, 2012 at 9:53 PM, Shmuel Krakower wrote: > Hi Philippe, > Where did you check for this working on NTLM1 ? > Is NTLM1 still being used anywhere? > > Regards, > Shmuel. > בתאריך 2012 4 18 23:57, מאת "sebb" : > > > On 18 April 2012 18:29, Shmuel Krakower wrote: > > > Just to be clear on this, currently NTLM authentication is not > supported > > by > > > JMeter? > > > > NTLM (v1) does work, as far as I know, with the Java and HC 3.1 samplers. > > > > NTLMv2 may perhaps work with the Java sampler when running on a Microsoft > > host. > > AIUI there was some NTLM support code included in Java, but only on > > Windows implementations. > > > > > On Wed, Apr 18, 2012 at 4:46 PM, sebb wrote: > > > > > >> On 18 April 2012 09:59, iyerbalaji wrote: > > >> > Hi, > > >> > I am testing a web application. > > >> > > > >> > Application Description: > > >> > • The application uses NTLM V2 authentication. > > >> > • It’s hosted on IIS 7.5. > > >> > > > >> > Scenario : > > >> > • On entering the URL,the application accepts the NTLM (domain) > > >> credentials > > >> > without prompting for credentials and authenticates the user i.e. > the > > >> user > > >> > is not providing the credentials here. > > >> > • I am able to capture the HTTP request using (JAVA) HTTP Sampler > but > > not > > >> > with HTTPClient 3.1 or HTTPClient 4. > > >> > > > >> > 1st Method: > > >> > > > >> > Observations: > > >> > • When the scenario is replayed it works properly but the only > > challenge > > >> > here is to provide user credentials.There is no way to provide > > >> credentials. > > >> > • It uses the same credentials with which the recording was done. > > >> > • And Load test would require me to supply multiple/different > > credentials > > >> > • I have not used HTTP AUTH Manager so far. > > >> > • Now, when HTTP Auth Manager is used in conjunction with (JAVA) > HTTP > > >> > Sampler,the credentials supplied in HTTP Authorization Manager has > no > > >> > effect. i.e. irrespective of the login credentials supplied in"HTTP > > >> > Authorization Manager" it is logging with the user credentials with > > which > > >> > the recording was done. > > >> > > > >> > Note: The request sent does not contain NTLM Auth(challenge) > specific > > >> > headers under REQUEST Headers of each request. > > >> > > > >> > Ultimately,there is no way to provide different credentials with > this > > >> > approach. > > >> > > > >> > 2nd Method: > > >> > > > >> > Since,HTTP Client (3.1 or 4) does not capture the requests while > > >> recording,I > > >> > constructed the application requests manually using HTTP client (3.1 > > & 4) > > >> > and supplied the credentials using HTTP Auth Manager. > > >> > > > >> > Observations: > > >> > • Now,when replayed the script,the request sent contains NTLM > > >> > Auth(challenge) specific headers under REQUEST Headers of each > > request. > > >> > • But the request fails with 401 error code [401 - Unauthorized: > > Access > > >> is > > >> > denied due to invalid credentials].It does not authorize the user > with > > >> the > > >> > credentials provided in HTTP Authorization Manager but it > understands > > >> NTLM > > >> > challenge response. > > >> > > > >> > Challenges: > > >> > • With Java HTTP Sampler i am not able to login with multiple > > credentials > > >> > even though the requests is sent successfully.It does not use the > > >> > credentials provided in HTTP Auth Manager. > > >> > • With HTTP Client sampler,the request fails with 401-Unauthorized > > error > > >> > code with the credentials provided in HTTP Auth Manager. > > >> > > > >> > Is there a way to send the requests successfully and also provide > > >> different > > >> > credentials to log in with either of the samplers? > > >> > > > >> > Appreciate your help in this regard. > > >> > > >> I don't think there's any way round this, sorry. > > >> > > >> - > > >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > >> For additional commands, e-mail: user-h...@jmeter.apache.org > > >> > > >> > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > -- Cordialement. Philippe Mouawad.
Re: how to simulate asynchronous calls..
Hello, In my opinion Ajax requests introduces at least 2 issues: - The request ordering (you cannot say I think in which order each simultaneous request of the page will be executed), so this needs to be scripted by some random mechanism - Parallel requests BUT for the same data, this is not simulated by the load, suppose for example the Tested application has some locks on parallel requests for on set of Data ? A controller for first part would be simpler to implement , it would play the contents in a random order. But ideally there should be some Controller implementation that runs its children in Parallel and waits for the result, but it needs important design and dev work I think. I am not sure other Load Test tools handle this completely and accurately without limitations but would be interested to know if I am wrong. Regards Philippe M. http://www.ubik-ingenierie.com On Mon, Apr 23, 2012 at 11:37 AM, Shmuel Krakower wrote: > Hi, > Yes, you are right, this is exactly what will happen in your case, the > transaction controller will sum up all of the samplers response times, > which doesn't reflect the browser behavior (as on browser it will run them > in parallel). > > 1. I usually separate each Ajax call, although these Ajax calls are part of > the page rendering, I believe each should be monitored by itself, this > allowing you to say if you have performance problem with one of them. It is > less important to load the system with these requests in parallel per each > user, as you will end up load testing the system with more than one user, > thus these Ajax calls will be executed in parallel during a load test > anyway. > 2. I really think some kind of parallel controller can be useful for these > type of cases, to make them more close to reality. What do others think of > this? > > Shmuel. > > > On Mon, Apr 23, 2012 at 10:42 AM, venkatakurathi < > venkat.akura...@hotmail.com> wrote: > > > yesi need to simulate those requets by same thread/user.because in my > > transaction once a servlet is been called ,the above mentioned 4 > > asynchronous calls been made to application in parallel.but when we > > simulate > > it through jmeter those calls are processed one by one(correct me if i am > > wrong),which increases the response time of overall transaction.to know > > the > > accurate response time for the transaction ,i need to simulate all the 4 > > asynchronous calls to be made to application at a time > > and please also let me know how jmeter calculates the response times? > > is it going to add all the loadtimes for samplers in a transaction? > > > > -- > > View this message in context: > > > http://jmeter.512774.n5.nabble.com/how-to-simulate-asynchronous-calls-tp5653677p5658566.html > > Sent from the JMeter - User mailing list archive at Nabble.com. > > > > --------- > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > -- Cordialement. Philippe Mouawad.
Re: Results Tree Regexp Tester?
Hello, On View Results Tree, select a sample Then at right, select "Response Data" Tab Under the Samplers zone, instead of "Text" select box, select "Regexp Tester" Here you are Regards Philippe M. http://www.ubik-ingenierie.com On Thu, Apr 26, 2012 at 3:10 PM, wrote: > According to > > http://jmeter.apache.org/usermanual/component_reference.html#View_Results_Tree > and a few other things I have seen online, the View Results Tree has a > regexp testing facility? > > However, in jmeter 2.6, I am not finding this as an option in my View > Results Tree controller. > > Is this manual out of date, or am I missing something? > > I'm having some problems with a couple of regexp and this tool is exactly > what I am looking for. > > Thank you. > > Lee Lowder > > This communication and any attachments are confidential, protected by > Communications Privacy Act 18 USCS § 2510, solely for the use of the > intended recipient, and may contain legally privileged material. If you are > not the intended recipient, please return or destroy it immediately. Thank > you. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Results Tree Regexp Tester?
As you can see this feature exists but only works on Text Response (not headers for now) as documented: - The "Regexp Tester" view only works for text responses. Regards Philippe M. http://www.ubik-ingenierie.com On Thu, Apr 26, 2012 at 3:36 PM, wrote: > Philippe Mouawad wrote on 04/26/2012 08:17:13 > AM: > > > Hello, > > On View Results Tree, select a sample > > Then at right, select "Response Data" Tab > > Under the Samplers zone, instead of "Text" select box, select "Regexp > > Tester" > > Here you are > > > I'm using jmeter 2.6 r1237317. > > I select my View Results Tree listener. > I select a sampler. > > On the right hand pane I have 3 tabs at the top. > -"Sampler Result" (has "Raw" and "Parsed" tabs at the bottom) > -"Request" (has "Raw" and "HTTP" tabs at the bottom) > -"Response Data" (has a search field at the bottom. Can be used for regex > tests/searches) > > > The search field can be toggled to search for regex, but it only searches > the body. I need to also be able to search the headers and test a regex > against them. > > In the listener, I do have "Save Response Headers (XML)" and "Save Request > Headers (XML)" checked. > > So, again I ask, is the manual out dated and this feature no longer > available, or am I missing something and just not finding this feature? > > I can take some screen shots, but I will not be able to post them anywhere > until tonight. I can attach them - but it seems likely to be stripped out. > > > > > Regards > > Philippe M. > > http://www.ubik-ingenierie.com > > > > Lee Lowder. > > This communication and any attachments are confidential, protected by > Communications Privacy Act 18 USCS § 2510, solely for the use of the > intended recipient, and may contain legally privileged material. If you are > not the intended recipient, please return or destroy it immediately. Thank > you. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: iframes and jmeter
Hello, I confirm that iframe are followed at least since 2.5.1. Which version are you using ? Regards Philippe M. http://www.ubik-ingenierie.com On Thu, Apr 26, 2012 at 8:49 PM, Shmuel Krakower wrote: > Hi, > Checking retrieve all embeded resources should follow frames for sure. If > you see IFrames are not being followed, open a ticket for this. > > Shmuel. > בתאריך 2012 4 25 17:45, מאת : > > > The app that I am using makes heavy use of iframes. I have checked the > > "Retrieve All Embedded Resources from HTML Files", and I changed the HTML > > parser to the regexp one. The test was recorded using the proxy, but no > > request was made for the iframe content. > > > > I know I can use a post processor to extract the iframe link and then use > > that to make the request, but is there an easy way make jmeter fetch that > > frame content - even if the exact number of frames isn't known until > > runtime? > > > > Lee Lowder > > > > This communication and any attachments are confidential, protected by > > Communications Privacy Act 18 USCS § 2510, solely for the use of the > > intended recipient, and may contain legally privileged material. If you > are > > not the intended recipient, please return or destroy it immediately. > Thank > > you. > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > -- Cordialement. Philippe Mouawad.
Re: : Running shell scripts from jmeter???
Hello, In current nightly build a new System Call Sampler has been added. Feel free to test it and give you feedback. See: - http://jmeter.apache.org/nightly.html Regards Philippe M. On Mon, Apr 30, 2012 at 10:05 AM, Eugene Kazakov wrote: > If you want execute some command on remote server, you can use that recipe > > http://yugene1986.blogspot.com/2012/02/how-to-execute-command-on-remote-server.html > 30.04.2012 9:55 пользователь "Bharti Munjal" < > bhartimun...@drishti-soft.com> > написал: > > > Is there a way to run bash scripts from jmeter ??? > > > > -- > > > > Bharti Munjal > > Software Developer, RnD > > > > > > DRISHTI-SOFT SOLUTIONS PVT. LTD. > > > > GP 62-A, Sector-18, Gurgaon-122016 > > > > Tel.: +91-124-4771000 > > > > Fax: +91-124-4039120 | Cell: +91-9717953933 > > > > Website: <http://www.drishti-soft.com/>www.drishti-soft.com | > > <http://www.ameyosuite.com/> > > www.ameyosuite.com > > > > Awards & Recognitions< > > http://www.drishti-soft.com/drishti_awards_recognition.php> > > : > > > > NASSCOM Innovation Awards 2008 for Market Facing Innovation | Pioneers in > > IP Contact Center Technology by TMCNet (2008) | Best ACD/Switch, Best > > Outbound Solution and after Sales Support By Contact Center World > > (APAC-2008) | Best Contact Center Suite by BPO News (2007)| Deloitte Fast > > 500 company in APAC | Red Herring Top 100 (2008) | NASSCOM - EMERGE 50 ( > > 2009) | IT & ITES Business of the Year by Franchise India, E&Y and Zee > > Business (2010) | Red Herring Asia Top 100 Winner (2010) | Best Contact > > Center Technology Platform by Insights' MECC (2011) > > > > __________ > > > > Please read Disclaimer > > -(http://www.drishti-soft.com/disclaimer.php< > > > http://www.google.com/url?q=http%3A%2F%2Fwww.drishti-soft.com%2Fdisclaimer.php&sa=D&sntz=1&usg=AFQjCNHgw6LB0Uv5Qy4CQJh4bP4GouKNqg > > > > > ) > > > -- Cordialement. Philippe Mouawad.
Re: : Running shell scripts from jmeter???
Hello, Documentation on Jmeter site reflects last release 2.6. If you want to get documentation for trunk version, checkout version from svn and run ant "docs-site" target. Regards Philippe On Mon, Apr 30, 2012 at 8:57 PM, Shmuel Krakower wrote: > Hi Philippe, > Where can I find document on this new sampler? > (couldn't find any on > http://jmeter.apache.org/usermanual/component_reference.html which I guess > is updated only per release) > > Regards, > Shmuel. > > > > On Mon, Apr 30, 2012 at 9:36 PM, Philippe Mouawad < > philippe.moua...@gmail.com> wrote: > > > Hello, > > In current nightly build a new System Call Sampler has been added. > > Feel free to test it and give you feedback. > > > > See: > > > > - http://jmeter.apache.org/nightly.html > > > > Regards > > > > Philippe M. > > > > > > > > On Mon, Apr 30, 2012 at 10:05 AM, Eugene Kazakov > >wrote: > > > > > If you want execute some command on remote server, you can use that > > recipe > > > > > > > > > http://yugene1986.blogspot.com/2012/02/how-to-execute-command-on-remote-server.html > > > 30.04.2012 9:55 пользователь "Bharti Munjal" < > > > bhartimun...@drishti-soft.com> > > > написал: > > > > > > > Is there a way to run bash scripts from jmeter ??? > > > > > > > > -- > > > > > > > > Bharti Munjal > > > > Software Developer, RnD > > > > > > > > > > > > DRISHTI-SOFT SOLUTIONS PVT. LTD. > > > > > > > > GP 62-A, Sector-18, Gurgaon-122016 > > > > > > > > Tel.: +91-124-4771000 > > > > > > > > Fax: +91-124-4039120 | Cell: +91-9717953933 > > > > > > > > Website: <http://www.drishti-soft.com/>www.drishti-soft.com | > > > > <http://www.ameyosuite.com/> > > > > www.ameyosuite.com > > > > > > > > Awards & Recognitions< > > > > http://www.drishti-soft.com/drishti_awards_recognition.php> > > > > : > > > > > > > > NASSCOM Innovation Awards 2008 for Market Facing Innovation | > Pioneers > > in > > > > IP Contact Center Technology by TMCNet (2008) | Best ACD/Switch, > Best > > > > Outbound Solution and after Sales Support By Contact Center World > > > > (APAC-2008) | Best Contact Center Suite by BPO News (2007)| Deloitte > > Fast > > > > 500 company in APAC | Red Herring Top 100 (2008) | NASSCOM - EMERGE > 50 > > ( > > > > 2009) | IT & ITES Business of the Year by Franchise India, E&Y and > Zee > > > > Business (2010) | Red Herring Asia Top 100 Winner (2010) | Best > Contact > > > > Center Technology Platform by Insights' MECC (2011) > > > > > > > > __ > > > > > > > > Please read Disclaimer > > > > -(http://www.drishti-soft.com/disclaimer.php< > > > > > > > > > > http://www.google.com/url?q=http%3A%2F%2Fwww.drishti-soft.com%2Fdisclaimer.php&sa=D&sntz=1&usg=AFQjCNHgw6LB0Uv5Qy4CQJh4bP4GouKNqg > > > > > > > > > ) > > > > > > > > > > > > > > > -- > > Cordialement. > > Philippe Mouawad. > > > -- Cordialement. Philippe Mouawad.
Re: : Running shell scripts from jmeter???
Hello, Thanks for early tests. My remarks below Regards Philippe On Tuesday, May 1, 2012, Shmuel Krakower wrote: > Hi, > I checked this sampler out: > 1. The help docs with last nightly build don't include help for this > sampler yet. I didn't look at the docs-site. > http://ci.apache.org/projects/jmeter/nightlies/ See folder : printable_docs/usermanual/component_reference.html Paragraph : OS_Process_Sampler 2. I'd suggest to add timeout interval. > We'll see > 3. The request doesn't show the directory/path - only the command and > parameters. > Changed > 4. I've been trying to run "cmd /c dir" on my windows machine, so I did: > directory=c:\windows\System32\ command=cmd1 parameter value= /c dir > but I get: > Try: Parameter 1 : /c Parameter 2 : dir or c:\\windows\\System32\\dir Or maybe just: command : dir 'dir"' is not recognized as an internal or external command, operable > program or batch file. > > Regards, > Shmuel. > > On Mon, Apr 30, 2012 at 10:25 PM, sebb wrote: > > > On 30 April 2012 20:15, Philippe Mouawad > > wrote: > > > Hello, > > > Documentation on Jmeter site reflects last release 2.6. > > > If you want to get documentation for trunk version, checkout version > from > > > svn and run ant "docs-site" target. > > > > The docs should also be included in the nightly downloads. > > > > > Regards > > > Philippe > > > > > > On Mon, Apr 30, 2012 at 8:57 PM, Shmuel Krakower > > wrote: > > > > > >> Hi Philippe, > > >> Where can I find document on this new sampler? > > >> (couldn't find any on > > >> http://jmeter.apache.org/usermanual/component_reference.html which I > > guess > > >> is updated only per release) > > >> > > >> Regards, > > >> Shmuel. > > >> > > >> > > >> > > >> On Mon, Apr 30, 2012 at 9:36 PM, Philippe Mouawad < > > >> philippe.moua...@gmail.com> wrote: > > >> > > >> > Hello, > > >> > In current nightly build a new System Call Sampler has been added. > > >> > Feel free to test it and give you feedback. > > >> > > > >> > See: > > >> > > > >> > - http://jmeter.apache.org/nightly.html > > >> > > > >> > Regards > > >> > > > >> > Philippe M. > > >> > > > >> > > > >> > > > >> > On Mon, Apr 30, 2012 at 10:05 AM, Eugene Kazakov < > > yugene1...@gmail.com > > >> > >wrote: > > >> > > > >> > > If you want execute some command on remote server, you can use > that > > >> > recipe > > >> > > > > >> > > > > >> > > > >> > > > http://yugene1986.blogspot.com/2012/02/how-to-execute-command-on-remote-server.html > > >> > > 30.04.2012 9:55 пользователь "Bharti Munjal" < > > >> > > bhartimun...@drishti-soft.com> > > >> > > написал: > > >> > > > > >> > > > Is there a way to run bash scripts from jmeter ??? > > >> > > > > > >> > > > -- > > >> > > > > > >> > > > Bharti Munjal > > >> > > > Software Developer, RnD > > >> > > > > > >> > > > > > >> > > > DRISHTI-SOFT SOLUTIONS PVT. LTD. > > >> > > > > > >> > > > GP 62-A, Sector-18, Gurgaon-122016 > > >> > > > > > >> > > > Tel.: +91-124-4771000 > > >> > > > > > >> > > > Fax: +91-124-4039120 | Cell: +91-9717953933 > > >> > > > > > >> > > > Website: <http://www.drishti-soft.com/>www.drishti-soft.com | > > >> > > > <http://www.ameyosuite.com/> > > >> > > > www.ameyosuite.com > > >> > > > > > >> > > > Awards & Recognitions< > > >> > > > http://www.drishti-soft.com/drishti_awards_recognition.php> > > >> > > > : > > >> > > > > > >> > > > NASSCOM Innovation Awards 2008 for Market Facing Innovati
Re: Throughput Controller - OufOfMemory when using "Total Executions"
Hello, I suggestion you Check If an hprof has been générated and If so open a bugzilla with à Link to the hprof file. Regards Philippe M. On Monday, May 14, 2012, Flavio Cysne wrote: > Recently I came across an weird behavior when using a fixed number of > "Total Executions" in Throughput Controller and I have not found any > discussion about it on this mailing list (neither on Google). > > When I executed a distributed test to simulate 5000 concurrent users on a > initial page and then reducing throughput to 2000 to another page of a web > site, I've run into an OutOfMemory error. > At jmeter.properties there's no save data or save data on error enabled, > neither response content are saved. > > Can you point me what I'm doing wrong? Do I have to add another Throughput > Controller with 3000 in throughput field to address all 5000 Thread Group > users? > Have this problem been addressed in recent versions of JMeter? > Help me, please. > > My Test Plan is like bellow > > Test Plan > +-- Thread Group >+-- Recording Controller >+-- // many HTTP Request samplers >+-- Throughput Controller >+-- Recording Controller >+-- // many HTTP Request samplers > > Configuration > - Thread Group >Number of Threads: 200 (25 JMeter servers to a total of 5000 requests) >Ramp-up: 0 >Loop Count: 1 > - Throughput Controller >Total Executions selected >Throughput: 80 (25 JMeter servers to a total of 2000 requests) > > My environment: > JMeter 2.4 r961953 (1 Client and 25 Servers) > 26 Virtualized servers with Linux CentOS 5, 2 Cores processor and 6GB RAM > (1 JMeter per machine) > JVM 1.6.0_23 -Xmx=2g > > Thanks in advance. > Flavio Cysne > -- Cordialement. Philippe Mouawad.
Re: Web-Interface to create Test-Plans
Hello, Usually there are 2 steps: - Build test plan using GUI on a client machine with Unix/Linux and X , or Windows or Mac OSX - Run test plan with JMeter in NON GUI mode So I don't see personnaly the interest of a Web Interface to create Test Plan: - Will need a server to run it (Tomcat or jEtty or other), so complex setup - How will you record ? - What for ? - Amount of work to get what JMeter gives you But I may not have seen what you have in mind. Regards Philippe On Tue, May 15, 2012 at 11:39 PM, Sergio Boso wrote: > Il 15/05/2012 09:55, apc ha scritto: > > Which advantages will it have over JMeter GUI? >> > interesting topics.. > I can be VERY useful when you load Jmeter on a linux server without > Graphics, It happens very often when you rent a server in the cloud... > > > - >> -- >> Andrey Pohilko >> JP@GC Maintainer >> -- >> View this message in context: http://jmeter.512774.n5.** >> nabble.com/Web-Interface-to-**create-Test-Plans-**tp5709438p5709843.html<http://jmeter.512774.n5.nabble.com/Web-Interface-to-create-Test-Plans-tp5709438p5709843.html> >> Sent from the JMeter - User mailing list archive at Nabble.com. >> >> --**--**- >> To unsubscribe, e-mail: >> user-unsubscribe@jmeter.**apache.org >> For additional commands, e-mail: user-h...@jmeter.apache.org >> >> > > -- > > Ing. Sergio Boso > > Mail: > Web: > PEC: > Cell: > Linkedin: > Skype: > > > > ser...@bosoconsulting.it <mailto:sergiob...@yahoo.it> > www.bosoconsulting.it > sergio.b...@ingpec.eu <mailto:sergio.b...@ingpec.eu> > +39 335 7243 445 > http://it.linkedin.com/in/**sergioboso<http://it.linkedin.com/in/sergioboso>< > http://www.linkedin.com/pub/**sergio-boso/1/29b/255<http://www.linkedin.com/pub/sergio-boso/1/29b/255> > > > sbos61 > > In caso di erronea ricezione da parte di persona diversa, siete pregati di > eliminare il messaggio e i suoi allegati in modo definitivo dai vostri > archivi e di volercelo comunicare immediatamente restituendoci il messaggio > via e-mail al seguente > indirizzosergio@**bosoconsulting.it sergiob...@yahoo.it> > L’interessato può, inoltre, esercitare tutti i diritti di accesso sui > propri dati previsti dal decreto 196/2003, tra i quali i diritti di > rettifica, aggiornamento e cancellazione, inviando un messaggio all’ > indirizzo:sergio@**bosoconsulting.it sergiob...@yahoo.it> > > > > > > > --**--**- > To unsubscribe, e-mail: > user-unsubscribe@jmeter.**apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Trying to build a http post request with xml content in jmeter
Hello, Switch to Raw Post body before putting anything in the parameters table then put your XML content in the text area and you're done. Regards Philippe On Wed, May 23, 2012 at 12:24 PM, hans jung wrote: > Hello everybody, I am completely new to jmeter and I am trying to simulate > a Post Request with XML content. > > The Post request I am trying to simulate looks like this: > > http://12.123.250.45:8000/zgfx_mde ?POST > &sap-client=200&sap-language=DE&sap-user=user001&sap-password=++ > HTTP/1.1 > encoding="ISO-8859-1"?>SAPHttpMDE-10MDE-10T02RS1001mde-agf4008122010777 > > > Now I try to build it i jMeter (using a Thread group and under that an http > sampler and a tree results element.). > I created the HTTP Sampler, set the Method to POST, enter server name, port > number, path and entered all the name/value pairs you see above > (sap-client, sap language, etc) in the parameters section. > But where do I put the XML?? > Apparently I cannot put anything in the Post Body (Message "Cannot convert > parameter to raw post body because one of the parameters has a name)". > > > > Regards & Thanks in advance, > > Junghans > -- Cordialement. Philippe Mouawad.
Re: Trying to build a http post request with xml content in jmeter
Hello, I think I read your mail too fast and zoomed on Raw Post body. Looking at your initial request: http://12.123.250.45:8000/zgfx_mde ?POST > > &sap-client=200&sap-language= DE&sap-user=user001&sap-password=++ > > HTTP/1.1 > > > > encoding="ISO-8859-1"?>SAPHttpMDE-10MDE-10T02RS1001mde-agf4008122010777 What is this request exactly: - Is POST a parameter or the method in Header ? - I don't understand why there is HTTP/1.1 between sap-password and wrote: > Hi Philippe, > > but where do I put my parameters (like sap-user and sap-password (see my > initial post)? > > Regards, > > Junghans > > 2012/5/23 Philippe Mouawad > > > Hello, > > Switch to Raw Post body before putting anything in the parameters table > > then put your XML content in the text area and you're done. > > > > Regards > > Philippe > > > > On Wed, May 23, 2012 at 12:24 PM, hans jung > >wrote: > > > > > Hello everybody, I am completely new to jmeter and I am trying to > > simulate > > > a Post Request with XML content. > > > > > > The Post request I am trying to simulate looks like this: > > > > > > http://12.123.250.45:8000/zgfx_mde ?POST > > > > &sap-client=200&sap-language=DE&sap-user=user001&sap-password=++ > > > HTTP/1.1 > > > > > > > > encoding="ISO-8859-1"?>SAPHttpMDE-10MDE-10T02RS1001mde-agf4008122010777 > > > > > > > > > Now I try to build it i jMeter (using a Thread group and under that an > > http > > > sampler and a tree results element.). > > > I created the HTTP Sampler, set the Method to POST, enter server name, > > port > > > number, path and entered all the name/value pairs you see above > > > (sap-client, sap language, etc) in the parameters section. > > > But where do I put the XML?? > > > Apparently I cannot put anything in the Post Body (Message "Cannot > > convert > > > parameter to raw post body because one of the parameters has a name)". > > > > > > > > > > > > Regards & Thanks in advance, > > > > > > Junghans > > > > > > > > > > > -- > > Cordialement. > > Philippe Mouawad. > > > -- Cordialement. Philippe Mouawad.
Re: HTTPS Multithread Invalidates JSessions
Hello, Try setting : https.use.cached.ssl.context=false Regards Philippe M. Http://www.ubik-ingenierie.com On Saturday, May 26, 2012, Vishal Patel wrote: > Its not the case because by running 15 separate instance of JMeter I can > run all of them in single thread loop successfully. But that's worth to > know. > > Thanks, > Vishal. > > On Sat, May 26, 2012 at 12:30 AM, Deepak Goel wrote: > > > Hey > > > > Is your network on a private network controlled by you? Could be a > > router or load balancer setting not to allow more than 3 secure > > connections from a single computer (Hacking) > > > > :) > > Deepak > > > > On 5/25/12, Deepak Shetty wrote: > > > Hi > > > then compare every request/response pair from JMeter (view results > tree) > > > with browser (an y trace tool) - parameters, headers , urls etc. > > > > > > regards > > > deepak > > > > > > On Thu, May 24, 2012 at 8:05 PM, Vishal Patel > > wrote: > > > > > >> Deepak, > > >> Yes, I can see switching in browser itself. So confirmed that all the > > >> requests redirects to http and coming back to https. > > >> > > >> Robin, > > >> I tried as you suggested to save cookies but looks like my prob is > > >> somewhat > > >> different but thanks for suggesting something around it. > > >> > > >> with regards, > > >> Vishal. > > >> > > >> On Fri, May 25, 2012 at 3:39 AM, Robin D. Wilson > > >> wrote: > > >> > > >> > Vishal, > > >> > > > >> > I reported a similar problem - but mine was related to setting more > > >> > than > > >> > one cookie (in JMeter 2.6 - the problem didn't happen in > > >> > JM2.4). > > >> > > > >> > I found this setting solved my problem: > > >> > > > >> > # Setting to force JMeter to save cookie values in variables named > > >> > "COOKIE_..." > > >> > CookieManager.save.cookies=true > > >> > > > >> > I put this in the 'user.properties' file in the JMeter 'bin' folder > - > > >> > and > > >> > cookies started working again. > > >> > > > >> > Not sure if it matters to your case, but it is worth trying. > > >> > > > >> > -- > > >> > Robin D. Wilson > > >> > Sr. Director of Web Development > > >> > KingsIsle Entertainment, Inc. > > >> > VOICE: 512-777-1861 > > >> > www.KingsIsle.com > > >> > > > >> > > > >> > -Original Message- > > >> > From: Vishal Patel [mailto:rajcol...@gmail.com] > > >> > Sent: Thursday, May 24, 2012 1:09 PM > > >> > To: JMeter Users List > > >> > Subject: Re: HTTPS Multithread Invalidates JSessions > > >> > > > >> > There is no cookie being marked as secure cookies. But I will check > it > > >> and > > >> > also redirects from server side. > > >> > > > >> > On Thu, May 24, 2012 at 11:25 PM, Deepak Shetty > > >> wrote: > > >> > > > >> > > did you use follow redirects? (dont use redirect automatically) > > >> > > Also check if some cookies ar ebeing marked as secure cookies or > > >> > something > > >> > > > > >> > > On Thu, May 24, 2012 at 10:51 AM, Vishal Patel < > rajcol...@gmail.com > > > > > >> > > wrote: > > >> > > > > >> > > > Its started failing as soon as we do just 3 simultaneous thread. > > >> > > > > > >> > > > We also observed on the serve side that it flip-flops(redirects) > > >> > between > > >> > > > "https" & "http". Can that be a issue of invalidating JSession? > > >> > > > > > >> > > > On Thu, May 24, 2012 at 11:15 PM, sebb wr-- > > Thanks, > Vishal. > -- Cordialement. Philippe Mouawad.
Re: how to wait for specified response text
Hello, See this: http://www.sourcepole.ch/2011/1/4/waiting-for-a-page-change-in-jmeter Regards Philippe M. http://www.ubik-ingenierie.com On Fri, Jun 1, 2012 at 3:34 PM, Flavio Cysne wrote: > While Controller and Regular Expression Extractor would do the work. > > While Controller will evaluated until your response have the text "congrats > for purchase" and this text can be extracted using the Regular Expression > Extractor. > > Give them a try. > > Hope it helps you. > Flávio Cysne > > 2012/6/1 Rajiv Nanduani > > > Hi all, > > > > In my application there is billing process, after submitting the post > > request i have to send the get request(.. uri=processing.jsp) but before > > sending the get request i have to wait until the specific text comes in > > post request repose > > The below text appears in post request response > > We are processing your request. Please wait... > > > > but i have to wait until the "congrats for purchase" text does not > appear. > > > > > > Please suggest with example > > -- > > > > Regards > > > > *RAJIV <http://testeverythingrajiv.com/> > > KUMAR<http://rajivkumarnandvani.wordpress.com/> > > NANDVANI <http://testeverythingqtp.blogspot.com>* > > > > http://rajivkumarnandvani.wordpress.com > > http://testeverythingqtp.blogspot.com/ > > > -- Cordialement. Philippe Mouawad. Ubik-Ingénierie
Re: Programmatically updating file path for sending files with an HTTP Request in Apache JMeter
Hello, It is failing because you use \${FILENAME} This escapes $ so variable is not interpreted. Solution: - C:\\Installs\\Apache Jmeter\\apache-jmeter-2.7\\bin\\${FILENAME} (I cannot test as I am on Mac OS) or - C:/Installs/Apache Jmeter/apache-jmeter-2.7/bin/${FILENAME} (this works on Windows sure) Regards Philippe M. http://www.ubik-ingenierie.com On Wed, Jun 6, 2012 at 10:54 PM, wrote: > Hey all, > > I am using Apache JMeter 2.7 to load test Liferay. One such test I am > creating involves dynamically generating files and uploading them to > Liferay's Document and Media portlet. The problem I'm having has nothing to > do with Liferay though...I know this because I can upload a document if I > type the exact path into the "file path" box of "Send Files With the > Request" in an HTTP request. This is not how I need the test to run. > > I want the test to run in such a way that I generate a unique file each > loop of the test with a different UUID for the file name(I do so in a > BeanShell PreProcessor and it does as I want). I have a user defined > variable FILENAME that I use to store the file name. In the HTTP Request, > for the file path I use the path "C:\Installs\Apache > Jmeter\apache-jmeter-2.7\bin\${FILENAME}" but JMeter does not process the > variable. When I view the Results Tree, I see the error: > > java.io.FileNotFoundException: C:\Installs\Apache > Jmeter\apache-jmeter-2.7\bin\${FILENAME} (The system cannot find the file > specified) > > Yet, if I hard code the file path(for example ...\bin\doc.txt) and use > ${FILENAME} as the value for the title of the document(a parameter I send > in the HTTP Request), the document(doc.txt) uploads to the portlet with the > string value of FILENAME as the title. This lets me know the right string > is stored in the variable FILENAME. From this, I deduce that JMeter simply > does not replace variables in the file path for sending files in an HTTP > Request. If I am incorrect in this conclusion, please let me know how to > fix whatever error I have. Has anyone else had this problem? > > I am currently trying to create a work around by adding a BeanShell > PreProcessor to this http request that would dynamically update the > filepath with the variable name. I would need to set some variable = > vars.get("FILENAME"). Anyone know how to proceed from here to set the HTTP > file path programmatically? I'm looking in the API > http://jmeter.apache.org/api/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.htmlfor > the answer. Any help would be much appreciated because I am completely > stumped right now. > > I've tried making this PreProcessor myself, but it does not work: > >HTTPFileArg file = new HTTPFileArg("C:\Installs\Apache > Jmeter\apache-jmeter-2.7\bin\doc.txt", "_20_file", "text/plain"); > > sampler.setHTTPFiles(file); > > > > I've seen similar questions but none of the answer helped me and I haven't > ever seen someone do what I want to do programmatically. > > Thanks, > > Will Henry > > -- Cordialement. Philippe Mouawad.
Re: Using SSL authentication certificates
Hello, Did you look at keystore config élément ? It triés to explain the whole process. regards Philippe http://www.ubik-ingenierie.com On Thursday, June 7, 2012, Shmuel Krakower wrote: > Hi Community, > I am trying to use private certificate to authenticate my HTTPS requests. > > > 1. I've exported my certificate from windows MMC certificates manager to > PFX file, renamed it to p12. > 2. Opened my jmeter scripts - changed relevant http samplers to use the > Java implementation. > 3. Loaded the p12 file with SSL manager. > 4. It works! > > > I have few questions about it: > > 1. Is it documented that only Java implementation works? or am I missing > something (as HC3.1 and 4 don't use the certificate I load in SSL > Manager). Ni cause it works better with hc31 and hc4 > 2. How can I use this certificate in non gui mode? as it asks for the > pass phrase of the p12 file.u Yes, look at keystore config > 3. How can I use multiple certificates? as I wanna simulate different > users using the system. > > Same answer > > Best Regards, > Shmuel. > -- Cordialement. Philippe Mouawad.
Re: Error in Test Plan: See Log file.
Hello, Check jmeter.log for the exact exception and copy paste it here. This issue usually occurs when you used an external plugin in one version and forgot to put it in new installed version. Regards Philippe M. http://www.ubik-ingenierie.com On Tue, Jun 12, 2012 at 9:43 AM, stuntgirl wrote: > I also get this message from time to time. I have no idea what causes it > (more knowledgable users may be able to help with this), but in my > experience, it is more likely to occur the larger the file becomes. My Test > Plan has around 5000 different samplers (it is used for functional > regression testing) and it happened a lot when I was in the final stages of > building it. > > The log file should show you the line that is corrupted... and in my > experience it's usually a problem with a tag not being closed. Diagnosing > this is a lot of work though, so to get around this issue I created a local > svn and save. So, always save lots. Save some more. This minimises the > amount of work you lose should you get this problem, but also tends to stop > this issue from occuring at all. > > Again, other users might have some insight... this is just my work around, > learnt through tears of pain and frustration at losing days worth of work > because I haven't saved regularly. Please learn from my experience :) > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Error-in-Test-Plan-See-Log-file-tp5691698p5713490.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: JMeter threading model
Hello M. Pepperdine, There is no way today to do that. There is an enhancement request that has not been implemented yet although started some time ago: - https://issues.apache.org/bugzilla/show_bug.cgi?id=47886 JMeter core is build around the paradigm: - 1 user == 1 Thread - And lot of its internal behaviour makes this supposition This could be changed in 2 ways: - 1) use for example a ThreadPoolExecutor without limiting its growth to avoid thread starvation during a Load Test but to create as little threads as possible - 2) Use a completely different approach based on something like netty but this one would be a revolution and a too big impact in my opinion But even with 1) we have to handle the ThreadLocal objects currently used so this need through investigation. Regards Philippe M. http://www.ubik-ingenierie.com On Tue, Jun 12, 2012 at 6:28 PM, Shmuel Krakower wrote: > Hi, > I was thinking to suggest working with JP@GC Ultimate thread group, but it > behaves the same (pre-creating the threads). > Kirk, why does it matter to you? > > Regards, > Shmuel. > > On Tue, Jun 12, 2012 at 6:31 PM, Kirk Pepperdine > wrote: > > > Hi, > > > > I guess this is mostly directed towards Sebb.. I spent a bit looking at > > JMeter performance today. What I found was that the thread group starts > all > > of it's threads at the beginning and then uses them over time. Is there a > > way to easily change this so that the thread group only creates threads > on > > demand? > > > > Regards, > > Kirk > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > -- Cordialement. Philippe Mouawad.
Re: Urgent: Testing on Oracle eBusiness using Jmeter
Hello, It is not possible natively as it uses binary protocol depending on Oracle Forms. So a custom plugin would be required to do so. Regards Philippe M. http://www.ubik-ingenierie.com/ubikwiki/index.php?title=Load_Testing On Wednesday, June 13, 2012, Srinivas wrote: > Hi, > > I have some documentation for jmeter testing. > > Thanks, > Srinivas > > On Wed, Jun 13, 2012 at 1:09 PM, sebb wrote: > > > On 13 June 2012 08:35, Swathi Gajarla > > wrote: > > > Hi, > > > > > > > > > > > > I have to do performance testing on Oracle eBusiness. > > > > > Can anyone tell me if it is possible to perform the testing using > > Jmeter? If so, can you help me with some documentation? > > > > > > Any immediate response would be of great help. > > > > http://jmeter.apache.org/usermanual/index.html > > > > > > > > > > > Thank you. > > > > > > > > > Swathi G > > > > > > > > > > > > > > > This message is for the designated recipient only and may contain > > privileged, proprietary, or otherwise private information. If you have > > received it in error, please notify the sender immediately and delete the > > original. Any other use of the email by you is prohibited. > > > > > > - > > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > > > -- > M. Srinivas >
Re: JMeter threading model
ed > >>> processing by the time the last threads start running samples. > >> > >> Bingo!!! ;-) > > > > So what percentage of use cases need to follow this model? > > > > Most of the JMeter testing I have done was long running tests where > > all threads were active for most of the run. > > > >> Kirk > >> > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >> For additional commands, e-mail: user-h...@jmeter.apache.org > >> > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: SOAP ssl client certificate
Hello, Use Classical HTTP Sampler with HC3.1 or HC4 impl. And look at : http://jmeter.apache.org/usermanual/component_reference.html#Keystore_Configuration Regards Philippe M. http://www.ubik-ingenierie.com On Thu, Jun 14, 2012 at 4:06 PM, Michele Mase' wrote: > 2.7, the latest > > On Thu, Jun 14, 2012 at 3:51 PM, Flavio Cysne > wrote: > > > JMeter version? > > > > 2012/6/14 Michele Mase' > > > > > I need to test some webservices using the sampler WebService(SOAP) > > Request. > > > The webservice is protected by a client certificate verification > > directive > > > under a ssl vhost. > > > https://www.example.com/webservice/webservice1?wsdl > > > > > > > > >#SSLVerifyClient optional > > >SSLVerifyClient require > > >#SSLVerifyDepth 2 > > > SSLOptions +ExportCertData > > > > > > > > > 2012/06/14 14:46:17 WARN - > > jmeter.protocol.http.sampler.WebServiceSampler: > > > [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: > > > javax.net.ssl.SSLProtocolException: handshake alert: > unrecognized_name; > > > targetException=java.lang.IllegalArgumentException: Error opening > socket: > > > javax.net.ssl.SSLProtocolException: handshake alert: > unrecognized_name] > > > 2012/06/14 14:46:17 INFO - jmeter.threads.JMeterThread: Thread > finished: > > > Thread Group 1-1 > > > > > > How can I solve the issue? > > > > > > Regards > > > Michele Masè > > > > > > -- Cordialement. Philippe Mouawad. Ubik-Ingénierie
Re: new __Time function
Hello, I prefer: __timeAdd(format, number*, m|h|d|w|M|y**, variable) * can be negative ** applied to number, ie +/- 1 minute, hour, day, week, month or year. Only one option is possible. Regards Philippe M. On Wed, Jun 13, 2012 at 2:11 PM, D G wrote: > For full context see here: > https://issues.apache.org/bugzilla/show_bug.cgi?id=53362 > > Needed a __time function with the ability to add n days before > returning a date string so I created one. > > I'd happily create a new function or append the current one. Would > users prefer a > > __time(format, variable, +/-Days) (reordered for compatebility) > > where Days is the amount of days to add or subtract before returning a > formatted string. > > or a new function? > > proposal: > > __timeMath(format, number, m|h|d|w|M|y**, variable) > > ** applied to number, ie +/- 1 minute, hour, day, week, month or year. > Only one option is possible. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: JMeter threading model
Bugzilla created: - https://issues.apache.org/bugzilla/show_bug.cgi?id=53418 Regards Philippe M. On Thu, Jun 14, 2012 at 10:30 PM, Philippe Mouawad < philippe.moua...@gmail.com> wrote: > Hi M. Pepperdine, > > On Wed, Jun 13, 2012 at 7:05 AM, Kirk Pepperdine < > kirk.pepperd...@gmail.com> wrote: > >> Hi Sebb, >> >> We've had this conversation before and I did some preliminary work to >> setup a different type of thread group but the couplings between the >> existing thread group and the model meant that an extensive refactoring >> would be involved. Since that involves a *lot* more than just a simple >> plugin... >> >> So, the current implementation supports a closed system model meaning, >> rate of entry into the system equals rate of exit from the system.This is >> exactly what you want if you're load testing a call centre where the number >> of servers (operators) is fixed and gate entry into the system. However, >> I'm often simulating open systems which means I do not want rate of entry >> into the system to be controlled by the performance of the system (rate of >> exit). > > What makes you think JMeter does this ? > > >> More over, those that attend my performance tuning seminars come to >> understand why this is an important aspect of getting your test environment >> right and test harness correctly setup as it can adversely affect the >> quality of your test which can and often does, change the results of the >> test. >> > >> As an example, today I will show a group how to tune an application by a >> partner company. That application has a number of "performance problems" >> backed into it. If I use the traditional means of using JMeter I will find >> a different set of performance issues than if I load with a pattern that is >> similar that found in production. > > Can you clarify this point ? a figure might be better than a long text > > >> In other words, with this particular application, JMeter exposes >> "problems" that are artifacts of how it wants to inject load on a system. > > Not clear for me. > > I can fix all of these problems > > What are these problems ? and how do you fix these ? > > >> and eventually I'll get to a point where I'll fix everything that needs >> to be fixed. That said, if I can coerce JMeter to load as an open system >> I'll get to the problems without having to fix the artifacts (the things >> that really don't need fixing). > > Still not clear > >> To coerce JMeter into being an open system requires one to use a large >> number of very short lived threads. So I may only have 400-500 active >> threads at any point in time but in order to achieve that load over a 1 or >> two hour test I may have to specify 10s of thousands of threads. Since all >> of the threads are created up front, this simply doesn't work. >> >> You might ask why not just specify 400-500 threads and loop over them? in >> theory you'd think it would work but as you tune the system and the >> performance characteristics change. Going back to the baked application, >> before I start tuning, the active user count is several thousand. In other >> words, the tuned system is better able to clear users out and that changes >> the performance profile in a way that hard to emulate with the current >> looping behaviour. Using a setting of looping 400 or so threads isn't >> adequate for the initial load tests as the test harness will become thread >> starved and that releases pressure on the server which in turn changes the >> performance profile. >> > > >> With all due respect to the wonderful work that everyone on the project >> has done, it is my opinion that the one user == one thread is a design >> mistake that has a huge impact on both the usability of the tool >> > Examples ? > >> and the quality of the results > > I disagree with this assertion . We have been using JMeter for load > testing all kind of applications Intranets / Large ECommerce Systems / > Backoffice systems / , and quality of results is good provided you > configure it properly. > Particularly when using Remote Testing. Lot of users in this mailing list > use it and are satisfied (I think). > > >> one can achieve when using it. IMHO, moving to an thread pool/event heap >> based model would be an enormous improvement over the current >> implementation. >> >> Agree it would be better. We will work on it. > >> Regards, >> Kirk >> >> On 2012-06-13, at 1:02 A
Re: Documentation
Hello, Add it to wiki or open a Bugzilla and attach your file. Thanks for contribution. Regards Philippe On Friday, June 15, 2012, Rodrigo Ramos wrote: > Hi guys, > > How I can upload my PDF file contributions to JMeter page? > > Greetings > -- Cordialement. Philippe Mouawad.
Re: https - WSDL soap request- issue - Jmeter 2.7
Hello, Use Classical HTTP Sampler with HC3.1 or HC4 impl. And look at : http://jmeter.apache.org/usermanual/component_reference.html#Keystore_Configuration Regards Philippe M. http://www.ubik-ingenierie.com On Monday, June 18, 2012, Nicolas Grossi wrote: > Guys: > I´m using jmeter 2.7 and setting up a test for wsdl requests > (soap). The problem is that the soap request is using https and when i > select load WSDL i get "unable to find certification path" > > Where i should put the server sertificate ? I have a p12 one and also a > .cer file > > Thanks! > -- Cordialement. Philippe Mouawad.
Re: Jmeter 2.7 - non test element like proxy server are not saved on JMX ?
There is a hack to save proxy . Add à test fragment and copy proxy under it. Regards Philippe M. http://www.ubik-ingenierie.com On Monday, June 25, 2012, Nicolas Grossi wrote: > Thanks to all of you! > > On Mon, Jun 25, 2012 at 1:01 PM, sebb > > wrote: > > > On 25 June 2012 16:56, Robin D. Wilson > > wrote: > > > BTW, I tend to agree that it would be nice to save non-test elements... > > > > > > It is handy to setup a proxy config with exclusions, and stuff - and > > have it all pre-configured in a template... > > > > Which you can already do. > > > > However, you have to manually load the template. > > > > > -- > > > Robin D. Wilson > > > Sr. Director of Web Development > > > KingsIsle Entertainment, Inc. > > > VOICE: 512-777-1861 > > > www.KingsIsle.com > > > > > > > > > -Original Message- > > > From: llow...@oreillyauto.com [mailto: > llow...@oreillyauto.com ] > > > Sent: Monday, June 25, 2012 10:30 AM > > > To: JMeter Users List > > > Subject: Re: Jmeter 2.7 - non test element like proxy server are not > > saved on JMX ? > > > > > > > > > Nicolas Grossi > wrote on > 06/25/2012 10:16:22 > > AM: > > > > > >> From: Nicolas Grossi > > > >> To: JMeter Users List > > > >> Date: 06/25/2012 10:23 AM > > >> Subject: Jmeter 2.7 - non test element like proxy server are not > > >> saved on JMX ? > > >> > > >> Team: > > >> I´m using jmeter 2.7 and I have a project on http proxy > server > > >> but after the project is saved, that section is not saved. > > >> > > >> I´m doing something wrong ? > > > > > > > > > This is the way that Jmeter has always behaved. > > > > > >> > > >> Nico > > >> > > >> -- > > >> This message has been scanned for viruses and > > >> dangerous content by MailScanner, and is > > >> believed to be clean. > > >> > > > > > > This communication and any attachments are confidential, protected by > > Communications Privacy Act 18 USCS § 2510, solely for the use > > > of the intended recipient, and may contain legally privileged material. > > If you are not the intended recipient, please return or > > > destroy it immediately. Thank you. > > > > > > ----- > > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > > > > > - > > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > -- Cordialement. Philippe Mouawad.
Re: Jmeter WSDL Load test example with HTTPS
http://mail-archives.apache.org/mod_mbox/jmeter-user/201206.mbox/%3CCAH9fUpYA89M1cJxpAZZ%3DJwsg9r%3DU-RJVp19hkmcue35i0py7vg%40mail.gmail.com%3E On Tue, Jun 26, 2012 at 8:20 PM, Shmuel Krakower wrote: > Google this users list for SSL. > > On Tue, Jun 26, 2012 at 8:45 PM, Nicolas Grossi >wrote: > > > Team: > > I need to create a project to test load on a wsdl endpoint that > > use https and have .p12 or .cer cetificates. Does anybody can help and > send > > me an example > > > > Thanks in advance! > > Nico > > > -- Cordialement. Philippe Mouawad.
WE NEED YOUR HELP :-) / 私たちはあなたの助けが必要です
Hello Apache JMeter Users, To fix a potential issue in jmeter related to japanese characters being badly encoded: - https://issues.apache.org/bugzilla/show_bug.cgi?id=45132 We would like japanese users of jmeter to provide us a simple test plan working against a public facing website reproducing the described issue with these kind of characters. Your contribution will be Highly appreciated. Please attach test plan to bug. Regards Philippe M. on behalf of Apache JMeter Team Sorry if title translation is wrong :-) -- Cordialement. Philippe Mouawad.
Re: Analysing the View Result Tree Listener
http://jmeter.apache.org/usermanual/best-practices.html Tree listener is for debug , never ever use it for a load test with lot of users or itérations . Regards Philippe On Friday, July 6, 2012, Dzmitry_Kashlach wrote: > How much users do you need to simulate? > You can try our JMeter testing cloud, http://blazemeter.com, it can give > you up to 18000 users. > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Analysing-the-View-Result-Tree-Listener-tp5713858p5713901.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: What is the Shutdown Command in Non GUI Mode?
Hello Oliver, These commands can be sent by using theshutdown[.cmd|.sh] or stoptest[.cmd|.sh]script respectively. The scripts are to be found in the JMeter bin directory. The commands will only be accepted if the script is run from the same host. From: http://jmeter.apache.org/usermanual/build-test-plan.html Regards Philippe On Saturday, July 7, 2012, Oliver Lloyd wrote: > So aparently Jmeter waits for a possible shutdown message on port 4445. > Can anyone tell me what it is and how to send this command? > > I'm running JMeter by spawning a child process from node which gives me > the pid for the actual jmeter command just fine, but not the JVM. So I can > send SIGTERM to jmeter but this isn't killing the actual test. The > workaround here would be to grep ps -ef and pull out the java pid from > there and send kill -15 to that, but to be honest that idea fills me with > dread. > > Alternatively, is there any way to interrogate jmeter to get the pid for > the java process that it triggered? > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Should "Cache Manager" cache content with Cache-control=private?
Hello, Reading specification: private Indicates that all or part of the response message is intended for a single user and MUST NOT be cached by a shared cache. This allows an origin server to state that the specified parts of the response are intended for only one user and are not a valid response for requests by other users. A private (non-shared) cache MAY cache the response. *Note:* This usage of the word private only controls where the response may be cached, and cannot ensure the privacy of the message content. So I agree with you "titou10 titou 10" that JMeter should cache entry. I checked code and in fact it is not doing so. Bug is now fixed: - https://issues.apache.org/bugzilla/show_bug.cgi?id=53521 Feel free to download nightly build when it's available and check if issue is fixed for you Regards Philippe M. http://www.ubik-ingenierie.com On Sun, Jul 8, 2012 at 1:34 AM, Shmuel Krakower wrote: > Hi > I think that by default all browsers are caching everything unless this > header is set to private (or if other headers are set to not allow > caching). > > For me JMeter cache manager caches all resources, even those without > cache-control directive. > > So I am unsure why you had to make a patch. > > Regards, > Shmuel. > בתאריך 2012 7 3 15:54, מאת "titou10 titou10" : > > > The Cache Manager component in JMeter v2.7 caches only content that > > have an header with "Cache-control=public" and a "max-age" directive > > > > Usually, browsers also cache content that have "Cache-control=private" > > without max-age.. (At least firefox 13 in win7 do that) > > > > I have patched JMeter to do so, with an option in the GUI to activate > > or disable caching of such content. > > > > Are the reason why this is not the standard behaviour? > > Is someone else interested in this patch? > > > > ----- > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > -- Cordialement. Philippe Mouawad.
Re: Can't seem to import outside jars.
Hello, Jnetcap relies on native library, are you sure you added path to dll or so in java.library.path, example; -Djava.library.path="C:\Program Files\jnetpcap-1.3.b3-1" Philippe M. http://www.ubik-ingenierie.com On Mon, Jul 9, 2012 at 11:06 PM, foxmadnes wrote: > So I'm using jnetpcap in a sampler of my own, and building in Ant succeeds, > but when I try to run it inside JMeter I received a: > > jmeter.threads.JMeterThread: Test failed! java.lang.UnsatisfiedLinkError: > no > jnetpcap in java.library.path > > Even though not only is the jnetpcap.jar file in the lib folder (as > instructed in the JMeter docs) but I also tried setting > user-path:../lib/jnetpcap.jar , which loads correctly as shown in the > logs: > > 2012/07/09 15:45:42 INFO - jmeter.JMeter: > user.classpath=../lib/jnetpcap.jar > 2012/07/09 15:45:42 INFO - jmeter.JMeter: Adding to classpath: > ../lib/jnetpcap.jar > > But the sampler still returns the no jnetpcap in lava.library.path error. > > Any ideas? I seem to have followed the instructions but the outside jars > don't seem to work. > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Can-t-seem-to-import-outside-jars-tp5713958.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Can't seem to import outside jars.
Try putting only folder not full path to .so Regards Philippe On Wednesday, July 11, 2012, foxmadnes wrote: > I've properly re-added the jar, and now I receive this error: > > 2012/07/11 12:29:35 ERROR - jmeter.threads.JMeterThread: Test failed! > java.lang.UnsatisfiedLinkError: > com.slytechs.library.NativeLibrary.dlopen(Ljava/lang/String;) > > It seems it cannot find the .so file even though I ran JMeter as: > > anromero:~/p4/scripts/BtF/tools/apache-jmeter-2.7/bin$ sudo ./jmeter > -Djava.library.path="/usr/lib/libjnetpcap.so" > > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Can-t-seem-to-import-outside-jars-tp5713958p5713982.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Can't seem to import outside jars.
try this: JVM_ARGS="-Djava.library.path=/usr/lib" export JVM_ARGS call jmeter here without your property Regards Philippe http://www.ubik-ingenierie.com On Wed, Jul 11, 2012 at 8:35 PM, foxmadnes wrote: > Tried that too. Same result. > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Can-t-seem-to-import-outside-jars-tp5713958p5713984.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > >
Re: Can't seem to import outside jars.
Try to create à simple java main program That calls jnetcap to see if That works setting java.library.path to the value you currently pass. Attach à simple test plan to the Bugzilla i marked as invalid, i Will havé a look but i am on mac os. On Thursday, July 12, 2012, foxmadnes wrote: > I tried that too. Same result. Wondering what's up. I've tried both 32 bit > and 64 bit installations of jnetpcap, and all the suggestions you have > given, and nothing. Please, if you have any other suggestions I would truly > appreciate them. > > Regards, > > Andres > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Can-t-seem-to-import-outside-jars-tp5713958p5714005.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: JMeter threading model
> >>> The approach used by distributed testing and this pseudo-dynamic > >>> threading model will include ${__machineName()} or ${__machineIP()} in > "If > >>> Controller" conditions. > >>> > >>> I'll try to make a entry in my blog to explain in detail this scenario. > >>> > >>> I used JMeter 2.7 and you can download jmx file here< > https://docs.google.com/open?id=0Bwr5j-BqUUDobnFTSHc1eTltdmM> > >>> . > >>> > >>> Hope it helps you. > >>> Flávio Cysne > >>> > >>> 2012/6/15 D G > >>> > >>>> Details are very welcome as I'm still not sure whether I fully > >>>> understand the problem :) > >>>> > >>>> Thread pooling does sound nice and it might enable a feature I'd like: > >>>> > >>>> On-demand creation of threads. Say you're looping 10 threads, system > >>>> is under no load. > >>>> Currently: if you want 10 more users you need to stop the test, add 10 > >>>> users and start it again. > >>>> > >>>> It would be nice if it where possible to simply say '+10', followed by > >>>> some monitoring and then another '+10' (30 threads running total) etc. > >>>> (10 is an example number, +/- n users would be the goal) > >>>> Mostly for the 'getting a feel for the system' part of the test, the > >>>> initial setup of it all. > >>>> > >>>> Regards, > >>>> Daniel > >>>> > >>>> On Fri, Jun 15, 2012 at 7:24 AM, Kirk Pepperdine > >>>> wrote: > >>>> > Hi, > >>>> > > >>>> > I'm very happy to add details if need be. > >>>> > > >>>> > Regards, > >>>> > Kirk > >>>> > > >>>> > On 2012-06-15, at 12:13 AM, Philippe Mouawad wrote: > >>>> > > >>>> >> Bugzilla created: > >>>> >> > >>>> >> - https://issues.apache.org/bugzilla/show_bug.cgi?id=53418 > >>>> >> > >>>> >> > >>>> >> Regards > >>>> >> > >>>> >> Philippe M. > >>>> >> > >>>> >> On Thu, Jun 14, 2012 at 10:30 PM, Philippe Mouawad < > >>>> >> philippe.moua...@gmail.com> wrote: > >>>> >> > >>>> >>> Hi M. Pepperdine, > >>>> >>> > >>>> >>> On Wed, Jun 13, 2012 at 7:05 AM, Kirk Pepperdine < > >>>> >>> kirk.pepperd...@gmail.com> wrote: > >>>> >>> > >>>> >>>> Hi Sebb, > >>>> >>>> > >>>> >>>> We've had this conversation before and I did some preliminary > work > >>>> to > >>>> >>>> setup a different type of thread group but the couplings between > the > >>>> >>>> existing thread group and the model meant that an extensive > >>>> refactoring > >>>> >>>> would be involved. Since that involves a *lot* more than just a > >>>> simple > >>>> >>>> plugin... > >>>> >>>> > >>>> >>>> So, the current implementation supports a closed system model > >>>> meaning, > >>>> >>>> rate of entry into the system equals rate of exit from the > >>>> system.This is > >>>> >>>> exactly what you want if you're load testing a call centre where > >>>> the number > >>>> >>>> of servers (operators) is fixed and gate entry into the system. > >>>> However, > >>>> >>>> I'm often simulating open systems which means I do not want rate > of > >>>> entry > >>>> >>>> into the system to be controlled by the performance of the system > >>>> (rate of > >>>> >>>> exit). > >>>> >>> > >>>> >>> What makes you think JMeter does this ? > >>>> >>> > >>>> >>> > >>>> >>>> More over, those that attend my performance tuning seminars come > to > >>>> >&g
Re: Should "Cache Manager" cache content with Cache-control=private?
Hello, I modified the fix to comply with: RFC 2616 <http://tools.ietf.org/html/rfc2616> section 13.2.4. When no expires and no max-age: Also, if the response does have a Last-Modified time, the heuristic expiration value SHOULD be no more than some fraction of the interval since that time. A typical setting of this fraction might be 10%. But if you don't send Last-Modified time , I don't see what the spec says about it. Regards Philippe On Sat, Jul 14, 2012 at 5:06 PM, sebb wrote: > On 14 July 2012 14:21, titou10 wrote: > > (Sorry for the delay, I was out of office) > > > > Thanks Philippe for the fix but it is still not complete IMHO. > > > > Our application send backs pages with "Cache-control=private" WITHOUT any > > "max-age" header > > Does the page have an Expires header? > > > And the browser caches the page (until the end of the session I guess..). > > Proved by firebug > > > > In your fix, max-age should not be mandatory and if absent, IMHO, the > page > > should be kept in page "forever" (ie until the session ends) > > > > In my own fix for this bug, when max-age is missing, I consider it to be > > egal to one week (maxAgeInSecs=604800), which is, for us, mean > > "forever"...because I didn't want to change the whole "CacheManager" > > component logic for this. > > > > WDYT? > > > > Thanks > > > > Le 2012-07-08 05:45, Philippe Mouawad a écrit : > > > >> Hello, > >> Reading specification: > >> private Indicates that all or part of the response message is intended > for > >> a single user and MUST NOT be cached by a shared cache. This allows an > >> origin server to state that the specified parts of the > >> response are intended for only one user and are not a valid response for > >> requests by other users. A private (non-shared) cache MAY cache the > >> response. > >> > >> *Note:* This usage of the word private only controls where the response > >> may > >> be cached, and cannot ensure the privacy of the message content. > >> > >> > >> So I agree with you "titou10 titou 10" that JMeter should cache entry. I > >> checked code and in fact it is not doing so. > >> Bug is now fixed: > >> > >> - https://issues.apache.org/bugzilla/show_bug.cgi?id=53521 > >> > >> Feel free to download nightly build when it's available and check if > issue > >> is fixed for you > >> > >> Regards > >> > >> Philippe M. > >> > >> http://www.ubik-ingenierie.com > >> > >> > >> On Sun, Jul 8, 2012 at 1:34 AM, Shmuel Krakower > >> wrote: > >> > >>> Hi > >>> I think that by default all browsers are caching everything unless this > >>> header is set to private (or if other headers are set to not allow > >>> caching). > >>> > >>> For me JMeter cache manager caches all resources, even those without > >>> cache-control directive. > >>> > >>> So I am unsure why you had to make a patch. > >>> > >>> Regards, > >>> Shmuel. > >>> בתאריך 2012 7 3 15:54, מאת "titou10 titou10" < > titou10.tito...@gmail.com>: > >>> > >>>> The Cache Manager component in JMeter v2.7 caches only content that > >>>> have an header with "Cache-control=public" and a "max-age" directive > >>>> > >>>> Usually, browsers also cache content that have "Cache-control=private" > >>>> without max-age.. (At least firefox 13 in win7 do that) > >>>> > >>>> I have patched JMeter to do so, with an option in the GUI to activate > >>>> or disable caching of such content. > >>>> > >>>> Are the reason why this is not the standard behaviour? > >>>> Is someone else interested in this patch? > >>>> > >>>> - > >>>> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >>>> For additional commands, e-mail: user-h...@jmeter.apache.org > >>>> > >>>> > >> > >> > > > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Start all threads at the same time
Hello, It's not sure you really need Synchronizing Timer. >From component reference: - http://jmeter.apache.org/usermanual/component_reference.html#Synchronizing_Timer The purpose of the SyncTimer is to block threads until X number of threads have been blocked, and then they are all released at once. A SyncTimer can thus create large instant loads at various points of the test plan. When you say number of Threads grows slowly with no rampup period, how slow is it ? are you sure it's OK to have no rampup period ? Read this: http://jmeter.apache.org/usermanual/best-practices Regards Philippe M. http://www.ubik-ingenierie.com On Wed, Jul 18, 2012 at 4:48 PM, unjc email wrote: > Great thanks Anthony. That's exactly what I am looking for. > > > > On Wed, Jul 18, 2012 at 10:40 AM, Anthony Johnson > wrote: > > The classic way is to use something like a Synchronizing timer. > > > > > http://jmeter.apache.org/usermanual/component_reference.html#Synchronizing_Timer > > > > Search the archives if you need more detail as this has been discussed > > on more than 1 occasion. > > > > Good luck, > > > > Anthony > > > > On Wed, Jul 18, 2012 at 10:27 AM, unjc email > wrote: > >> Hi all, > >> > >> I have created a test plan with a thread group of 200 threads and zero > >> ramp-up period. When I start the test, I saw the "thread counter" at > >> the top right corner takes long time to wind up to 200 (from 1/200 to > >> 200/200). Is there a way to make jmeter to start running all threads > >> at the same time? Any advice will be appreciated. > >> > >> > >> > >> Thanks, > >> Jacky > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >> For additional commands, e-mail: user-h...@jmeter.apache.org > >> > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Bad Throughput with Preprocessor
Hello, You might also try (using nightly build )using jsr223 éléments using groovy for example. In nightly build distrib, scripts passed as files are now compiled and cached which highly improves performances. But of course it's not yet an official release. http://jmeter.apache.org/nightly.html Regards Philippe On Wednesday, July 18, 2012, sebb wrote: > On 18 July 2012 19:17, Anthony Johnson > > wrote: > > Hey Jacky, > > If you are using the Beanshell Pre-processor and doing the 200 > > threads that you noted in another thread... you may be hitting a CPU > > bottleneck on your machine. > > > > Some options that might help: > > > > Set Reset Interpretor to False (so that the beanshell instance can be > re-used. > > Use less threads > > Use a faster machine or execute your test on more than 1 machine via > > Remote Testing. > > It may help to use the BeanShell init script to define suitable > methods, as that only has to be parsed once. > > > Hope this helps, > > > > Anthony > > > > On Wed, Jul 18, 2012 at 2:07 PM, unjc email > > > > wrote: > >> I need to use a preprocessor that allows script. I know > >> user-parameter is okay but I can't put logic in it. > >> > >> > >> On Wed, Jul 18, 2012 at 12:54 PM, Robin D. Wilson > >> > > wrote: > >>> Does it matter which preprocessor you use? I use the User Parameters > preprocessor (a lot), and I haven't noticed this. > >>> > >>> -- > >>> Robin D. Wilson > >>> Sr. Director of Web Development > >>> KingsIsle Entertainment, Inc. > >>> VOICE: 512-777-1861 > >>> www.KingsIsle.com > >>> > >>> > >>> -Original Message- > >>> From: unjc email [mailto:unjc.em...@gmail.com ] > >>> Sent: Wednesday, July 18, 2012 11:09 AM > >>> To: JMeter Users List > >>> Subject: Bad Throughput with Preprocessor > >>> > >>> Hello all, > >>> > >>> I want to test with dynamic-generated Url. I found there is a huge > >>> drop in throughput when I use preprocessor (even an empty > >>> preprocessor) for the HTTP sampler. The difference is as much as ten > >>> times in my test. Do any of you have any suggestion what to use if I > >>> have to implement some logics for the sampler? Any advice will be > >>> greatly appreciated. > >>> > >>> > >>> > >>> Thanks, > >>> Jacky > >>> > >>> - > >>> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >>> For additional commands, e-mail: user-h...@jmeter.apache.org > >>> > >>> > >>> - > >>> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >>> For additional commands, e-mail: user-h...@jmeter.apache.org > >>> > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >> For additional commands, e-mail: user-h...@jmeter.apache.org > >> > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: High CPU and memory consumption when load testing with HTTP Sampler
Hello, Read this : http://jmeter.apache.org/usermanual/best-practices.html Ensure you are not using View Results Tree or any other costly listeners. After checking all these points don't jump to conclusion that other parameters are OK if your original load test tool is reporting OK. Built-in samplers are rather highly tested and used , so i am not sure writing your own will help. Regards Philippe M. On Tue, Jul 24, 2012 at 8:28 PM, unjc email wrote: > Hi all, > > I have a test plan with 100 threads of HTTP Request samplers hitting a > web server via proxy server. My goal is to hammer the server as fast > as possible for an hour. When I run the test for first 30 seconds, > the throughput is excellent; slowly I found it keeps dropping. I am > sure it's not a problem with the network, proxy or web server because > the other load-testing tool has been working fine before I switch to > try Jmeter. > > I found that Jmeter consumes lots of memory and cpu cycles during the > test. I have tried "Statistical" and "Stripped" mode, along with > 2048M heap size. Nothing really helps to keep the test running for > long period of time. The java process is one hungry monster in the > top stats. Is there any lighter sampler available (that supports > proxy, custom originating IP, and https)? If not, is there any good > document that could help start writing my own plugin? Any comment or > advice will be greatly appreciated. > > > PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND > 6128 root 20 0 10.5g 2.3g 14m S 539.2 19.5 6:16.95 java > -server -XX:+HeapDumpOnOutOfMemoryError -Xms2048m -Xmx2048m > -XX:NewSize=128m -XX:MaxNewSize=128m -XX:MaxTenuringThreshold=2 > -Dsun.rmi.dgc.client.gcInterval=6 > > > > Thanks, > Jacky > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Should "Cache Manager" cache content with Cache-control=private?
Hello, Yes i did, get nightly build and you Will have it. https://issues.apache.org/bugzilla/show_bug.cgi?id=53522 Regards Philippe On Wednesday, July 25, 2012, titou10 wrote: > Philippe, > > Did you commit your last change about what to do when no expires and no > mnax-age are in teh headers? > I don't see the change in svn > > Thx > > Le 2012-07-14 11:53, Philippe Mouawad a écrit : > >> Hello, >> I modified the fix to comply with: >> RFC 2616 >> <http://tools.ietf.org/html/**rfc2616<http://tools.ietf.org/html/rfc2616>> >> section 13.2.4. >> When no expires and no max-age: >> >> Also, if the response does have a Last-Modified time, the heuristic >> expiration value SHOULD be no more than some fraction of the interval >> since that time. A typical setting of this fraction might be 10%. >> >> >> But if you don't send Last-Modified time , I don't see what the spec says >> about it. >> >> Regards >> Philippe >> On Sat, Jul 14, 2012 at 5:06 PM, sebb wrote: >> >> On 14 July 2012 14:21, titou10 wrote: >> >> (Sorry for the delay, I was out of office) >> >> Thanks Philippe for the fix but it is still not complete IMHO. >> >> Our application send backs pages with "Cache-control=private" WITHOUT any >> "max-age" header >> >> Does the page have an Expires header? >> >> And the browser caches the page (until the end of the session I guess..). >> Proved by firebug >> >> In your fix, max-age should not be mandatory and if absent, IMHO, the >> >> page >> >> should be kept in page "forever" (ie until the session ends) >> >> In my own fix for this bug, when max-age is missing, I consider it to be >> egal to one week (maxAgeInSecs=604800), which is, for us, mean >> "forever"...because I didn't want to change the whole "CacheManager" >> component logic for this. >> >> WDYT? >> >> Thanks >> >> Le 2012-07-08 05:45, Philippe Mouawad a écrit : >> >> Hello, >> Reading specification: >> private Indicates that all or part of the response message is intended >> >> for >> >> a single user and MUST NOT be cached by a shared cache. This allows an >> origin server to state that the specified parts of the >> response are intended for only one user and are not a valid response for >> requests by other users. A private (non-shared) cache MAY cache the >> response. >> >> *Note:* This usage of the word private only controls where the response >> may >> be cached, and cannot ensure the privacy of the message content. >> >> >> So I agree with you "titou10 titou 10" that JMeter should cache entry. I >> checked code and in fact it is not doing so. >> Bug is now fixed: >> >> - >> https://issues.apache.org/**bugzilla/show_bug.cgi?id=53521<https://issues.apache.org/bugzilla/show_bug.cgi?id=53521> >> >> Feel free to download nightly build when it's available and check if >> >> issue >> >> is fixed for you >> >> Regards >> >> Philippe M. >> >> http://www.ubik-ingenierie.com >> >> >> On Sun, Jul 8, 2012 at 1:34 AM, Shmuel Krakower >> wrote: >> >> Hi >> I think that by default all browsers are caching everything unless this >> header is set to private (or if other headers are set to not allow >> caching). >> >> For me JMeter cache manager caches all resources, even those without >> cache-control directive. >> >> So I am unsure why you had to make a patch. >> >> Regards, >> Shmuel. >> בתאריך 2012 7 3 15:54, מאת "titou10 titou10" < >> >> titou10.tito...@gmail.com>: >> >> The Cache Manager component in JMeter v2.7 caches only content that >> have an header with "Cache-control=public" and a "max-age" directive >> >> Usually, browsers also cache content that have "Cache-control=private" >> without max-age.. (At least firefox 13 in win7 do that) >> < >> >> > > --**--**- > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: java.sql.SQLException: No suitable driver found for jdbc:mysql:
Hello, JMeter 2.3 is a rather very old version. Although this is not the problem, you should upgrade to 2.7. Regards Philippe M. http://www.ubik-ingenierie.com On Wed, Jul 25, 2012 at 4:15 PM, arihan wrote: > mysql-connector-java-5.0.8-bin.jar and copy that to the below locations > > \jakarta-jmeter-2.3RC4\jakarta-jmeter-2.3RC4\lib > > C:\Program Files > (x86)\Java\jdk1.6.0_21\jre\lib\ext\mysql-connector-java-5.0.8-bin.jar > C:\Program Files > (x86)\Java\jdk1.6.0_21\jre\lib\mysql-connector-java-5.0.8-bin.jar > > also add in the classpath in env variable :-C:\Program Files > (x86)\Java\jdk1.6.0_21\jre\lib\mysql-connector-java-5.0.8-bin.jar > > Also you can check if com.mysql.jdbc.Driver is in the > mysql-connector-java-5.0.8-bin.jar by copy this to C:\Program Files > (x86)\Java\jdk1.6.0_21\bin and run > command as :- jar -tvf mysql-connector-java-5.0.8-bin.jar > > Cheers arihan > > > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/java-sql-SQLException-No-suitable-driver-found-for-jdbc-mysql-tp4553152p5714126.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad. Ubik-Ingénierie
Re: Flex Load Tests with JMeter
Hello, Currently there is no official Apache JMeter Flex Sampler due to license conflicts between BlazeDS license and Apache License. If you're looking for a Flex Sampler, my Company (UBIK-INGENIERIE) distributes a commercial Flex/AMF plugin for Apache JMeter 2.7 and upper versions. You can easily record, variabilize and replay FLEX/AMF based application with standard knowledge of Apache JMeter Proxy. See: http://www.ubik-ingenierie.com/-Solutions- http://www.ubik-ingenierie.com/ubikwiki/index.php?title=Load_Testing Regards Philippe M. - Philippe M. http://www.ubik-ingenierie.com -- View this message in context: http://jmeter.512774.n5.nabble.com/Flex-Load-Tests-with-JMeter-tp531265p5714134.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Load Testing of GWT Application
Hello, The real complexity exists if your application uses GWT-RPC, if it's using JSON then JMeter will do the job. If your login page is not the first page AND you application uses GWT RPC, then you will need either a plugin to JMeter that handles the serialization or use another tool. My Company (UBIK-INGENIERIE) distributes a commercial GWT Plugin for Apache JMeter. You can easily record, variabilize and replay GWT and GWT RPC based application with standard knowledge of Apache JMeter Proxy. See: http://www.ubik-ingenierie.com/-Solutions- http://www.ubik-ingenierie.com/ubikwiki/index.php?title=Load_Testing Regards Philippe M. - Philippe M. http://www.ubik-ingenierie.com -- View this message in context: http://jmeter.512774.n5.nabble.com/Load-Testing-of-GWT-Application-tp4841382p5714150.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Distribute traffic in Jmeter
Hello, I think this answers your question: - http://www.ubik-ingenierie.com/ubikwiki/index.php?title=JMeter_Switch_Controller_or_How_to_Run_a_sampler_with_a_certain_Percentage Regards Philippe M. http://www.ubik-ingenierie.com/-Solutions- On Thu, Aug 2, 2012 at 1:13 PM, Ильдар wrote: > Hello there, > > I have found "Weighted Distribution of tests" http://grinder.sourceforge.* > *net/g3/tutorial-weight-**distribution.html<http://grinder.sourceforge.net/g3/tutorial-weight-distribution.html>in > Grinder. Also googled but cannot find such feature in Jmeter. Is there > any such feature in Jmeter? > > Thanks! > > > > > --**--**- > To unsubscribe, e-mail: > user-unsubscribe@jmeter.**apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad. Ubik-Ingénierie
Re: Distribute traffic in Jmeter
Hello, Answer with Throughput Controller from ZK is also fine, the difference is that with my link you have a guarantee that one of the sampler will be executed if it's a requirement of your test. If it's not, Throughput Controller will do the job. Regards Philippe On Thu, Aug 2, 2012 at 1:23 PM, Philippe Mouawad < p.moua...@ubik-ingenierie.com> wrote: > Hello, > I think this answers your question: > >- > > http://www.ubik-ingenierie.com/ubikwiki/index.php?title=JMeter_Switch_Controller_or_How_to_Run_a_sampler_with_a_certain_Percentage > > Regards > Philippe M. > http://www.ubik-ingenierie.com/-Solutions- > > > On Thu, Aug 2, 2012 at 1:13 PM, Ильдар wrote: > >> Hello there, >> >> I have found "Weighted Distribution of tests" http://grinder.sourceforge. >> **net/g3/tutorial-weight-**distribution.html<http://grinder.sourceforge.net/g3/tutorial-weight-distribution.html>in >> Grinder. Also googled but cannot find such feature in Jmeter. Is there >> any such feature in Jmeter? >> >> Thanks! >> >> >> >> >> --**--**- >> To unsubscribe, e-mail: >> user-unsubscribe@jmeter.**apache.org >> For additional commands, e-mail: user-h...@jmeter.apache.org >> >> > > > -- > Cordialement. > Philippe Mouawad. > Ubik-Ingénierie > > > > -- Cordialement. Philippe Mouawad. Ubik-Ingénierie
Fwd: JMeter threading model
>From kirk (bad subject due to vacation message :) ) : Hi Phillippe, The on demand thread group worked brilliantly for my short test. I'll repeat with an 8 hour run to give it an even better test and let you know how that worked. -- Kirk -- Forwarded message -- From: *Kirk Pepperdine* Date: Monday, August 6, 2012 Subject: JMeter threading model To: Philippe Mouawad Cc: JMeter Users List Hi Philippe, Just got back from vacation going through email and I noticed that I missed this one. So I've now downloaded the nightly build and loaded a test plan to check it out. Unfortunately the benchmark I decided to setup and run against is borked. Well, I don't know if JMeter is the source of the problem my recent upgrade to Mountain Lion (and what it did to Java). I'll retry on an older machine where the bench should still behave as expected and then see how this new ThreadGroup functions. My guess is that it should be ok as it didn't complain as it would have using a regular ThreadGroup. However, I would like to run a much much longer test to make sure. I'll report back once this is done. Regards, Kirk On 2012-07-14, at 3:36 PM, Philippe Mouawad wrote: Hello, Just a little mail to inform you that this feature has been implemented as part of: - https://issues.apache.org/bugzilla/show_bug.cgi?id=53418 It is currently available in nightly build: - http://ci.apache.org/projects/jmeter/nightlies/ @Kirk, it would be nice from you to look at this feature to see if it answers your initial request and give us some feedback. *Note that this feature may be subject to changes until next release, but getting some feedback would be very useful. * Regards Philippe M. On Sun, Jun 17, 2012 at 9:06 PM, sebb wrote: On 17 June 2012 13:57, Flavio Cysne wrote: > Post entry in my blog: > http://flaviocysne.blogspot.com.br/2012/06/how-to-dynamically-increasedecrease.html > > It's an unfinished work, but it's suffice to make what is proposed. > Comments and constructive criticism are welcome. Thanks! The property used to control the thread count can also be set using the BeanShell server, see: http://jmeter.apache.org/usermanual/best-practices.html#beanshell_server Or since properties are global, you could run the property update sampler ("load controller") in a separate parallel thread group with one thread. However, JMeter will still have to start all the threads - even if they are not actively sampling - which will take up memory. It may not be too hard to change JMeter so it delays the thread creation until required. That may help in some use cases. But it would probably be somewhat harder to allow threads to be created later on demand. And converting to an event-based model is definitely a lot of work. > Hope it helps you. > Flávio Cysne > > 2012/6/15 Flavio Cysne > >> Errata: >> >> The first "If Controller" is executed and update a property named >> "currentThreads" ... >> >> >> 2012/6/15 Flavio Cysne >> >>> I have tested something in JMeter that could achieve a dynamic threading >>> model and there was no need of new implementations. >>> >>> Basically, I have this structure: >>> >>> 1. Test Plan: { variables : [ {name: "maxThreads", value: 5}, {name: >>> "currentThreads", value: 1} ] } >>> 2. | - Thread Group: { threads: "${maxThreads}", rampup: 0, infinite: >>> true } >>> 3. | - If Controller: { condition: "(${__threadNum()} === >>> ${maxThreads})" } >>> 4. | - Sampler /* I've used HTTP Request, but anyone would be >>> used */ >>> 5. | - RegEx Extractor: {refName: "threads", expression: >>> "(.*)", model: "$1$", matchNo: "1", defaultValue: "0"} >>> 6. | - BeanShell Post-Processor: {language: "javascript", >>> script: "var threads = vars.get(\"threads\");\nprops.put(\"currentThreads >>> \",threads);"} >>> 7. | - If Controller: { condition: "(${__threadNum()} < >>> ${maxThreads})" } >>> 8. | - If Controller: { condition: "(${__threadNum()} <= ${__P( >>> currentThreads,0)})" } >>> 9. | - All other Samplers go here >>> >>> >>> The idea is starting the maximum numbe -- Cordialement. Philippe Mouawad.
Re: JMeter threading model
Hello Kirk, Thank you very much for your feedback. Waiting for the big test result. Regards Philippe On Monday, August 6, 2012, Philippe Mouawad wrote: > From kirk (bad subject due to vacation message :) ) : > > > > Hi Phillippe, > > The on demand thread group worked brilliantly for my short test. I'll repeat > with an 8 hour > run to give it an even better test and let you know how that worked. > > -- Kirk > > > -- Forwarded message -- > From: *Kirk Pepperdine* > Date: Monday, August 6, 2012 > Subject: JMeter threading model > To: Philippe Mouawad > Cc: JMeter Users List > > > Hi Philippe, > > Just got back from vacation going through email and I noticed that I > missed this one. So I've now downloaded the nightly build and loaded a test > plan to check it out. Unfortunately the benchmark I decided to setup and > run against is borked. Well, I don't know if JMeter is the source of the > problem my recent upgrade to Mountain Lion (and what it did to Java). I'll > retry on an older machine where the bench should still behave as expected > and then see how this new ThreadGroup functions. My guess is that it should > be ok as it didn't complain as it would have using a regular ThreadGroup. > However, I would like to run a much much longer test to make sure. I'll > report back once this is done. > > Regards, > Kirk > > On 2012-07-14, at 3:36 PM, Philippe Mouawad > wrote: > > Hello, > Just a little mail to inform you that this feature has been implemented as > part of: > >- https://issues.apache.org/bugzilla/show_bug.cgi?id=53418 > > It is currently available in nightly build: > >- http://ci.apache.org/projects/jmeter/nightlies/ > > > @Kirk, it would be nice from you to look at this feature to see if it > answers your initial request and give us some feedback. > > *Note that this feature may be subject to changes until next release, but > getting some feedback would be very useful. > * > > Regards > Philippe M. > > On Sun, Jun 17, 2012 at 9:06 PM, sebb wrote: > > On 17 June 2012 13:57, Flavio Cysne wrote: > > Post entry in my blog: > > > http://flaviocysne.blogspot.com.br/2012/06/how-to-dynamically-increasedecrease.html > > > > It's an unfinished work, but it's suffice to make what is proposed. > > Comments and constructive criticism are welcome. > > Thanks! > > The property used to control the thread count can also be set using > the BeanShell server, see: > > http://jmeter.apache.org/usermanual/best-practices.html#beanshell_server > > Or since properties are global, you could run the property update > sampler ("load controller") in a separate parallel thread group with > one thread. > > However, JMeter will still have to start all the threads - even if > they are not actively sampling - which will take up memory. > > It may not be too hard to change JMeter so it delays the thread > creation until required. > That may help in some use cases. > > But it would probably be somewhat harder to allow threads to be > created later on demand. > And converting to an event-based model is definitely a lot of work. > > > Hope it helps you. > > Flávio Cysne > > > > 2012/6/15 Flavio Cysne > > > >> Errata: > >> > >> The first "If Controller" is executed and update a property named > >> "currentThreads" ... > >> > >> > >> 2012/6/15 Flavio Cysne > >> > >>> I have tested something in JMeter that could achieve a dynamic > threading > >>> model and there was no need of new implementations. > >>> > >>> Basically, I have this structure: > >>> > >>> 1. Test Plan: { variables : [ {name: "maxThreads", value: 5}, {name: > >>> "currentThreads", value: 1} ] } > >>> 2. | - Thread Group: { threads: "${maxThreads}", rampup: 0, infinite: > >>> true } > >>> 3. | - If Controller: { condition: "(${__threadNum()} === > >>> ${maxThreads})" } > >>> 4. | - Sampler /* I've used HTTP Request, but anyone would be > >>> used */ > >>> 5. | - RegEx Extractor: {refName: "th > > > > -- > Cordialement. > Philippe Mouawad. > > > > -- Cordialement. Philippe Mouawad.
Re: Configuration to get Transaction and Request level information without duplication
Jp@gc is not supported by Apache Jmeter. Please redirect your question to the right mailing list. On Friday, August 17, 2012, Anandkumar Natarajan wrote: > Hi, > > Please suggest how to configure Jmeter to display information from > Transaction Controller at "Summary Report" and "jp@gc - Transaction > Throughput vs Threads" Listeners and at the same time display complete > request level information at other listeners like "View Results Tree" > > When Requests are grouped under Simple Controller, request level > information is displayed at all listeners. This is too much of information > for some of the reports that has to be shared with management hence grouped > requests under Transaction Controller which solved the need. But this > removed much needed information from other reports which are required to > trouble shoot the bottleneck. > > We could have two sets of scripts, one for management and other for > engineering but execution and maintenance overheads creep_up and some > intermediate issues are getting missed. Also for some reports like "jp@gc- > Transaction Throughput vs Threads" if we don't use Transaction Controller > then the graph is completely hidden with URL information. > > Looking forward to your suggestions, thank you in advance. > > Regards, > AK > -- Cordialement. Philippe Mouawad.
WE NEED YOUR HELP TO SOLVE A POTENTIAL BUG WITH JAPANESE CHARACTERS URL ENCODED
Hello Apache JMeter Users, A little reminder on this message hoping someone can help us provide a Test Plan. Regards Philippe M. on behalf of Apache JMeter Team On Wed, Jun 27, 2012 at 10:42 PM, Philippe Mouawad < philippe.moua...@gmail.com> wrote: > Hello Apache JMeter Users, > To fix a potential issue in jmeter related to japanese characters being > badly encoded: > >- https://issues.apache.org/bugzilla/show_bug.cgi?id=45132 > > > We would like japanese users of jmeter to provide us a simple test plan > working against a public facing website reproducing the described issue > with these kind of characters. > > Your contribution will be Highly appreciated. > > Please attach test plan to bug. > > Regards > Philippe M. on behalf of Apache JMeter Team > > Sorry if title translation is wrong :-) > > -- > Cordialement. > Philippe Mouawad. > > > > -- Cordialement. Philippe Mouawad.
Re: WE NEED YOUR HELP TO SOLVE A POTENTIAL BUG WITH JAPANESE
Hello Anthony, First thank you very much for your tests. Regarding character, can you test with 婷 (\u5A77) , TING in english from google translation. Thank you Regards Philippe On Thu, Aug 23, 2012 at 4:31 AM, Anthony Johnson wrote: > Hey Guys, > Not able to reproduce this, but I am on a Mac which I believe uses > UTF-8 for everything(Windows required?!?). Perhaps my steps are incorrect? > I simply put an "@" into a search bar and hit enter to see how the URL was > encoded using Safari and Firefox. > > FYI, amazon.co.jp's website uses shift-jis. > > Is this what we are thinking for trying to reproduce? > > Thanks, > > Anthony > > On Wed, Aug 22, 2012 at 7:29 PM, Anthony Johnson wrote: >> >> >> Wife is Japanese... I'll see what I can do:) >> >> Sent from my Windows Phone >> From: Philippe Mouawad >> Sent: 8/22/2012 5:52 PM >> To: JMeter Users List >> Subject: WE NEED YOUR HELP TO SOLVE A POTENTIAL BUG WITH JAPANESE >> CHARACTERS URL ENCODED >> Hello Apache JMeter Users, >> A little reminder on this message hoping someone can help us provide a >> Test >> Plan. >> >> Regards >> Philippe M. on behalf of Apache JMeter Team >> >> On Wed, Jun 27, 2012 at 10:42 PM, Philippe Mouawad < >> philippe.moua...@gmail.com> wrote: >> >> > Hello Apache JMeter Users, >> > To fix a potential issue in jmeter related to japanese characters being >> > badly encoded: >> > >> >- https://issues.apache.org/bugzilla/show_bug.cgi?id=45132 >> > >> > >> > We would like japanese users of jmeter to provide us a simple test plan >> > working against a public facing website reproducing the described issue >> > with these kind of characters. >> > >> > Your contribution will be Highly appreciated. >> > >> > Please attach test plan to bug. >> > >> > Regards >> > Philippe M. on behalf of Apache JMeter Team >> > >> > Sorry if title translation is wrong :-) >> > >> > -- >> > Cordialement. >> > Philippe Mouawad. >> > >> > >> > >> > >> >> >> -- >> Cordialement. >> Philippe Mouawad. >> >> --14dae9340fe3e7bda104c7e1c156-- >> > > -- Cordialement. Philippe Mouawad.
Re: WE NEED YOUR HELP TO SOLVE A POTENTIAL BUG WITH JAPANESE
Hello, Possible , sorry I don't know. Issue was originally submitted with this character then a japanese user said he was also facing issue, so I supposes it was a japenese one. Google translation accepted character as japanese but I am absolutely not sure it is. ( hope I didn't hurt anybody). Regards Philippe On Friday, August 24, 2012, 李辰 wrote: > Isn't this a Chinese Han word? > > Sent from my iPhone > > > > 在 Aug 23, 2012,17:14,"Philippe Mouawad" > > > 写道: > > > Hello Anthony, > > First thank you very much for your tests. > > > > Regarding character, can you test with 婷 (\u5A77) , TING in english from > > google translation. > > > > Thank you > > Regards > > Philippe > > > > On Thu, Aug 23, 2012 at 4:31 AM, Anthony Johnson > > > > wrote: > > > >> Hey Guys, > >>Not able to reproduce this, but I am on a Mac which I believe uses > >> UTF-8 for everything(Windows required?!?). Perhaps my steps are > incorrect? > >> I simply put an "@" into a search bar and hit enter to see how the URL > was > >> encoded using Safari and Firefox. > >> > >> FYI, amazon.co.jp's website uses shift-jis. > >> > >> Is this what we are thinking for trying to reproduce? > >> > >> Thanks, > >> > >> Anthony > >> > >> On Wed, Aug 22, 2012 at 7:29 PM, Anthony Johnson > >> > > wrote: > >>> > >>> > >>> Wife is Japanese... I'll see what I can do:) > >>> > >>> Sent from my Windows Phone > >>> From: Philippe Mouawad > >>> Sent: 8/22/2012 5:52 PM > >>> To: JMeter Users List > >>> Subject: WE NEED YOUR HELP TO SOLVE A POTENTIAL BUG WITH JAPANESE > >>> CHARACTERS URL ENCODED > >>> Hello Apache JMeter Users, > >>> A little reminder on this message hoping someone can help us provide a > >>> Test > >>> Plan. > >>> > >>> Regards > >>> Philippe M. on behalf of Apache JMeter Team > >>> > >>> On Wed, Jun 27, 2012 at 10:42 PM, Philippe Mouawad < > >>> philippe.moua...@gmail.com > wrote: > >>> > >>>> Hello Apache JMeter Users, > >>>> To fix a potential issue in jmeter related to japanese characters > being > >>>> badly encoded: > >>>> > >>>> - https://issues.apache.org/bugzilla/show_bug.cgi?id=45132 > >>>> > >>>> > >>>> We would like japanese users of jmeter to provide us a simple test > plan > >>>> working against a public facing website reproducing the described > issue > >>>> with these kind of characters. > >>>> > >>>> Your contribution will be Highly appreciated. > >>>> > >>>> Please attach test plan to bug. > >>>> > >>>> Regards > >>>> Philippe M. on behalf of Apache JMeter Team > >>>> > >>>> Sorry if title translation is wrong :-) > >>>> > >>>> -- > >>>> Cordialement. > >>>> Philippe Mouawad. > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> -- > >>> Cordialement. > >>> Philippe Mouawad. > >>> > >>> --14dae9340fe3e7bda104c7e1c156-- > >>> > >> > >> > > > > > > -- > > Cordialement. > > Philippe Mouawad. > -- Cordialement. Philippe Mouawad.
Re: Can't download jmeter 2.7 from any mirror sites
Salut Milamber, Juste pour ma curiosité, comment tu sais ça ? Merci Cordialement Philippe On Mon, Aug 27, 2012 at 7:57 AM, Milamber wrote: > Hello, > > There is currently a issuein replication with mirrors. > > You can download the latest version of JMeter here: > http://archive.apache.org/**dist/jmeter/binaries/<http://archive.apache.org/dist/jmeter/binaries/> > > Milamber > > Le 27/08/2012 01:23, Marcelo Jara a ecrit : > > I'm trying to download Jmeter 2.7 and all the mirrors say the file is not >> found. Is this due to 2.8 coming soon? >> >> >> >> > > > --**--**- > To unsubscribe, e-mail: > user-unsubscribe@jmeter.**apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: OutOfMemoryError: Java heap space
ator or mailad...@igate.com. > > iGATE does not enter into any agreement with any party by e-mail. Any > > views expressed by an individual do not necessarily reflect the view of > > iGATE. iGATE is not responsible for the consequences of any actions > > taken on the basis of information provided, through this email. The > > contents of an attachment to this e-mail may contain software viruses, > > which could damage your own computer system. While iGATE has taken every > > reasonable precaution to minimise this risk, we cannot accept liability > > for any damage which you sustain as a result of software viruses. You > > should carry out your own virus checks before opening an attachment. To > > know more about iGATE please visit www.igate.com. > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > > __ > > This email has been scanned by the Symantec Email Security.cloud > > service. > > __ > > This email has been inspected by NextLabs' Outlook Policy Enforcer to > > ensure compliance > > > > - > > STATEMENT OF CONFIDENTIALITY > > > > The information contained in this electronic message and any attachments > > to this message are intended for the exclusive use of the addressee(s) > > and may contain confidential or privileged information. No > > representation is made on its accuracy or completeness of the > > information contained in this electronic message. Certain assumptions > > may have been made in the preparation of this material as at this date, > > and are subject to change without notice. If you are not the intended > > recipient, you are hereby notified that any dissemination, distribution > > or copying of this e-mail and any attachment(s) is strictly prohibited. > > Please reply to the sender at NextLabs Inc and destroy all copies of > > this message and any attachments from your system. > > == > > *** > > Disclaimer > > > > The information contained in this communication is confidential and may > be > > legally privileged. > > It is intended solely for the use of the individual or entity to whom it > > is addressed and others authorised to receive it. > > If you are not the intended recipient you are hereby notified that any > > disclosure, copying, > > distribution or taking action in reliance of the contents of this > > information is strictly prohibited and may be unlawful. > > KPMG is neither liable for the proper, > > complete transmission of the information contained in this communication > > nor any delay in its receipt. > > *** > > > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > -- Cordialement. Philippe Mouawad. Ubik-Ingénierie
Re: Any way to obtain the JMeter version from the inside?
And when 2.8 will be available version will be in JMX file. Regards Philippe M On Wed, Sep 12, 2012 at 8:27 PM, Anthony Johnson wrote: > Easiest way I know of is to use a Beanshell/BSF Sampler with the following: > > import org.apache.jmeter.util.*; > return JMeterUtils.getJMeterVersion(); > > You can save the version to a var or property via the vars or props > variable. > > > On Wed, Sep 12, 2012 at 12:54 PM, Mikhail T. > wrote: > > It does not seem to be among variables or properties listed by debug > > samplers... It, probably, should be there. > > > > Is there any other way to obtain it from the test-plan's code? Thanks! > > > >-mi > > > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Beanshell or BSF? (Re: Any way to obtain the JMeter version from the inside?)
The best option will be JSR223 + Scripts in files when 2.8 is available as it will let you use Groovy for example and cache / compile scripts. Regards Philippe On Wed, Sep 12, 2012 at 8:31 PM, Mikhail T. wrote: > On 12.09.2012 14:27, Anthony Johnson wrote: > >> Easiest way I know of is to use a Beanshell/BSF Sampler [...] >> > What are the pros and cons of one over the other? Faster/slower? More/less > memory consuming? Other considerations? Thanks! > > --**--**- > To unsubscribe, e-mail: > user-unsubscribe@jmeter.**apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Any way to obtain the JMeter version from the inside?
JMeterUtils.getJMeterVersion() In JMX : On Wed, Sep 12, 2012 at 8:54 PM, Anthony Johnson wrote: > Hey Philippe, > How would someone obtain that version information in the JMX file > in 2.8? Is it going to reachable via a property or function? > > Just curious, > > Anthony > > On Wed, Sep 12, 2012 at 2:46 PM, Philippe Mouawad > wrote: > > And when 2.8 will be available version will be in JMX file. > > > > Regards > > Philippe M > > > > On Wed, Sep 12, 2012 at 8:27 PM, Anthony Johnson > wrote: > > > >> Easiest way I know of is to use a Beanshell/BSF Sampler with the > following: > >> > >> import org.apache.jmeter.util.*; > >> return JMeterUtils.getJMeterVersion(); > >> > >> You can save the version to a var or property via the vars or props > >> variable. > >> > >> > >> On Wed, Sep 12, 2012 at 12:54 PM, Mikhail T. > > >> wrote: > >> > It does not seem to be among variables or properties listed by debug > >> > samplers... It, probably, should be there. > >> > > >> > Is there any other way to obtain it from the test-plan's code? Thanks! > >> > > >> >-mi > >> > > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >> For additional commands, e-mail: user-h...@jmeter.apache.org > >> > >> > > > > > > -- > > Cordialement. > > Philippe Mouawad. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Any way to obtain the JMeter version from the inside?
Yes, you are right deepack. JMeterUtils.getJMeterVersion() returns the current version The attribute in jmx is the one that created the Test Plan. Regards Philippe On Wed, Sep 12, 2012 at 9:21 PM, Deepak Shetty wrote: > Hi > Arent we dealing with two different versions here > a. the version in which the test plan was created (which is what will get > saved in the JMX script right?) > b. The current version of jmeter thats running (Jmeterutils) > > regards > deepak > > On Wed, Sep 12, 2012 at 12:17 PM, Philippe Mouawad < > philippe.moua...@gmail.com> wrote: > > > JMeterUtils.getJMeterVersion() > > In JMX : > > > > > > > > On Wed, Sep 12, 2012 at 8:54 PM, Anthony Johnson > wrote: > > > > > Hey Philippe, > > > How would someone obtain that version information in the JMX file > > > in 2.8? Is it going to reachable via a property or function? > > > > > > Just curious, > > > > > > Anthony > > > > > > On Wed, Sep 12, 2012 at 2:46 PM, Philippe Mouawad > > > wrote: > > > > And when 2.8 will be available version will be in JMX file. > > > > > > > > Regards > > > > Philippe M > > > > > > > > On Wed, Sep 12, 2012 at 8:27 PM, Anthony Johnson > > > wrote: > > > > > > > >> Easiest way I know of is to use a Beanshell/BSF Sampler with the > > > following: > > > >> > > > >> import org.apache.jmeter.util.*; > > > >> return JMeterUtils.getJMeterVersion(); > > > >> > > > >> You can save the version to a var or property via the vars or props > > > >> variable. > > > >> > > > >> > > > >> On Wed, Sep 12, 2012 at 12:54 PM, Mikhail T. < > > mi+t...@aldan.algebra.com > > > > > > > >> wrote: > > > >> > It does not seem to be among variables or properties listed by > debug > > > >> > samplers... It, probably, should be there. > > > >> > > > > >> > Is there any other way to obtain it from the test-plan's code? > > Thanks! > > > >> > > > > >> >-mi > > > >> > > > > >> > > > >> > - > > > >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > > >> For additional commands, e-mail: user-h...@jmeter.apache.org > > > >> > > > >> > > > > > > > > > > > > -- > > > > Cordialement. > > > > Philippe Mouawad. > > > > > > - > > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > > > > > > > > -- > > Cordialement. > > Philippe Mouawad. > > > -- Cordialement. Philippe Mouawad.
Re: Beanshell or BSF? (Re: Any way to obtain the JMeter version from the inside?)
Same answer, JSR 223 will make JMeter work less. On Thu, Sep 13, 2012 at 8:16 PM, Mikhail T. wrote: > On 12.09.2012 14:48, Philippe Mouawad wrote: > >> The best option will be JSR223 + Scripts in files when 2.8 is available as >> it will let you use Groovy for example and cache / compile scripts. >> > But of the two I listed -- for small scripts, which simply set a few > variables based on those, that already exist -- what's better (easier to > write, easier to execute, easier to alter later)? > > Thanks, > >-mi > > -- Cordialement. Philippe Mouawad.
Re: Regarding: http://wiki.apache.org/jmeter/JMeterPerformance
Hello, Tried to clarify. And added infos about 2.8: - http://wiki.apache.org/jmeter/JMeterPerformance Regards Philippe On Wed, Jun 20, 2012 at 2:32 PM, Shay Ginsbourg wrote: > anyone ? > > > > > > On Tue, Jun 19, 2012 at 9:07 PM, Shmuel Krakower > wrote: > > > Hi, > > The conclusions are not clear to me. > > > > Would you mind explaining / adding to the wiki: > > > > > > - No significant improvement between 2.6 and 2.5.1 > > - Significant improvement between 2.7 and 2.6 > > - Better memory behaviour > > - More accurate response times with High Load > > > > 1. What is measured as improvement? > > 2. I think memory behavior is missing for 2.6? > > 3. What is more accurate about the response times? > > > > btw- I was looking for a way to have a discussion on the wiki itself, but > > couldn't find one. > > > > Best, > > Shmuel. > > > > > > -- > > > Shay Ginsbourg > > Regulatory & Testing Affairs Consultant > > > WWW.GINSBOURG.COM > > > Providing Regulatory, Medical & Performance Testing services since 2008: > > * IEC 62304 Medical Device Software Life Cycle > > * IEEE 829 Software Test Documentation > > * ISO 14971 Medical Device Risk Management > > * FDA 21 CFR Part 11 Software Validation > > * IEC 60601-1:2005 3rd ED PEMS - Medical Electrical Equipment > > * End-to-end verification, validation, and testing (VV&T) > > * FDA and CE submissions > > * Open source free testing tools implementation > > * Functionality and regression testing > > * Software Performance & Load testing > > * Software Testing Advanced Automation > > * Medical Software Verification & Validation > > * Medical Device Verification & Validation > > * Medical Device Regulatory Submission > > * Organizational Regulatory Qualification > > > Formerly QA Manager of LoadRunner at Mercury Interactive > > > M.Sc. cum laude in Bio-Medical Engineering > > M.Sc. in Mechanical Engineering > > > > Work: +972(0)3-5185873 > > Mobile: +972(0)54-6690915 > > > Email: sginsbo...@gmail.com > > > Visit my personal page on LinkedIn at: > http://www.linkedin.com/in/shayginsbourg > > > Please consider your environmental responsibility before printing this > e-mail. > -- Cordialement. Philippe Mouawad.
Re: Need help with jmeter plugin writing
Hello Eugene, Put your function class in a package that contain function*s package yugene.jmeter.function; SHOULD BE: package yugene.jmeter.functions; * Regards Philippe M On Mon, Oct 1, 2012 at 9:57 PM, Eugene Kazakov wrote: > nobody can help me, Philippe, sebb? > > On 29 September 2012 14:02, Eugene Kazakov wrote: > > > Hello! > > I hope you can help me with my problem with writing a plugin for JMeter. > > I try to write a function which replace in some string a substring in > > accordance with a pattern > > For it issue I took a code from jp@gc plugins and replaced name of > class, > > description, key descriptor and code in execute method, compiled it and > > added > > to jar file. After that I put it in lib/ext folder and ran JMeter. But I > > can't find my function in function helper and can't use it in script, > > although I saw my plugin in list of loaded jars in jmeter.log. > > I attached my code, script and jar file to mail, could you look it, > please? > > > > -- > > Thank you, > > Eugene Kazakov > > > > > > > -- > Thank you, > Eugene Kazakov > -- Cordialement. Philippe Mouawad. Ubik-Ingénierie
Re: HTTP Sampler Memory Leak
Hello, Which map are you talking about in HTTPHC4Impl ? If it's this one: - Map map = HTTPCLIENTS.get(); Then it only exists once per thread and per combination of : -url.getProtocol()+"://"+url.getAuthority(); this.hasProxy = b; this.proxyHost = proxyHost; this.proxyPort = proxyPort; this.proxyUser = proxyUser; this.proxyPass = proxyPass; so unless you change these per url , it won't grow a lot. Check what Deepak is suggesting and if issue persists, then generate a Heap Dump and put it somewhere where we can download it. Regards Philippe On Wed, Oct 10, 2012 at 8:53 PM, Deepak Shetty wrote: > Hi > its more likely that you have some listener turned on (like view results > tree) - Even if a URL is 2000 characters you can calculate how many URLs > before you use up say 100MB of memory. Do you really have that many URLs > even if they are dynamic? > http://jmeter.apache.org/usermanual/best-practices.html#lean_mean > > regards > deepak > > On Wed, Oct 10, 2012 at 9:21 AM, unjc email wrote: > > > Hi all, > > > > I have memory and cpu issues when running heavy load testing with > > HTTP(S) sampler. The purpose of my test is to hammer the server as > > fast as Jmeter can, using a big list of hostnames and URIs, via a > > proxy server. The test plan I have setup is configured with > > 100-thread thread group that contains a HTTPS Request sampler (using > > HTTPClient4) and Summary Results generator. > > > > The machine I am using has 12GB memory and 16-core cpu. I monitor the > > top output throughout the test. I notice the RES size of the jmeter > > java process is growing really fast - it reaches 2GB heap size limit > > in less 5 minutes. The test could never go beyond 30-minute mark > > without OutOfMemory exception. I know there are plenty of free memory > > for me to expand the heap size; but my concern is whether there is a > > memory leak in the code. I worry the process would suck up all > > available memory anyway if I run a stress test for a day or longer. > > > > I have skimmed through the code of HTTPHC4Impl and found that there is > > cache "map" for HttpClient with regard to URL. I suspect this cache > > map could go pretty crazy in tests that deal with large number of (or > > dynamic) URLs. Just curiosity, I tried running a test with using a > > custom sampler as like HTTPHC4Impl but without the cache map; it seems > > help slowing down the pace of the heap size. However, the heap size > > (RES size in top output) never seem settle at one level over time. > > > > Does anyone have any experience in running similar test as I do? Does > > it look like a potential "memory leak" to you? Any comment or advice > > will be appreciated. > > > > > > > > > > Thanks, > > Jacky > > > > - > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > -- Cordialement. Philippe Mouawad.
Re: HTTP Sampler Memory Leak
Another question, which version are you using ? On Wed, Oct 10, 2012 at 9:20 PM, Philippe Mouawad < philippe.moua...@gmail.com> wrote: > Hello, > Which map are you talking about in HTTPHC4Impl ? > > If it's this one: > >- Map map = HTTPCLIENTS.get(); > > Then it only exists once per thread and per combination of : > >-url.getProtocol()+"://"+url.getAuthority(); >this.hasProxy = b; >this.proxyHost = proxyHost; >this.proxyPort = proxyPort; >this.proxyUser = proxyUser; >this.proxyPass = proxyPass; > > so unless you change these per url , it won't grow a lot. > > Check what Deepak is suggesting and if issue persists, then generate a > Heap Dump and put it somewhere where we can download it. > > Regards > Philippe > > On Wed, Oct 10, 2012 at 8:53 PM, Deepak Shetty wrote: > >> Hi >> its more likely that you have some listener turned on (like view results >> tree) - Even if a URL is 2000 characters you can calculate how many URLs >> before you use up say 100MB of memory. Do you really have that many URLs >> even if they are dynamic? >> http://jmeter.apache.org/usermanual/best-practices.html#lean_mean >> >> regards >> deepak >> >> On Wed, Oct 10, 2012 at 9:21 AM, unjc email wrote: >> >> > Hi all, >> > >> > I have memory and cpu issues when running heavy load testing with >> > HTTP(S) sampler. The purpose of my test is to hammer the server as >> > fast as Jmeter can, using a big list of hostnames and URIs, via a >> > proxy server. The test plan I have setup is configured with >> > 100-thread thread group that contains a HTTPS Request sampler (using >> > HTTPClient4) and Summary Results generator. >> > >> > The machine I am using has 12GB memory and 16-core cpu. I monitor the >> > top output throughout the test. I notice the RES size of the jmeter >> > java process is growing really fast - it reaches 2GB heap size limit >> > in less 5 minutes. The test could never go beyond 30-minute mark >> > without OutOfMemory exception. I know there are plenty of free memory >> > for me to expand the heap size; but my concern is whether there is a >> > memory leak in the code. I worry the process would suck up all >> > available memory anyway if I run a stress test for a day or longer. >> > >> > I have skimmed through the code of HTTPHC4Impl and found that there is >> > cache "map" for HttpClient with regard to URL. I suspect this cache >> > map could go pretty crazy in tests that deal with large number of (or >> > dynamic) URLs. Just curiosity, I tried running a test with using a >> > custom sampler as like HTTPHC4Impl but without the cache map; it seems >> > help slowing down the pace of the heap size. However, the heap size >> > (RES size in top output) never seem settle at one level over time. >> > >> > Does anyone have any experience in running similar test as I do? Does >> > it look like a potential "memory leak" to you? Any comment or advice >> > will be appreciated. >> > >> > >> > >> > >> > Thanks, >> > Jacky >> > >> > - >> > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org >> > For additional commands, e-mail: user-h...@jmeter.apache.org >> > >> > >> > > > > -- > Cordialement. > Philippe Mouawad. > > > > -- Cordialement. Philippe Mouawad.
Re: HTTP Sampler Memory Leak
Hello, I looked at your heap dump, it seems you are load testing lots of differents WEBSITES (I mean HOSTs are all different). This is clearly a very "weird" use case that we don't handle for now, and I am not sure we will. Regards Philippe On Thu, Oct 11, 2012 at 12:10 AM, unjc email wrote: > I have uploaded the heap dump file online and it's available at > http://dl.free.fr/qZBPvLRB8. > > > > Thanks, > Jacky > > On Wed, Oct 10, 2012 at 3:20 PM, Philippe Mouawad > wrote: > > Hello, > > Which map are you talking about in HTTPHC4Impl ? > > > > If it's this one: > > > >- Map map = HTTPCLIENTS.get(); > > > > Then it only exists once per thread and per combination of : > > > >-url.getProtocol()+"://"+url.getAuthority(); > >this.hasProxy = b; > >this.proxyHost = proxyHost; > >this.proxyPort = proxyPort; > >this.proxyUser = proxyUser; > >this.proxyPass = proxyPass; > > > > so unless you change these per url , it won't grow a lot. > > > > Check what Deepak is suggesting and if issue persists, then generate a > Heap > > Dump and put it somewhere where we can download it. > > > > Regards > > Philippe > > > > On Wed, Oct 10, 2012 at 8:53 PM, Deepak Shetty > wrote: > > > >> Hi > >> its more likely that you have some listener turned on (like view results > >> tree) - Even if a URL is 2000 characters you can calculate how many URLs > >> before you use up say 100MB of memory. Do you really have that many URLs > >> even if they are dynamic? > >> http://jmeter.apache.org/usermanual/best-practices.html#lean_mean > >> > >> regards > >> deepak > >> > >> On Wed, Oct 10, 2012 at 9:21 AM, unjc email > wrote: > >> > >> > Hi all, > >> > > >> > I have memory and cpu issues when running heavy load testing with > >> > HTTP(S) sampler. The purpose of my test is to hammer the server as > >> > fast as Jmeter can, using a big list of hostnames and URIs, via a > >> > proxy server. The test plan I have setup is configured with > >> > 100-thread thread group that contains a HTTPS Request sampler (using > >> > HTTPClient4) and Summary Results generator. > >> > > >> > The machine I am using has 12GB memory and 16-core cpu. I monitor the > >> > top output throughout the test. I notice the RES size of the jmeter > >> > java process is growing really fast - it reaches 2GB heap size limit > >> > in less 5 minutes. The test could never go beyond 30-minute mark > >> > without OutOfMemory exception. I know there are plenty of free memory > >> > for me to expand the heap size; but my concern is whether there is a > >> > memory leak in the code. I worry the process would suck up all > >> > available memory anyway if I run a stress test for a day or longer. > >> > > >> > I have skimmed through the code of HTTPHC4Impl and found that there is > >> > cache "map" for HttpClient with regard to URL. I suspect this cache > >> > map could go pretty crazy in tests that deal with large number of (or > >> > dynamic) URLs. Just curiosity, I tried running a test with using a > >> > custom sampler as like HTTPHC4Impl but without the cache map; it seems > >> > help slowing down the pace of the heap size. However, the heap size > >> > (RES size in top output) never seem settle at one level over time. > >> > > >> > Does anyone have any experience in running similar test as I do? Does > >> > it look like a potential "memory leak" to you? Any comment or advice > >> > will be appreciated. > >> > > >> > > >> > > >> > > >> > Thanks, > >> > Jacky > >> > > >> > - > >> > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >> > For additional commands, e-mail: user-h...@jmeter.apache.org > >> > > >> > > >> > > > > > > > > -- > > Cordialement. > > Philippe Mouawad. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Altering HTTP-request headers
Can you open a bugzilla with this simple test plan. Which version are you using, there has been a fix to header manager merging. Thank you Regards Philippe On Tuesday, October 16, 2012, Mikhail T. wrote: > On 15.10.2012 09:31, Sławomir Kluz wrote: > >> In your case, set Host-header should be a child of HTTPSampler. >> > This method does not seem to work... What I have is: > >HTTP Header manager (setting headers common for all) >While-loopp (based on a CSV-controller) > HTTPSampler-1 > HTTPSampler-2 > HTTP Header manager (setting an additional header) > > Unfortunately, it does not seem like the second HTTP Header manager has > any effect -- the second HTTP sampler is executed without the additional > header... > > Any ideas? Thanks! > >-mi > > -- Cordialement. Philippe Mouawad.
Re: CSV data set issues in JMeter 2.8?
Hello, Can you open a bug in bugzilla attaching a simple test plan showing the issue and describing where you put the files on each machine and attaching jmeter log file. Thank you On Friday, November 2, 2012, Oliver Erlewein wrote: > Hi, > > Tried some more scripts and it always breaks. If I run the scripts on a > local install all works just fine. As soon as I go and use the remote > machines it fails reading the CSV. > > Regards Oliver > > On 2 November 2012 12:09, Oliver Erlewein > > wrote: > > > Hi, > > > > I'm running a distributed test environment and ever since upgrading to > > JMeter 2.8 I have issues loading CSV files. I have made no changes (and > it > > was working before). Now I only get EOF returned instead of the content. > > Anyone having similar issues? > > > > I know there is a bug 53679 but I don't think it applies here. > > > > Cheers Oliver > > > -- Cordialement. Philippe Mouawad.
SoapSampler deprecation ?
Hello, I was wondering if we shouldn't deprecate Soap Sampler . Here are the reasons for that: - Since introduction of Raw Post body in HTTP Sampler it has become rather useless except for SoapAction computation inside GUI - It suffers from a bug which seems hard to fix (not technically but because we don't know where the source code of soap.jar is) and which seems to me rather a big one: - https://issues.apache.org/bugzilla/show_bug.cgi?id=54006 - It relies on rather old library -- Regards. Philippe
Re: SoapSampler deprecation ?
One thing we could do is put wsdl helper that computes method names and soapaction in a dialog like function helper. Although in my opinion it is not as complete as it does not compute soap ws body which is the most complete part. But at least we would not lose any feature. Regards Philippe On Wednesday, November 7, 2012, sebb wrote: > On 6 November 2012 22:25, Philippe Mouawad > > > wrote: > > Hello, > > I was wondering if we shouldn't deprecate Soap Sampler . > > > > Here are the reasons for that: > > > >- Since introduction of Raw Post body in HTTP Sampler it has become > >rather useless except for SoapAction computation inside GUI > >- It suffers from a bug which seems hard to fix (not technically but > >because we don't know where the source code of soap.jar is) and which > seems > >to me rather a big one: > > - https://issues.apache.org/bugzilla/show_bug.cgi?id=54006 > >- It relies on rather old library > > It is also quite inefficient compared with the other HTTP samplers. > > I agree we should deprecate it, but I would just leave the code there > for people to use if they want. > The docs should be updated to say it is end of life. > We then need not make any further bug fixes or improvements. > > > > > -- > > Regards. > > Philippe > > ----- > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: Recording HTTPS from iPad
Hello Sergio, I think IOs refuses to connect to self signed or invalid certificates by default. You can try to register it or create a valid one that you will insert in the keystore used by JMeter. Regards Philippe On Fri, Nov 9, 2012 at 11:50 AM, Sergio Boso wrote: > HI everybody, > > I'm working to test a server application that is used from an iPad client. > It is an enterprise app, so everything is encrypted. > > I set up Jmeter as a proxy as usual, and I can manage to record the > traffic from the iPad browser. > When I launch the app, nothing work. > > My guess is that the app is not able to manage the exception due to the > dummy Jmeter certificate, so the communication does not even start. > > While we are contacting the app company, I was wondering if there is any > effective, standard solution to this problem. > Any way to present a standard certificate from Jmeter? > Or, any way to set-up a truly transparent proxy, by setting the jmeter > machine as a default gateway for the device? > This would require at least to propagate the DNS protocol beside http? > > Any suggestion is welcome > > thank you and best regards > Sergio > > -- > > Ing. Sergio Boso > > > > > > > --**--**- > To unsubscribe, e-mail: > user-unsubscribe@jmeter.**apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.
Re: HTTP Sampler Memory Leak
Try using Java Impl, as it does not have this thread local Map,it could work. On Mon, Oct 15, 2012 at 4:01 PM, unjc email wrote: > Hi Deepak, > > I am not using any custom sampler nor any custom code in the test dump > I sent. The sampler I used is HTTP Request Sampler with HttpClient4 > Implementation (no request parameters); I used a static proxy server > though. I am not sure what specific code that has the leak you are > referring. Could you explain more? > > > > Thanks, > Jacky > > On Sat, Oct 13, 2012 at 3:47 PM, Deepak Goel wrote: > > Hey > > > > It looks like you are creating a lot of new objects and not closing > > them. The transaction most used by you, should have the code which is > > leaking > > > > :) > > Deepak > > > > On 10/12/12, sebb wrote: > >> On 11 October 2012 15:02, unjc email wrote: > >>> Hi Philippe, > >>> > >>> Thanks for your time on analyzing the heap dump. It is unfortunate to > >>> hear that there will be no support of my test case from Jmeter. > >> > >> The problem is knowing when it is safe to drop a cache entry. > >> > >>> I suppose I could try to write my own plugin targeted on the > >>> performance for my test case. Is there any chance you could give me > >>> advice on which part of the code I should look into, in order to keep > >>> the memory utilization at a low level for my test? > >> > >> If you want to experiment, you could edit the class to ignore the cache. > >> However this might have other adverse effects. > >> > >>> > >>> Thanks and much appreciated. > >>> > >>> Jacky > >>> > >>> On Thu, Oct 11, 2012 at 8:07 AM, Philippe Mouawad > >>> wrote: > >>>> Hello, > >>>> I looked at your heap dump, it seems you are load testing lots of > >>>> differents WEBSITES (I mean HOSTs are all different). > >>>> This is clearly a very "weird" use case that we don't handle for now, > and > >>>> I > >>>> am not sure we will. > >>>> > >>>> Regards > >>>> Philippe > >>>> > >>>> > >>>> On Thu, Oct 11, 2012 at 12:10 AM, unjc email > >>>> wrote: > >>>> > >>>>> I have uploaded the heap dump file online and it's available at > >>>>> http://dl.free.fr/qZBPvLRB8. > >>>>> > >>>>> > >>>>> > >>>>> Thanks, > >>>>> Jacky > >>>>> > >>>>> On Wed, Oct 10, 2012 at 3:20 PM, Philippe Mouawad > >>>>> wrote: > >>>>> > Hello, > >>>>> > Which map are you talking about in HTTPHC4Impl ? > >>>>> > > >>>>> > If it's this one: > >>>>> > > >>>>> >- Map map = HTTPCLIENTS.get(); > >>>>> > > >>>>> > Then it only exists once per thread and per combination of : > >>>>> > > >>>>> >-url.getProtocol()+"://"+url.getAuthority(); > >>>>> >this.hasProxy = b; > >>>>> >this.proxyHost = proxyHost; > >>>>> >this.proxyPort = proxyPort; > >>>>> >this.proxyUser = proxyUser; > >>>>> >this.proxyPass = proxyPass; > >>>>> > > >>>>> > so unless you change these per url , it won't grow a lot. > >>>>> > > >>>>> > Check what Deepak is suggesting and if issue persists, then > generate > >>>>> > a > >>>>> Heap > >>>>> > Dump and put it somewhere where we can download it. > >>>>> > > >>>>> > Regards > >>>>> > Philippe > >>>>> > > >>>>> > On Wed, Oct 10, 2012 at 8:53 PM, Deepak Shetty > >>>>> wrote: > >>>>> > > >>>>> >> Hi > >>>>> >> its more likely that you have some listener turned on (like view > >>>>> >> results > >>>>> >> tree) - Even if a URL is 2000 characters you can calculate how > many > >>>>> >> URLs > >>>>> >
Re: Groovy issue
Hello, Did you put the groovy-all.jar in lib folder or part of libraries ? Why not use JSR 223 ? Regards Philippe On Thu, Nov 29, 2012 at 10:51 AM, ZK wrote: > Hi, > I am having an issue using jmeter.version=2.8 r1393162 > > When attempting to use the BSF assertion with language set to GROOVY I get > the following error: > > 2012/11/29 10:37:53 INFO - jmeter.threads.JMeterThread: Thread started: > Thread Group 1-1 > 2012/11/29 10:37:55 ERROR - org.apache.bsf.BSFManager: Exception : > java.lang.NoClassDefFoundError: org/objectweb/asm/Opcodes > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(Unknown Source) > at java.security.SecureClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.access$100(Unknown Source) > at java.net.URLClassLoader$1.run(Unknown Source) > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.Class.getDeclaredConstructors0(Native Method) > at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) > at java.lang.Class.getConstructor0(Unknown Source) > at java.lang.Class.newInstance0(Unknown Source) > at java.lang.Class.newInstance(Unknown Source) > at > > org.codehaus.groovy.vmplugin.VMPluginFactory.createPlugin(VMPluginFactory.java:56) > at > > org.codehaus.groovy.vmplugin.VMPluginFactory.(VMPluginFactory.java:41) > at > > org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.(MetaClassRegistryImpl.java:101) > at > > org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.(MetaClassRegistryImpl.java:73) > at groovy.lang.GroovySystem.(GroovySystem.java:33) > at > org.codehaus.groovy.runtime.InvokerHelper.(InvokerHelper.java:62) > at > groovy.lang.GroovyObjectSupport.(GroovyObjectSupport.java:32) > at groovy.lang.Binding.(Binding.java:33) > at groovy.lang.GroovyShell.(GroovyShell.java:79) > at > org.codehaus.groovy.bsf.GroovyEngine.initialize(GroovyEngine.java:122) > at org.apache.bsf.BSFManager$8.run(BSFManager.java:703) > at java.security.AccessController.doPrivileged(Native Method) > at > org.apache.bsf.BSFManager.loadScriptingEngine(BSFManager.java:701) > at > > org.apache.jmeter.util.BSFTestElement.processFileOrScript(BSFTestElement.java:129) > at > org.apache.jmeter.assertions.BSFAssertion.getResult(BSFAssertion.java:42) > at > > org.apache.jmeter.threads.JMeterThread.processAssertion(JMeterThread.java:697) > at > > org.apache.jmeter.threads.JMeterThread.checkAssertions(JMeterThread.java:688) > at > > org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:437) > at > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255) > at java.lang.Thread.run(Unknown Source) > Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.Opcodes > at java.net.URLClassLoader$1.run(Unknown Source) > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > ... 36 more > > 2012/11/29 10:37:55 WARN - jmeter.assertions.BSFAssertion: Problem in BSF > script org.apache.bsf.BSFException: unable to load language: groovy > 2012/11/29 10:37:55 INFO - jmeter.threads.JMeterThread: Thread finished: > Thread Group 1-1 > 2012/11/29 10:37:55 INFO - jmeter.engine.StandardJMeterEngine: Notifying > test listeners of end of test > 2012/11/29 10:37:55 INFO - jmeter.gui.util.JMeterMenuBar: > setRunning(false,*local*) > > > When I use JMeter 2.6 on the same PC everything is fine. > I have tried with groovy jars version 2.0.2 and 2.0.5 > > I created a test with a dummy sampler and a BSF assertion and the above > error persists > > > Is this a known issue? or is it just me? > > > ZK > > > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Groovy-issue-tp5715418.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > > -- Cordialement. Philippe Mouawad.