Re: Wrong 90th and 95th percentile values in JMeter HTML report

2021-06-03 Thread Felix Schumacher

Am 03.06.21 um 20:10 schrieb Deepak Chaudhari:
> Thank you very much for your reply.
> Will it be in user.properties?
> Do we need to install the latest JMeter version to reflect the changes?

A build from trunk can be found at
https://ci-builds.apache.org/job/JMeter/job/JMeter-trunk/

Yes, the property can be set via user.properties.

Felix

>
> On Thu, Jun 3, 2021 at 11:14 PM Felix Schumacher
>  > wrote:
>
> You might find 
> https://bz.apache.org/bugzilla/show_bug.cgi?id=65353 
> 
> interesting.
>
> With the next nightly build or build from trunk, you should be able to 
> use the new property "backend_metrics_percentile_estimator" with a value of 
> "R_3" to lessen the difference between both reports. But keep in mind, that 
> the HTML Report use a sliding window, while the Aggregate Report does not 
> (and will eventually OOM).
>
> Felix
>
> Am 03.06.21 um 17:46 schrieb Deepak Chaudhari:
>> I need to send both the reports to the client and surely the
>> question will come "Why is there so much difference?"
>> If there is any way with which we can generate almost similar
>> aggregate and HTML reports?
>>
>> On Thu, Jun 3, 2021 at 9:00 PM Felix Schumacher
>> > > wrote:
>>
>> Without the actual data it is impossible to say, if the
>> reports are wrong, or if they follow different ways to
>> calculate a percentile.
>>
>> The problem here is, that the two reports are using different
>> algorithms to calculate the percentiles. We are working with
>> discrete numbers and here a percentile is more like a range
>> than a single (correct or wrong) number. Say, you have the
>> values [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] want to
>> calculate a 90% percentile. For this you take any number that
>> splits the (sorted) list into two lists, where one list has
>> all elements, that are smaller (or equal) to the number and
>> one list contains all elements that are bigger than the
>> number. For this example, any number between 256 and 511.99
>> would be a valid 90% percentile. (that is of course a broad
>> description only)
>>
>> The Aggregate report currently uses a memory intensive way
>> and stores a list with all values and picks the smallest
>> number, that fits the above description. (This memory hogging
>> behaviour should be fixed and would lead to less accurate
>> data and less OOMs or slow JMeter instances)
>>
>> The HTML report gives you a value that would probably be a
>> good 90% percentile, if you would have more data like the
>> one, you already have by picking some value between the lower
>> bound and the upper bound of the described range (in our
>> example something between 256 and 511.999).
>>
>> As your report has very few samples (21 for the biggest
>> difference in the numbers), the skew between the reported
>> percentiles can look big, but are not necessarily wrong.
>>
>> Note, that if the numbers that both reports tell you are far
>> apart, that is probably a sign of having either too few
>> samples, or the samples (durations of the samples) are
>> distributed sparsely near the  percentile ranges.
>>
>> We have discussed in the past to use the same algorithm for
>> both components, so that you get consistent values, but there
>> were always other issues, that seemed to be more important.
>>
>> Felix
>>
>> Am 02.06.21 um 15:28 schrieb Deepak Chaudhari:
>>> Hi,
>>>
>>> I collected JTL file during a test run and using that I'm
>>> generating HTML report and aggregate report. When I compare
>>> aggregate and HTML reports I found that 90th and 95th
>>> percentile values are wrong in HTML report.
>>> I tried to change "jmeter.reportgenerator.statistic_window"
>>> value in user.properties but still getting wrong values.
>>>
>>> *Aggregate report:*
>>> image.png
>>>
>>> *HTML report:*
>>> image.png
>>


OpenPGP_signature
Description: OpenPGP digital signature


Re: Wrong 90th and 95th percentile values in JMeter HTML report

2021-06-03 Thread Deepak Chaudhari
Thank you very much for your reply.
Will it be in user.properties?
Do we need to install the latest JMeter version to reflect the changes?

On Thu, Jun 3, 2021 at 11:14 PM Felix Schumacher <
felix.schumac...@internetallee.de> wrote:

> You might find https://bz.apache.org/bugzilla/show_bug.cgi?id=65353
> interesting.
>
> With the next nightly build or build from trunk, you should be able to use 
> the new property "backend_metrics_percentile_estimator" with a value of "R_3" 
> to lessen the difference between both reports. But keep in mind, that the 
> HTML Report use a sliding window, while the Aggregate Report does not (and 
> will eventually OOM).
>
> Felix
>
>
> Am 03.06.21 um 17:46 schrieb Deepak Chaudhari:
>
> I need to send both the reports to the client and surely the question will
> come "Why is there so much difference?"
> If there is any way with which we can generate almost similar aggregate
> and HTML reports?
>
> On Thu, Jun 3, 2021 at 9:00 PM Felix Schumacher <
> felix.schumac...@internetallee.de> wrote:
>
>> Without the actual data it is impossible to say, if the reports are
>> wrong, or if they follow different ways to calculate a percentile.
>>
>> The problem here is, that the two reports are using different algorithms
>> to calculate the percentiles. We are working with discrete numbers and here
>> a percentile is more like a range than a single (correct or wrong) number.
>> Say, you have the values [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] want to
>> calculate a 90% percentile. For this you take any number that splits the
>> (sorted) list into two lists, where one list has all elements, that are
>> smaller (or equal) to the number and one list contains all elements that
>> are bigger than the number. For this example, any number between 256 and
>> 511.99 would be a valid 90% percentile. (that is of course a broad
>> description only)
>>
>> The Aggregate report currently uses a memory intensive way and stores a
>> list with all values and picks the smallest number, that fits the above
>> description. (This memory hogging behaviour should be fixed and would lead
>> to less accurate data and less OOMs or slow JMeter instances)
>>
>> The HTML report gives you a value that would probably be a good 90%
>> percentile, if you would have more data like the one, you already have by
>> picking some value between the lower bound and the upper bound of the
>> described range (in our example something between 256 and 511.999).
>>
>> As your report has very few samples (21 for the biggest difference in the
>> numbers), the skew between the reported percentiles can look big, but are
>> not necessarily wrong.
>>
>> Note, that if the numbers that both reports tell you are far apart, that
>> is probably a sign of having either too few samples, or the samples
>> (durations of the samples) are distributed sparsely near the  percentile
>> ranges.
>>
>> We have discussed in the past to use the same algorithm for both
>> components, so that you get consistent values, but there were always other
>> issues, that seemed to be more important.
>>
>> Felix
>> Am 02.06.21 um 15:28 schrieb Deepak Chaudhari:
>>
>> Hi,
>>
>> I collected JTL file during a test run and using that I'm generating HTML
>> report and aggregate report. When I compare aggregate and HTML reports I
>> found that 90th and 95th percentile values are wrong in HTML report.
>> I tried to change "jmeter.reportgenerator.statistic_window" value in
>> user.properties but still getting wrong values.
>>
>> *Aggregate report:*
>> [image: image.png]
>>
>> *HTML report:*
>> [image: image.png]
>>
>>


Re: Wrong 90th and 95th percentile values in JMeter HTML report

2021-06-03 Thread Felix Schumacher
You might find 
https://bz.apache.org/bugzilla/show_bug.cgi?id=65353
interesting.

With the next nightly build or build from trunk, you should be able to use the 
new property "backend_metrics_percentile_estimator" with a value of "R_3" to 
lessen the difference between both reports. But keep in mind, that the HTML 
Report use a sliding window, while the Aggregate Report does not (and will 
eventually OOM).

Felix

Am 03.06.21 um 17:46 schrieb Deepak Chaudhari:
> I need to send both the reports to the client and surely the question
> will come "Why is there so much difference?"
> If there is any way with which we can generate almost similar
> aggregate and HTML reports?
>
> On Thu, Jun 3, 2021 at 9:00 PM Felix Schumacher
>  > wrote:
>
> Without the actual data it is impossible to say, if the reports
> are wrong, or if they follow different ways to calculate a percentile.
>
> The problem here is, that the two reports are using different
> algorithms to calculate the percentiles. We are working with
> discrete numbers and here a percentile is more like a range than a
> single (correct or wrong) number. Say, you have the values [1, 2,
> 4, 8, 16, 32, 64, 128, 256, 512] want to calculate a 90%
> percentile. For this you take any number that splits the (sorted)
> list into two lists, where one list has all elements, that are
> smaller (or equal) to the number and one list contains all
> elements that are bigger than the number. For this example, any
> number between 256 and 511.99 would be a valid 90% percentile.
> (that is of course a broad description only)
>
> The Aggregate report currently uses a memory intensive way and
> stores a list with all values and picks the smallest number, that
> fits the above description. (This memory hogging behaviour should
> be fixed and would lead to less accurate data and less OOMs or
> slow JMeter instances)
>
> The HTML report gives you a value that would probably be a good
> 90% percentile, if you would have more data like the one, you
> already have by picking some value between the lower bound and the
> upper bound of the described range (in our example something
> between 256 and 511.999).
>
> As your report has very few samples (21 for the biggest difference
> in the numbers), the skew between the reported percentiles can
> look big, but are not necessarily wrong.
>
> Note, that if the numbers that both reports tell you are far
> apart, that is probably a sign of having either too few samples,
> or the samples (durations of the samples) are distributed sparsely
> near the  percentile ranges.
>
> We have discussed in the past to use the same algorithm for both
> components, so that you get consistent values, but there were
> always other issues, that seemed to be more important.
>
> Felix
>
> Am 02.06.21 um 15:28 schrieb Deepak Chaudhari:
>> Hi,
>>
>> I collected JTL file during a test run and using that I'm
>> generating HTML report and aggregate report. When I compare
>> aggregate and HTML reports I found that 90th and 95th percentile
>> values are wrong in HTML report.
>> I tried to change "jmeter.reportgenerator.statistic_window" value
>> in user.properties but still getting wrong values.
>>
>> *Aggregate report:*
>> image.png
>>
>> *HTML report:*
>> image.png
>


OpenPGP_signature
Description: OpenPGP digital signature


Re: Wrong 90th and 95th percentile values in JMeter HTML report

2021-06-03 Thread Deepak Chaudhari
I need to send both the reports to the client and surely the question will
come "Why is there so much difference?"
If there is any way with which we can generate almost similar aggregate and
HTML reports?

On Thu, Jun 3, 2021 at 9:00 PM Felix Schumacher <
felix.schumac...@internetallee.de> wrote:

> Without the actual data it is impossible to say, if the reports are wrong,
> or if they follow different ways to calculate a percentile.
>
> The problem here is, that the two reports are using different algorithms
> to calculate the percentiles. We are working with discrete numbers and here
> a percentile is more like a range than a single (correct or wrong) number.
> Say, you have the values [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] want to
> calculate a 90% percentile. For this you take any number that splits the
> (sorted) list into two lists, where one list has all elements, that are
> smaller (or equal) to the number and one list contains all elements that
> are bigger than the number. For this example, any number between 256 and
> 511.99 would be a valid 90% percentile. (that is of course a broad
> description only)
>
> The Aggregate report currently uses a memory intensive way and stores a
> list with all values and picks the smallest number, that fits the above
> description. (This memory hogging behaviour should be fixed and would lead
> to less accurate data and less OOMs or slow JMeter instances)
>
> The HTML report gives you a value that would probably be a good 90%
> percentile, if you would have more data like the one, you already have by
> picking some value between the lower bound and the upper bound of the
> described range (in our example something between 256 and 511.999).
>
> As your report has very few samples (21 for the biggest difference in the
> numbers), the skew between the reported percentiles can look big, but are
> not necessarily wrong.
>
> Note, that if the numbers that both reports tell you are far apart, that
> is probably a sign of having either too few samples, or the samples
> (durations of the samples) are distributed sparsely near the  percentile
> ranges.
>
> We have discussed in the past to use the same algorithm for both
> components, so that you get consistent values, but there were always other
> issues, that seemed to be more important.
>
> Felix
> Am 02.06.21 um 15:28 schrieb Deepak Chaudhari:
>
> Hi,
>
> I collected JTL file during a test run and using that I'm generating HTML
> report and aggregate report. When I compare aggregate and HTML reports I
> found that 90th and 95th percentile values are wrong in HTML report.
> I tried to change "jmeter.reportgenerator.statistic_window" value in
> user.properties but still getting wrong values.
>
> *Aggregate report:*
> [image: image.png]
>
> *HTML report:*
> [image: image.png]
>
>


Re: Wrong 90th and 95th percentile values in JMeter HTML report

2021-06-03 Thread Felix Schumacher
Without the actual data it is impossible to say, if the reports are
wrong, or if they follow different ways to calculate a percentile.

The problem here is, that the two reports are using different algorithms
to calculate the percentiles. We are working with discrete numbers and
here a percentile is more like a range than a single (correct or wrong)
number. Say, you have the values [1, 2, 4, 8, 16, 32, 64, 128, 256, 512]
want to calculate a 90% percentile. For this you take any number that
splits the (sorted) list into two lists, where one list has all
elements, that are smaller (or equal) to the number and one list
contains all elements that are bigger than the number. For this example,
any number between 256 and 511.99 would be a valid 90% percentile. (that
is of course a broad description only)

The Aggregate report currently uses a memory intensive way and stores a
list with all values and picks the smallest number, that fits the above
description. (This memory hogging behaviour should be fixed and would
lead to less accurate data and less OOMs or slow JMeter instances)

The HTML report gives you a value that would probably be a good 90%
percentile, if you would have more data like the one, you already have
by picking some value between the lower bound and the upper bound of the
described range (in our example something between 256 and 511.999).

As your report has very few samples (21 for the biggest difference in
the numbers), the skew between the reported percentiles can look big,
but are not necessarily wrong.

Note, that if the numbers that both reports tell you are far apart, that
is probably a sign of having either too few samples, or the samples
(durations of the samples) are distributed sparsely near the  percentile
ranges.

We have discussed in the past to use the same algorithm for both
components, so that you get consistent values, but there were always
other issues, that seemed to be more important.

Felix

Am 02.06.21 um 15:28 schrieb Deepak Chaudhari:
> Hi,
>
> I collected JTL file during a test run and using that I'm generating
> HTML report and aggregate report. When I compare aggregate and HTML
> reports I found that 90th and 95th percentile values are wrong in HTML
> report.
> I tried to change "jmeter.reportgenerator.statistic_window" value in
> user.properties but still getting wrong values.
>
> *Aggregate report:*
> image.png
>
> *HTML report:*
> image.png


OpenPGP_signature
Description: OpenPGP digital signature


Re: help the nub.

2021-06-03 Thread Felix Schumacher

Am 02.06.21 um 19:31 schrieb Valdes, Allen:
> Hello all.
>
> I am trying to start using Jmeter but it is not making it easy. I need to 
> stress load a Sybase DB server for work and I keep getting this error
>
> Cannot create PoolableConnectionFactory (Login failed)

There can be a lot of reasons for this. Have you checked, that you are
using the correct credentials? Are you sure, that the JDBC-URL is
correct? (Maybe your DB admins can check it?)

In the file jmeter.log should be a more detailed error message, it might
help, if you post that, too (remove/mask any confidential stuff in those
error message).

Felix

>
> I have looked around but nothing conclusive.
>
>
> Any help will be appreciated.
>
>
>
> Allen
> CONFIDENTIALITY NOTICE: This message is the property of International Game 
> Technology PLC and/or its subsidiaries and may contain proprietary, 
> confidential or trade secret information. This message is intended solely for 
> the use of the addressee. If you are not the intended recipient and have 
> received this message in error, please delete this message from your system. 
> Any unauthorized reading, distribution, copying, or other use of this message 
> or its attachments is strictly prohibited.
>



OpenPGP_signature
Description: OpenPGP digital signature


Re: Wrong 90th and 95th percentile values in JMeter HTML report

2021-06-03 Thread A P
I am also facing the same issue:
http://mail-archives.apache.org/mod_mbox/jmeter-user/202102.mbox/browser
Tried different values for "jmeter.reportgenerator.statistic_window". But
nothing worked. Seems like it's a bug in JMeter.

On Wed, Jun 2, 2021 at 6:57 PM Deepak Chaudhari 
wrote:

> Hi,
>
> I collected JTL file during a test run and using that I'm generating HTML
> report and aggregate report. When I compare aggregate and HTML reports I
> found that 90th and 95th percentile values are wrong in HTML report.
> I tried to change "jmeter.reportgenerator.statistic_window" value in
> user.properties but still getting wrong values.
>
> *Aggregate report:*
> [image: image.png]
>
> *HTML report:*
> [image: image.png]
>