Re: Require help in Regular Expression!!!

2012-05-25 Thread Felix Frank
On 05/25/2012 09:10 AM, venkatakurathi wrote:
 add debug sampler to the transaction  run the script.
 look into the response of debug sampler ,u can find the multiple values
 extracted by your expression in name value format.
 it gives you a better undertsanding to how to proceed further.

Right.

You will probably need to do something like this as well:
http://theworkaholic.blogspot.com/2010/03/dynamic-parameters-in-jmeter.html

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Create custom log files

2012-01-05 Thread Felix Frank
Hi,

On 01/05/2012 07:53 AM, waseemfa wrote:
 Thanks a lot for all your replies guys!! really appreciated
 
 Just wanted to know one more thing.  Is there a way where we can add our own
 data into the Sample data writer by creating a new configuration element?

Define your own data.

If you need additional info about each of your Samples, that won't be
easy (if at all possible).

If you want additional custom sample data, that might be possible by
adding BeanShellSamplers or similar to your Test Plan.

HTH,
Felix

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: remote server distributed testing JMETER: Analysis the output which is better to run from wh

2011-12-13 Thread Felix Frank
Hi,

On 12/13/2011 08:28 AM, Rajiv Nanduani wrote:
 Hi All,
 
 Please guide me.
 How can we effectively setup a distributed environment (with the Server in
 the US and the slaves at india)?
 What are the setups are required ?? needs to be check???

I've been told that using statistical result sending is much more
bandwidth-efficient than the default, so you may want to try and enable
that.

http://jmeter.apache.org/usermanual/remote-test.html#sendermode

In case you're using Listeners such as View Results Tree in the US to
display results from India, You're Doing It Wrong anyway. Don't do that.

HTH,
Felix

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: jdbc connection

2011-12-13 Thread Felix Frank
More details then.

What is the exact configuration of the JDBC sampler?

What errors are generated when you do it this way?

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to increase throughput?

2011-12-08 Thread Felix Frank
Hi,

On 12/07/2011 08:12 PM, Deepak Goel wrote:
 Hey
 
 Looks like you are getting a  response time of 300ms. A simple html
 page of about 5k takes about 1ms on a shared network, which keeps on
 increasing as you increase the size of the page. So you are atleast

I don't follow. What if the server takes 500ms to compile the response?
Then you're looking at 501ms until you get your 5k back.

 downloading 60k in every page (transaction). If this is true then you
 are getting the correct throughput (200/sec).

So you assume that maximum throughput is 18000kb/s? What makes you think
so? It sounds horribly wrong to me.

 If you want to increase to 1500/sec, you will have to try the following:
 1. Move to a isloated network or ask your sysadmin to increase the
 network bandwidth
 2. Caching
 3. Multiple Servers (Either software or hardware)

I don't follow your math, but you've got a point. Keeping an eye on the
network load is definitely a good idea.

Sincerely,
Felix

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to read and store the Dynamic string value from Response Data(View Results Tree)

2011-12-08 Thread Felix Frank
Yes, also, the ${10} looks wrong to me.

Don't you mean [...]{10} ?
If you know it's going to be exactly 10 characters, you can get away
cheap with just (.{10})

=)

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to increase throughput?

2011-12-07 Thread Felix Frank
On 12/07/2011 10:00 AM, ZK wrote:
 It sounds like you have discovered a 'bottleneck' in your system... it's up
 to you to find out where that is!!

Indeed. What about the load on the Jmeter machine?
What about memory, and how much heap is granted to Java?

Make sure you adhere to
http://jmeter.apache.org/usermanual/best-practices.html#lean_mean

You may want to rethink your Timer strategy. If your system under test
responds faster than once per second on average, you don't actually need
2000 threads to perform 1500 requests per second.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to increase throughput?

2011-12-07 Thread Felix Frank
Jmeter has no inherent limit.

You are limited by the capabilities of both the Jmeter machine (which
you claim aren't maxed out, but I'm not entirely convinced) and the
system under test.

It may very well be that 200 req/s is the maximum of your system under
test. If the server doesn't have high CPU or I/O load, it may be a
matter of misconfiguration or some other sort of software bottleneck.

What type of application are you testing? Is this a Tomcat based server
perchance? Is there a database backend?

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to increase throughput?

2011-12-07 Thread Felix Frank
Are there Timers in your Test Plan?

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to increase throughput?

2011-12-07 Thread Felix Frank
You may even be looking at a threading problem.

What happens when you half the number of threads to 1000?

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: For Each Controller

2011-12-06 Thread Felix Frank
Hi,

On 12/05/2011 06:02 PM, Shaba K wrote:
 here's how my bean shell looks

for what it's worth, I've found debugging BeanShell inside Jmeter to be
rather excrutiating.
Here is the general workflow I adopted:

- watch the jmeter.log for BeanShell related errors
- comment out almost everything from the PreProcessor
- confirm that no errors are logged
- uncomment the BeanShell code peacemeal until errors return

Granted, eyeing my code sharply would have done it for me as well, but
it was a helpful starting point.

Cheers,
Felix

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Testing CometD server using jmeter

2011-12-06 Thread Felix Frank
Hi,

On 12/06/2011 03:23 AM, Tanakiat Srisaranayakul wrote:
 The script looks like this.
 1st thread group: Referred as main group
 2nd thread grounp: Referred as polling group
 
 polling group will check whether there is a authen cookie passed via jmeter
 property, authen_token_${__threadNum} , from main thread or not.
 Let's say 1st thread of polling group found authen cookie,authen_token_1,
 it will do whatever specified inside the while loop.

this sounds complicated. How did you come up with it?

Couldn't you simplify your Test Plan by doing everything in the main group?

As for your CPU usage, are you sure that the value passing is to blame?
How many and what kinds of Listeners are you using?
What OS is this, how much heap space does Java use and how many elements
comprise your Test Plan in total?
How many concurrent threads are you running?

Cheers,
Felix

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Issue in chart generation using flash player (AMF protocol) at the time of replay

2011-12-06 Thread Felix Frank
Hi,

On 12/06/2011 09:10 AM, Milan Shah wrote:
 The error observed here is “*Required version of flash player is not
 available. Download flash player 10 or above from the adobe web site*.”

I presume that this error is generated whenever JavaScript doesn't run
succesfully. Please verify by visiting the site with JavaScript disabled
in your browser.

If this is indeed the case, you have to fix the problem by making Jmeter
mimick whatever the JavaScript does to convince the server that
Flashplayer is in fact available.

My guess is that the script will replace the 'div
id=pt1:Form:r1:1:lineGraph1::flashDlMsg' with the chart you're
interested in. Find out how this is done.

HTH,
Felix

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: For Each Controller

2011-12-02 Thread Felix Frank
On 12/01/2011 03:03 PM, Bruce Ide wrote:
 Sounds like you need the technique described at
 http://theworkaholic.blogspot.com/2010/03/dynamic-parameters-in-jmeter.html

I like how so many Test Plan design questions end up being answered by
Deepak one way or another :-)

So thanks to Deepak for putting up the info and to Bruce for providing
the link - the described technique saved me a big headache just yesterday.

Cheers

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: For Each Controller

2011-12-02 Thread Felix Frank
On 12/02/2011 05:19 PM, Shaba K wrote:
 eventInTopPackage[${event_id}] = ${event_id}

Then I suggest

sampler.addArgument(
  eventInTopPackage[+vars.get(GET_EVENT_ID_ + i)+],
  vars.get(GET_EVENT_ID_ + i) );

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Measuring PDF Loading time

2011-11-29 Thread Felix Frank
Hi,

On 11/29/2011 02:23 PM, Selvam T, Palani wrote:
 All,
 
  
 
 I need to measure response time for PDF report viewing from a web page.
 How can I implement using JMeter? Any specific sampler available for
 this purpose?

I don't think so.

Assuming the PDF is accessed via HTTP, the vanilla HTTPClient Sampler
will do nicely.

HTH,
Felix

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Extracting from JSON using Regular expression Extrator

2011-11-25 Thread Felix Frank
What's with all the quotes? I don't see any in your input.

Try regex

challenge : '(.+?)'

HTH,
Felix

On 11/25/2011 12:13 PM, Shaba K wrote:
 This doesn't work either
 
 RecaptchaState=(.+?)challenge:(.+?)

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org