Re: Jmeter Throughput Calculation Concern - Native Dashboard Report

2020-07-29 Thread Sergio Boso

HI Prateek

in this context, the (total time) is the total time used for whole test, from the beginning of the first request until the end of 
the last one.

HTH

Sergio

Il 27/07/2020 17:14, Prateek Dua ha scritto:

Resending with more details...

Hi Team,
Need help in understanding the Throughput Calculation in Jmeter Native  Dashboard Report. I'm considering the logic Throughput = 
(number of requests) / (total time). Here for total time, I'm taking Avg Response time of requests.
ie. if requests fired are 100 ( row#2 in screenshot) and Avg response time is 26100 ms ; then I'm calculating -> 100 /26100 in ms 
and then multiplying outcome with 1000 to get in sec ; then further multiplying with 60 to measure it in mins but not getting the  
actual result 2.11 mentioned in report.

https://imgur.com/a/2r8XNF7

Please help me in understanding this calculation.
Thanks,
Prateek
<https://imgur.com/a/2r8XNF7>

Imgur <https://imgur.com/a/2r8XNF7>
Post with 16 views.
imgur.com


Thanks,
Prateek


  The contents of this email, including the attachments, are 
*privileged and confidential* to the intended recipient at
  the email address to which it has been addressed. If you receive it 
in error, please notify the sender immediately by
  return email and then permanently delete it from your system. The 
unauthorized use, distribution, copying or alteration
  of this email, including the attachments, is strictly forbidden. 
Please note that neither the sender nor the company
  accepts any responsibility for viruses and it is your responsibility 
to scan the email and attachments (if any).


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



--

Ing. Sergio Boso





Re: Run code block only once with JSR223

2020-03-15 Thread Sergio Boso

Hi Alexandre,


never tried this, but I think you can set property objects.
Have a look at
https://jmeter.apache.org/api/org/apache/jmeter/testelement/property/ObjectProperty.html

You should be able to get and set properties.
Let me know if this is successful!

regards

Sergio

Il 15/03/2020 16:52, Alexandre Gattiker ha scritto:
Thanks Sergio. So I would have to say create 10 Kafka Producers in my setUp Thread Group, and then pass them to my standard Thread 
Group? How? As I understand, JMeter variables can't be shared between Thread groups, and Properties can, but are limited to String 
values.


On Sun, Mar 15, 2020 at 4:31 PM Sergio Boso mailto:ser...@bosoconsulting.it>> wrote:

Hi, you can easily add a "setUp Thread Group" end insert proper samplers 
below this thread group

Regards
Sergio


Il 15/03/2020 16:22, Alexandre Gattiker ha scritto:
> I'm trying to write a JSR 223 Sampler that sends messages to Kafka,
> essentially replicating PepperBox (
> 
https://github.com/GSLabDev/pepper-box/blob/master/src/main/java/com/gslab/pepper/sampler/PepperBoxKafkaSampler.java)
> in
> Groovy.
>
> Is there a way to replicate the behavior of setupTest(), i.e. run a code
> block only once before all iterations (to create the Kafka producer)?
-- 


    Ing. Sergio Boso






--

Ing. Sergio Boso




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



Re: Run code block only once with JSR223

2020-03-15 Thread Sergio Boso

Hi, you can easily add a "setUp Thread Group" end insert proper samplers below 
this thread group

Regards
Sergio


Il 15/03/2020 16:22, Alexandre Gattiker ha scritto:

I'm trying to write a JSR 223 Sampler that sends messages to Kafka,
essentially replicating PepperBox (
https://github.com/GSLabDev/pepper-box/blob/master/src/main/java/com/gslab/pepper/sampler/PepperBoxKafkaSampler.java)
in
Groovy.

Is there a way to replicate the behavior of setupTest(), i.e. run a code
block only once before all iterations (to create the Kafka producer)?

--

Ing. Sergio Boso




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



Re: Programatically set POST binary content yìto HTTP sampler in Jmeter

2020-02-09 Thread Sergio Boso

Yes it works!!

Also I had to set the "Content encoding" in the Sampler to "ISO-8859-1".
Thank you.


Sergio


Il 09/02/2020 12:50, Felix Schumacher ha scritto:

Am 08.02.20 um 12:47 schrieb Sergio Boso:

Hi everybody,

I'm writing a Load test that send Time Stamping Requests to a Time
Stamping Autority.

This is a standard protocol, described in rfc3161. This require a POST
execution, sending a small ASN1 object, that is binary.

Now, I have written the groovy part that set up the ASN1 object, and
that creates the *bytes[] array*, but I cannot copy to a variable,
because the casting to a string *modifies* the content. However I
cannot find any other way to pass this content.

Have you tried to convert the bytes array to a string using an 8-bit
encoding like iso-8859-1?

  String request = new String(asnBytes,
java.nio.charsets.StandardCharsets.ISO_8859_1)

Another possibility would be to convert it to base64

  String b64Request = Base64.mimeEncoder.encodeToString(x)

and send that value with a content-transfer-encoding header set to "base64".

Felix


Given the amount of traffic I have to generate, writing to a file and
then attach it is not a viable solution.

Is there any other way to work around this issue?

Thank you in advance!





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




--

Ing. Sergio Boso

Mail:
Cell:
Web:
Linkedin:
PEC:
Skype:



ser...@bosoconsulting.it <mailto:ser...@bosoconsulting.it>
+39 335 7243 445
www.bosoconsulting.it <http://www.bosoconsulting.it>
http://it.linkedin.com/in/sergioboso 
<http://www.linkedin.com/pub/sergio-boso/1/29b/255>
sergio.b...@ingpec.eu <mailto:sergio.b...@ingpec.eu>
sbos61




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



Programatically set POST binary content yìto HTTP sampler in Jmeter

2020-02-08 Thread Sergio Boso

Hi everybody,

I'm writing a Load test that send Time Stamping Requests to a Time Stamping 
Autority.

This is a standard protocol, described in rfc3161. This require a POST 
execution, sending a small ASN1 object, that is binary.

Now, I have written the groovy part that set up the ASN1 object, and that creates the *bytes[] array*, but I cannot copy to a 
variable, because the casting to a string *modifies* the content. However I cannot find any other way to pass this content.


Given the amount of traffic I have to generate, writing to a file and then 
attach it is not a viable solution.

Is there any other way to work around this issue?

Thank you in advance!




--

Ing. Sergio Boso



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



Re: Help get OCSP responder load test working?

2019-07-01 Thread Sergio Boso

You may need to install and use Wireshark to debug the packet exchange:
https://www.wireshark.org/#download

I'm very sorry, but I have no time to debug your script (and this would be a 
huge task, anyway)

regards

Sergio
Il 01/07/2019 23:22, o haya ha scritto:

   This is what I am using/trying in the Beanshell preprocessor:
import java.io.*;import java.math.BigInteger;import java.util.*;import 
org.bouncycastle.cert.*;import org.bouncycastle.cert.ocsp.CertificateID;import 
org.bouncycastle.cert.ocsp.OCSPReq;import 
org.bouncycastle.cert.ocsp.OCSPReqBuilder;import org.bouncycastle.asn1.*;import 
org.bouncycastle.openssl.*;import org.bouncycastle.openssl.PEMParser;import 
org.bouncycastle.util.io.pem.*;import org.bouncycastle.pkcs.*;import 
org.bouncycastle.operator.DigestCalculatorProvider;import 
org.bouncycastle.operator.jcajce.JcaDigestCalculatorProviderBuilder;
import java.security.Security;
String BC = "${securityProvider}";String fName = "${certpath}";
Reader fR = new BufferedReader(new FileReader(fName));PEMParser pPar = new 
PEMParser(fR);
X509CertificateHolder obj = (X509CertificateHolder)pPar.readObject();
DigestCalculatorProvider dCP = new 
JcaDigestCalculatorProviderBuilder().setProvider(BC).build();
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
CertificateID cId = new CertificateID(dCP.get(CertificateID.HASH_SHA1), obj, 
obj.getSerialNumber());
OCSPReqBuilder oRB = new OCSPReqBuilder();oRB.addRequest(cId);OCSPReq oReq = 
oRB.build();
byte[] asn1seq = oReq.getEncoded();
String sb = new String(asn1seq);
sampler.getArguments().getArgument(0).setValue(sb);

But when I run the Jmeter test, I am getting the following on the OCSP 
responder (the server side):

2019-07-01 17:20:25,625 DEBUG 
[org.cesecore.configuration.GlobalConfigurationSessionBean] (default task-1) 
Reading Configuration: AVAILABLE_PROTOCOLS2019-07-01 17:20:25,633 DEBUG 
[org.cesecore.configuration.GlobalConfigurationSessionBean] (default task-1) No 
default GlobalConfiguration exists. Creating a new one.2019-07-01 17:20:25,633 
DEBUG [org.ejbca.util.ServiceControlFilter] (default task-1) Access to service 
OCSP is allowed. HTTP request http://127.0.0.1:8080/ejbca/publicweb/status/ocsp is 
let through.2019-07-01 17:20:25,634 DEBUG [org.ejbca.ui.web.protocol.OCSPServlet] 
(default task-1) >checkAndGetRequestBytes. Received POST request with content 
length: 0 from 127.0.0.12019-07-01 17:20:25,634 INFO  
[org.ejbca.ui.web.LimitLengthASN1Reader] (default task-1) Not a sequence on top 
level. Tag was 31.2019-07-01 17:20:25,635 INFO  
[org.ejbca.ui.web.protocol.OCSPServlet] (default task-1) Error processing OCSP 
request. Message: Not a sequence on top level. Tag was 31.2019-07-01 17:20:25,635 
DEBUG [org.ejbca.ui.web.protocol.OCSPServlet] (default task-1) Error processing 
OCSP request. Message: Not a sequence on top level. Tag was 31.: 
org.cesecore.certificates.ocsp.exception.MalformedRequestException: Not a sequence 
on top level. Tag was 31.        at 
org.ejbca.ui.web.LimitLengthASN1Reader.readFirstASN1Object(LimitLengthASN1Reader.java:109)
        at 
org.ejbca.ui.web.protocol.OCSPServlet.checkAndGetRequestBytes(OCSPServlet.java:428)
        at 
org.ejbca.ui.web.protocol.OCSPServlet.processOcspRequest(OCSPServlet.java:251)     
   at org.ejbca.ui.web.protocol.OCSPServlet.doPost(OCSPServlet.java:191)        at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:706)


So, it looks like Jmeter is not sending the BODY (the contents of "sb" from the 
Preprocessor?)?

Is there something else that I am missing to cause the output from the 
preprocessor to be used as the POST BODY?
Thanks,Jim





 On Monday, July 1, 2019, 08:59:45 PM UTC, Sergio Boso 
 wrote:
  
  Hi Ohaya,


I did such a test few years ago, unfortunately I do not have the script at hand.
Also, probably most releases have changed in the meantime.

What I remember is that I needed to get understanding of the bouncy castle 
libraries, AND an extensive rewriting of the script, even
of the general setup was useful as a guidance.

Especially, the result checking was quite bugged.

HTH
Sergio

Il 01/07/2019 21:49, oh...@yahoo.com.INVALID ha scritto:

   Hi,

Hmm. It seems like the example test plan isn't as complete as I had hoped :(

FYI, I think the reference to "the public key infrastructure" is to another bouncycastle 
package, "bcpkix-jdk15on-162.jar".

FYI, I am going to try to get this working/debug this as a Java app first, and 
then I can try to make a groovy version after that, once it is clean. I'm 
hoping that that makes it easier for me, initially.


I will post back in a bit...

Jim



       On Monday, July 1, 2019, 2:46:59 PM EDT, Felix Schumacher 
 wrote:
   
   
Am 01.07.19 um 19:16 schrieb oh...@yahoo.com.INVALID:

Hi,

I am trying to implement a Jmeter load test for an OCSP responder, and I found 
this page, but haven't been able to get it working:

http

Re: Help get OCSP responder load test working?

2019-07-01 Thread Sergio Boso

Hi Ohaya,

I did such a test few years ago, unfortunately I do not have the script at hand.
Also, probably most releases have changed in the meantime.

What I remember is that I needed to get understanding of the bouncy castle libraries, AND an extensive rewriting of the script, even 
of the general setup was useful as a guidance.


Especially, the result checking was quite bugged.

HTH
Sergio

Il 01/07/2019 21:49, oh...@yahoo.com.INVALID ha scritto:

  Hi,

Hmm. It seems like the example test plan isn't as complete as I had hoped :(

FYI, I think the reference to "the public key infrastructure" is to another bouncycastle 
package, "bcpkix-jdk15on-162.jar".

FYI, I am going to try to get this working/debug this as a Java app first, and 
then I can try to make a groovy version after that, once it is clean. I'm 
hoping that that makes it easier for me, initially.


I will post back in a bit...

Jim



  On Monday, July 1, 2019, 2:46:59 PM EDT, Felix Schumacher 
 wrote:
  
  
Am 01.07.19 um 19:16 schrieb oh...@yahoo.com.INVALID:

Hi,

I am trying to implement a Jmeter load test for an OCSP responder, and I found 
this page, but haven't been able to get it working:

https://www.blazemeter.com/blog/how-load-test-ocsp-jmeter/

- The first problem that I ran into is where it says "2. Download the public key infrastructure and provider 
".  The link for the "provider" works and allows me to download "bcprov-jdk15on-156.jar", but 
I am not sure what the "the public key infrastructure" is supposed to download?

I think that the "public key infrastructure" means your certificates. If
you download the bouncycastle provider, you probably should take the
newest version of it: https://bouncycastle.org/latest_releases.html

- Also, for the HTTP Request element, it says "The URL of the responder is defined in the 
variable section of the script.", but I am not sure what it is referring to when it says 
"the variable section of the script"?

I guess that the "user defined variables" table on the test plan (root)
element is meant. But on the other hand, the text misses to add a
variable reference on the http sampler (my guess is, that it is hidden
in the http defaults element, that are not described further in the
text), so you are free to add your URL to the http sampler yourself.

And now to a few things you haven't asked :)

* Use groovy instead of beanshell whenever possible.

* Don't use ${...} inside JSR223 or other Shell Samplers. Use
vars.get("...") instead

* Instead of

     Failure = false;
     if (oResp.getStatus() != 0) {
         Failure = true;

     }

  you could use

     Failure = oResp.getStatus() != 0;

or if you feel groovy: Failure = oResp.status != 0



Is anyone familiar with this test plan, and gotten it working?

Note, that I have no OCSP server and thus have not tried to get it
really working.

Felix


Thanks,
Jim

-
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

   



--

Ing. Sergio Boso




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



Re: Latency x Requests Received

2019-01-07 Thread Sergio Boso

Hi,

yes it is normal, and this seems confusing at the beginning fro most.
It depends very much on how you design the test, the number of virtual user etc.
IF you do not use times, THEN each VU issues a request as soon as the previous 
one is finished.
So, when response times increase, the throughput drops.
For example, if a request takes 1 second, one VU  will issue 60 request per 
minute.
When a request takes 2 second, one VU will issue 30 request per minute. So you 
have to increase the number of VU to compensate.

IN order to overcome this problem, the best option IMHO is to use a "Constant 
Throughput Timer".
This allows you to make the VU wait and not to exceed a specified throughput.
So in the example above, if you insert a time limiting the throughput to 30 op 
/s, you will not exceed this throughput.
Even if the actual request will take 0.5, or 1 or 1.8 seconds, the throughput 
will not change.
You can adjust the number of VU in order to obtain the desired load.
Obviously, if the request takes more than 2 seconds, , the throughput will drop.

HTH
Sergio

Il 07/01/2019 18:52, Marcio Prado ha scritto:

Good afternoon,

I have a question that can be simple for most.

I'm running some tests on a cloud computing with OpenStack.

When network latency increases, the number of HTTP requests met decreases. Is 
this normal behavior?

I figured that the number of HTTP requests would remain the same as when latency was low, since HTTP requests are generated 
regardless of response time.


Can anyone explain this behavior?

Thank you!



--

Ing. Sergio Boso




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



Re: Problems using Cookie manager with Jmeter 5.0

2018-10-16 Thread Sergio Boso

just to close the alert.
I wasn't able to reproduce the bug, maybe it was my fault somewhere in the 
configuration.

Now I'm going on with JM 5.0, I will let you know if I face any problem.

Thank you for your support.

SB

Il 16/10/2018 10:15, Sergio Boso ha scritto:

J



Il 13/10/2018 20:20, Philippe Mouawad ha scritto:

Hello Sergio,
I see no reason for this behaviour as there is little change in
cookiemanager since 4.0

Are you sure there was no particular settings related to cookie validation
that you had set in your previous installations?

Please put jmeter in debug and:
- show response that contains set-cookie
- show request in browser
- show request tabs in view result tree
- attach jmeter.log

Since attachment are not accepted by mailing list, please open a bugzilla.

Thanks


On Saturday, October 13, 2018, Felix Schumacher <
felix.schumac...@internetallee.de> wrote:


Am 13.10.2018 um 15:38 schrieb Sergio Boso:


Hi everybody,

I'm experiencing troubles using cookie manager with Jmeter 5.0.
No matter what option I'm selecting (standard, compatibility, ..), no
cookie is stored and returned.
The *same* script works properly under JM 3.2 and 4.0.


Can you give an example for cookies that worked with JMeter 3.2 and don't
work in 5.0?

Regards,
  Felix



Any suggestion / experience?

Thank you in advance



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




--


--

Ing. Sergio Boso




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



Re: Problems using Cookie manager with Jmeter 5.0

2018-10-13 Thread Sergio Boso
Hi, I'm working to set up a simple script reproducing the issue.
I will post it as soon as I have it.

Regards

Sergio Boso
335 7243 445

Il Sab 13 Ott 2018, 20:20 Philippe Mouawad  ha
scritto:

> Hello Sergio,
> I see no reason for this behaviour as there is little change in
> cookiemanager since 4.0
>
> Are you sure there was no particular settings related to cookie validation
> that you had set in your previous installations?
>
> Please put jmeter in debug and:
> - show response that contains set-cookie
> - show request in browser
> - show request tabs in view result tree
> - attach jmeter.log
>
> Since attachment are not accepted by mailing list, please open a bugzilla.
>
> Thanks
>
>
> On Saturday, October 13, 2018, Felix Schumacher <
> felix.schumac...@internetallee.de> wrote:
>
> >
> >
> > Am 13.10.2018 um 15:38 schrieb Sergio Boso:
> >
> >> Hi everybody,
> >>
> >> I'm experiencing troubles using cookie manager with Jmeter 5.0.
> >> No matter what option I'm selecting (standard, compatibility, ..), no
> >> cookie is stored and returned.
> >> The *same* script works properly under JM 3.2 and 4.0.
> >>
> > Can you give an example for cookies that worked with JMeter 3.2 and don't
> > work in 5.0?
> >
> > Regards,
> >  Felix
> >
> >
> >> Any suggestion / experience?
> >>
> >> Thank you in advance
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> > For additional commands, e-mail: user-h...@jmeter.apache.org
> >
> >
>
> --
> Cordialement.
> Philippe Mouawad.
>


Problems using Cookie manager with Jmeter 5.0

2018-10-13 Thread Sergio Boso

Hi everybody,

I'm experiencing troubles using cookie manager with Jmeter 5.0.
No matter what option I'm selecting (standard, compatibility, ..), no cookie is 
stored and returned.
The *same* script works properly under JM 3.2 and 4.0.

Any suggestion / experience?

Thank you in advance

--

Ing. Sergio Boso




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



Re: I want to increment the number by 1 for each request - WebAPI 2.0

2018-05-17 Thread Sergio Boso

Il 17/05/2018 18:29, Sergio Boso ha scritto:

or, you could try a simple JSR223 preprocessor in any supported script (example 
in javascript):

counterString= vars.get('counter');

counter= parseInt( counterString);

vars.put( 'counter',  counter+1);


regards



Il 17/05/2018 18:10, Ivan Rancati ha scritto:

You could try a counter

https://jmeter.apache.org/usermanual/component_reference.html#Counter

best regards,
Ivan

On Thu, May 17, 2018 at 10:18 AM, Mihir<mihir.patn...@gmail.com>  wrote:


I'm testing WebAPI 2.0 service which has path parameter.
/webapi2/attach/MjIwLjIyNS44OC4xNjV8U1FMVFJBQ0
tTRVJWRVJ8MnxSRURDUk9TU1RFU1R8Q1JNfEFETUlOfDE3NzAyODgxMzg=/
TICKET/*107379*/Lauren%20Thompson


I want to increment the number by 1 for each request. How to achieve this
in
Jmeter? Till now i had been passing a fixed path param, therefor our test
result were on only one input parameter.


Please suggest and Let me know if any valuable solution








--

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



Re: Load I can generate?

2017-05-16 Thread Sergio Boso

I used 1 master, 4 slaves, 1 redis server.
I reached about 9000 virtual users.

regards


Il 16/05/2017 20:59, Deepak Goel ha scritto:

Sergio

How many total slave machines did you manage in your test bed? Or how many
total number of concurrent users did you test with?

Thanks
Deepak



Deepak
"Please stop cruelty to Animals, help by becoming a Vegan"
+91 73500 12833
deic...@gmail.com

LinkedIn: www.linkedin.com/in/deicool
https://www.facebook.com/deicool

"Contribute to the world, environment and more : http://www.gridrepublic.org
"

On Tue, May 16, 2017 at 9:23 PM, Sergio Boso <ser...@bosoconsulting.it>
wrote:


Hi,

IMHO, scaling depends on a lot of factors.
Some of them are pretty difficult to predict in advance, but I will
include:
- size and complexity of the request and response (do you retrieve
embedded objects? How many threads?)
Generally speaking,  REST interfaces are lighter than complex web pages
- type and complexity of assertion applied on responses
- complexity of the script: some samplers can be heavier than expected
(e.g. OS sampler)
- amount of data to use (CSV files)

I suggest you to do some test with your script on a single slave
configuration and check you mileage.
That said, I managed a test bed where each slave machine simulated 2200
users, with constant throughput timer at 30seconds.
JVM had 4 G Bytes and 4 fast speed core (AWS infrastructure).
There was even room for more load.
Some key factors you have to keep under control are:
- bandwidth toward the system-under-test
- bandwidth toward the master (result data)
- amount of RAM for the JVM and GC configuration.

HTH

Sergio

Il 16/05/2017 15:56, Pravesh Prajapati ha scritto:


Hi Deepak.
One correction its 16 gb not 8 gb.. for ram.

On Tuesday, May 16, 2017, Pravesh Prajapati <prajapati.prav...@gmail.com>
wrote:

Hi Sir,

Please find the attachment for scaling environment in Jmeter.

I have mentioned the things as follow.
If we have 4-6 scenario per application with 10-15 samples,
Then we need M\C having configuration of 8 GB RAM, I-3/I-5
processor(2.5-3
GHZ)  for executing approx 1800 VU on slave m\c.





On Tue, May 16, 2017 at 9:55 PM, Pravesh Prajapati <
prajapati.prav...@gmail.com
<javascript:_e(%7B%7D,'cvml','prajapati.prav...@gmail.com');>> wrote:



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




--

Ing. Sergio Boso

Mail:
Cell:
Web:
Linkedin:
Skype:



ser...@bosoconsulting.it <mailto:ser...@bosoconsulting.it>
+39 335 7243 445
www.bosoconsulting.it <http://www.bosoconsulting.it>
http://it.linkedin.com/in/sergioboso 
<http://www.linkedin.com/pub/sergio-boso/1/29b/255>
sbos61




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



Re: Load I can generate?

2017-05-16 Thread Sergio Boso

Hi,

IMHO, scaling depends on a lot of factors.
Some of them are pretty difficult to predict in advance, but I will include:
- size and complexity of the request and response (do you retrieve embedded 
objects? How many threads?)
   Generally speaking,  REST interfaces are lighter than complex web pages
- type and complexity of assertion applied on responses
- complexity of the script: some samplers can be heavier than expected (e.g. OS 
sampler)
- amount of data to use (CSV files)

I suggest you to do some test with your script on a single slave configuration 
and check you mileage.
That said, I managed a test bed where each slave machine simulated 2200 users, 
with constant throughput timer at 30seconds.
JVM had 4 G Bytes and 4 fast speed core (AWS infrastructure).
There was even room for more load.
Some key factors you have to keep under control are:
- bandwidth toward the system-under-test
- bandwidth toward the master (result data)
- amount of RAM for the JVM and GC configuration.

HTH

Sergio

Il 16/05/2017 15:56, Pravesh Prajapati ha scritto:

Hi Deepak.
One correction its 16 gb not 8 gb.. for ram.

On Tuesday, May 16, 2017, Pravesh Prajapati 
wrote:


Hi Sir,
Please find the attachment for scaling environment in Jmeter.

I have mentioned the things as follow.
If we have 4-6 scenario per application with 10-15 samples,
Then we need M\C having configuration of 8 GB RAM, I-3/I-5 processor(2.5-3
GHZ)  for executing approx 1800 VU on slave m\c.





On Tue, May 16, 2017 at 9:55 PM, Pravesh Prajapati <
prajapati.prav...@gmail.com
> wrote:




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



RE: Test Duration

2017-03-01 Thread Sergio Boso
Hi,
You may want to test the "stepping thread group " from jmeter-plugins.

This allows you to setup the duration of each step and much more.
Regards

Sergio Boso


Il 01/Mar/2017 17:48, "Stuart Kenworthy" <stuart.kenwor...@bjss.com> ha
scritto:

> Wow I take that back, it now seems that schedule in v3.1 does seem to do
> what you expect. May want to test properly if using 2.13.
>
> -Original Message-
> From: Stuart Kenworthy [mailto:stuart.kenwor...@bjss.com]
> Sent: 01 March 2017 16:33
> To: JMeter Users List <user@jmeter.apache.org>
> Subject: RE: Test Duration
>
> Does this actually work? In my experience, running a scheduler in command
> line does not work as expected, or at all.
>
> -Original Message-
> From: Antonio Gomes Rodrigues [mailto:ra0...@gmail.com]
> Sent: 01 March 2017 16:30
> To: JMeter Users List <user@jmeter.apache.org>
> Subject: Re: Test Duration
>
> Put ${__P(RUNTIME,100) in the "Thread Group" element in "Duration
> (seconds)" input
>
> And when you run JMeter, use -JRUNTIME=99 in the command line
>
> Instead of 99, put the desired test duration in seconds
>
> 2017-03-01 17:25 GMT+01:00 Stuart Kenworthy <stuart.kenwor...@bjss.com>:
>
> > And how would this be used to control run time within the script itself?
> >
> > -Original Message-
> > From: sebb [mailto:seb...@gmail.com]
> > Sent: 01 March 2017 16:24
> > To: JMeter Users List <user@jmeter.apache.org>
> > Subject: Re: Test Duration
> >
> > Simpler to use a property reference, for example:
> >
> > ${__P(RUNTIME,100)
> >
> > Then use -JRUNTIME=99 on the command line
> >
> >
> >
> > On 1 March 2017 at 16:18, Antonio Gomes Rodrigues <ra0...@gmail.com>
> > wrote:
> > > Hi,
> > >
> > > Put a JMeter variable in the "Thread Group" element in "Duration
> > (seconds)"
> > > input
> > >
> > > And use -J command line option to define it
> > >
> > > Antonio
> > >
> > > 2017-03-01 17:14 GMT+01:00 Bo Bodnar <bbod...@us.ibm.com>:
> > >
> > >> This is exactly the problem that came up in our test organization.
> > >> We couldn't figure it out (running jmeter for a specified time from
> > >> the command line) so, our solution is to have a shell script start
> > >> jmeter and, after the required time, calls shutdown.sh. The whole
> > >> thing works using nohup and works like a charm.
> > >>
> > >> Bo
> > >>
> > >>
> > >>
> > >> *Bohdan L. Bodnar*
> > >> Lead Performance Engineer
> > >> 1-312-871-5163 <(312)%20871-5163>
> > >> --
> > >> *E-mail:* *bbod...@us.ibm.com* <bbod...@us.ibm.com>
> > >> 222 South Riverside Plaza
> > >> Chicago, IL 60606
> > >> United States
> > >>
> > >> [image: Inactive hide details for Stuart Barlow ---03/01/2017
> > >> 10:04:07 AM---Hi. Is there a way to define the duration a test
> > >> should run]Stuart Barlow ---03/01/2017 10:04:07 AM---Hi. Is there a
> > >> way to define the duration a test should run via the command line?
> > >>
> > >> From: Stuart Barlow <stuart.bar...@gmail.com>
> > >> To: <user@jmeter.apache.org>
> > >> Date: 03/01/2017 10:04 AM
> > >> Subject: Test Duration
> > >> --
> > >>
> > >>
> > >>
> > >> Hi. Is there a way to define the duration a test should run via the
> > >> command line?
> > >>
> > >> Is there a JMeter property available? Then it could be set using
> > >> the -J command line option
> > >>
> > >> -J[prop_name]=[value]
> > >>  defines a local JMeter property.
> > >>
> > >> Sorry if this was asked before.
> > >>
> > >> Thanks
> > >>
> > >> Stuart
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> ---
> > >> -- To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> > >> For additional commands, e-mail: user-h...@jmeter.apache.org
> > >>
> > >>
> > >>
> > >>
> > >>
> >
> > 

Re: How would you go about creating a new Thread Group type?

2016-10-24 Thread Sergio Boso
umber of threads (1000 in my example), and your 100 threads always
restart until there are no loops left to run. Then the longest
period you have where you aren't fully loading the servers is just
the last loop for every thread.



BUT, I am not 100% sure where I would start in the source code. I
have programmed before (a long time ago), but if someone could point
me in the right direction (like, which source files would need to be
modified, and how would I register my new Thread Group as a
different option), I think I could figure it out pretty quickly.



--

Robin D. Wilson

  <mailto:rwils...@gmail.com> rwils...@gmail.com





--

Ing. Sergio Boso




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



Re: Jmeter test for OTP enter process

2016-10-09 Thread Sergio Boso
I can see two other workaround.
The simplest is asking your software people to skip OTP checking in Q
environment. This way you enter a fixed OTP.
The second one is use email instead of SMS, that is an option that many SW
have. The cost here is that you have to setup a mailbox for each user,
which can be an heavy task to perform.
The good side is that it is quite easy to use the Jmeter POP /IMAP sampler
and get the data.
Regards

Sergio Boso

Il 08/Ott/2016 10:33, "karthikeyan T" <tkarthikma...@gmail.com> ha scritto:

Thank you so much for your reply.


On Fri, Oct 7, 2016 at 11:59 PM, Deepak Shetty <shet...@gmail.com> wrote:

> You are effectively asking the question - How do I receive an SMS message
> using java (Atleast for the text  part) ?
>
> There are some commercial and some free code out there (e.g.
> https://sourceforge.net/projects/asimplesmssende/?cm_mc_uid=
> 50810133125414708629625_mc_sid_5020=1475864721)
> but it will need setup - you can search on Google
> Once you have a working java program , you should be able to change your
> script to poll for the SMS and then use it
>
> Usually however the developers have to put in a backdoor for your test
> (i.e. there is someway for the test program to determine what the code is
> and use it) to avoid the kind of setup that you need
>
> regards
> dee[al
>
>
>
> On Fri, Oct 7, 2016 at 7:37 AM, karthikeyan T <tkarthikma...@gmail.com>
> wrote:
>
> > Hello Everyone,
> >
> > We have a webapplication that have two authentications, one is with
> normal
> > username and password, second one is with OTP enter process. For this
> user
> > has to register their mobile phone numbers, so that they can receive OTP
> > via TEXT or VOICE.
> >
> > 1. May i know, how to do jmeter test for this kind of scenarios?
> > 2. I have no idea, how to automate the OTP enter process via Jmeter
> > (because the OTP will be received in mobile devices). Does anyone come
> > across with same scenario and any idea of how to do it?
> >
> > Thanks in Advance :)
> >
>


Re: Jmeter pausing when running

2016-06-09 Thread Sergio Boso
Hi,
like Sebb already said, definitely try running Jmeter in non GUI  mode.
You should have a command like:
*  jmeter -n -t your_script.jmx*

2016-06-09 17:36 GMT+02:00 Janine DeBeradinis :

> No, nothing else should be running on the machines which generate the load.
>
> The load testing machines are all the same:
>
> Windows Server 2012 R2
> Quad 2.35GHz Intel Xeon(R) CPU (2 processors)
> 8GB RAM
> 64-bit OS
>
> -Original Message-
> From: Deepak Goel [mailto:deic...@gmail.com]
> Sent: Wednesday, June 08, 2016 4:29 PM
> To: JMeter Users List
> Subject: Re: Jmeter pausing when running
>
> On the windows server machines which generate load, do you run any other
> processes or systems like batch jobs
>
> What is the hardware configuration of your load testing machine
>
> Also what is the response times of your systems, is it milliseconds?
> On Jun 9, 2016 1:06 AM, "Deepak Shetty"  wrote:
>
> > Hi
> > you could be having
> > a. Problems in the JMeter java VM
> > b. Problems in your test itself (like a synchronizing timer or a
> > throughput
> > controller) - This is something you have probably eliminated ?
> > c. Problems in the system being tested (i.e. JMeter is generating the
> > load , but your system under test paused so Jmeter isnt doing anything
> > other than waiting) - Sounds like you have eliminated this possibility
> >
> > For a) you probably have no way out of looking at the java VM when it
> > is paused (take a thread dump - or hook up something like jconsole or
> > run a profiler - look at GC running , memory usage etc) and then take
> > it from there.
> >
> > Since you mentioned you are using Jmeter distributed mode , try
> > eliminating that first - i.e. running a single machine test (perhaps
> > with half the
> > load) and seeing whether you see same behavior or not - if you do then
> > you can probably take a thread dump (ctrl+break or kill -3 and see
> > what JMeter is doing at that time - you can also enable GC logs to see
> > what the memory usage looks and whether GC is running or not).
> >
> >
> >
> > On Wed, Jun 8, 2016 at 12:05 PM, Janine DeBeradinis <
> > jdeberadi...@higherone.com> wrote:
> >
> > > Sorry, I'm not exactly sure what you mean.  Run both the server and
> > client
> > > in non-gui mode on the same machine?
> > >
> > > -Original Message-
> > > From: sebb [mailto:seb...@gmail.com]
> > > Sent: Wednesday, June 08, 2016 2:56 PM
> > > To: JMeter Users List
> > > Subject: Re: Jmeter pausing when running
> > >
> > > The JMeter GUI takes a lot more resources than running in non-Gui mode.
> > > Also client-server mode takes more resources as it has to send back
> > > the results.
> > >
> > > Since you only have two machines actually running the test, it
> > > should be easy enough to try running them stand-alone in non-GUI mode
> in parallel.
> > >
> > >
> > >
> > >
> > > On 8 June 2016 at 19:41, Janine DeBeradinis
> > > 
> > > wrote:
> > > > We are using 3 machines.
> > > >
> > > > 1 is running JMeter GUI to distribute the load.  (also trying to
> > > > see if the pausing issue goes away) The other 2 are running JMeter
> server.
> > > >
> > > > They are all Windows Server 2012 R2 machines.
> > > >
> > > > Thanks.
> > > > Janine
> > > >
> > > > -Original Message-
> > > > From: Deepak Goel [mailto:deic...@gmail.com]
> > > > Sent: Wednesday, June 08, 2016 12:47 PM
> > > > To: JMeter Users List
> > > > Subject: Re: Jmeter pausing when running
> > > >
> > > > What machine are you running the test from? Is it a laptop or a
> > > > desktop
> > > for personal use?
> > > >
> > > > Hey
> > > >
> > > > Namaskara~Nalama~Guten Tag~Bonjour
> > > >
> > > >
> > > >--
> > > > Keigu
> > > >
> > > > Deepak
> > > > 73500 12833
> > > > www.simtree.net, dee...@simtree.net deic...@gmail.com
> > > >
> > > > LinkedIn: www.linkedin.com/in/deicool
> > > > Skype: thumsupdeicool
> > > > Google talk: deicool
> > > > Blog:
> > > > https://urldefense.proofpoint.com/v2/url?u=http-3A__loveandfearles
> > > > s.wo
> > > > rdpress.com=DQIFaQ=G2J7obiPomkpMVl1prtGFw=1OgbcP-oUjBUH-3H8a
> > > > vzbU
> > > > L8Jplqf3JrZ0J8DHFWVZE=Q7QdXYQGe-rZwgYG-F0UQuBOUV8fVsyteZl_FEcZ5f
> > > > U= Au4_yzYoutDa59LBgoqwvraAw3A_W4bhaXyB6azgyCM=
> > > > Facebook:
> > > > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.facebook.c
> > > > om_d
> > > > eicool=DQIFaQ=G2J7obiPomkpMVl1prtGFw=1OgbcP-oUjBUH-3H8avzbUL
> > > > 8Jpl
> > > > qf3JrZ0J8DHFWVZE=Q7QdXYQGe-rZwgYG-F0UQuBOUV8fVsyteZl_FEcZ5fU=s
> > > > C34g I9c7G5kALpTSm-Np-s7lFURlfsjH_Zh4zbnbPs=
> > > >
> > > > "Contribute to the world, environment and more :
> > > > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.gridrepubl
> > > > ic.o
> > > > rg=DQIFaQ=G2J7obiPomkpMVl1prtGFw=1OgbcP-oUjBUH-3H8avzbUL8Jpl
> > > > qf3J
> > > > rZ0J8DHFWVZE=Q7QdXYQGe-rZwgYG-F0UQuBOUV8fVsyteZl_FEcZ5fU=U_jTZ
> > > > pfYA Z4lWmjZkzSVlkxPqhktjUtJP2vvEIInJ6s=
> > > > "
> > > >
> > > > On Wed, 

Re: Remote Testing with different external data files

2016-06-02 Thread Sergio Boso

Il 02/06/2016 06.22, Ng Kok Chai ha scritto:

Is there any way to use different external data files in each remote server 
when doing remote testing? Which mean Server 1 use file 1, Server 2 use file 2 
etc, then client will trigger all servers with same test plan.

I have browsing over the JMeter docs and Wiki, unable to find solutions on how 
to implement this. Basically I need server 1 to use user 1 to 10 to login and 
perform testing, server 2 use user 11 to 20 to login and perform testing, all 
the test scripts are same but just the login users will be different.

I need to simulate 20,000 concurrent users access, distributed to around 40+ 
test PC.

Appreciate any help to save me remote desktop to each test PC and click 1 by 1. 
:)


Hi , sure you can, I did this many times.
How ever, if you have so  many system, you may find more effective to have a 
central DB, and have each Jmeter instance ask for usr data.
I found Redis and Redis plugin very effective for this.

Regards


--

Ing. Sergio Boso




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



Re: ASP.NET Login Problems

2016-03-14 Thread Sergio Boso
Hi the reg exp is correct.
You have to deal with URLencoding of data.
There is a flag to enforce encoding while postg the data.

Regards

Sergio Boso
Il 14/Mar/2016 13:54, "Frank Cazabon" <frank.caza...@gmail.com> ha scritto:

> Hi,
>
> I am using jmeter for the first time.  I am trying to test an ASP.NET web
> site which has a log in process but the login is failing.  I have followed
> the YouTube videos I have found on how to read the viewstate, etc from the
> first response.
>
> I have set a Regular Expression Extractor like this:
>
> Ref Name: viewstate
> Regular Expression:  id="__VIEWSTATE" value="(.+?)" />
> Template: $1$
>
> This apparently sets my viewstate variable to this:
> __VIEWSTATE=%2FwEPDwULLTE3MDEwNDYzMDVkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYCBSljdGwwMCRDb250ZW50UGxhY2VIb2xkZXIxJEFTUHhSb3VuZFBhbmVsMQUpY3RsMDAkQ29udGVudFBsYWNlSG9sZGVyMSRBU1B4Um91bmRQYW5lbDPxv02mMpEvM3h4JrOXma9O+ibYCrtMlDcXO9rZXOw5EQ%3D%3D
>
> The actual viewstate in the response data from the first request on the
> web site is this:
>
>
> value="/wEPDwULLTE3MDEwNDYzMDVkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYCBSljdGwwMCRDb250ZW50UGxhY2VIb2xkZXIxJEFTUHhSb3VuZFBhbmVsMQUpY3RsMDAkQ29udGVudFBsYWNlSG9sZGVyMSRBU1B4Um91bmRQYW5lbDPxv02mMpEvM3h4JrOXma9O+ibYCrtMlDcXO9rZXOw5EQ=="
>
> The Post data on my login request is this:
>
> POST data:
>
> __EVENTVALIDATION=%2FwEdAARsMasKlSFEobllKbv2sSBzNkBWguBA4UP71lsiJzRdRDHhGgN8+b0NXIwV57LBLpP2hHJlkpzwe0+KH%2FI%2Fh8UVyNcqsV%2FqpyHlFfUhxtyPR3wDhwUVJvkJEE6lRhD+bUQ%3D&__VIEWSTATE=%2FwEPDwULLTE3MDEwNDYzMDVkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYCBSljdGwwMCRDb250ZW50UGxhY2VIb2xkZXIxJEFTUHhSb3VuZFBhbmVsMQUpY3RsMDAkQ29udGVudFBsYWNlSG9sZGVyMSRBU1B4Um91bmRQYW5lbDPxv02mMpEvM3h4JrOXma9O+ibYCrtMlDcXO9rZXOw5EQ%3D%3D&__VIEWSTATEGENERATOR=C2E
>
> The Response data for the login request has this error:
>
> The state information is invalid for this page and might be corrupted.
>
> [ViewStateException: Invalid viewstate.
> Client IP: ***.***.***.***
> Port: *
> Referer:
> Path: /Login.aspx
> User-Agent: Apache-HttpClient/4.2.6 (java 1.5)
> ViewState:
> /wEPDwULLTE3MDEwNDYzMDVkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYCBSljdGwwMCRDb250ZW50UGxhY2VIb2xkZXIxJEFTUHhSb3VuZFBhbmVsMQUpY3RsMDAkQ29udGVudFBsYWNlSG9sZGVyMSRBU1B4Um91bmRQYW5lbDPxv02mMpEvM3h4JrOXma9O
> ibYCrtMlDcXO9rZXOw5EQ==]
>
> Can anyone spot what I am doing wrong?
>
>
> --
>
> Frank.
>
> Frank Cazabon
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Jmeter Next release

2016-03-13 Thread Sergio Boso

Hi everybody,

is it possible to have an idea about date of Jmeter next release?
Thank you in advance


Sergio
--





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



Re: Opening txt file

2016-02-25 Thread Sergio Boso
Hi,another option is to  check the "save response as MD5" that avois
keeping all the file in memory.

Regards

Sergio Boso
cell. 335 7243 445
Il 25/Feb/2016 14:53, "Bob" <b.mel...@gmail.com> ha scritto:

> Use OS Process sampler, pass command something like "cat". But I'm not
> sure if it's good option. IMHO, it's better to use GNU Binutils.
>
>
> http://jmeter.apache.org/usermanual/component_reference.html#OS_Process_Sampler
>
> On 25/02/16 15:40, Konstantinos Dimkas wrote:
>
>> Hi all,
>>
>> I want to run a stress test to a cloud infrastructure. Beside from
>> uploading and downloading files, i want to open a large txt file that is
>> uploaded to the cloud. We have problems with rendering large txt files and
>> i want to test it.
>>
>> So, how do i open a test.txt file, and cause the server to render it but
>> not downloading it?
>>
>> Thanks in advance,
>> Konstantinos Dimkas
>>
>>
>>
>>
>>
>


Re: distributed testing and script parameterization

2015-11-13 Thread Sergio Boso

Il 13/11/2015 11.09, Bhadauria, Tarun Kumar ha scritto:

JMeter distributed testing works great for my project when I have to
execute exactly same script from all the JMeter servers.
But I have a use case of creating users with email address hence each
Server should be creating unique user.
To overcome this I can have different data set on each machine. But is is
little laborious. Is there a better way to handle it?


A better options could be to use Jmeter plugins with Redis connector.
The random remove operation can fit your case.

This require a central server and some scripting  to load data into Redis

HTH
--

Ing. Sergio Boso




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



RE: not all 50 http samplers to download file are executed

2015-11-08 Thread Sergio Boso
Hi Charles,

If I remember well, if you check the "save MD5 only", the full data is not
kept in memory.
You can check that data are data correct and you save substantial amount of
memory.
Other approach may involve OS sampler and wget operation.

Regards

Sergio Boso
Il 08/Nov/2015 07:24, "Charles Lin (charlin)" <char...@cisco.com> ha
scritto:

> I changed my script from 1 Thread Group with 50 users, to 50 Thread Group
> each with 1 user.  Well, it does not do what I want which is concurrent
> downloading.
>
> Thread Group 2 does not start until Thread Group 1 finishes, which in this
> case means a long wait for one 310 MB to complete download, before next
> Thread Group (= next downloading) can begin.
>
> So either I have to increase heap memory even more, or use two or three
> machines to run JMeter so as to get 50 concurrent downloads.
>
> If you have other good suggestions please let me know.
>
> Thank you!
>
> Charles
>
> -Original Message-
> From: Charles Lin (charlin)
> Sent: Saturday, November 07, 2015 9:39 PM
> To: JMeter Users List
> Subject: RE: not all 50 http samplers to download file are executed
>
> Hi Deepak,
>
> Thank you for your response.
>
> After I submitted my question, I started analyzing the logs, and as you
> suspected, the problem was java out of heap memory
>
> I increased my JVM_ARG to -Xms=4096- Xmx=8000, and was able to get more
> files download to complete.  But still, I only got 20 out of 50 total
> download that I had hoped for.
>
> Is there some timer or timing arrangement with my sampler arrangement
> under the Thread Group that I can play with to overcome this heap memory
> issue?
>
> How about instead of a single Thread Group with 5 HTTPS samplers under it
> (the first 4 leading up to the 5th which is the actual file downloading
> request), right now I run this Thread Group with User = 50, Ramp = 100 sec,
> cycle = 1 ... instead of that, what if I make them into 5 separate Thread
> Group, each thread group with User = 1, Ramp=1, cycle =1.Will I be able
> to launch all 50 Thread Groups sequentially but quickly, one after
> another?   For each Thread Group, like I said, 5 samplers are needed to
> cause the download to begin.All 5 executes quickly, but the 5th request
> will take time to finish (for 310 MB to download).  But as soon as Group
> 1-5 is done (but downloading now in progress), will Group 2-1 ~ 2-5 start
> to execute?
>
> Will doing the above help to release the heap memory?   In other words, as
> Thread 1-5 finish dumping data to local file, that memory will be freed for
> following succession of Thread 2-5, 3-5, 4-5, 5-5, 6-5, etc to use while
> they also finish up dumping data to file?
>
> Thank you
>
> Charles
>
>
>
>
> 2015/11/07 18:43:25 DEBUG - jmeter.threads.ThreadGroup: Ending thread
> Thread Group 1-1
> 2015/11/07 18:43:30 ERROR - jmeter.threads.JMeterThread: Test failed!
> java.lang.OutOfMemoryError: Java heap space
>
> 2015/11/07 18:43:31 ERROR - jmeter.threads.JMeterThread: Test failed!
> java.lang.OutOfMemoryError: Java heap space
>
> 2015/11/07 18:43:31 INFO  - jmeter.threads.JMeterThread: Thread finished:
> Thread Group 1-40
> 2015/11/07 18:43:30 ERROR - jmeter.threads.JMeterThread: Test failed!
> java.lang.OutOfMemoryError: Java heap space
> at java.io.ByteArrayOutputStream.(Unknown Source)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1741)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:412)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:352)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1135)
> at
> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:434)
> at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)
> at java.lang.Thread.run(Unknown Source)
>
>
> -Original Message-
> From: Deepak Shetty [mailto:shet...@gmail.com]
> Sent: Saturday, November 07, 2015 8:11 PM
> To: JMeter Users List
> Subject: Re: not all 50 http samplers to download file are executed
>
> Did you check jmeter.log for errors like out of memory ?
> On Nov 7, 2015 1:11 PM, "Charles Lin (charlin)" <char...@cisco.com> wrote:
>
>
>


Re: Plugin to automatically transfer resource files (csvs) from controller to injectors

2015-10-05 Thread Sergio Boso
Hi
I had same issue, but solved differently by using a central Db with Redis.
I think it is much better approach, more flexible and scalable.
This can support either circular lists ( e.g. user info) and use-only-once
data.

You can use the plugin from Jmeter - plugin ( not so complete anyway) or
develop your own integration, which is quite simple any way.

Regards

Sergio Boso

Sergio Boso
cell. 335 7243 445
Hi,

When carrying out performance load testing on JMeter, we often set up a
controller and multiple injectors and use CSV files as data sources. We
then have to manually copy each CSV file to each injector. In cases where
we don't want the same data being used by multiple injectors we also have
to split the csv up into separate files, copy each file to a different
injector etc. It feels like something that we should automate to save time
and avoid human error.

Requirements:
- Automate copying csv files from controller to injects before testing
begins
- No test should begin until all csvs have been copied (to avoid lag for
later injectors)
- The file transfer should be automatically triggered when the test is
started (to avoid human error in forgetting to do it)
- It should be possible to split a CSV between injectors so that lines are
evenly shared.

So my question is: *Is it possible for me to do this purely by writing a
plugin? If so, what kinds of objects would I be looking at creating and
whereabouts in the code is/are the method call(s) into it that I'd be
using?*

Looking at the code in DistributedRunner.start() and
ClientJMeterEngine.runTest(), I can't see any hooks I could use to execute
plugin code after starting the test run but before running other steps.
Unfortunately, using the HashTreeTraversers in ClientJMeterEngine.runTest()
would result in files being transferred on one Injector after testing had
started on another injector, potentially introducing lag between tests.

Any help much appreciated and if this is not currently possible I'll give
the dev list a try!

Many thanks,

Jonathan Mew

--
*Before acting on this email or opening any attachments please read the
important notice at the end of this email.*

Passionate about Testing, Excited by Technology


--
This communication is strictly confidential and intended solely for the
person to whom it is addressed, and it may be legally privileged. If you
are not the intended recipient or have received this communication in
error, please do not read it or show it to any other person, but notify us
immediately and then delete it from your computer. Any unauthorised
disclosure of information contained in this communication is strictly
prohibited.

The Test People Limited.  Registered in England and Wales Number 6326413
Registered Office - Albion Court, 5 Albion Place, Leeds, LS1 6JL - 0113 320
4801
London Office - Portland House, Bressenden Place, London, SW1E 5RS - 020
7100 7794


Re: Distributed test

2015-06-03 Thread Sergio Boso
Hi,

as described here:
http://jmeter.apache.org/usermanual/jmeter_distributed_testing_step_by_step.pdf

you must have all computer running on the same VLAN to execute a
distributed testing.
I think you have two options:
- move the master to AWS, on the same VPC
- setup a VPN so that all server are connected on the same network

IMHO, the first one is much ore simple.
Regards

Sergio

2015-06-03 16:00 GMT+02:00 Erez Naim e...@theneura.com:

 No firewalls are active on my slaves:

 deploy@ip-10-34-6-21:~$ sudo ufw status
 Status: inactive

 -Original Message-
 From: Bo Bodnar [mailto:bbod...@cleversafe.com]
 Sent: Wednesday, June 03, 2015 4:56 PM
 To: JMeter Users List
 Subject: Re: Distributed test

 I’ve run across this situation - the quick solution was to turn off the
 firewalls on the slaves.




 On 6/3/15, 5:56 AM, Erez Naim e...@theneura.com wrote:

 I have successfully connect from my windows server to AWS using telnet
 command with specific port , what am I missing?
 
 
 
 From: Konstantinos Dimkas [mailto:ksdim...@csd.auth.gr]
 Sent: Wednesday, June 03, 2015 11:41 AM
 To: JMeter Users List
 Subject: Re: Distributed test
 
 
 
 Hi Erez,
 
 
 
 Is there any firewall between the master and the slaves?
 
 
 
 On Jun 3, 2015, at 10:42 AM, Erez Naim e...@theneura.com
 mailto:e...@theneura.com  wrote:
 
 
 
 Hello all,
 
 
 
 I am trying to run a remote test when I am trying to run it from my local
 computer (windows OS – client) and to run slave servers on AWS (UBUNTU
 linux os – server),
 
 I have updated the jmeter.properties file with remote-hosts parameter to
 point (on client side) to the relevant public DNS addresses.
 
 
 
 On the servers I have updated in the jmeter.properties
 server.rmi.localport=5
 
 When I am trying to run the test from client side I am getting the
 following error:
 
 Connection refused to host 54.xx.xx.xx nested exception is
 java.net.ConnectException: Connection timed out: connect
 
 What can I do in order to solve it?
 
 Thanks for any help it is quite urgent as I have to run the tests !!
 
 
 
 
 
 
 Erez Naim  |  QA Lead  |
 
 
 EL AL 2 Street | Herzliya
 mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura
 
 
 
 
  http://www.theneura.com/ website  |   http://www.startupbitz.com/
 blog  |   https://twitter.com/intent/user?screen_name=theneura twitter
 |   http://goo.gl/maps/ZRkg5 map
 
 
 
 Konstantinos Dimkas
 
 
 
 
 
 
 

 -
 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




Re: Jmeter error: jmeter.samplers.SampleResult: sampleEnd called twice java.lang.Throwable: Invalid call sequence

2015-04-28 Thread Sergio Boso

Hi Felix,

I finally tested Version r1676403 , (build on April, 28).
It fixes the problem, that now is logged as a protocol error, without any 
exception.

The originating problem was a 307 HTTP return code, with no URL specified in the header, while the sampler had the follow 
redirect  flag set.

These conditions caused the exception, without much details.

The target URL is specified is the payload, but obviously this could be not 
used by Jmeter.

Again, thank you very much for your support.
Regards

Sergio


Il 26/04/2015 13.57, Felix Schumacher ha scritto:

Am 26.04.2015 um 13:07 schrieb Felix Schumacher:

Am 26.04.2015 um 11:17 schrieb Sergio Boso:

Hi everybody,

in a rather large test environment, I'm facing the following error:

2015/04/24 16:44:47 ERROR - jmeter.samplers.SampleResult: sampleEnd called 
twice java.lang.Throwable: Invalid call sequence
at org.apache.jmeter.samplers.SampleResult.sampleEnd(SampleResult.java:1064)
at 
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:421)
This is in a catch-Block when a RuntimeException was thrown. It will try to set the sample endtime, which can be set previously 
in line 355.


The exception would be logged one line later in line 422, but we will of course not get there. So the first thing I will do, is 
to swap the log line and the sample end call. That way you should be able to see the reason for the RuntimeException.


If you want to try the patch yourself, I will (try to) attach it to this mail.

After that I will try to fix the double setting of the sample end.

Should be fixed in the next nightly and release. I have created an issue at

https://bz.apache.org/bugzilla/show_bug.cgi?id=57858.

It would be nice, if you could test it and give feedback. To see the exceptions that caused the double call, you might want to 
enable debug logging on org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl in bin/user.properties.


Regards
 Felix


Regards
 Felix


at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1135)
at 
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:434)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)
at java.lang.Thread.run(Unknown Source)

in the sample result field, I get the following message:
Non HTTP response code: java.lang.IllegalArgumentException

_Environment information:_
- Jmeter 2.13, r1665067
- distributed environment, 4 slaves, with Windows 2012: the error is evenly 
distributed
- the master just harvests results, non GUI mode
- JVM:
java version 1.7.0_55
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

Other info:

 *  this does *not* happen when running a single thread
 *  this happens only on a specific sampler, error rate is around 10%
 *  the sampler is a pretty simple HTTPS GET operation, Http4 client 
implementation
 *  I also get several other errors, like 503 and connection exception: 
global error rate is around 1%

The last info brings me to guess that  this is induced by a server-side error, 
however I cannot guess what is going on.
Unfortunately, the test is reserved and I cannot share the script and login 
information.

Any though? suggestions? other possible tests to do?

Thank you in advance, best regards

Sergio


-
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



Jmeter error: jmeter.samplers.SampleResult: sampleEnd called twice java.lang.Throwable: Invalid call sequence

2015-04-26 Thread Sergio Boso

Hi everybody,

in a rather large test environment, I'm facing the following error:

2015/04/24 16:44:47 ERROR - jmeter.samplers.SampleResult: sampleEnd called 
twice java.lang.Throwable: Invalid call sequence
at org.apache.jmeter.samplers.SampleResult.sampleEnd(SampleResult.java:1064)
at 
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:421)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1135)
at 
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:434)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)
at java.lang.Thread.run(Unknown Source)

in the sample result field, I get the following message:
Non HTTP response code: java.lang.IllegalArgumentException

_Environment information:_
- Jmeter 2.13, r1665067
- distributed environment, 4 slaves, with Windows 2012: the error is evenly 
distributed
- the master just harvests results, non GUI mode
- JVM:
java version 1.7.0_55
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

Other info:

 *  this does *not* happen when running a single thread
 *  this happens only on a specific sampler, error rate is around 10%
 *  the sampler is a pretty simple HTTPS GET operation, Http4 client 
implementation
 *  I also get several other errors, like 503 and connection exception: 
global error rate is around 1%

The last info brings me to guess that  this is induced by a server-side error, 
however I cannot guess what is going on.
Unfortunately, the test is reserved and I cannot share the script and login 
information.

Any though? suggestions? other possible tests to do?

Thank you in advance, best regards

Sergio


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



Re: Jmeter error: jmeter.samplers.SampleResult: sampleEnd called twice java.lang.Throwable: Invalid call sequence

2015-04-26 Thread Sergio Boso

Hi Felix,
thank you for your super fast reply.
Tomorrow I will download the nightly fix and give you a feedback, maybe the 
same day.

Thank you and best  regards

Sergio


Il 26/04/2015 13.57, Felix Schumacher ha scritto:

Am 26.04.2015 um 13:07 schrieb Felix Schumacher:

Am 26.04.2015 um 11:17 schrieb Sergio Boso:

Hi everybody,

in a rather large test environment, I'm facing the following error:

2015/04/24 16:44:47 ERROR - jmeter.samplers.SampleResult: sampleEnd called 
twice java.lang.Throwable: Invalid call sequence
at org.apache.jmeter.samplers.SampleResult.sampleEnd(SampleResult.java:1064)
at 
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:421)
This is in a catch-Block when a RuntimeException was thrown. It will try to set the sample endtime, which can be set previously 
in line 355.


The exception would be logged one line later in line 422, but we will of course not get there. So the first thing I will do, is 
to swap the log line and the sample end call. That way you should be able to see the reason for the RuntimeException.


If you want to try the patch yourself, I will (try to) attach it to this mail.

After that I will try to fix the double setting of the sample end.

Should be fixed in the next nightly and release. I have created an issue at

https://bz.apache.org/bugzilla/show_bug.cgi?id=57858.

It would be nice, if you could test it and give feedback. To see the exceptions that caused the double call, you might want to 
enable debug logging on org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl in bin/user.properties.


Regards
 Felix


Regards
 Felix


at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1135)
at 
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:434)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)
at java.lang.Thread.run(Unknown Source)

in the sample result field, I get the following message:
Non HTTP response code: java.lang.IllegalArgumentException

_Environment information:_
- Jmeter 2.13, r1665067
- distributed environment, 4 slaves, with Windows 2012: the error is evenly 
distributed
- the master just harvests results, non GUI mode
- JVM:
java version 1.7.0_55
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

Other info:

 *  this does *not* happen when running a single thread
 *  this happens only on a specific sampler, error rate is around 10%
 *  the sampler is a pretty simple HTTPS GET operation, Http4 client 
implementation
 *  I also get several other errors, like 503 and connection exception: 
global error rate is around 1%

The last info brings me to guess that  this is induced by a server-side error, 
however I cannot guess what is going on.
Unfortunately, the test is reserved and I cannot share the script and login 
information.

Any though? suggestions? other possible tests to do?

Thank you in advance, best regards

Sergio


-
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



Re: Need to insert a variable into the head of a POST

2015-04-16 Thread Sergio Boso

Il 16/04/2015 22.51, Bob Nance ha scritto:

I have extracted the value of a token from meta data sent by a form and put 
that into a reference variable. Now, I need to put that variable into a value 
pair in the head of the POST that follows.

I thought I could just go to the script, into the HTTP Header Manager” and add 
a line that says:

X-MYTOKEN   ${mytoken}

But, when I do that, jmeter sends the literal “${mytoken}” in the HEAD.

What am I doing wrong?

This means the variable is not defined.
Check the name, remember it is case sensitive.

regards


r 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



Re: is there a way to randomize CSV file values?

2015-04-03 Thread Sergio Boso

Il 02/04/2015 16.59, Erez Naim ha scritto:


Hi all,

I mean I don’t want it to take one by one values but want to randomize it. Is 
it possible?

Thanks !!


Another way is to use a REDIS server and the jmeter-plugins:
http://jmeter-plugins.org/wiki/RedisDataSet/

It is very useful when planning distributed installations.
Regards

--

Ing. Sergio Boso




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



Re: how to capture 301 redirect responses in results CSV file

2015-03-20 Thread Sergio Boso
Hi,

you also need to apply some regex to the response header, in order to
extract the URL to a suitable variable, and use it in the following sampler.
Regards

Sergio Boso
Il 20/Mar/2015 21:08 JTM jmoo...@llbean.com ha scritto:

 So that does let the 301 redirect get recorded in the result CSV file, but
 then I lose the following row for the response with the redirected
 Location.

 So for example, when /articles  gets redirected to /blog I'd like both
 responses captured. Something like this would be my desired results CSV . .
 .

 URL Testing,301,OK,,text,true,,53031,1,1,
 http://www.xyz.com/articles,,82,1,0
 URL Testing,200,OK,,text,true,,308058,1,1,http://www.xyz.com/blog,,179,1,0

 When I shut off Follow Redirects, I get only the 301 displayed, but want
 both the 301 and the following response(s).





 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/how-to-capture-301-redirect-responses-in-results-CSV-file-tp5721974p5721976.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: Regexp match multiple empty lines

2014-12-29 Thread Sergio Boso

Il 29/12/2014 06.28, Bob Meliev ha scritto:

Hi,

How I can match multiple empty lines? I have response:

th class=pricestrong id=total class=totals






$304.32





/strong/th

I need to get 304.32 but got stuck after  character. Using this pattern d=total 
class=totals\n

Thanks in advance.


You have to switch to single line mode and remember to escape the '$'. The 
final result should be something like:

 (?s)id=total class=totals.*?\$([\d\.]*)

regards



--

Ing. Sergio Boso




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



Output byte counting

2014-12-17 Thread Sergio Boso

Hi,

I just saw that the bytes filed of standard statistics just counts the bytes 
*from* the server *to* jmeter.
Is there any way to record (or to sum) also the traffic from jmeter to the 
server?

In my specific case most of the traffic is done by POSTing documents.
Any suggestions?

Thank you in advance

Sergio



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



Re: How does jmeter use cache?

2014-09-23 Thread Sergio Boso

Hi, if you need to have a browser cache emulator, you have to add an HTTP Cache 
Manager controller.
It should be positioned just under the Thread group.

it works very well, IMHO.

Regards

Il 23/09/2014 11.02, 黄吉浩 ha scritto:

Yes. but there is difference.
In LoadRunner, first the virtual user download all pictures, and in following 
iterations use cached static resources and don't get them from server again.
in Jmeter, never get these picture resources.

在 2014-09-23 16:03:16,Marijn Wijbenga marijn.wijbe...@cgpbooks.co.uk 写道:

In the recorder you can exclude requests with certain file extensions if you 
want. You could, for example, exclude all PNG, GIF and JPEG files (or anything 
that you don't want).




-Original Message-
From: 黄吉浩 [mailto:13651877...@163.com]
Sent: 23 September 2014 07:34
To: user@jmeter.apache.org
Subject: How does jmeter use cache?

I think jmeter does not use cache at all. right?

Consider a situation: Web Page is big(many resouces, big pictures. etc) and
network throughput is limitid or not enough.
How to deal this situation?
- in other test tool, such as Loadrunner, don't check ' clear cache in each
iteration' option.
- in jmeter, we should record the samplers exclude resources.

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




--

Ing. Sergio Boso




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



Re: IP spoofing with Apache Jmeter 2.11r1554548 on windows OS

2014-08-04 Thread Sergio Boso

Il 04/08/2014 14.17, sebb ha scritto:

On 4 August 2014 13:09, Sergio Boso ser...@bosoconsulting.it wrote:

Il 04/08/2014 13.31, Ashish Gupta ha scritto:


Thanks.
I have already configured all the IP addresses on my network adaptor.
Given the output of ipconfig command results in my original thread.

I did this some time ago.
I set up a different Jmeter instance for each IP address, each with their
own jmeter.property file.

No need, as the HTTP Sampler can be configured to spoof.

yes, I missed that. At that time, I used v2.9 that did not have this option.
So, now this can be easily done by using a simple CSV file holding the 
addresses.
Thank you

Sergio

Each instance was configured according to Sebb instruction.

Furthermore, I configured a master instance to gather the data,
then I started a distributed session, launching more instances on the same
machine.
I guess it takes a lot of memory to setup 8 different instances on a single
server.

I'm curious to see if there are other ways to do that.

See above, and my first reply in this thread.


regards
Sergio


~Ashish



Mark Wilkinson inyab...@gmail.com 8/4/2014 4:58 PM 

I believe you have to have all of those IP Addresses configured on your
host network adaptor. I know in Linux you can do this but not sure about
Windows.
On 4 August 2014 12:25, Ashish Gupta gash...@netiq.com wrote:

More details

1. https.default.protocol=TLSv1.2
2. Imlementation used is HTTPClient4
3. Protocol[http] = https
4. there are no changes done to jmeter.properties file specific to
# Define the local host address to be used for multi-homed hosts
#httpclient.localaddress=1.2.3.4
Wireshark captures only first ip address i.e
IPv4 Address. . . . . . . . . . . : **4.**.**2.*03, all others IP
address
are not being used.





sebb seb...@gmail.com 8/4/2014 4:11 PM 

On 4 August 2014 11:11, Ashish Gupta gash...@netiq.com wrote:

Hi Team,

Please suggest me on below

I am using apache jmeter version 2.11r1554548 on windows 2008 R2.
I have Jmeter setup on an machine which has multiple ip address
assigned,
simple ipconfig output is below

Connection-specific DNS Suffix  . :
IPv4 Address. . . . . . . . . . . : **4.**.**2.*03
IPv4 Address. . . . . . . . . . . : **4.**.**2.*06
IPv4 Address. . . . . . . . . . . : **4.**.**2.*07
IPv4 Address. . . . . . . . . . . : **4.**.**2.*08
IPv4 Address. . . . . . . . . . . : **4.**.**2.*09
IPv4 Address. . . . . . . . . . . : **4.**.**2.*10
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : **4.**.**3.*54

I wanted to use all these ip addresses while accessing the web server

which

is part of HTTP request defaults.
I wanted to know how can i use all these ip addresses ( ip spoofing)

while

accessing some servers.


http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request
Source address type / field


  ~Ashish



-
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


--
Mark Wilkinson
inyab...@gmail.com 07968 398828


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



--

Ing. Sergio Boso





-
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




--

Ing. Sergio Boso




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



Mail reader sampler: IMAP statistics

2014-05-16 Thread Sergio Boso

Hi,

Also on IMAP statistics there is some inconsistency.

Suppose to use IMAP and to set two messages to downloads.

When you run the test, Results tree shows you a sample holding two leaves (one 
for each message).
It looks like it were an HTML page holding 2 different component, which is very 
reasonable.

BUT, if you go to the Aggregate Report and Summary Report you will see  2 
different operations, each with its own time.

IMAP20  904 895 961 820 10130.0 
1.1028398125172318  12.861977012682656
TOTAL   20  904 895 961 820 10130.0 
1.1028398125172318  12.861977012682656


Again, if you save the results to a .jtl file, only one results is saved 
holding the total time (which is the expected behaviour).

Should I open a bug on bugzilla?

best regards
--

Ing. Sergio Boso

Mail:
Cell:
Web:
Linkedin:
Skype:



ser...@bosoconsulting.it mailto:ser...@bosoconsulting.it
+39 335 7243 445
www.bosoconsulting.it http://www.bosoconsulting.it
http://it.linkedin.com/in/sergioboso 
http://www.linkedin.com/pub/sergio-boso/1/29b/255
sbos61




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



Mail reader sampler: POP statistics

2014-05-16 Thread Sergio Boso

Hi,

I have found an odd behaviour, when reading email with POP protocol.

The Aggregate Report and Summary Report return random numbers for those 
samples.
View Results Tree gives reasonable numbers.
Furthermore, if I write results to a .jtl file, and then I reload them to the 
report, everything is OK.

Looks very much like a bug.

Should I open a bug on bugzilla?

best regards

--

Ing. Sergio Boso




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



Using Jruby in Jmeter

2014-05-15 Thread Sergio Boso

Hi everybody.

I find JavaScript a little bit clumsy, so I did some test with Jruby.

It is very straightforward to use, and relatively fast, after the first 
execution.
However, I had some trouble when running the same routine at the same time 
multiple threads.

So may question is:
- is thee any real world experience in using Jmeter +Jruby?
- Is Jruby really thread-safe? can I use a variable myvar in multiple 
instances?
- What is the behaviour of $myvar (which is a global static variable in 
standard Ruby)?

Thank you in advance



--

Ing. Sergio Boso




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



Release 2.12

2014-05-11 Thread Sergio Boso

Hi every body,


which is the scheduled date for next Jmeter release?

thank you
--

Ing. Sergio Boso




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



Re: mail server testing

2014-04-18 Thread Sergio Boso

Il 17/04/2014 16.58, sebb ha scritto:

I'm wondering if there is a way to:
- read only the headers. This is very commonly done by real email client;
- read only the last N headers
- read a specific message, or the most recent one, or the most recent N

There is no provision for these at present. If these are possible via JavaMail 
then that can be considered for implementation.

any help suggestion is appreciated

Raise a Bugzilla enhancement request with the requirememts.

Done.
I'm not a Java programmer, so I cannot do it my myself, and contribute to the 
community.

regards

Sergio


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



mail server testing

2014-04-16 Thread Sergio Boso

Hi everybody

I had some experience using the POP3/SMTP samplers, and they seems to work well.
However, I found the IMAP sampler a little bit limited.
I'm wondering if there is a way to:
- read only the headers. This is very commonly done by real email client;
- read only the last N headers
- read a specific message, or the most recent one, or the most recent N

any help suggestion is appreciated

Thank you in advance

Sergio




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



Re: In the non-gui mode 'csv' log file, how would I calculate throughput?

2014-01-24 Thread Sergio Boso

Il 23/01/2014 02.20, Robin D. Wilson ha scritto:

Thank you for the fast response!
But I'm actually trying to build my own tool to digest the log file, since I 
don't want to have to start JMeter in GUI mode to see the results.
So I'd still need to figure out how to calculate the throughput for my tool...
I already have the ability to digest the rest of the stats I need, I just want 
to calculate throughput now...
My tool outputs to the screen, in text but formatted in columns so it is easy 
to read. I can also output it in csv format so it can be used in a spreadsheet.

--
Robin D. Wilson
VOICE: 512-777-1861


I implemented something similar in Ruby some time ago.
Here there are the two line of code:

   duration= (tFinish- tStart+ telapsed[-1])
   throughtput= nSample/ dur

Where  telapsed[-1] is the elapsed time of the last sample.
HTH

Sergio


On Jan 22, 2014, at 6:28 PM, sebb seb...@gmail.com wrote:


On 23 January 2014 00:15, Robin D. Wilson rwils...@gmail.com wrote:
I'm using the non-gui mode for some testing, and I'd like to attempt to
replicate closely what I get on the gui-mode summary report. The only thing I'm
missing is the 'throughput' values...

 From the standard data available in the non-gui log file, can someone tell me
how to calculate throughput that is similar to the gui-mode summary report's
throughput numbers?

The GUI listeners can read result files and generate the report from the file.

The default fields that are saved in the files should be sufficient
for most Listeners apart from Tree View.


(BTW, 'iterations/duration' doesn't work at all...)

--
Robin D. Wilson
Sr. Director of Web Development
KingsIsle Entertainment, Inc.
VOICE: 512-777-1861
http://www.kingsisle.com




--

Ing. Sergio Boso

Mail:
Cell:
Web:
Linkedin:
Skype:



ser...@bosoconsulting.it mailto:ser...@bosoconsulting.it
+39 335 7243 445
www.bosoconsulting.it http://www.bosoconsulting.it
http://it.linkedin.com/in/sergioboso 
http://www.linkedin.com/pub/sergio-boso/1/29b/255
sbos61




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



Re: Is there any limitation for no. of machines to be used in Distributed Environment?

2014-01-13 Thread Sergio Boso

Il 13/01/2014 09.34, Amit Kumar ha scritto:

Dear All:

Is there any for no. of machines in Distributed Environment? Because I have
setup environment with 8 machines (1-master, 7 slaves). But when run tests,
only 7 machines work. One random machine of the 7 slaves does not work. It
is working for 7 machines only i.e. 1 master and 6 slaves.
I am using non-gui mode.
Therefore,  is there any limitation of no. of machines to be used in
distributed environment?

//I actually went through a scenario with 8+1 machines few months ago.
It was on JM 2.8, I had no particular problem.

One thing I noticed was that the network traffic between slaves and master was very high (really very high) approaching 70-80 
Mbit/s, measured at the master operating system.

So the master should be monitored closedly.

I did not digged deeper , maybe there is some configuration to optimize this 
traffic.

HTH
Sergio

--

Ing. Sergio Boso




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



Re: Calculating the throughput (requests/sec) and plot it

2013-12-02 Thread Sergio Boso

HI

there are few  points here.

1)  Throughput is described clearly here
   http://jmeter.apache.org/usermanual/glossary.html#Throughput


2)  Throughput  is part of Summary Report  and Aggregate report, which in turn 
are part of the standard Jmeter code.
So this question seems appropriate here.

3)  Instead of using Simple Data Writer, you can use the Write result to file configuration. This way, you can also re-read 
the data and visualize them, after the test has been run..
This allows you do do comparison on the same data, Using a simple data writer probably introduces some skew (few msec, but the 
numbers become different)


4) interesting point about Jenkins, as a tool to automate reporting
Is there any pointer/cookbook around?

Thank you

Sergio

Il 30/11/2013 11.25, sebb ha scritto:

On 30 November 2013 10:06, Pierpaolo Bagnasco
pierpaolo.bagna...@gmail.com wrote:

Hi, thanks for the reply. I already corrected that formula, but it still
doesn't change anything.
I tried for example counting all samples in each 1000 milliseconds
interval, like:
first sample=1385731060500
last sample=1385731061394
difference=894 milliseconds

That's wrong as well; you need to subract the first start time from
the last end time.
Or add the last elapsed time to the difference between the two start times.

However, this is all academic, because the Statistical Aggregate
Report is not a standard JMeter listener.
Queries on it need to be sent to the maintainers of the plugin,
whoever that may be.


samples=277
So I tried with: (277/894)*1000=~309 requests/second. But the first
graphic, in the same period, shows a throughput of ~90.


2013/11/30 sebb seb...@gmail.com


On 29 November 2013 22:39, Pierpaolo Bagnasco
pierpaolo.bagna...@gmail.com wrote:

I'm using JMeter client to test the throughtput of a certain workload
(PHP+MySQL, 1 page) on a certain server. Basically I'm doing a capacity
test with an increasing number of threads over the time.

I installed the Statistical Aggregate Report JMeter plugin and this was
the result (ignore the Response time line): [image: enter image
description here]

At the same time I used the Simple Data Writer listener to write a log
file (JMeter.csv). Then I tried to manually calculate the throughput
for every second of the test.

Each line of JMeter.csv has this format:

timestamp   elaspedtime   responsecode   success   bytes
1385731020607   42200true  325
... ...   ......   ...

The timestamp is referred to the time when the request is made by the
client, and not when the request is served by the server. So I simply
did: *totaltime
= timestamp + elapsedtime*.

That's wrong.

timestamp + elapsedtime = end time *not* total time.

The timestamp is the start time.


In the next step I converted the *totaltime* to a date format, like:
*13:17:01*.

I have more than 14K samples and with Excel I was able to do this

quickly.

Then I counted how many samples there were for each second. Example:

totaltimesamples (requestsServed/second)
13:17:01 204
13:17:02 297
...  ...

When I tried to plot the results I obtained the following graphic:

[image:

enter image description here]

As you can notice it is far different from the first graphic.

Given that the first graphic is correct, what is the mistake of my
formula/procedure to calculate the throughput?

-
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




--

Ing. Sergio Boso




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



Re: CSV file iteration in remote tests

2013-11-06 Thread Sergio Boso

Il 06/11/2013 23.20, Oliver Erlewein ha scritto:

Hi all,

I'm sure that this is a common problem for those using JMeter executions
across several machines. Can't really find any solution to this. So here
goes:

I have a plan that looks something like this:

Test Plan
   |-- Thread Group
  |--CSV Dataset
  |--HTTP Sampler (login)
  |--

If I remotely distribute this all remotes will 1st start with line one of
the CSV file. In my case this will cause locking in the application,
thereby destroying the test. Ideally I'd like to give the CSV file a random
offset for each remote client, so that it would start iterating at various
points in the CSV. This is not quite safe but should give me enough
variance so that the chance of locking would be minimal.
The only way I have found to cope with this is to manually split the CSV file, and copy each of these parts to each remote system, 
so that each system uses its own set of lines.


I'm looking forward to see if there is a better system
regards

Sergio

--

Ing. Sergio Boso




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



Re: showing result of stable test

2013-10-10 Thread Sergio Boso

Il 10/10/2013 04.27, 黄吉浩 ha scritto:

hi,
I thinked of a question about how to show the result of a stable test using 
jmeter.
i.e. I plan a test that will run for 24 hours. the purpose is to see if the 
system of being tested can serve with the same service level during a long time.
so, I want to do statistic and get some value(i.e., TPS) of each hour, then 
link the points of 24 values to a line in a diagram to clearly show the user 
that if the system is serving stablely during the test.
Can I do this in Jmeter? I don't know, because I don't know if Jmeter stores 
the time when capturing measurements data. If jmeter doesn't know when it gets 
the measurement data, obviuosly it can't do statitics according to time slice 
(i.e. an hour).

Hi you can easily configure Jmeter to save each sampler into a .jtl file.
This can be done on GUI (configure a listener) or via command line (recommended 
for high volume tests) with -l option.
Then it is also easy to get totals on the whole test, using Summary Listener 
and Aggregate listener.
Calculating statistics by hour can be a little bit tricky, you have to work a 
little bit with Excel or whatever.

regards



--

Ing. Sergio Boso




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



Re: Comparing results from two samplers in JMeter

2013-10-02 Thread Sergio Boso

Non knowing much about your application, and its complexity,
I would extract the value from the first sample (using regular expression),
and the use it on the second sampler (you can use regex also inside assertions, 
if needed)
using response assertion.

Your solution is more complicate, it may be useful when regex are not suitable.

HTH
Sergio


Il 02/10/2013 10.11, Nicola Ambrosetti Brolin ha scritto:

I have several samplers in a thread group, each retrieving a piece of
information. I then need to validate the consistency of the results from
two (or more) different samplers. In particular I need to assert whether a
field in one sampler response equals a field in the JDBC response. What is
the best way to do something like that?

I have thought about adding a beanshell postprocessor to each sampler in
order to extract the field value from each sample and save it in two
variables and then adding a beanshell assertion that accesses those
variables, but I wonder if there is a more direct approach.

In the JMeter API documentation I could not see anything to access another
sampler response other than the previous one.


Any thoughts?

Nicola




--

Ing. Sergio Boso




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



Re: jmeter memory leak?

2013-09-21 Thread Sergio Boso
just to add some info, you have to take in account that Jmeter keeps all the sample's result in memory, even i there is no further 
process for it.

So, if you are downloading some large objects (like imaging, SW updates and so 
on), then you can easily go out of memory.

If this is the case, look for the maximum object size run just few threads and increase memory accordingly (HEAP option, in Jmeter 
start script)


HTH

Sergio



Il 20/09/2013 08.02, bobMeliev ha scritto:

When you get this error a file with extension .hprof gets created. This is
the heap dump created when the JVM crashed. This file can be analysed using
Heap Analysis tools to identify the root cause. Ex: You can try analysing
using JHAT (
http://docs.oracle.com/javase/6/docs/technotes/tools/share/jhat.html )



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/jmeter-memory-leak-tp4938431p5718206.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




--

Ing. Sergio Boso




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



Re: Any suggestions about how jmeter can be used to do regression testing for page load times

2013-08-30 Thread Sergio Boso

Il 29/08/2013 09.58, Manish Sapariya ha scritto:

Chaityna/Kirk,


For a customer, I wrote a script that allows use of Jmeter scripts to Monitor 
the performances of web applications.
It is generic, so you just have to configure the JMX file you want to test.
The internal logic is a little bit tricky, because you have to take in account of response timing, HTTP response and content 
assertions to set a PASS/ WARN /FAIL response.

Timing can be monitored either or specific pages AND for the overall script.

I found this approach is quite effective on the timings side, but it has weaknesses on the maintenance, as you have to update the 
script while software updates.

Also, it is not that easy to cope with heavy Javascript-automated pages.

For that case, I integrate a browser based approach (I use Watir/ webdriver) 
that can better fulfil the purpose.
In that case, the architecture is similar to WebPageTest.
I'm planning to release my script as OS..

Please contact me privately if you are interested.

best regards
Sergio Boso


Thanks for the inputs.

As far as possible I wanted to keep the assertions only on the client
side to keep the test setup simple. I had originally thought of, as Kirk
suggested, to assert based on the access log timings, but the test setup
will be complicated to get up running and maintaining.

I though it would have been possible to do some kind of assertion,
based on the response time for each request in jMeter, which I
believe is reflection of the server introduced latencies as jMeter not
attempting to render any of it.

Thanks again for your inputs.
By the way I am also investigating the offline webpagetest.

https://sites.google.com/a/webpagetest.org/docs/private-instances/releases/webpagetest-2-12

Thanks and Regards,
Manish
kPoint wins *Global eLearning
Awardhttp://www.kpoint.com/kpoint-wins-learntech-global-e-learning-award/
* in “Learning Technologies Solution”!


On Thu, Aug 29, 2013 at 12:46 PM, Kirk Pepperdine kirk.pepperd...@gmail.com

wrote:
I think this thread is good in pointing out the limits of our tools... we
need to know them so we can use them more effectively.

Regards,
Kirk

On 2013-08-29, at 9:14 AM, chaitanya bhatt bhatt.chaita...@gmail.com
wrote:


OK kindly ignore my previous post.

@Kirk: Thanks for asking that question!


On Wed, Aug 28, 2013 at 11:58 PM, Manish Sapariya msapar...@gmail.com
wrote:


One clarification, I indeed want to measure the time server takes to

serve

pages
and not how much time browser take to render them.

Thanks and Regards,
Manish
kPoint wins *Global eLearning
Award

http://www.kpoint.com/kpoint-wins-learntech-global-e-learning-award/

* in “Learning Technologies Solution”!


On Thu, Aug 29, 2013 at 12:17 PM, Kirk Pepperdine 
kirk.pepperd...@gmail.com

wrote:


Jmeter cannot be used for determining page load times.

Indeed, and page load/rendering times is a separate investigation IME

and

a number of issues tend to be browser specific.

Regards,
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





--

Ing. Sergio Boso




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



Re: Jmeter keeps pausing now and than during the test

2013-08-30 Thread Sergio Boso

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

have a look at 15.4 Using a different sample sender.
Try use batch mode or queue mode.

Sergio
Il 30/08/2013 12.37, Sergio Boso ha scritto:

Il 30/08/2013 11.49, Amit Kumar ha scritto:

Same thing is happening in my test also. I am using distributed mode in GUI
mode. What should I do to avoid this in GUI Mode?

On Fri, Aug 30, 2013 at 1:42 PM, ankush upadhyay 
ankush.upadh...@gmail.comwrote:

Constant timer delaying each thread with value ${__javaScript(${__
threadNum()}*300)}


On Thu, Aug 29, 2013 at 7:48 PM, umesh prajapati praumes...@gmail.com

wrote:
I am wondering how can I make jmeter stop pausing in between the test.

This

is how my script looks like:

Number of threads:100
ramp up:0
loop: forever

CSV Data Set Config

schedular: 1 hr

 Http cookie manager
 Http request for login
  synchronizing timer:100
   constant timer:${__javaScript(${__threadNum()}*300)}
   Xpath assertion
   Response assertion
   Summary Report
 Http request for logout



--
--
Regards
@Ankush Upadhyay@






--

Ing. Sergio Boso







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



Re: What should we conclude on the basis of Failed Samples?

2013-08-29 Thread Sergio Boso
This means   that your system as a whole is not able to bear this traffic.

Inspect each element  to find the cause.
On the network side you should consider bandwidth. This could easily
happens if you have many multimedia objects.
Based on this kind of java exception the jmeter server seems to work
properly. However Keep an eye on memory usage.
Finally on SUT side, it seems it is not able to accept new connections.
Look at apache or IIS configuration, it often impose some limit on
connections. If there is a sudden increase on response time, compared tothe
500 users execution, there may be some more generic resource shortage.
HTH
S Boso

Il giorno 29/ago/2013 13:43, Amit Kumar amit.sr...@gmail.com ha scritto:

 Here are some more points.

 I am getting this response for some samples when I use threads=600,
 RampUp=0,Loop=1.
 When I used threads=500, RampUp=0,Loop=1, I do not get this response for
 any sample.
 Does it help?




 On Thu, Aug 29, 2013 at 5:04 PM, Amit Kumar amit.sr...@gmail.com wrote:

  Does it mean that my Server is not able to handle the 600 requests at a
  time?
 
 
  On Thu, Aug 29, 2013 at 5:03 PM, Kirk Pepperdine 
  kirk.pepperd...@gmail.com wrote:
 
  errors should cause you to fail the test in most cases
 
  On 2013-08-29, at 1:28 PM, Amit Kumar amit.sr...@gmail.com wrote:
 
   Thanks for the link.
  
   But my point is should we include such kind of sample failure in our
   result? I do not know Java.
  
  
   On Thu, Aug 29, 2013 at 4:52 PM, sebb seb...@gmail.com wrote:
  
  
  
 
http://lmgtfy.com/?q=java.net.ConnectException%3A+Connection+refused%3A+connect
  
   On 29 August 2013 12:14, Amit Kumar amit.sr...@gmail.com wrote:
   Dear Sebb:
  
   I ran test with Threads=60, RampUp=0, Loop=1. I used distributed
   environment with 10 machines, therefore Threads=600.
   After running test I got following response for some samples.
Error%
  was
   10%.
   It is very important for me to conclude on this, please help.
  
   *Response: *
  
   org.apache.http.conn.HttpHostConnectException: Connection to
  SERVERNAME
   at
  
  
 
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
   at
  
  
 
org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
   at
  
  
 
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645)
   at
  
  
 
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)
   at
  
  
 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
   at
  
  
 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
   at
  
  
 
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:286)
   at
  
  
 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
   at
  
  
 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1088)
   at
  
  
 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1077)
   at
  
  
 
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:428)
   at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
   at java.lang.Thread.run(Thread.java:619)
   Caused by: java.net.ConnectException: Connection refused: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
   at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
   at java.net.Socket.connect(Socket.java:519)
   at
  
  
 
org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127)
   at
  
  
 
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
   ... 12 more
  
  
  
  
   On Thu, Aug 29, 2013 at 3:43 PM, sebb seb...@gmail.com wrote:
  
   On 28 August 2013 10:08, Amit Kumar amit.sr...@gmail.com wrote:
   In response of failed requests there is text like- could not
connect
   to
   server. Does it mean that server is not able to handle that much
   users?
  
   Depends on the exact message.
  
   In order to connect from one system to another, both the JMeter
and
   server systems - and the network - have to have sufficient
resources.
  
   There could be failures at any point, but usually the problem is
at
   the server end; e.g. it needs to be configured with more
connections.
  
   Search online for the exact error message.
  
  
   On Wed, Aug 28, 2013 at 2:27 PM, sebb seb...@gmail.com wrote:
  
   On 28 August 2013 09:38, Amit Kumar amit.sr...@gmail.com
wrote:
   Thanks Sebb for your reply.
   For failed samples, requests are having valid data but response
   assertions
   are getting failed. 

Re: Establishing baseline metrics

2013-07-03 Thread Sergio Boso
 of machines. (We also test a cluster of 2 machines - and measure 
the fall-off in capacity between a 1-member cluster and
2-member cluster, this gives us an idea of how much impact our 'clustering' 
system has on performance as well.) I suppose you could
say that I look at it as if, we measure the 'maximum capacity', and so long as 
the number of users doesn't exceed that - we will
perform OK.

We do run some 'all-encompassing' system tests as well, but those are more for 
'stress' testing than for performance benchmarking.
We are specifically looking for things that start to break-down after hours of 
continuous operation at peak capacity. So we monitor
error logs and look to make sure that we aren't throwing errors while under 
stress.

The number one thing to keep in mind about performance testing is that you have 
to use 'real data'. We actually download our
production database every weekend, and strip out any 'personal information' 
(stuff that we protect in our production environment) by
either nulling it out, or replacing it with bogus data. This allows us to run 
our performance tests against a database that has 100s
of millions of rows of data. Nearly all of our performance 'bugs' have been 
caused by poor data handling in the code (SQL requests
that don't use indices (causing a full table scan), badly formed joins, 
fetching a few rows of data and then looping through them in
the code (when the 'few rows of data' from your 'dev' environment become 
100,000 rows with the production data, this tends to bog
the code down a lot), etc.). So if you are testing with 'faked' data, odds are 
good you will miss a lot of performance issues - no
matter what form of performance testing you use.

I will say that we have served over 130M web pages in 1 month, using only 5 
servers (4 tomcats, and 1 DB server)... Those pages
represented about 10X in GET requests to our servers...

--
Robin D. Wilson
Sr. Director of Web Development
KingsIsle Entertainment, Inc.
http://www.kingsisle.com





--

Ing. Sergio Boso




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



Re: Time in .jtl file

2013-06-15 Thread Sergio Boso

Hi Muthukrishnan ,

the time is written as epoch time, e.g. milliseconds since 00:00 1/1/1970.

You can find a decoder-encoder here:
http://www.epochconverter.com/

 regards
sergio

Il 15/06/2013 17:00, Muthukrishnan S. ha scritto:

Hi,

I have a run a Test for around 10 hours. I need to segregate the Test Results 
for every one hour. I tried opening the .jtl file to manually do it, but, 
unable to do so. I'm not able to interpret the time format in .jtl file. Please 
let me know if there is a direct way or a workaround to do this.

Thank you,
Muthu.

Disclaimer: The materials contained in this email and any attachments may contain 
confidential or legally privileged information. The information contained in this 
communication is intended solely for the use of the individual or entity to whom it is 
addressed and others authorized to receive it. If you are not the intended recipient you 
are hereby notified that any disclosure, copying, distribution or taking any action in 
reliance on the contents of this information is strictly prohibited and may be unlawful. 
If you have received this communication in error, please notify us immediately by 
responding to this email and then delete it from your system. Sonata is neither liable 
for the proper and complete transmission of the information contained in this 
communication nor for any delay in its receipt




--

Ing. Sergio Boso




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



Re: Results ambiguity

2013-05-24 Thread Sergio Boso

There can be many reason for these results.

- is there any other activity on the system under test?
- is there any other activity on the network, slowing down the measurement?
- is there any other activity on the load generator?

I would run the test at different time of the day, to gather different 
situations.
Also, you can try to check response time when incrementing the loop number:
often, the system is slow at the startup because  it is filling the cache, 
compiling pages etc.
then it become faster.

HTH

Sergio



Il 24/05/2013 18:34, Madhu Sekhar ha scritto:

Hi Team,

I have a test like 2, 5users as load testing. Test is perfect dynamically
and ran without errors.

But for some steps in the test the average responses are less 5 users than
2 users.

What could be the reason? any corrections need to be done to the test?

Thanks  Regards,
Madhu


--

Ing. Sergio Boso




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



Re: Test is stopping by its own even before complete the test time?

2013-05-20 Thread Sergio Boso

HI Madhu,


if you are using some CSV file to hold data, be sure you have set properly the 
behaviour on EOF.
More specifically:

Recycle on EOF =true
Stop thread on EOF= false

regards

Sergio

Il 20/05/2013 15:04, Madhu Sekhar ha scritto:

ran the test by checking the forever. but still the same response is
observed.

Thanks,
Madhu


On Mon, May 20, 2013 at 6:20 PM, Adrian Speteanu asp.ad...@gmail.comwrote:


Hi,

It usually happens if the scheduler has a time period specified which is
not large enough or if the thread loop count is not big enough to cover the
entire period (I usually set it to forever when using the scheduler or a
specific duration).

I might be missing something though.

Cheers,
Adrian S

On Mon, May 20, 2013 at 1:55 PM, Madhu Sekhar madhuvchand...@gmail.com

wrote:
Hi Team,

We are running a test with 5 users and 1 hour time span in threadgroup
settings.

We are seeing that the test is going to stop even it is not completed the
test time.

We ran the same test with 2 users but observed no such above issues
occurred.


Could any one please suggest us to clear the same and any reasons for the
same?

Thanks  Regards,
Madhu.



--

Ing. Sergio Boso




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



Re: Aggregate report

2013-05-14 Thread Sergio Boso

There are many ways,

but the one I would use is to save the thread number  to a file, and use the 
.csv output.

Then you can import to a Excel or Calc Open Office, and filter in/out the data 
you want  do not want, and save again in csv format.
You can also process easily the csv data with grep in order to obtain the same 
result.

The main point is that the data file can be reloaded at any time to calculate 
the reports (either aggregate or summary or graphics etc).

best regards

Sergio

Il 14/05/2013 13:50, Muthukrishnan S. ha scritto:

Hi All,

I have a Test Plan with three Thread groups as below,

Test Plan
...Thread Group 1
..Transaction1
..Transaction2
..Transaction3
...Thread Group 2
..Transaction1
..Transaction2
..Transaction3
...Thread Group 3
..Transaction1
..Transaction2
..Transaction3


I need to get three aggregate reports in the following way,

1. Aggregate report for Thread Group 1 and 2
2. Aggregate report for Thread Group 3
3. Aggregate report for Thread Group 1, 2 and 3

Please let me know on how this can be achieved.

Thank you,
Muthu.
Disclaimer: The materials contained in this email and any attachments may contain 
confidential or legally privileged information. The information contained in this 
communication is intended solely for the use of the individual or entity to whom it is 
addressed and others authorized to receive it. If you are not the intended recipient you 
are hereby notified that any disclosure, copying, distribution or taking any action in 
reliance on the contents of this information is strictly prohibited and may be unlawful. 
If you have received this communication in error, please notify us immediately by 
responding to this email and then delete it from your system. Sonata is neither liable 
for the proper and complete transmission of the information contained in this 
communication nor for any delay in its receipt




--

Ing. Sergio Boso




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



Re: How does the Response Time Graph and Thread Group works

2013-04-11 Thread Sergio Boso

Il 09/04/2013 18:35, Bruno Casarotti ha scritto:

Now I got it =) Thanks!


2013/4/9 Deepak Shetty shet...@gmail.com


Hi
no. Each thread (user) will request Sample1, Sample2 , Sample3 ,...Sample
30.
All 4000 threads will act in parallel .

However the sample may have different response time for different threads
(because thats the way server applications are) - all threads wont hit the
same sample request at the same time

regards
deepak



I can add that, in my experience, 4000 threads can hardly be supported by a 
single server.
Let alone the idea of a 0 milliseconds ramp up..

Have a look at :
http://www.bosoconsulting.it/1/upload/flyer_wload_v1.0_en.pdf

it may give you some helpful info.


regards

Sergio
--

Ing. Sergio Boso




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



Jmeter stuck with bad application error management

2013-03-25 Thread Sergio Boso

Hi I'm experiencing a weird behaviour  in Jmeter.

As the application has its own burden of problems, it returns sockets error fro 
time to time.
The point is that Jmeter, instead of recording the error and going on the next sample, gets stuck there forever (no time out is 
applied).

I can stop it manually, reset it and restart it.

Here is the error stack after manually stopping.
have you ever experienced such a behaviour?
Is this already known?

Java the error stack follows

Thank you in advance

Sergio

Java.net.SocketException: socket closed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at sun.security.ssl.InputRecord.readFully(Unknown Source)
at sun.security.ssl.InputRecord.read(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at sun.security.ssl.AppInputStream.read(Unknown Source)
at 
org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:166)
at 
org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:90)
at 
org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:281)
at 
org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:251)
at 
org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:209)
at 
org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:171)
at 
org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:201)
at 
org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:155)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1649)
at 
org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:235)
at 
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:300)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.downloadPageResources(HTTPSamplerBase.java:1207)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.resultProcessing(HTTPSamplerBase.java:1500)
at 
org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.resultProcessing(HTTPAbstractImpl.java:251)
at 
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:358)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1088)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1077)
at 
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:428)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
at java.lang.Thread.run(Unknown Source)

--

Ing. Sergio Boso




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



Re: Using HTTP Request parameters in Response Assertion

2013-03-21 Thread Sergio Boso

Il 20/03/2013 14:17, Jakob van Bethlehem ha scritto:

Dear users,

Is there some non-trivial way to access the parameters that were passed in a 
request in the corresponding Response Assertion. The main idea is to have a set 
of different HTTP Requests with slightly different parameters, that all have 
the same response, expect that these parameters are used to fill in some 
details. Think for instance about passing a port or a protocol that should be 
used when responding.

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


Hi maybe I'm missing some point,

but I usually  achieve that by inserting proper variable the assertion field.
E.g.., if I know that the page must contain the ${username} value, I just  put 
${username} in the response assertion.
Often some regular expression i required.

regards


--

Ing. Sergio Boso




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



Re: How to test Flash / Flex applications communicating over AMF

2013-03-05 Thread Sergio Boso

Il 05/03/2013 13:25, m...@protel.net ha scritto:

Hi guys!

  


What is currently the best way to test Flash / Flex applications (which use
the AMF protocol) using  JMeter for testing?

AFAIK the only way is through a proper plugin.
Here you can find few solutions:
 http://stackoverflow.com/questions/9770078/how-to-enable-amf-sampler-type

I did some light testing sometimes ago, it seemed a viable solution.

HTH

Sergio
  


Thanks in advice,

Mark





--

Ing. Sergio Boso




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



Using Python or Ruby from Jmeter

2013-02-08 Thread Sergio Boso

Hi,

I need to launch some python script from JMeter.
I saw there is no direct support at scripting level.

Is there any experience?
IMHO, an high- level scripting language would be much more productive for non 
trivial tasks...

suggestions? plans?

TIA

Sergio

--

Ing. Sergio Boso




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



Re: Use FileToString for 100MB file

2013-02-05 Thread Sergio Boso

I recently went through a situation where I had to download some 300MB+ files.

In fact, it seems that Jmeter tries to keep the sample result in memory until 
the operation has finished.
I assume that this is done in order to do allow  assertion, content analysis etc, but where very large files are involved, this is a 
real issue.


I made a quick workaround using OS sampler + wget command+ delete file command.
I think that an option to save the sample result to file, would be more 
appropriate.

HTH
Sergio


Il 05/02/2013 02:27, Stott, Charlie ha scritto:

First solve your out of memory issues, then you may be able to load a large 
file into memory.

Most common cause of memory issues in gui are listeners, particularly results 
tree.  Try only recording errors if you need it at all.  Gui is intended for 
testing your tests, rather than doing your load testing.

AFAIK, in non-gui tests it is likely older HTTP implementations, use v4+.  I 
never get memory issues in CLI tests.

However, 100MB filetostring does not really sound like something I'd want to 
do, are you sure it is the best design?

Charlie




--

Ing. Sergio Boso




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



Recording HTTPS from iPad

2012-11-09 Thread Sergio Boso

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-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Anyone using JMeter to load test BlackBoard?

2012-10-09 Thread Sergio Boso

Il 08/10/2012 23:43, CHARLES BAKER ha scritto:

Anyone using JMeter to load test BlackBoard? I can't even get JMeter to
login to BlackBoard ( a complex webapp used by a lot of universities for
course management ). I was able to do this on a previous version of BB.
We're currently using 9.1 SP9. I pass the required parameters, and in View
Results Tree Listener I can see the parms being sent but login fails. BB is
Javascript and Ajax heavy and I know Jmeter Is not a browser. But like I
said, I've been able to do at least rudimentary testing of BB w/ Jmeter in
the past.


Here is the POST


POST data:

user_id=bbtest1001password=login=Loginaction=loginremote-user=new_loc=auth_type=one_time_token=encoded_pw=YmJ0ZXN0MTAwMQ%3D%3Dencoded_pw_unicode=YgBiAHQAZQBzAHQAMQAwADAAMQA%3D


Hi Charles,

it seems that your username  password are passed as
encoded_pw
encoded_pw_unicode
They are Base64 encoded and then URL-encoded.
Also some times, if you disable Cookie check,it may help.
I would give a try to the new 2.8 version which uses HTTP client 4.0  by 
default, and should e better from this point of view

best regards

--

Ing. Sergio Boso





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



Re: weird Cookies behaviour

2012-08-10 Thread Sergio Boso

Hi,

I had similar issues in in the past, which I overcome by setting:

CookieManager.check.cookies=false

in jmeter.properties.
You may want to give it a try.

regards
Sergio


Il 10/08/2012 06:57, lichen970 ha scritto:

Thanks for replying me. I am sure that all request are https request. The problem is, in 
my test plan, which includes login, open an email,  back to email list,logout. I re-do 
the middle two step many times. After some time, it will get the error like unknown 
user name or password, which suggests I have logged out. Just like my session has 
be finished/expired. When I do those in browser everything is ok. So I wonder if jmeter 
could possibly remove my cookies after some time?

Sent from my iPhone



在 Aug 10, 2012,0:49,prabhu [via JMeter] 
ml-node+s512774n5714268...@n5.nabble.com 写道:


Hi,
Is your application making transition from HTTP to HTTPS and back to HTTP 
again? If this is the case you have to watch out for secure cookies. When you 
hit a secure page you get a secure cookie from the server and stored in cookie 
manager. This secure cookie is not used for HTTP requests. So you should make 
sure to write a beanshell preprocessor which changes the property of secure 
cookie to insecure, so that it will be used in future requests. Have a look at 
the Response header of the first request that hits the sever. You will have a 
clear picture of cookies.

Thanks
Prabhu

If you reply to this email, your message will be added to the discussion below:
http://jmeter.512774.n5.nabble.com/weird-Cookies-behaviour-tp5714266p5714268.html
To unsubscribe from weird Cookies behaviour, click here.
NAML




--
View this message in context: 
http://jmeter.512774.n5.nabble.com/weird-Cookies-behaviour-tp5714266p5714269.html
Sent from the JMeter - User mailing list archive at Nabble.com.



--

Ing. Sergio Boso

I




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



Re: Sharing Variables Between Thread-Group

2012-07-17 Thread Sergio Boso

Il 16/07/2012 20:42, unjc email ha scritto:

Guys, thanks for your replies.

I don't know if anyone have this experience.  I found that
${__setProperty}/${__P} pair would work between thread groups IF I use
constant value (abc like below example) or system variables (like
$__time(HMS). When I use a local variable (tmp as like in my
example) in the $__setProperty call, it doesn't work.

   tmp = abc;
   ${__setProperty(key,tmp)};   //
THAT DOES NOT WORK!!

hi
I think it should be:

  ${__setProperty(key,${tmp})};

regards


   ${__setProperty(key,abc)};
// THAT WORKS!!


I also found that it is NOT the variable value that is shared between
the thread group, it's the reference.  When I put ${__time(HMS)} in
the __setProperty call and run the test, the key values are
different between the two thread group.  Does anyone know how to pass
a local-defined variable value using setProperty call?


Test Plan (with 2 thread groups)

Thread-Group1 (with 1 thread)

Dubug Sampler
BeanShell PreProcessor

Script:
   ${__setProperty(key,${__time(HMS)})};
// USING TIMESTAMP
   log.info(Group 1 key =  + ${__P(key)});
 //2012/07/16 18:31:36 INFO  -
jmeter.util.BeanShellTestElement: Group 1 key = 183136


Thread-Group2 (with 2 threads)

HTTP Sampler
BeanShell PreProcessor

Script:
   log.info(Group 2 key =  + ${__P(key)});
  //2012/07/16 18:31:36 INFO  -
jmeter.util.BeanShellTestElement: Group 2 key = 183119

Note that it is not the same value being logged.



Regards,
Jacky

On Mon, Jul 16, 2012 at 12:48 PM, Jomebrew aiellos...@gmail.com wrote:



--

Ing. Sergio Boso






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



Re: Regular expression extraction

2012-07-05 Thread Sergio Boso

TRy this


resumePath=%2Fidp%2F(\w+?)%2F

remember to check:
Response field to check: URL

regards
Sergio

Il 05/07/2012 13:47, Niraj ha scritto:

On Thu, Jul 5, 2012 at 5:16 PM, Dean Lozo dean.l...@gmail.com wrote:



https://abcd.test.com/autho/fed/external/idpredirect.html?resumePath=%2Fidp%2FQ3kZL%2FresumeSAML20%2Fidp%2FSSO.ping

I want to extract Q3kZL from the above request. Can someone please give

me

regular expression which i can use in Jmteter.

Thanks,
Niraj




--

Ing. Sergio Boso






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



Testing flex protocol

2012-06-28 Thread Sergio Boso

Hi everybody,

does anyone has experience testing flex applications?
What kind of protocols it uses with the server?

I found traces of a plugin here:
http://blog.everythingflex.com/2011/09/15/announcing-jmeter-amf-load-test-plugin/

has anybody tried it?

--

Ing. Sergio Boso






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



Re: Inserting Cookie Data into URL. (I have googled and looked at guides, it looks correct but fails)

2012-06-21 Thread Sergio Boso

You may also try to disable the

check received cookies are valid

in jmeter.properties:
CookieManager.check.cookies=false

I had a case when the cookies were handled properly by browsers,
but they were discarded by Http client in Jmeter.

regards

Sergio


Il 21/06/2012 18:04, Deepak Shetty ha scritto:

If your application is using cookies and you are using Cookie Manager , you
dont need to use HTTP URL rewriting modifier .
Ensure you have follow redirects , not redirect automatically on your
samplers
Also add a view results tree listener and check if you are getting the
Set-Cookie correctly (check that the domain / path being specified in
Set-Cookie matches the next request you are making)

Its possible that your application only uses url-rewrites in which case you
can drop the Cookie Manager and verify the modifier

regards
deepak


On Thu, Jun 21, 2012 at 7:19 AM, Dean Lozo dean.l...@gmail.com wrote:


Hey

Note: This is my first time usign JMeter and I am a complete noob.

I have done large amount of googling and reading through documentation.
After looking at several tutorials, and trying different things they have
all failed. I might have forgotten something more basic.  It has been a
nightmare to use the re-cookie i receive in Sampler Result after logging
in. I am trying to do this by using the HTTP URL Re-writing Modifier and
Cookie manager feature that JMeter offers. I have enabled saving cookies
to true.

JSESSIONID keeps staying blank for some reason. Links to pictures can be
found below. I am at a loss, and would really love some help! That the URL
works at this point is irrelevant, I only wish to generate the correct URL.
If there is no time to help, I would greatly appreciate an XML file with
the functions working.

http://imgur.com/a/Qp13D


Cheers
Dean




--


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 
indirizzoser...@bosoconsulting.it mailto: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:ser...@bosoconsulting.it 
mailto:sergiob...@yahoo.it






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



Re: Where do I find all of these cool settings for the 'properties' files?

2012-06-21 Thread Sergio Boso

Well,

in release 2.7, they added a very cool property display controller (see the non 
test elements group).
very easy to read..

About setting properties, I'm not sure about the fact that user.properties can overwrite properties set in jmeter.properties. Any 
experiences here?


To compare different versions of the same file, I'm using Winmerge.
http://winmerge.org/downloads/

regards

Il 21/06/2012 22:02, Robin D. Wilson ha scritto:

This brings up another issue - where do I find all of these cool settings that 
I can configure in the properties files?

Is there a document that distills them all?

BTW, I highly recommend that you put your modifications in the 
'user.properties' file, instead of the 'jmeter.properties' file. The 
jmeter.properties file gets updated with new releases, and it is a pain to 
hand-compare the old version with the new version and move your modifications 
over. It is far easier to use 'user.properties', since it never has any 
settings in it with the releases... Then you can just copy your user.properties 
file over to the new release, and you're ready to go.

--
Robin D. Wilson
Sr. Director of Web Development
KingsIsle Entertainment, Inc.
VOICE: 512-777-1861
www.KingsIsle.com


-Original Message-
From: Sergio Boso [mailto:ser...@bosoconsulting.it]
Sent: Thursday, June 21, 2012 2:03 PM
To: JMeter Users List
Cc: Deepak Shetty
Subject: Re: Inserting Cookie Data into URL. (I have googled and looked at 
guides, it looks correct but fails)

You may also try to disable the

check received cookies are valid

in jmeter.properties:
CookieManager.check.cookies=false

I had a case when the cookies were handled properly by browsers,
but they were discarded by Http client in Jmeter.

regards

Sergio


Il 21/06/2012 18:04, Deepak Shetty ha scritto:

If your application is using cookies and you are using Cookie Manager , you
dont need to use HTTP URL rewriting modifier .
Ensure you have follow redirects , not redirect automatically on your
samplers
Also add a view results tree listener and check if you are getting the
Set-Cookie correctly (check that the domain / path being specified in
Set-Cookie matches the next request you are making)

Its possible that your application only uses url-rewrites in which case you
can drop the Cookie Manager and verify the modifier

regards
deepak


On Thu, Jun 21, 2012 at 7:19 AM, Dean Lozo dean.l...@gmail.com wrote:


Hey

Note: This is my first time usign JMeter and I am a complete noob.

I have done large amount of googling and reading through documentation.
After looking at several tutorials, and trying different things they have
all failed. I might have forgotten something more basic.  It has been a
nightmare to use the re-cookie i receive in Sampler Result after logging
in. I am trying to do this by using the HTTP URL Re-writing Modifier and
Cookie manager feature that JMeter offers. I have enabled saving cookies
to true.

JSESSIONID keeps staying blank for some reason. Links to pictures can be
found below. I am at a loss, and would really love some help! That the URL
works at this point is irrelevant, I only wish to generate the correct URL.
If there is no time to help, I would greatly appreciate an XML file with
the functions working.

http://imgur.com/a/Qp13D


Cheers
Dean






--

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://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 
indirizzoser...@bosoconsulting.it mailto: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:ser...@bosoconsulting.it 
mailto:sergiob...@yahoo.it






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



Re: how to from regex for this scenario

2012-06-20 Thread Sergio Boso

Il 20/06/2012 08:23, coolsandy ha scritto:

yes... but in my case there are quite a few list boxes and i need to
exclusively retrieve values from this xyz list box..

--
View this message in context: 
http://jmeter.512774.n5.nabble.com/how-to-from-regex-for-this-scenario-tp5713616p5713618.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


try to trigger the regexp with:

select id=xyz name=xyz

and close it with

/select
also, remember to  enable single line mode.
The final expr should be something like:

(?s)select id=xyz name=xyz.*option value=(.*) /select

regards
--

Ing. Sergio Boso






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



Re: new __Time function

2012-06-15 Thread Sergio Boso


Il 15/06/2012 10:13, D G ha scritto:

This all started as 'now + n days', so the __timeAdd methods works on
a now + something manner.

New proposal:
__timeAdd(format, number*, m|h|d|w|M|y**, parseString, parseFormat, variable)
where parseString is the string to be parsed into a date object and
ParseFormat is the format of the string to be parsed.

I use to do that kind of things in Javascript, in a BSF pre or post processor.

It takes just few lines of code, according to what you want to do.

I'm keen to understand what would be the advantages of an integrated solution.

regards
Sergio

My criticism would be the growing number of (optional) parameters but
it's too easy to lose __Functions somewhere in a test. Don't like
using two functions to accomplish a task :)
Another would be requiring some knowledge of how Java parses data.
Though that should be reasonably trivial to learn for most strings.

Also, it would be quite easy to allow parseString to accept a
float/epoch time and work with that.

Thoughts?

Regards,
Daniel





--


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 
indirizzoser...@bosoconsulting.it mailto: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:ser...@bosoconsulting.it 
mailto:sergiob...@yahoo.it






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



Re: please post regexp for this

2012-05-30 Thread Sergio Boso

Il 30/05/2012 08:44, sdp ha scritto:

Hi Shaba,

I am trying to extract that for each login and pass it on wherever it is
repeated in further samples.

these value go back and forth between the browser and the server,
and MAY change each time, so you have to extract them each time.
In my experience you have to:
- capture the user interaction (using fiddler or httpwatch)
- find where these variable are passed and test your reg exp on them
- then you can bring the reg exp to jmeter environment

regards


I tried all combinations as suggested by others here, but still no use.

Pls suggest the best

Thanks,
D

-
Sd
--
View this message in context: 
http://jmeter.512774.n5.nabble.com/please-post-regexp-for-this-tp5713384p5713391.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


--

Ing. Sergio Boso





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



Using Jmeter with Microsoft Dynamics CRM 4.0: wrptoken management

2012-05-28 Thread Sergio Boso

Hi everybody,

I'm working on testing an application based on MSFT Dynamics CRM.

Most of the operations went well, but there is a web service that fails, and 
says:
 WRPCTokenState=Invalid...

Digging a little deeper, I saw that on this specific WS, the token sent has a 
value that has never been sent by the server before:
in other words, it seems that the token is calculated by the browser.

Do you have any experience about that? any suggestion or workaround?

Thank you in advance

--

Ing. Sergio Boso






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



Re: Access log entries, results log entries, and expected RPS total count not adding up

2012-05-16 Thread Sergio Boso

Hi,
I'm not sure about your configuration, particularly about the log file that was 
read once..
It would be nice to have some more details about that.

However, you should be aware that, if your system system under test cannot bear 15 TPS, the whole test will be slower thus returning 
less transaction in 6 hours.

So, in this case, the Constant Throughput Timer, cannot make your system faster.

You can check if this is the case, just by lowering the load (e.g to 5 tps) and adjust your math: you should discover that the 
numbers are ok.

regards



Il 15/05/2012 14:59, Deepak Goel ha scritto:

Hey

Is there a possibility that:

Each transaction of yours in the access log contains more hits to the server.
i.e: HTML page has gifs too..

:)
Deepak

On 5/15/12, James Musselwhitejames.musselwh...@gmail.com  wrote:

When I say was read once, I was assuming that the Access Log Sampler will
only parse the access log one time, even if the throughput shaper has more
requests than is available in the access log. My access log had 194k
entries, but my shaper was set for 15dps for 6 hours, which is more than
194k requests. Would it start the log over again or would it just end at
194k?

On Mon, May 14, 2012 at 1:25 PM, Deepak Goeldeic...@gmail.com  wrote:


Hey

Some possibilities

1. Network Issue rejecting connections resulting in errors also being
registered in the results log
2. The hardware machine rejecting connection due to overload

I am unsure what do you mean by : 194K entries because the
access log was only read once

:)
Deepak

On 5/14/12, James Musselwhitejames.musselwh...@gmail.com  wrote:

Hi folks

I've got an access log with 194K requests
I ran a test with the throughput shaping timer at 15 RPS for 6 hours,

which

should be 324K requests
My results log has 235K entries

I would expect my results log to have either a.) 194K entries because
the
access log was only read once or b.) 324K entries because it just kept
reading the same log over and over to fulfill the demands of the

throughput

shaping timer.

However, my result log is 235K which doesn't mean anything to me. Can
someone elucidate how this works?

Thanks!
James



--
Namaskara~Nalama~Guten Tag~Bonjour


   --
Keigu

Deepak
+91-9765089593
deic...@gmail.com
http://www.simtree.net

Skype: thumsupdeicool
Google talk: deicool
Blog: http://loveandfearless.wordpress.com
Facebook: http://www.facebook.com/deicool

Contribute to the world, environment and more :
http://www.gridrepublic.org


-
To unsubscribe, e-mail: user-unsubscr...@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://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 
indirizzoser...@bosoconsulting.it mailto: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:ser...@bosoconsulting.it 
mailto:sergiob...@yahoo.it






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



Re: Web-Interface to create Test-Plans

2012-05-15 Thread Sergio Boso

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
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




--

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://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 
indirizzoser...@bosoconsulting.it mailto: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:ser...@bosoconsulting.it 
mailto:sergiob...@yahoo.it






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



Re: JMeter agents in Amazon

2012-05-04 Thread Sergio Boso

answers inline
Il 04/05/2012 16:35, Kohn, Rodolfo ha scritto:

Hello,
I'm running JMeter for distributed load test in Amazon.
When I run all components in the same AWS region, everything works OK because 
each host can be addressed by its private IP address. In AWS hosts are assigned 
a private IP address and a public IP address.

However, I found some problems when trying to execute with agents in different 
regions:

1- JMeter client sends its IP address to the agent in a RMI message. The 
problem is that the IP address identified by the JMeter client is the private 
IP, while I need it to send the public IP.

2- JMeter agent communicates back with the client through another port.

My questions are:

1- Is there a possibility to indicate JMeter client to send a different IP 
address? It could be configured.

yes,
You have to use http client (4.0 is better).

IN the properties file , look for
# Define the local host address to be used for multi-homed hosts
httpclient.localaddress=1.2.3.4



2- Is there a way to indicate the JMeter client port for the agent to 
communicate back?

yes, in .properties file go to
# Remote hosts and RMI configuration

and set
remote_hosts=hostname:portname, hostname:portname,...

default is (localhost:1099)


Thanks,
Rodolfo





--

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 
indirizzoser...@bosoconsulting.it mailto: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:ser...@bosoconsulting.it 
mailto:sergiob...@yahoo.it






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