Re: Response time for single user is more than 50 users

2024-09-16 Thread Ivan Rancati
Could it be due to some odd server "warmup" (i.e. opening connections to a
database or other backend) ? Is the behaviour the same if you first test
the API with 50 users and immediately afterwards with 1 user?

just an idea

On Sun, Sep 15, 2024 at 6:56 PM Shay Ginsbourg  wrote:

> It should be checked whether poor JMeter scripting led to responses being
> all cached.
>
>
>
>
>
>
>
> On Mon, Sep 9, 2024 at 7:20 PM Deepak Chaudhari 
> wrote:
>
> > Hi,
> >
> > I'm executing a load test for an API.
> >
> > When I execute the API with 1 user 10 iterations, the average response
> time
> > I'm getting with JMeter is 2000 ms (Aggregate report).
> >
> > When I execute the same API with 50 user 100 iterations, the average
> > response time I'm getting with JMeter is 1500 ms (Aggregate report).
> >
> > This is happening for most of the APIs in performance testing scope.
> >
> > Now stakeholders are asking how the response time for a single user is
> more
> > than 50 users.
> >
> > Regards,
> > DC
> >
>
>
> --
>
>
>
> Sincerely,
>
>
>
> *Shay Ginsbourg*
>
> *Performance, Automation and Load Testing Expert. *
>
> *Regulatory Affairs Consultant for Medical Software.*
>
> *Ginsbourg.co.il  (Since 2008)*
>
>
>
> Formerly QA Manager of LoadRunner at Mercury Interactive
>
>
>
> M.Sc. cum laude in Bio-Medical Engineering
>
> M.Sc. in Mechanical Engineering
>
>
> Mobile:  +972(0)54-6690915
> Email: sginsbo...@gmail.com
>
> Visit my personal page on LinkedIn at:
> http://www.linkedin.com/in/shayginsbourg
>
>
>
>
>
>
> *Shay Ginsbourg*
>
> about.me/shayginsbourg
>
>
>
> Please consider your environmental responsibility before printing this
> e-mail.
>


Re: Questions about Apache JMeter

2024-08-12 Thread Ivan Rancati
Hi,

As a user, I don't think a performance/load testing tool can be "adapted"
to do something completely different.

On Mon, Aug 12, 2024 at 9:04 AM Moreno Anega, Florencio Celestino <
fmore...@fega.es> wrote:

> Hi,
>
> Thank you very much for your answer.
>
> We discarded those two that you mention because they are commercial tools
> and we're looking for a free and open source one. Some like TestLink would
> fit our requirements but they didn't free any release for the last four
> years therefore we're a bit concerned about its evolution. Don't you think
> JMeter could be adapted to them?
>
> Best,
>
> Florencio Moreno Anega
> Calle Beneficencia, 8 - 28004 Madrid
> Teléfono: 91 347 64 37
> mail: fmore...@fega.es
> Por favor no imprima este correo electrónico a menos que sea necesario /
> Please don't print this e-mail unless it's really necessary
>
>
>


Re: Questions about Apache JMeter

2024-08-09 Thread Ivan Rancati
I think you're looking for something like the xRay addon for Jira, or
Octane.
Jmeter is not a test management tool.

Moreno Anega, Florencio Celestino  schrieb am Fr., 9.
Aug. 2024, 12:26:

> Hi,
>
> We are evaluating different test automation tools in order to replace that
> one we are currently using. And we think that Apache JMeter fits our
> requirements, but we need to be sure about its full compliance. Please find
> them hereafter.
>
>
>   *   Access control via LDAP
>   *   Admin setup
>   *   User setup
>   *   User identification via LDAP
>   *   Account configuration
>   *   User administration
>   *   Test project creation / deletion
>   *   Assign users to test project
>   *   Test requirements generation from a .csv file
>   *   Test requirements manual setup
>   *   Test requirements handling
>   *   Test requirements register
>   *   Test cases manual setup
>   *   Test cases handling
>   *   Test cases traceability
>   *   Test cases register
>   *   Test plan setup
>   *   Build setup
>   *   Test case to test plan assignment
>   *   Test case to user assignment
>   *   Test result register (Note: Test launching not done from test
> automation tool)
>   *   Bug tracking via Mantis BT integration
>   *   Bug traceability
>   *   Bug register
>   *   Test report generation (HTML / Word)
>   *   Metrics generation (HTML / Excel / Word)
>   *   Test cases versioning
>
> Hopefully, you can shine a light on it.
>
> Thanks in advance and kind regards.
>
> Florencio Moreno Anega
> Calle Beneficencia, 8 - 28004 Madrid
> 
> Teléfono: 91 347 64 37
> mail: fmore...@fega.es
> Por favor no imprima este correo electrónico a menos que sea necesario /
> Please don't print this e-mail unless it's really necessary
>
>


Re: Not able to view request and response details after exporting log file to Listener[Tree view], when executed the script in non gui mode.

2024-02-22 Thread Ivan Rancati
Does jmeter.log on your local machine show any details?

Maybe you can look at the .jtl file in an editor or (if there is no
sensitive data) post the first few lines here.

On Sun, Feb 4, 2024 at 11:52 PM Pravesh  wrote:

> Hi Team,
> I am getting one weird issue.
> In jmeter when I execute the test in gui mode, in treeview listener, I can
> see request details and response details what has been sent for that
> request.
>
> But when I execute the same script in non gui mode and store log file on
> local, after exporting log to tree view listener I, can see some failures
> and wanted to see what request details has been send and what is response
> returned, then It just displays "Do data to display"
> Any solution for this where I can see retails for request and response,
> when execute test in non gui mode and export log file into tree view
> listener
>
> --
> Regards,
> Pravesh prajapati.
> Mob:-9702600170
>


Jmeter 5.4 NPE at LoadRecentProject.java:125

2020-12-08 Thread Ivan Rancati
Hello,

first of all thanks to the JMeter team for the 5.4 release.

I have a small problem on Windows 10: when I load a file (either from
File/Open Recent... or File/Open) an exception is logged, and "unexpected
error" is displayed.
It seems to be a problem with updating the recent file list
Here the exception (I replaced some company info with dots). The same file
can be opened with Jmeter 5.3


2020-12-08 11:06:36,340 INFO o.a.j.JMeter: Setting LAF to:
laf:javax.swing.plaf.nimbus.NimbusLookAndFeel
2020-12-08 11:06:36,618 INFO o.a.j.JMeter: Loaded icon properties from
org/apache/jmeter/images/icon.properties
2020-12-08 11:08:03,914 INFO o.a.j.s.FileServer: Default
base='C:\Users\.\apache-jmeter-5.4\bin'
2020-12-08 11:08:03,919 INFO o.a.j.g.a.Load: Loading file:
C:\Users\.\Documents\...\loadtest\scripts\\.jmx
2020-12-08 11:08:03,919 INFO o.a.j.s.FileServer: Set new
base='C:\Users\.\Documents\...\loadtest\scripts\'
2020-12-08 11:08:04,120 INFO o.a.j.s.SaveService: Testplan (JMX) version:
2.2. Testlog (JTL) version: 2.2
2020-12-08 11:08:04,148 INFO o.a.j.s.SaveService: Using SaveService
properties file encoding UTF-8
2020-12-08 11:08:04,150 INFO o.a.j.s.SaveService: Using SaveService
properties version 5.0
2020-12-08 11:08:04,155 INFO o.a.j.s.SaveService: Loading file:
C:\Users\.\Documents\...\loadtest\scripts\\.jmx
2020-12-08 11:08:04,488 INFO o.a.j.s.SampleResult: Note: Sample TimeStamps
are START times
2020-12-08 11:08:04,489 INFO o.a.j.s.SampleResult:
sampleresult.default.encoding is set to ISO-8859-1
2020-12-08 11:08:04,489 INFO o.a.j.s.SampleResult:
sampleresult.useNanoTime=true
2020-12-08 11:08:04,489 INFO o.a.j.s.SampleResult:
sampleresult.nanoThreadSleep=5000
2020-12-08 11:08:05,131 WARN o.a.j.g.a.Load: Unexpected error.
java.lang.NullPointerException
java.lang.NullPointerException: null
at java.util.ArrayDeque.addLast(Unknown Source) ~[?:1.8.0_261]
at java.util.ArrayDeque.add(Unknown Source) ~[?:1.8.0_261]
at
org.apache.jmeter.gui.action.LoadRecentProject.updateRecentFileMenuItems(LoadRecentProject.java:125)
~[ApacheJMeter_core.jar:5.4]
at
org.apache.jmeter.gui.util.JMeterMenuBar.setProjectFileLoaded(JMeterMenuBar.java:144)
~[ApacheJMeter_core.jar:5.4]
at org.apache.jmeter.gui.MainFrame.setProjectFileLoaded(MainFrame.java:330)
~[ApacheJMeter_core.jar:5.4]
at org.apache.jmeter.gui.GuiPackage.setTestPlanFile(GuiPackage.java:732)
~[ApacheJMeter_core.jar:5.4]
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136)
~[ApacheJMeter_core.jar:5.4]
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:101)
~[ApacheJMeter_core.jar:5.4]
at org.apache.jmeter.gui.action.Load.doActionAfterCheck(Load.java:88)
~[ApacheJMeter_core.jar:5.4]
at
org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest.doAction(AbstractActionWithNoRunningTest.java:44)
~[ApacheJMeter_core.jar:5.4]
at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87)
~[ApacheJMeter_core.jar:5.4]
at
org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69)
~[ApacheJMeter_core.jar:5.4]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_261]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_261]
at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_261]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_261]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_261]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_261]
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source) [?:1.8.0_261]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_261]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
[?:1.8.0_261]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
[?:1.8.0_261]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
[?:1.8.0_261]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_261]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_261]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_261]
2020-12-08 11:08:05,140 ERROR o.a.j.u.JMeterUtils: Unexpected error - see
log for details

If it's not a known issue I can log it and/or try a nightly build

thanks and best regards,
Ivan


Re: Mismatch of OS Process Sampler/Beanshell Post processor vs. requests

2019-08-23 Thread Ivan Rancati
You have an interesting setup: JMeter and Java app (is it part of the
System under test, btw?) on the same computer.

If you can't run JMeter and Java app on two different computers, this might
work:
-Test 1, that runs the Java app, to generate a file with  URLs and/or POST
contents
-Test 2, to run later, reads the above file and tests the web application

Ivan

On Thu, Aug 22, 2019 at 1:30 PM oh...@yahoo.com.INVALID
 wrote:

>  Hi,
> Is there a way to increase/set the amount of time that Jmeter will wait
> for more responses, after the scheduler time has elapsed?
> With this test, I think the java app that is run is taking so much
> processor time that the HTTP Requests are not being firede up.
>
> Thanks,Jim
>
>
>


Re: Need help in Login Logout script

2019-08-22 Thread Ivan Rancati
Here are a couple of very generic troubleshooting suggestions. You might
have to work with the website developer/admin to get more details

My guess is that userId is derived from the username you pass in with your
login script.
Find out why no userId is there:

A problem in your JMeter Script? Are you sure the username is sent the way
the application expects it?
You say the script is failing intermittently. Could it be that for some
iterations the username value is empty?
You could check what gets sent with View Results Tree in JMeter, or with
tcpdump.

Server problems
A Web server in front of the application server that does not pass
parameters properly?
THe application cannot keep up with the load?

On Thu, Aug 22, 2019 at 9:32 AM neeraj.kuma...@wipro.com <
neeraj.kuma...@wipro.com> wrote:

> Hi Ivan,
>
> The server shows below error:
>
> 09:56:58,698 +0100 ERROR [io.undertow.request] (default task-224)
> UT005023: Exception handling request to /internal/current-user/user:
> javax.servlet.ServletException: java.lang.NullPointerException: null
> value in entry: userId=null
>
> Not sure what is this "userId".
>
> Regards,
> Neeraj Kumar
>
> --
> *From:* Ivan Rancati 
> *Sent:* Thursday, August 22, 2019 1:13 AM
> *To:* JMeter Users List 
> *Subject:* Re: Need help in Login Logout script
>
> ** This mail has been sent from an external source. Treat hyperlinks and
> attachments in this email with caution**
>
> As the script is passing intermittently, perhaps you have found a server
> bug/crash.
> The server logs should explain the reason of the 500 Internal Server Error
> (if they don't, you have also found a bug in logging)
>
> On Mon, Aug 19, 2019 at 1:59 PM neeraj.kuma...@wipro.com.INVALID
>  wrote:
>
> > Hi Team,
> >
> > We are working in Jmeter script which includes only Login and Logout.
> > The script is passing intermittently. The sign-in is failing with
> > "HTTP/1.1 500 Internal Server Error"
> > We have correlated all the possible values, using Cookie Manager and used
> > Authorization Manager also but no success.
> > Can anyone pls help what could be the issue.
> >
> > Regards,
> > Neeraj Kumar
> > The information contained in this electronic message and any attachments
> > to this message are intended for the exclusive use of the addressee(s)
> and
> > may contain proprietary, confidential or privileged information. If you
> are
> > not the intended recipient, you should not disseminate, distribute or
> copy
> > this e-mail. Please notify the sender immediately and destroy all copies
> of
> > this message and any attachments. WARNING: Computer viruses can be
> > transmitted via email. The recipient should check this email and any
> > attachments for the presence of viruses. The company accepts no liability
> > for any damage caused by any virus transmitted by this email.
> >
> https://clicktime.symantec.com/395dTaA2UR7NkWGSgwgW4jN7Vc?u=www.wipro.com
> >
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments. WARNING: Computer viruses can be
> transmitted via email. The recipient should check this email and any
> attachments for the presence of viruses. The company accepts no liability
> for any damage caused by any virus transmitted by this email.
> www.wipro.com
>


Re: Need help in Login Logout script

2019-08-21 Thread Ivan Rancati
As the script is passing intermittently, perhaps you have found a server
bug/crash.
The server logs should explain the reason of the 500 Internal Server Error
(if they don't, you have also found a bug in logging)

On Mon, Aug 19, 2019 at 1:59 PM neeraj.kuma...@wipro.com.INVALID
 wrote:

> Hi Team,
>
> We are working in Jmeter script which includes only Login and Logout.
> The script is passing intermittently. The sign-in is failing with
> "HTTP/1.1 500 Internal Server Error"
> We have correlated all the possible values, using Cookie Manager and used
> Authorization Manager also but no success.
> Can anyone pls help what could be the issue.
>
> Regards,
> Neeraj Kumar
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments. WARNING: Computer viruses can be
> transmitted via email. The recipient should check this email and any
> attachments for the presence of viruses. The company accepts no liability
> for any damage caused by any virus transmitted by this email.
> www.wipro.com
>


Re: Mismatch of OS Process Sampler/Beanshell Post processor vs. requests

2019-08-21 Thread Ivan Rancati
You could try to log with DEBUG level, and see if jmeter.log has messages
like
"thread 1-37 terminated because the scheduler's time is reached".

Perhaps it's just the web server that takes a long time to answer when 100
requests arrive concurrently.
Running the test for, say, 20 minutes instead of 30 seconds might shed some
light.
Would the difference between completed OS Process Samplers and completed
HTTP Samplers still be about 80 (therefore much smaller in %), or would you
still have about 1 completed HTTP Sampler for approx. every 4 completed OS
Process Samplers?

Best regards,
Ivan

On Wed, Aug 21, 2019 at 7:15 PM oh...@yahoo.com.INVALID
 wrote:

> Hi,
> I have a Jmeter test plan where I have:
> Thread group- OS Process Sampler- Beanshell Post Processor-
> Cookie Manager
> - HTTP Request- Summary
>
> The Beanshell Post Process just haas:
> response = prev.getResponseDataAsString();
> vars.put("SAMLResponseBody", response);
> and the HTTP Request has in the BODY DATA:
> ${SAMLResponseBody}
>
> Basically, the OS Process Sampler executes a Java app, and then the
> Beanshell Post Processor moves the output from the Java app into a Jmeter
> variable, "SampleResponseBody", and then the HTTP Request sends that to a
> URL.
> However, when I run the test plan with 100 threads with scheduler set for
> 30 seconds, and I look at the Summary after the test has stopped, I am
> seeing:
> OS Process Sampler: # Samples = 106HTTP Request:  # Samples = 24
> And there are 0.00% Errors.
>
> I *expected* that the #Samples for the OS Process Sampler would be the
> same as the #Samples for the HTTP Request, i.e., there should be one HTTP
> Request for each body/string that gets produced.
> Can someone tell me why that is not the case?
> Thanks,Jim
>
>
>


Re: Understand bytes in JMeter .jtl

2019-08-07 Thread Ivan Rancati
Hello,

"bytes" are only the received bytes

Best,
Ivan

On Wed, Aug 7, 2019 at 9:21 AM Pravesh Shrivastava <
pravesh.shrivast...@gmail.com> wrote:

> Hello Experts,
>
> I have executed one test in JMeter and generated report in .jtl format. I
> see some requests are downloading huge number of bytes so to analyse it I
> converted .jtl to .csv and opened .csv file.
>
> I see two columns in .csv bytes and sentBytes. So, trying to understand if
> bytes is total bytes (sent + received) or only received bytes.
>
> Please help me to understand the concept.
>
> Thanks in advance.
>
>
> --
> Regards
> Pravesh Shrivastava
>


Re: Followup question to "Help get OCSP responder load test working?" - New approach using OS Process sampler

2019-07-02 Thread Ivan Rancati
It should work if you redirect stderr to stdout so
2>&1

Ivan

On Tue, Jul 2, 2019 at 2:53 PM  wrote:

>  Hi,
>
> If the output of "openssl ocsp" is going to STDERR, then dos that mean
> that there is no way to get the Response Assertion to work?
>
> Jim
>
>
>  On Tuesday, July 2, 2019, 8:34:46 AM EDT, Ivan Rancati <
> ivan.ranc...@gmail.com> wrote:
>
>  1.
> If you try it, you will probably need to set a few headers, such as
> --header='Content-Type:application/ocsp-request'
>
> 2.
> Assuming you are testing on linux. I vaguely remember, but have not time to
> try now, the output of "openssl ocsp ..." is sent to stderr and not stdout.
> Maybe you can try from bash, redirecting to a file, and seeing what's in
> the file
>
>
>
>
> On Tue, Jul 2, 2019 at 2:16 PM  wrote:
>
> >  Hi,
> >
> > Re. 1: That is an interesting approach! I will try it if I have some
> time.
> >
> > Re. 2: If I use "Text Response", it looks like the Response Assertion
> > doesn't even fire (doesn't appear in the results tree). So far, only
> > checking "Response message" in the Response Assertion causes the Response
> > Assertion to appear in results, but I still am not able to get the
> > assertion to match.
> >
> > I have tried both "Contains" "revoked" and "substring" "revoked", but
> > neither succeeds.
> >
> > Thanks,
> > Jim
> >
> >
> >  On Tuesday, July 2, 2019, 7:46:22 AM EDT, Ivan Rancati <
> > ivan.ranc...@gmail.com> wrote:
> >
> >  Two ideas
> >
> > 1
> > If you are testing with a limited number of certificates:
> > You could manually prepare one (or more) ocsp response file with openssl,
> > then use the normal HTTP Sampler to POST that request
> >
> > openssl ocsp -issuer  -cert  tested>
> > -reqout 
> >
> >
> > 2
> > I have a couple of test plans with OS Process Sampler and assertion. I
> use
> > "Text Response" in "Field to Test"
> > Make sure you use "Contains" if you need a regex in "Pattern to test", I
> > think "Substring" will not expand the regex
> >
> > best,
> > Ivan
> >
> >
> >
> >
> > On Tue, Jul 2, 2019 at 12:52 PM  wrote:
> >
> > > Hi,
> > >
> > > I couldn't get the approach that I was trying in the earlier "Help get
> > > OCSP responder load test working?" thread, where I was trying to
> generate
> > > the OCSP request programatically, so I changed my approach.
> > >
> > > Now, I use an OS Process Sampler to run an "openssl ocsp" command, and
> > > that seems to be working, but I would like to have an assertion
> checking
> > > the response message for the string "revoked".
> > >
> > > I tried adding a Response Assertion, but that doesn't seem to be firing
> > at
> > > all, even if I "attach it" to the OS Process Sampler itself.
> > >
> > > So is there a way to include an assertion in the Jmeter test plan that
> > > would check for the string "revoked" in the response message?  And, if
> > so,
> > > how do I do that?
> > >
> > > Thanks,
> > > Jim
> > >
> > > -
> > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> > > For additional commands, e-mail: user-h...@jmeter.apache.org
> > >
> > >
> >
>


Re: Followup question to "Help get OCSP responder load test working?" - New approach using OS Process sampler

2019-07-02 Thread Ivan Rancati
1.
If you try it, you will probably need to set a few headers, such as
--header='Content-Type:application/ocsp-request'

2.
Assuming you are testing on linux. I vaguely remember, but have not time to
try now, the output of "openssl ocsp ..." is sent to stderr and not stdout.
Maybe you can try from bash, redirecting to a file, and seeing what's in
the file




On Tue, Jul 2, 2019 at 2:16 PM  wrote:

>  Hi,
>
> Re. 1: That is an interesting approach! I will try it if I have some time.
>
> Re. 2: If I use "Text Response", it looks like the Response Assertion
> doesn't even fire (doesn't appear in the results tree). So far, only
> checking "Response message" in the Response Assertion causes the Response
> Assertion to appear in results, but I still am not able to get the
> assertion to match.
>
> I have tried both "Contains" "revoked" and "substring" "revoked", but
> neither succeeds.
>
> Thanks,
> Jim
>
>
>  On Tuesday, July 2, 2019, 7:46:22 AM EDT, Ivan Rancati <
> ivan.ranc...@gmail.com> wrote:
>
>  Two ideas
>
> 1
> If you are testing with a limited number of certificates:
> You could manually prepare one (or more) ocsp response file with openssl,
> then use the normal HTTP Sampler to POST that request
>
> openssl ocsp -issuer  -cert 
> -reqout 
>
>
> 2
> I have a couple of test plans with OS Process Sampler and assertion. I use
> "Text Response" in "Field to Test"
> Make sure you use "Contains" if you need a regex in "Pattern to test", I
> think "Substring" will not expand the regex
>
> best,
> Ivan
>
>
>
>
> On Tue, Jul 2, 2019 at 12:52 PM  wrote:
>
> > Hi,
> >
> > I couldn't get the approach that I was trying in the earlier "Help get
> > OCSP responder load test working?" thread, where I was trying to generate
> > the OCSP request programatically, so I changed my approach.
> >
> > Now, I use an OS Process Sampler to run an "openssl ocsp" command, and
> > that seems to be working, but I would like to have an assertion checking
> > the response message for the string "revoked".
> >
> > I tried adding a Response Assertion, but that doesn't seem to be firing
> at
> > all, even if I "attach it" to the OS Process Sampler itself.
> >
> > So is there a way to include an assertion in the Jmeter test plan that
> > would check for the string "revoked" in the response message?  And, if
> so,
> > how do I do that?
> >
> > Thanks,
> > Jim
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> > For additional commands, e-mail: user-h...@jmeter.apache.org
> >
> >
>


Re: Followup question to "Help get OCSP responder load test working?" - New approach using OS Process sampler

2019-07-02 Thread Ivan Rancati
Two ideas

1
If you are testing with a limited number of certificates:
You could manually prepare one (or more) ocsp response file with openssl,
then use the normal HTTP Sampler to POST that request

openssl ocsp -issuer  -cert 
-reqout 


2
I have a couple of test plans with OS Process Sampler and assertion. I use
"Text Response" in "Field to Test"
Make sure you use "Contains" if you need a regex in "Pattern to test", I
think "Substring" will not expand the regex

best,
Ivan




On Tue, Jul 2, 2019 at 12:52 PM  wrote:

> Hi,
>
> I couldn't get the approach that I was trying in the earlier "Help get
> OCSP responder load test working?" thread, where I was trying to generate
> the OCSP request programatically, so I changed my approach.
>
> Now, I use an OS Process Sampler to run an "openssl ocsp" command, and
> that seems to be working, but I would like to have an assertion checking
> the response message for the string "revoked".
>
> I tried adding a Response Assertion, but that doesn't seem to be firing at
> all, even if I "attach it" to the OS Process Sampler itself.
>
> So is there a way to include an assertion in the Jmeter test plan that
> would check for the string "revoked" in the response message?  And, if so,
> how do I do that?
>
> Thanks,
> Jim
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


autostarting jmeter-server with systemd

2019-05-31 Thread Ivan Rancati
Hello,

Yesterday I installed from scratch jmeter on some virtual machines in a
cloud environment, and had an odd problem with starting jmeter-server.
As this might happen to other testers, I'm sharing the workaround that I
found


My environment
I have 10 JMeter remotes, they are virtual machines (CentOS) that are
switched off when no performance test is running,, and can be started with
OpenStack.

My problem
I wanted jmeter-server to start automatically, so I created a .service file
for bin/jmeter-service
I noticed that the Java process would start on 6 or 7 vm, not on the
remaining 3 or 4
It turns out that, with systemd, unless a dependency is explicitly given,
the order of startup is not guaranteed.
So sometimes, jmeter-server started before the network initialization was
finished, and rmi could not bind to any ip address

The workaround
Simply adding an "After" statement to the .service file (see below), to
make sure the network is fully initialized. Important in cloud
environments, where the ip address is assigned by a dhcp server.

The two other relevant settings in the file are "ExecStart" (the full path
to jmeter-server) and "WorkingDirectory" (basically, where
jmeter-server.log will be saved)

[Unit]
Description=Start Jmeter-service
After=network-online.target

[Service]
Type=simple
WorkingDirectory=/root/lasttest
ExecStart="/opt/lasttest/jmeter/bin/jmeter-server"

[Install]
WantedBy=multi-user.target




Your mileage may vary. There might be better/cleaner workarounds then mine

Thanks to the JMeter for Jmeter and happy testing,
Ivan


Re: Latency issue while running jmeter scripts in AWS server

2019-03-20 Thread Ivan Rancati
hi,
at a first look I'd say Jmeter is behaving correctly like, for example, a
browser would do: the first request takes longer, the following ones are
cached.
Another possibility: the first time you resolve the hostname of the server
there is a dns lookup, all following requests are faster because the ip
address is locally cached.


Assuming your AWS Server is Linux based, you could try the following
1) restart
2) time dig 
3) time dig 

and see whether there is a big difference between 2) and 3). If so, and if
the dns server is part of the infrastructure you're testing, you can see if
there is room for optimization there. Be careful to optimize your servers,
and not the clients you use for testing.

Hope this helps,
Ivan

On Wed, Mar 20, 2019 at 12:47 PM Hareesh paruchuri <
paruchurihare...@gmail.com> wrote:

> Below is the scenario:
>
>1. I'm running jmx script using non-gui mode.
>2. 1st iteration result is getting high average response (7 secs) with
>highest latency(1.5 secs).
>3. 2nd, 3rd, & 4th iteration results are giving less average response
>(3.5 secs) with low latency (400 ms). As latency reduces average
> response
>time reduced.
>4. If I restart my server and run same jmx file again repeating steps 2
>& 3.
>
> Q1: Is it really a problem with Network Latency. If so how to handle this?
> Q2: Is it anyway related to Cache then I have used DNS Cache Manager,
> Cookie Manager, Cache Manager? Is there anything I forgot?
> Thanks & Regard's
> P.Hareesh
>


setting the loglevel in distributed testing

2019-03-20 Thread Ivan Rancati
Hello,

first of all thanks for the 5.1.1 release (and all the previous ones).
I am running tests in distributed mode (non-gui) and I need to debug a
particular sampler (a OS Process Sampler) that is failing.
I have tried to start the test with:
 -LDEBUG,
-LJmeter=DEBUG,
-Lorg.apache.jmeter.protocol.system=DEBUG

but  in all 3 cases I only see an entry in jmeter.log
INFO o.a.j.JMeter: LogLevel: Jmeter=DEBUG
then no further DEBUG log entry

I assume it's because I need to pass the switch to the remote jmeter-server
instances instead
Question:
is there an easy way (for example with the -G parameter) to pass the
loglevel to the remotes? Or should I just restart jmeter-server on the
remotes with the appropriate loglevel?

My configuration for both controller and remotes:
jdk 8
JMeter 5.1.1
Ubuntu 18.04

Thanks and best regards,
Ivan


Re: Constant Throughput Timer Concerns

2019-03-18 Thread Ivan Rancati
hi,
a couple of ideas

1. It really depends on how long you anticipate a request will take. If you
want 17k request per minute and each request takes 10 seconds (so 6
requests in a minute), start with approximately 17k/6 threads and take it
from there.

2. In general, I think it's better to use slightly more threads and use a
Throughput Timer to limit the throughput. Perhaps it's easier to start with
the Constant Throughput timer.


best,
Ivan

On Fri, Mar 15, 2019 at 1:07 PM Prateek Dua  wrote:

> just a reminder if there is any update to share on it from anyone.
>
> On Thu, Mar 14, 2019 at 12:50 AM Prateek Dua 
> wrote:
>
> > Hi,
> >
> > If we are using Constant Throughput Timer with basic Thread group  (
> > Threads, Ramp up Time & loop) to achieve concurrency of 17K rpm then --
> >
> >
> > 1. In Thread group, do we have to pass ~ 20K threads i.e. Value input for
> > Threads should always be greater than value defined in Throughput to
> > achieve ?
> >
> >
> > 2. For *Calculate Throughput based on* field in Constant Throughput
> > Timer,  is it better to select option* 'this thread only'  *compared to
> *' all
> > active threads in current thread group'*  to achieve maximum expected
> > Throughput.
> >
> >
> > 3.Which is best to use among Throughput Shaping Timer / Constant
> > Throughput Timer / Precise Throughput Timer ?
> >
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: Distributed Load testing Problem

2019-03-13 Thread Ivan Rancati
Two things you might have to check

1) keystore
since JMeter 4.0 you have to either configure a keystore for RMI, or
disable rmi over ssl
(see https://jmeter.apache.org/usermanual/remote-test.html#setup_ssl)

2) Is the rmi port (default 1099) open?
>From the master, does telnet  1099 work, or do you
get a "connection refused"?
>From one of the slaves, does telnet  1099 work?

best regards,
Ivan

On Wed, Mar 13, 2019 at 8:02 PM Prateek Dua  wrote:

> Hi Guys,
>
> As per earlier discussion & suggestions on Distributed Load testing to
> achieve Max concurrency, I've configured my jmeter set up on aws server per
> this link
>
> https://www.blazemeter.com/blog/how-to-perform-distributed-testing-in-jmeter
>
> But still my master is unable to connect to slave machines . getting
> *connection
> time out error *always whenever Master tries to connect to Slave.
>
>
> Configuring remote engine: 10.30.x.x (slave ip)
>
> ERROR org.apache.jmeter.engine.DistributedRunner - Failed to create engine
> at 10.30.x.x ( Slave ip)
>
> java.rmi.ConnectException: Connection refused to host: 10.30.x. x  ; nested
> exception is:
>
> java.net.ConnectException: Connection timed out (Connection timed out)
>
>
> Configuring remote engine: 10.30.x.x
> Connection refused to host: 10.30.4.210; nested exception is:
> java.net.ConnectException: Connection timed out (Connection timed out)
> Failed to configure 10.30.x.x
>
> *Let me give a brief of what I have done*
>
> 1. Got 5 more aws slave instances & *all instances are replicas of Master
> instance *having same Jmeter & Java & Jenkins version of Master instance .
>
> 2. All slave & master instances are on same subnet.
>
> 3.  In jmeter.properties file of Master Server , added IPs of all the slave
> systems against remote_hosts property.
>
> 4. Started jmeter.server file on all slave instances by running  cmd
> *./jmeter-server *& used another alternate cmd too *./jmeter-server
> -Djava.rmi.server.hostname=10.30.x.x. ( Slave IP)*
>
> *Output on running both cmds -> *Created remote object: UnicastServerRef
> [liveRef:
> [endpoint:[10.30.x.x:37279](local),objID:[ae7eac4:169775d4503:-7fff,
> 7214156034065384624]]
>
> 5. Passed param in non gui mode in script as -R slave 1, slavve 2 from
> Master Server ./jmeter -n -t
>
> /var/lib/jenkins/workspace/apache-jmeter-4.0/extras/deployjmeter/throughput.jmx
> -R 10.30.x.x
>
> 6  Although I'm starting Jmeter in non gui mode as shell script inside
> Jenkins but on directly running via cmd line too -- I'm getting connection
> Timeout error.
>
> *Can you guys let me know the mistake or steps I'm missing i.e.*
>
> -- Do I have to start jmeter-server on Master Server too ?
>
> -- Any port or network connecting issue among Master & Slave ?
>
> --  further changes to be done in any file of Master or Server  ?
>
> -- Is it because Slaves are replicas of Master Instance having same jmeter
> & jenkins version ( but differ in terms of IP )
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: unable to create new native thread error

2019-03-12 Thread Ivan Rancati
hi,

does this line
  -Jthreads=12 -Jramp=1
mean creating 120.000 Threads?
That would be a extremely high load on the jMeter host (both cpu and
memory), regardless of the ramp up time (not sure how you read the "ramp"
property from your script, but sure it can't be one second).

jmeter.log might give you an idea of how many threads are actually created
before the oom happens.

best regards,
Ivan

On Tue, Mar 12, 2019 at 1:02 PM Prateek Dua  wrote:

> Hi,
>
>
> I am trying to give load of 1Lacs user from command line mode of
> Jmeter (  -Jthreads=12 -Jramp=1 -Jloop=1 -)  set up on Aws machine
> ( single machine) using the  basic thread group using constant
> throughput timer to achieve throughput of  1Lac rpm. But while running
> the script getting this below error...
>
>
> *Uncaught Exception java.lang.OutOfMemoryError: unable to create new
> native thread. See log file for details*
>
>
> I've configured *setenv.sh* file in *bin* folder as :
>
>
> *export HEAP="-Xms1024m -Xmx8g -XX:MaxMetaspaceSize=256m"*
>
>
>
>
> Is there any other changes which are required from my end to done in
> any file in Jmeter to solve this error  ? pls help.
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: Groovy OUT.println() in remote execution

2019-02-25 Thread Ivan Rancati
hi Antonio,

thanks, I'll try annotations for graphics.
However, my question was slightly different: how to get some information
displayed in real time during test execution. Apologies if it was unclear.
For the current project, I have a simple, ssh-only infrastructure, without
Grafana.

Best regards,
Ivan

On Mon, Feb 25, 2019 at 3:34 PM Antonio Gomes Rodrigues 
wrote:

> Hi,
>
> Have you try annotations like
> http://docs.grafana.org/reference/annotations/
> ?
>
> Antonio
>
> Le lun. 25 févr. 2019 à 15:00, Ivan Rancati  a
> écrit :
>
> > Hello,
> >
> > I have a couple of test plans (run in non-GUI mode), where I use a JSR223
> > sampler (groovy) to display on the console when a certain stage is
> reached.
> > For example, to indicate the setUp thread/s is/are complete:
> >
> > OUT.println("the setUp Thread Group is completed\n")
> >
> > This works locally, but of course not with remote execution. Is there an
> > equivalent way to display, on the controller's console, a similar message
> > when a remote has finished a thread, or some other stage is reached?
> >
> > Thanks a lot and best regards,
> > Ivan
> >
>


Groovy OUT.println() in remote execution

2019-02-25 Thread Ivan Rancati
Hello,

I have a couple of test plans (run in non-GUI mode), where I use a JSR223
sampler (groovy) to display on the console when a certain stage is reached.
For example, to indicate the setUp thread/s is/are complete:

OUT.println("the setUp Thread Group is completed\n")

This works locally, but of course not with remote execution. Is there an
equivalent way to display, on the controller's console, a similar message
when a remote has finished a thread, or some other stage is reached?

Thanks a lot and best regards,
Ivan


Re: Description in HLS_Sampler, select LIVE STREAM. Does jmeter automatically fetch the latest m3u8 every once in a while?

2019-02-12 Thread Ivan Rancati
That's a plugin developed by BlazeMeter, not a JMeter core component.
You'll probably get faster support if you contact them directly

On Tue, Feb 12, 2019 at 3:15 AM 1336230737 <1336230...@qq.com> wrote:

> Description in HLS_Sampler, select LIVE STREAM. Does jmeter automatically
> fetch the latest m3u8 every once in a while?


Possible typo in "Best practices"

2019-02-04 Thread Ivan Rancati
Good afternoon,

in the "16.11 Parameterising tests" section
https://jmeter.apache.org/usermanual/best-practices.html#parameterising_tests

there is an extra closing brace when showing how to use the property that
has been passed on the command line, i.e.
LOOPS=${__P(loops,10))}.
should be, I think:
LOOPS=${__P(loops,10)}.

I'll be happy to enter an issue in Bugzilla if it helps

Thanks and best regards,
Ivan


Re: Reg: UnSubscription from the list

2018-12-01 Thread Ivan Rancati
Hi,
when you subscribed you received an automated message including this
information:

--

Welcome to user@jmeter.apache.org!

Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address.


--- Administrative commands for the user list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:

To subscribe to the list, send a message to:
   

To remove your address from the list, send a message to:
   

On Sat, Dec 1, 2018 at 2:04 AM krish na 
wrote:

> Hi,
> Like to unsubcription from the jmeter group.
>
> Regards,
> Krishna - +91-9884451279.
>
> CallSend SMSAdd to SkypeYou'll need Skype CreditFree via Skype


Re: ctx.getThreadNum() and ${__threadNum}

2018-09-28 Thread Ivan Rancati
hi,
sorry it took me a few days to try building. I downloaded with git clone
and have a couple of questions:

1) Option 2 : Setting up Eclipse project manually
In the instructions it looks like the same ant task has to be called twice.
Is it so? From the web page
-
he first step is to download dependencies by running the Ant command:

ant download_jars

Or you can download the binary distribution archive for a release and
unpack it into the same directory structure as the source. This will ensure
that the lib/ directory contains the jar files needed for running JMeter.
There are a few additional jars that are needed to build JMeter, download
these using:

ant download_jars

-

2) What is the correct ant task to build the docs?
At the beginning of build.xml I see
-
To update documentation
  ant docs-site [-Ddocs.force=true]
  ant docs-printable [-Ddocs.force=true]
To build API documentation (Javadoc)
  ant docs-api
To build all the docs
  ant docs-all [-Ddocs.force=true]

-
but docs-all is not a target (I checked with ant -projecthelp)

thanks and best regards,
Ivan

On Fri, Sep 21, 2018 at 12:47 PM Philippe Mouawad <
philippe.moua...@gmail.com> wrote:

> Thanks Ivan.
> Would you like to provide a PR or patch ?:
>
> - https://jmeter.apache.org/building.html
>
> Thanks
>
> On Fri, Sep 21, 2018 at 12:45 PM Ivan Rancati 
> wrote:
>
> > hello,
> >
> > I entered a P3/minor bug with the documentation update request
> > https://bz.apache.org/bugzilla/show_bug.cgi?id=62752
> >
> > Thanks and best regards
> > Ivan
> >
> > On Thu, Sep 20, 2018 at 7:18 PM Deepak Shetty  wrote:
> >
> > > I believe there is a discrepancy - The context reads it from the thread
> > > which is 0 based and the other from the name.
> > > Its probably late to change this without potentially breaking backward
> > > compatibility - perhaps a documentation update is better .
> > >
> > > regards
> > > deepak
> > >
> > > On Wed, Sep 19, 2018 at 12:54 AM Ivan Rancati 
> > > wrote:
> > >
> > > > As JMeter 5.0 has been released today, a quick update:
> > > >
> > > > the behaviour with the thread number is the same with JMeter 4.0 and
> > > 5.0. I
> > > > tried both versions of JMeter on Linux with a mix of OpenJDK10,
> Oracle
> > > JDK
> > > > 9 and Oracle JDK 10
> > > >
> > > > Thanks for the 5.0 release and best regards
> > > >
> > > > On Wed, Sep 19, 2018 at 8:00 AM Ivan Rancati  >
> > > > wrote:
> > > >
> > > > > Good morning,
> > > > >
> > > > > I think that ctx.getThreadNum() returns a 0-based thread number,
> > while
> > > > the
> > > > > variable __threadNum is 1-based.
> > > > >
> > > > > I have prepared test plan with a just a thread group, a constant
> > > > > throughput timer and JSR223 sampler which just logs
> > > > >
> > > > > log.info("from ctx:"+ctx.getThreadNum())
> > > > > log.info("from variable: ${__threadNum}")
> > > > >
> > > > > in jmeter.log I see for example for the first thread
> > > > >
> > > > > 2018-09-18 22:45:07,610 INFO o.a.j.t.JMeterThread: Thread started:
> > > Thread
> > > > > Group 1-1
> > > > > ...
> > > > > 2018-09-18 22:45:08,085 INFO o.a.j.p.j.s.JSR223Sampler: from ctx:0
> > > > > 2018-09-18 22:45:08,085 INFO o.a.j.p.j.s.JSR223Sampler: from
> > variable:
> > > 1
> > > > >
> > > > > and so on. Am I reading incorrectly one of the two values?
> > > > >
> > > > > I thought, as the threads are numbered with  > from
> > > > > 1>-
> > > > > in jmeter.log, both values should be 1-based
> > > > >
> > > > > Thanks and best regards,
> > > > > Ivan
> > > > >
> > > >
> > >
> >
>
>
> --
> Cordialement.
> Philippe Mouawad.
>


Re: ctx.getThreadNum() and ${__threadNum}

2018-09-21 Thread Ivan Rancati
Hallo Philippe,

will do. It might take a few days, though.

Best,
Ivan

On Fri, Sep 21, 2018 at 12:47 PM Philippe Mouawad <
philippe.moua...@gmail.com> wrote:

> Thanks Ivan.
> Would you like to provide a PR or patch ?:
>
> - https://jmeter.apache.org/building.html
>
> Thanks
>
>


Re: ctx.getThreadNum() and ${__threadNum}

2018-09-21 Thread Ivan Rancati
hello,

I entered a P3/minor bug with the documentation update request
https://bz.apache.org/bugzilla/show_bug.cgi?id=62752

Thanks and best regards
Ivan

On Thu, Sep 20, 2018 at 7:18 PM Deepak Shetty  wrote:

> I believe there is a discrepancy - The context reads it from the thread
> which is 0 based and the other from the name.
> Its probably late to change this without potentially breaking backward
> compatibility - perhaps a documentation update is better .
>
> regards
> deepak
>
> On Wed, Sep 19, 2018 at 12:54 AM Ivan Rancati 
> wrote:
>
> > As JMeter 5.0 has been released today, a quick update:
> >
> > the behaviour with the thread number is the same with JMeter 4.0 and
> 5.0. I
> > tried both versions of JMeter on Linux with a mix of OpenJDK10, Oracle
> JDK
> > 9 and Oracle JDK 10
> >
> > Thanks for the 5.0 release and best regards
> >
> > On Wed, Sep 19, 2018 at 8:00 AM Ivan Rancati 
> > wrote:
> >
> > > Good morning,
> > >
> > > I think that ctx.getThreadNum() returns a 0-based thread number, while
> > the
> > > variable __threadNum is 1-based.
> > >
> > > I have prepared test plan with a just a thread group, a constant
> > > throughput timer and JSR223 sampler which just logs
> > >
> > > log.info("from ctx:"+ctx.getThreadNum())
> > > log.info("from variable: ${__threadNum}")
> > >
> > > in jmeter.log I see for example for the first thread
> > >
> > > 2018-09-18 22:45:07,610 INFO o.a.j.t.JMeterThread: Thread started:
> Thread
> > > Group 1-1
> > > ...
> > > 2018-09-18 22:45:08,085 INFO o.a.j.p.j.s.JSR223Sampler: from ctx:0
> > > 2018-09-18 22:45:08,085 INFO o.a.j.p.j.s.JSR223Sampler: from variable:
> 1
> > >
> > > and so on. Am I reading incorrectly one of the two values?
> > >
> > > I thought, as the threads are numbered with  > > 1>-
> > > in jmeter.log, both values should be 1-based
> > >
> > > Thanks and best regards,
> > > Ivan
> > >
> >
>


Re: ctx.getThreadNum() and ${__threadNum}

2018-09-19 Thread Ivan Rancati
As JMeter 5.0 has been released today, a quick update:

the behaviour with the thread number is the same with JMeter 4.0 and 5.0. I
tried both versions of JMeter on Linux with a mix of OpenJDK10, Oracle JDK
9 and Oracle JDK 10

Thanks for the 5.0 release and best regards

On Wed, Sep 19, 2018 at 8:00 AM Ivan Rancati  wrote:

> Good morning,
>
> I think that ctx.getThreadNum() returns a 0-based thread number, while the
> variable __threadNum is 1-based.
>
> I have prepared test plan with a just a thread group, a constant
> throughput timer and JSR223 sampler which just logs
>
> log.info("from ctx:"+ctx.getThreadNum())
> log.info("from variable: ${__threadNum}")
>
> in jmeter.log I see for example for the first thread
>
> 2018-09-18 22:45:07,610 INFO o.a.j.t.JMeterThread: Thread started: Thread
> Group 1-1
> ...
> 2018-09-18 22:45:08,085 INFO o.a.j.p.j.s.JSR223Sampler: from ctx:0
> 2018-09-18 22:45:08,085 INFO o.a.j.p.j.s.JSR223Sampler: from variable: 1
>
> and so on. Am I reading incorrectly one of the two values?
>
> I thought, as the threads are numbered with  1>-
> in jmeter.log, both values should be 1-based
>
> Thanks and best regards,
> Ivan
>


ctx.getThreadNum() and ${__threadNum}

2018-09-18 Thread Ivan Rancati
Good morning,

I think that ctx.getThreadNum() returns a 0-based thread number, while the
variable __threadNum is 1-based.

I have prepared test plan with a just a thread group, a constant throughput
timer and JSR223 sampler which just logs

log.info("from ctx:"+ctx.getThreadNum())
log.info("from variable: ${__threadNum}")

in jmeter.log I see for example for the first thread

2018-09-18 22:45:07,610 INFO o.a.j.t.JMeterThread: Thread started: Thread
Group 1-1
...
2018-09-18 22:45:08,085 INFO o.a.j.p.j.s.JSR223Sampler: from ctx:0
2018-09-18 22:45:08,085 INFO o.a.j.p.j.s.JSR223Sampler: from variable: 1

and so on. Am I reading incorrectly one of the two values?

I thought, as the threads are numbered with -
in jmeter.log, both values should be 1-based

Thanks and best regards,
Ivan


Re: Delay Between Http Requests

2018-09-14 Thread Ivan Rancati
Would a Constant Throughput Timer
http://jmeter.apache.org/usermanual/component_reference.html#Constant_Throughput_Timer
work for you?

Best regards

On Sat, Sep 15, 2018 at 6:13 AM Nayak, Soumya R.  wrote:

> Hi All,
>
> Can you please let me know like what is the best way to put delay between
> HTTP requests.
> In bean shell sampler pre processor I had used  "Thread.sleep(millis) " ,
> what I observed was if I run using one user and after coming of the
> response it sleeps for the specified time and then sends.
>
> Is there anything where we can send requests exactly at the specified time
> without considering the response time of the previous requests.
>
> For example : I submitted a HTTP request with one user at 1:00:00 PM and
> the response came at 1:00:50 PM , now my thread will sleep (let say delay
> of 60 seconds) and fire another http request at 1:01:50 Pm but my
> requirement is to fire the request at exactly 1:01:00 PM rather than
> considering the 50 seconds of response time.
>
> Is there any way of achieving this?
> Also please let me know if in JMeter its possible to submit requests
> asynchronously?
>
> Regards,
> Soumya
>
>
> **
> This message may contain confidential or proprietary information intended
> only for the use of the
> addressee(s) named above or may contain information that is legally
> privileged. If you are
> not the intended addressee, or the person responsible for delivering it to
> the intended addressee,
> you are hereby notified that reading, disseminating, distributing or
> copying this message is strictly
> prohibited. If you have received this message by mistake, please
> immediately notify us by
> replying to the message and delete the original message and any copies
> immediately thereafter.
>
> If you received this email as a commercial message and would like to opt
> out of future commercial
> messages, please let us know and we will remove you from our distribution
> list.
>
> Thank you.~
>
> **
> FAFLD
>


Re: http2 netty tlsv1.2

2018-09-13 Thread Ivan Rancati
Hello,

I haven't yet tried out that plugin. Your best bet for help is the support
forum on the plugin's page

Best regards
Ivan

On Thu, Sep 13, 2018 at 7:21 AM Dor Ben Dov  wrote:

> Thanks Ivan,
> I saw this plugin and already installed it, but,  I am unable to attach my
> TLS certificate to it.
> Do you know how, do you have experience with it ?
>
> Regards,
> Dor
>
>


Re: http2 netty tlsv1.2

2018-09-12 Thread Ivan Rancati
I think the httpClient4 in JMeter does not support http/2, so you might
have to install a third part plugin.
For example this one

https://jmeter-plugins.org/?search=http2
The page has a link for the Support Forums



On Wed, Sep 12, 2018 at 1:16 PM Dor Ben Dov  wrote:

> Hi,
>
> I want to do several checks with jmeter and my netty spring-boot http/2
> server, with TLSv1.2.
>
> How can I do it ?
>
> Regards,
> Dor
>
> “Amdocs’ email platform is based on a third-party, worldwide, cloud-based
> system. Any emails sent to Amdocs will be processed and stored using such
> system and are accessible by third party providers of such system on a
> limited basis. Your sending of emails to Amdocs evidences your consent to
> the use of such system and such processing, storing and access”.
>


Re: Avg field not visible in .jtl file < Urgent pls >

2018-06-21 Thread Ivan Rancati
You could try the following: in Jmeter (gui mode) open your jmx file, go to
Aggregate Report (add one if needed), load the first jtl file, then the
second.

Or use the Performance plugin in Jenkins, that automatically generates
summaries from the jtl files.

On Thu, Jun 21, 2018 at 10:24 AM Prateek Dua  wrote:

> Hi,
>
> We are running Jmeter 4.0 in non gui mode via shell script configured in
> Jenkins. We have to capture response time of single api running multiple
> times as an cumulative Avg. in jtl file. But .jtl file is not displaying
> Avg field. However Jmeter Dashboard report shows it. Screenshots I have
> attached of jtl file & Jmeter Dashboard report
>
> Reason I'm asking to display Avg field  in jtl file is because we want to
> compare & calculate difference in response time of an api ( ran multiple
> times) in Run 1 of .jtl file with same api in Run 2 of jtl file.
>
> Please let me know how to display Avg. field in jtl file OR is there any
> way via which we can compare & calculate Avg response time of 2 Jmeter
> Dashboard reports.
>
> --
> Prateek Dua | Manager - QA
> prateek@go-mmt.com | 9810778750
>
>


Re: Jmeter sample count

2018-06-14 Thread Ivan Rancati
If you want to send 1 request per second, try a
Constant Throughput Timer
https://jmeter.apache.org/usermanual/component_reference.html#timers

br,
Ivan

On Thu, Jun 14, 2018 at 12:56 PM praveen tiwari 
wrote:

> Hi,
>
> As per my configuration, I am sending 1 request in 1 second for 900
> seconds.
> So it should be 900 samples.
>
> Please help me in understanding the relation of samples and the setup I
> have done.
>
> If I need only 900 samples, what should be changed in configuration?
>
>


Re: [jmeter-plugins] Digest for jmeter-plug...@googlegroups.com - 5 updates in 1 topic

2018-06-05 Thread Ivan Rancati
Would the JSON extractor work?
https://jmeter.apache.org/usermanual/component_reference.html#JSON_Extractor

Perhaps you could summarize the XML conversion issue; the email thread
below is not easy to follow

best regards
Ivan

On Mon, May 28, 2018 at 7:47 PM Shay Ginsbourg  wrote:

> Dear Sebb,
>
> Could you please advise on the following general JSON problem and also on
> the specific conversion to XML issue ?
>
> Thanks a lot,
> Shay
>
>
>
> On Sat, May 26, 2018 at 11:51 PM  wrote:
>
> > jmeter-plug...@googlegroups.com
> > <
> https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/jmeter-plugins/topics>
> Google
> > Groups
> > <
> https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview
> >
> > <
> https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview
> >
> > Topic digest
> > View all topics
> > <
> https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/jmeter-plugins/topics
> >
> >
> >- jp@gc - JSON to XML Converter - sampler failed sanity test
> >
> <#m_3414628520850020878_m_-2605024735265322169_m_-3726385947292137170_group_thread_0>
> >- 5 Updates
> >
> > jp@gc - JSON to XML Converter - sampler failed sanity test
> > <
> http://groups.google.com/group/jmeter-plugins/t/d256a85d2cf67807?utm_source=digest&utm_medium=email
> >
> > Shay Ginsbourg : May 26 08:35AM +0300
> >
> > Is this a temporary situation?
> >
> > Jsons are increasingly important and have to be resupported.
> >
> > Thanks,
> >
> > Shay Ginsbourg
> > www.ginsbourg.com
> >
> > Andrey Pokhilko : May 26 10:16AM +0300
> >
> > This is permanent. JMeter core has got JSON components, so there is no
> > need in custom plugins anymore.
> >
> > --
> >
> > Andrey Pokhilko
> >
> > 26.05.2018 08:35, Shay Ginsbourg пишет:
> > Shay Ginsbourg : May 26 10:44AM +0300
> >
> > Sorry Andrey, I don’t understand.
> >
> > Can core-JMeter convert Json to XML ? and what can replace the deprecated
> > sampler ?
> >
> > Thank you.
> >
> >
> > Sent from Mail for Windows 10
> >
> > From: Andrey Pokhilko
> > Sent: Saturday, May 26, 2018 10:16
> > To: jmeter-plug...@googlegroups.com
> > Subject: Re: [jmeter-plugins] jp@gc - JSON to XML Converter - sampler
> > failedsanity test
> >
> > This is permanent. JMeter core has got JSON components, so there is no
> > need in custom plugins anymore.
> > --
> > Andrey Pokhilko
> > 26.05.2018 08:35, Shay Ginsbourg пишет:
> > Is this a temporary situation?
> >
> > Jsons are increasingly important and have to be resupported.
> >
> > Thanks,
> > Shay Ginsbourg
> > www.ginsbourg.com
> >
> > On Fri, May 25, 2018, 14:32 Andrey Pokhilko  wrote:
> > Hi,
> > JSON plugins are deprecated in favor of JMeter. There is deeper problem
> of
> > library clash with core JMeter, so we can't fix this issue, sorry.
> > --
> > Andrey Pokhilko
> > 25.05.2018 14:06, Shay Ginsbourg пишет:
> > json={ "name":"Shay", "test":"sanity", "run":1 }
> >
> > 2018-05-25 14:03:20,782 ERROR o.a.j.JMeter: Uncaught exception:
> > java.lang.NoClassDefFoundError: nu/xom/ParentNode
> > at
> >
> com.atlantbh.jmeter.plugins.jsontoxmlconverter.JSONToXMLConverter.convertToXML(JSONToXMLConverter.java:43)
> > ~[jmeter-plugins-json-2.6.jar:?]
> > at
> >
> com.atlantbh.jmeter.plugins.jsontoxmlconverter.JSONToXMLConverter.sample(JSONToXMLConverter.java:78)
> > ~[jmeter-plugins-json-2.6.jar:?]
> > at
> >
> org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490)
> > ~[ApacheJMeter_core.jar:4.0 r1823414]
> > at
> >
> org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416)
> > ~[ApacheJMeter_core.jar:4.0 r1823414]
> > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250)
> > ~[ApacheJMeter_core.jar:4.0 r1823414]
> > at java.lang.Thread.run(Unknown Source) [?:?]
> > Caused by: java.lang.ClassNotFoundException: nu.xom.ParentNode
> > at java.net.URLClassLoader.findClass(Unknown Source) ~[?:?]
> > at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
> > at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
> > ... 6 more
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "jmeter-plugins" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to jmeter-plugins+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > You received this message because you are subscribed to a topic in the
> > Google Groups "jmeter-plugins" group.
> > To unsubscribe from this topic, visit
> > https://groups.google.com/d/topic/jmeter-plugins/0laoXSz2eAc/unsubscribe
> .
> > To unsubscribe from this group and all its topics, send an email to
> > jmeter-plugins+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
> > --
> > You received this message because you are subscribed to the Google Groups
> > "jmeter-plugins" group.
> > To unsubscribe from this group and stop receiving ema

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

2018-05-17 Thread Ivan Rancati
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  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
>
>
>


Re: JMeter not showing runtime execution summary

2018-01-23 Thread Ivan Rancati
Probably you should try with JMeter 3.3

On Tue, Jan 23, 2018 at 1:08 PM, Pravesh Shrivastava <
pravesh.shrivast...@gmail.com> wrote:

> Yes, it is working in UI. And also giving me proper results in non GUI. The
> only thing is, I can't see the runtime summary
>
>
> > --
> > *From:* Pravesh Shrivastava 
> > *Sent:* Tuesday, January 23, 2018 11:38 AM
> > *To:* JMeter Users List
> > *Subject:* JMeter not showing runtime execution summary
> >
> > Hi Everyone,
> >
> > I am using JMeter 3.1 for Performance Testing for one of my projects.
> When
> > I start execution in non-GUI mode using command
> >
> > jmeter -n -t -l -e -o
> >
> > It is not showing the runtime execution summary. It is directly showing
> end
> > of execution message after finishing the execution.
> >
> > Is there any property to be enable to see the runtime execution summary?
> > Please suggest.
> >
> >
> > --
> > Thanks,
> > Pravesh Shrivastava
> >
> >
>


Re: timing difference for large (?) requests

2018-01-11 Thread Ivan Rancati
Very interesting. If I read right the numbers, the difference between
Fiddler and JMeter is in the latency

Time between begin and end of the server response: nearly identical
JMeter
Load time 37327-Latency 37272 = 55 ms
Fiddler
ServerDoneResponse: 15:08:26.210 - ServerBeginResponse: 15:08:26.158 = 52 ms

Latency: big difference
JMeter
37272 ms
Fiddler
ServerBeginResponse: 15:08:26.158 - ClientDoneRequest: 15:07:11.094 = 1m 15064
ms

It's a long shot, but could it have to do with the different "q" parameter
for quality in the Accept-Language header?
q = 0.9 for Fiddler, 0.5 for JMeter

cheers
Ivan


On Wed, Jan 10, 2018 at 11:32 PM, Alexander Podelko <
apode...@yahoo.com.invalid> wrote:

> Hi,
> Moving one my script to JMeter (3.3) I noticed a significant timing
> difference for some requests (between JMeter and measurements / other
> tools).
> For example, here is what I see in Fiddler for one request:
>
> POST http://xxx:9000/epm/ui-rest/v1/requests/52ea978d-e94d-
> 4d37-8d2d-5b9049bd2916/import HTTP/1.1Host: xxx:9000Connection:
> keep-aliveContent-Length: 157Accept: */*Origin: http://xxx:9000Timezone:
> America/DenverX-Requested-With: XMLHttpRequestUser-Agent: Mozilla/5.0
> (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/63.0.3239.132 Safari/537.36Content-Type: application/jsonReferer:
> http://xxx:9000/epm/?root=workarea&workarea=view&id=ui-
> rest%2Fv1%2Fviews%2F4c819c71-4cb4-4498-ad2d-7c93a3ec6b7dAccept-Encoding:
> gzip, deflateAccept-Language: en-US,en;q=0.9Cookie: EPM_Remote_User=b8e6T+
> U6DAXmDCZyx8WntMnvce/g39f2Di5KKPTe9yS2jvCmac6KM11weVtqKwEY; JSESSIONID=
> TZviFRa7mudww7e1LIFyialL8CIo6MZS2Nu9yjyw6AYUCObhMgCt!-236747468
> {"fileUri": "http://xxx:9000/epm/ui-rest/v1/requests/52ea978d-e94d-
> 4d37-8d2d-5b9049bd2916/attachments/importFile/b94d2b50-d529-4a01-afb9-
> 2bfdd0d78a4f" }
>
> Request Count:   1Bytes Sent:  950 (headers:793; body:157)Bytes
> Received:  7,065,667 (headers:550; body:7,065,117)
> ACTUAL PERFORMANCE--ClientConnected: 
> 15:06:58.147ClientBeginRequest:
> 15:07:11.094GotRequestHeaders: 15:07:11.094ClientDoneRequest:
> 15:07:11.094Determine Gateway: 16msDNS Lookup:  0msTCP/IP Connect: 0msHTTPS
> Handshake: 0msServerConnected: 15:07:10.964FiddlerBeginRequest:
> 15:07:11.095ServerGotRequest: 15:07:11.095ServerBeginResponse: 
> 15:08:26.158GotResponseHeaders:
> 15:08:26.158ServerDoneResponse: 15:08:26.210ClientBeginResponse: 
> 15:08:26.222ClientDoneResponse:
> 15:08:26.227
>  Overall Elapsed: 0:01:15.132
> RESPONSE BYTES (by Content-Type)--application/json:
> 7,065,117   ~headers~: 550
>
> and here is what I see in JMeter (from the same machine):
> POST http://xxx:9000/epm/ui-rest/v1/requests/b079bd62-4964-
> 4adf-8564-d35ec33d0993/import
> POST data:{"fileUri": "http://xxx:9000/epm/ui-rest/
> v1/requests/b079bd62-4964-4adf-8564-d35ec33d0993/attachments/importFile/
> 5eb5f197-ebfb-4de1-8238-35ad0060d857" }
>  Cookie Data:
> EPM_Remote_User=UngMo7mbHE9R5SdofArYMZO44fBaRL
> 3QcmxFT6e5kmnPp0a5QV5IbXoJFJmVCCzf; JSESSIONID=
> 7GHhvdbivYNGxwfwd2MPPbsoFpj3hzd5nGD4_nE1RjeaAx_TT1tG!-236747468
> Request Headers:Connection: keep-aliveReferer: http://xxx:9000/epm/?root=
> workarea&workarea=view&id=ui-rest%2Fv1%2Fviews%2F4c819c71-4cb4-4498-ad2d-
> 7c93a3ec6b7dAccept-Language: en-US,en;q=0.5Timezone:
> America/DenverX-Requested-With: XMLHttpRequestContent-Type:
> application/jsonAccept-Encoding: gzip, deflateUser-Agent: Mozilla/5.0
> (Windows NT 6.3; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0Accept:
> */*Content-Length: 157Host: xxx:9000
>
>
> Thread Name: Thread Group 1-1Sample Start: 2018-01-10 13:28:41 MSTLoad
> time: 37327Connect Time: 0Latency: 37272Size in bytes: 7065667Sent
> bytes:863Headers size in bytes: 550Body size in bytes: 7065117Sample Count:
> 1Error Count: 0Data type ("text"|"bin"|""): textResponse code: 200Response
> message: OK
> Response headers:HTTP/1.1 200 OKCache-Control: no-cache, no-store,
> max-age=0, must-revalidateDate: Wed, 10 Jan 2018 20:28:41 GMTPragma:
> no-cacheTransfer-Encoding: chunkedContent-Type: application/jsonExpires:
> 0Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCHP3P:
> X-CONTENT-TYPE-OPTIONS:nosniffX-XSS-Protection: 1;
> mode=blockAccess-Control-Allow-Headers: X-Requested-With,
> Content-TypeX-Content-Type-Options: nosniffAccess-Control-Allow-Origin:
> *Content-Language: en-USX-Powered-By: Servlet/2.5 JSP/2.1X-Frame-Options:
> DENY
>
> HTTPSampleResult fields:ContentType: application/jsonDataEncoding: null
>
> So in JMeter it takes 37 sec while in the real product (and another load
> testing tool) it takes ab. 75 sec. I see some difference in other requests
> too, but this one looks as a better example (my guess is that the
> difference becomes bigger for larger requests - and this one returns 7M).
> Everything inside a single data center, latency (ping) < 1 ms.
> Any thoughts?
> Thanks,Alex
>


Re: Gateway Timeout Errors

2017-12-22 Thread Ivan Rancati
hi,

if you run your Thread Group for longer than the ramp-up time, you will
have concurrency.
That's a normal setup for a load test. Or have I misunderstood the question?

The reason for the errors could be in the web application (see the server
logs) or the web server that's in front of it (see its logs)

Best,

On Tue, Dec 19, 2017 at 9:44 AM, Riji K  wrote:

> Hi All,
>
> I'm running a 50 User concurrent test with 50seconds RUT on a
> web-application, which results in higher number of "Gateway Timeout
> Errors".
>
> With Increasing the ramp-up to 1000 seconds RUT, the errors were not
> observed.
>
> What would be the reason for this. I think 50 seconds  ramp-up is
> sufficient for the user. Also would i like to know if i give 1000 seconds
> ramp-up for 50 user, will be any concurrency.?
>
> Please help me.
>
> Regards,
> Riji K
>


Re: Java 9?

2017-11-03 Thread Ivan Rancati
for what it's worth:
with Linux (Kali), Jmeter nightly 1814153 and the Oracle jdk 9.0.1 I can
open the attachment in Bug 61721 (dmcs_171_modified.jmx)
I can run the .jmx as well

best regards
Ivan

On Fri, Nov 3, 2017 at 9:34 PM, Alexander Podelko <
apode...@yahoo.com.invalid> wrote:

>  Bug 61721 - can't open a script with Java 9
>
> On Friday, November 3, 2017, 3:30:14 PM EDT, Philippe Mouawad <
> philippe.moua...@gmail.com> wrote:
>
>  Hello Alexander,
> JMeter 3.3 will not work with Java9 as per release notes.
>
> Nightly build works for me with Java 9 on MacOsX with Oracle Jdk.
>
> There might be some issue in windows shell remaining.
>
> Could you file a bug and attach:
> - jmeter.log
> - info about your configuration (java version...)
> - show the resulting command line launched
>
> Thanks
>
> On Friday, November 3, 2017, Alexander Podelko  >
> wrote:
>
> >  Nightly build as apache-jmeter-r1814153 ?
> > Getting the following error trying to open a script:
> >  2017-11-03 14:49:47,161 INFO o.a.j.g.a.Load: Loading file:
> > C:\projects\JMeter\dmcs_171_modified.jmx2017-11-03 14:49:47,162 INFO
> > o.a.j.s.FileServer: Set new base='C:\projects\JMeter'2017-11-03
> > 14:49:47,339 ERROR o.a.j.JMeter: Uncaught exception: java.lang.
> ExceptionInInitializerError:
> > null at com.thoughtworks.xstream.XStream.setupConverters(
> XStream.java:989)
> > ~[xstream-1.4.10.jar:1.4.10] at com.thoughtworks.xstream.
> > XStream.(XStream.java:592) ~[xstream-1.4.10.jar:1.4.10] at
> > com.thoughtworks.xstream.XStream.(XStream.java:514)
> > ~[xstream-1.4.10.jar:1.4.10] at com.thoughtworks.xstream.
> > XStream.(XStream.java:483) ~[xstream-1.4.10.jar:1.4.10] at
> > com.thoughtworks.xstream.XStream.(XStream.java:429)
> > ~[xstream-1.4.10.jar:1.4.10] at com.thoughtworks.xstream.
> > XStream.(XStream.java:382) ~[xstream-1.4.10.jar:1.4.10] at
> > org.apache.jmeter.save.SaveService$XStreamWrapper.<
> init>(SaveService.java:82)
> > ~[ApacheJMeter_core.jar:r1814153] at org.apache.jmeter.save.
> > SaveService$XStreamWrapper.(SaveService.java:80)
> > ~[ApacheJMeter_core.jar:r1814153] at org.apache.jmeter.save.
> > SaveService.(SaveService.java:113) ~[ApacheJMeter_core.jar:
> r1814153]
> > at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:130)
> > ~[ApacheJMeter_core.jar:r1814153] at org.apache.jmeter.gui.action.
> > Load.loadProjectFile(Load.java:102) ~[ApacheJMeter_core.jar:r1814153] at
> > org.apache.jmeter.gui.action.Load.doActionAfterCheck(Load.java:89)
> > ~[ApacheJMeter_core.jar:r1814153] at org.apache.jmeter.gui.action.
> > AbstractActionWithNoRunningTest.doAction(AbstractActionWithNoRunningTes
> t.java:45)
> > ~[ApacheJMeter_core.jar:r1814153] at org.apache.jmeter.gui.action.
> > ActionRouter.performAction(ActionRouter.java:88)
> ~[ApacheJMeter_core.jar:r1814153]
> > at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(
> ActionRouter.java:70)
> > ~[ApacheJMeter_core.jar:r1814153] at java.awt.event.
> > InvocationEvent.dispatch(Unknown Source) ~[?:?] at java.awt.EventQueue.
> dispatchEventImpl(Unknown
> > Source) ~[?:?] at java.awt.EventQueue.access$500(Unknown Source) ~[?:?]
> > at java.awt.EventQueue$3.run(Unknown Source) ~[?:?] at
> > java.awt.EventQueue$3.run(Unknown Source) ~[?:?] at java.security.
> > AccessController.doPrivileged(Native Method) ~[?:?] at java.security.
> > ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
> > Source) ~[?:?] at java.awt.EventQueue.dispatchEvent(Unknown Source)
> > ~[?:?] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
> > Source) [?:?] at java.awt.EventDispatchThread.
> pumpEventsForFilter(Unknown
> > Source) [?:?] at java.awt.EventDispatchThread.
> pumpEventsForHierarchy(Unknown
> > Source) [?:?] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> > [?:?] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:?]
> at
> > java.awt.EventDispatchThread.run(Unknown Source) [?:?]Caused by:
> > java.lang.reflect.InaccessibleObjectException: Unable to make field
> > private final java.util.Comparator java.util.TreeMap.comparator
> accessible:
> > module java.base does not "opens java.util" to unnamed module @554e218 at
> > java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
> > ~[?:?] at java.lang.reflect.AccessibleObject.
> checkCanSetAccessible(Unknown
> > Source) ~[?:?] at java.lang.reflect.Field.checkCanSetAccessible(Unknown
> > Source) ~[?:?] at java.lang.reflect.Field.setAccessible(Unknown Source)
> > ~[?:?] at com.thoughtworks.xstream.core.util.Fields.locate(Fields.
> java:40)
> > ~[xstream-1.4.10.jar:1.4.10] at com.thoughtworks.xstream.
> > converters.collections.TreeMapConverter.(
> TreeMapConverter.java:50)
> > ~[xstream-1.4.10.jar:1.4.10] ... 29 more
> >
> >
> > Thanks,Alex
> >
> >On Friday, November 3, 2017, 2:16:54 PM EDT, Antonio Gomes Rodrigues <
> > ra0...@gmail.com > wrote:
> >
> >  Hi
> >
> > Already modified
> >
> > Have you tested the futur 3.4 release  ?
> >
> > L

Re: [E] Re: Prompt for Authentication with JMeter not with browser

2017-07-19 Thread Ivan Rancati
hi,

Some generic troubleshooting you can try.

Assuming I understand the problem (authentication popup from another
domain/url), you have 3 scenarios to try:
- Manually accessing the webpage with Firefox
- Manually accessing the webpage with another browser in private/incognito
mode, after clearing all cookies/stored passwords
- Recording with JMeter

Can you compare the HTTP headers sent in the 3 cases and, if at all
possible, the server logs?

Also to doublecheck in your JMeter plan: Authorization, Cookie Manager and,
if applicable, the certificates you are using

Ivan

On Tue, Jul 18, 2017 at 11:55 AM, Kodali, Suman X <
suman.x.kod...@verizon.com> wrote:

> Thank you Ivan for the suggestion.
>
> I tried in another browser and I could record successfully for the first
> time. Recording the same flow the second time onwards - I get the
> login/authentication page again and it shows certification error alert in
> the browser.
>
> Any suggestions please - why this is happening subsequently but not
> initially?
>
> Thanks.
>
>
> -Original Message-
> From: Ivan Rancati [mailto:ivan.ranc...@gmail.com]
> Sent: Tuesday, July 18, 2017 11:52 AM
> To: JMeter Users List
> Subject: [E] Re: Prompt for Authentication with JMeter not with browser
>
> Perhaps Firefox saved a cookie or cached some other authentication info.
> What happens if you try from another browser (not previously used to
> access that page) in private/incognito mode?
>
> Ivan
>
> On Tue, Jul 18, 2017 at 8:00 AM,  wrote:
>
> > Some more info on this - the popup or child window/browser has a
> > different port (44312) in the URL.
> > Also, the URL of the popup is different from that of parent window.
> >
> > Thanks.
> >
> > -Original Message-
> > From: suman.x.kod...@verizon.com [mailto:suman.x.kod...@verizon.com]
> > Sent: Tuesday, July 18, 2017 9:47 AM
> > To: user@jmeter.apache.org
> > Subject: [E] Prompt for Authentication with JMeter not with browser
> >
> > Hi,
> >
> > While recording the script with JMeter, clicking on a link opens a
> > popup window which uses a different URL.
> > The authentication/login is prompted for this URL in the popup window
> > which is not the case when navigated to this popup from firefox browser.
> > With the browser/firefox, the popup window does not prompt for any
> > authentication and displays the target page.
> >
> > Any reason why the prompt for authentication when using recording with
> > JMeter please?
> >
> > Thank you.
> > Suman
> >
> > -
> > 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
>


Ignoring property 'property' in org.apache.jmeter.timers.ConstantThroughputTimer

2017-07-18 Thread Ivan Rancati
good afternoon,


While debugging a timer problem (details below) I came across this debug
message that I can’t figure out



2017-07-18 10:16:51,032 DEBUG o.a.j.t.TestBeanHelper: Preparing class
org.apache.jmeter.timers.ConstantThroughputTimer

2017-07-18 10:16:51,032 DEBUG o.a.j.t.TestBeanHelper: Setting calcMode=1

2017-07-18 10:16:51,032 DEBUG o.a.j.t.TestBeanHelper: Ignoring property
'property' in org.apache.jmeter.timers.ConstantThroughputTimer

2017-07-18 10:16:51,032 DEBUG o.a.j.t.TestBeanHelper: Setting
throughput=30.0

2017-07-18 10:16:51,032 WARN o.a.j.t.JMeterThread: The delay timer was
interrupted - probably did not wait as long as intended.





from public class TestBeanHelper:



for (PropertyDescriptor desc : descs) {

if (isDescriptorIgnored(desc)) {

if (log.isDebugEnabled()) {

log.debug("Ignoring property '{}' in {}",
desc.getName(), el.getClass().getCanonicalName());

}

continue;

...

I looked at ConstantThroughputTimer.java, but still not sure which property
is being ignored, and whether it's relevant. Most likely it's just the
comment and not related to my timing problem.



I’ll try to figure out the root cause “WARN o.a.j.t.JMeterThread: The delay
timer was interrupted - probably did not wait as long as intended”. Perhaps
the Constant Throughput Timer does not work correctly with these many
threads. If I find anything interesting, I’ll ask again on this mailing
list.





The test plan that causes the error looks so



setUp Thread Group

  OS Process sampler to restart networking

  OS Process sampler to start IPSec



Main Thread Group

  520 threads

  3 loops

  No rampup

  ConstantThroughputTimer (30 samplers per minute, all threads, the above
debug message appears with or without a comment in the timer)

  OS Process sampler to initiate an IPSec connection (the name of the
connection and the client certificate are derived from the thread number)

  OS Process sampler to close an IPSec connection

  Simple Data Writer

tearDown

  OS Process sampler to stop IPSec



I have tried to have the ConstantThroughputTimer both as a child of the
first OS Process sampler and at the same leve.



Version of the plan that works with no problems with a similar load



setUp Thread Group

  OS Process sampler to restart networking

  OS Process sampler to start IPSec

Main Thread Group

  520 threads

  Rampup 1040 seconds (so 1 sampler every 2 seconds)

  1 loop

  ConstantThroughputTimer (30 samplers per minute, all threads)

  OS Process sampler to initiate an IPSec connection

  Simple Data Writer

tearDown

  OS Process sampler to stop IPSec



Environment:

JMeter 3.2 r1790748

java 1.8.0_74

Ubuntu 16.04.2 LTS, running on text mode. The test plan is prepared on a
Windows7 computer and then copied. Perhaps this creates a discrepancy in
the resource bundle.



Thanks and best regards

Ivan


Re: Prompt for Authentication with JMeter not with browser

2017-07-17 Thread Ivan Rancati
Perhaps Firefox saved a cookie or cached some other authentication info.
What happens if you try from another browser (not previously used to access
that page) in private/incognito mode?

Ivan

On Tue, Jul 18, 2017 at 8:00 AM,  wrote:

> Some more info on this - the popup or child window/browser has a different
> port (44312) in the URL.
> Also, the URL of the popup is different from that of parent window.
>
> Thanks.
>
> -Original Message-
> From: suman.x.kod...@verizon.com [mailto:suman.x.kod...@verizon.com]
> Sent: Tuesday, July 18, 2017 9:47 AM
> To: user@jmeter.apache.org
> Subject: [E] Prompt for Authentication with JMeter not with browser
>
> Hi,
>
> While recording the script with JMeter, clicking on a link opens a popup
> window which uses a different URL.
> The authentication/login is prompted for this URL in the popup window
> which is not the case when navigated to this popup from firefox browser.
> With the browser/firefox, the popup window does not prompt for any
> authentication and displays the target page.
>
> Any reason why the prompt for authentication when using recording with
> JMeter please?
>
> Thank you.
> Suman
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Re: Getting Familiar with JMeter

2017-07-16 Thread Ivan Rancati
http://jmeter.apache.org/usermanual/get-started.html

Best regards

On Jul 16, 2017 6:44 AM, "Harsha Gayan"  wrote:

> Hello,
>  Can someone suggest me a small bug in the issue list to start
> working as a new comer to this project.
>
>
>  Thanks
>
>
> On Fri, Jul 14, 2017 at 12:54 AM, Harsha Gayan 
> wrote:
>
> > Hello, I'm computer engineering undergraduate and very much like to work
> > with this project. so, as a beginner i would like to know about jmeter
> and
> > how should i involve as a beginner. so, can anyone help me.
> >
> >  Thank you
> >
>


Re: JMeter-Master/Slave error

2017-06-22 Thread Ivan Rancati
Not sure. I would try remote execution with a normal JMeter listener, for
example a plain http request

If that works: there is a problem with the JMeter plugin you are using,
contact the plugin maintainer

If the remote http request also generates the below error: probably the
local and remote java vms cannot communicate, check that the ports you are
using are open (netstat on the remote and/or nc on the local)

On Thu, Jun 22, 2017 at 5:07 PM, Anil Gaur  wrote:

> I have added the plugin to slave as well but now i am getting below error.
>
>
> 2017-06-22 08:05:03,846 ERROR o.a.j.e.ClientJMeterEngine: Error in
> rconfigure() method java.rmi.MarshalException: error marshalling arguments;
> nested exception is:
> java.net.SocketException: Software caused connection abort: socket write
> error
>
>
>
>


Re: JMeter-Master/Slave error

2017-06-22 Thread Ivan Rancati
It looks like you're using a JMeter plugin. The file is not part of the
JMeter distribution and needs to be copied on all remote machines.
Normally in lib/ext

On Thu, Jun 22, 2017 at 10:55 AM, Anil Gaur  wrote:

> Hi Team,
>
>
> I am getting below error while running distributed testing using Jmeter.
>
>
>  ERROR o.a.j.e.ClientJMeterEngine: Error in rconfigure() method
> java.rmi.ServerException: RemoteException occurred in server thread; nested
> exception is:
> java.rmi.UnmarshalException: error unmarshalling arguments; nested
> exception is:
> java.lang.ClassNotFoundException: com.atlantbh.jmeter.plugins.
> jsonutils.jsonpathextractor.JSONPathExtractor (no security manager: RMI
> class loader disabled)
>
>
>
> Please let me know if any inputs for the same error.
>
>
>
>
> Thanks
> Anil Gaur
>
>
>


Re: How to handle/capture batch Jobs using Jmeter

2017-06-12 Thread Ivan Rancati
if you have access to the server running the processes,
you could look at the OS process sampler to check the execution times

And additionally a Database sampler, to validate that the correct values
are submitted.

On Mon, Jun 12, 2017 at 9:47 AM, Anil Gaur  wrote:

> Hi..
>
>
> I want to test batch processing in my application using Jmeter.
>
>
> Below are the Inputs:-
>
> 1) Batch jobs are ruining on back end and submitting the data to DB.
>
> 2) Every 30 min batch Jobs are executed.
>
> 3) Executed in Non UI mode.
>
>
>
> I want to do the performance for these batch jobs using Jmeter.
>
>
>
> Please let me know how its possible and if any reference document which
> can help me there.
>
>
>
> Thanks
>
> Anil Gaur
>


Re: Keystore not found

2017-03-31 Thread Ivan Rancati
For a quick test, you can also try to specify


javax.net.ssl.keyStore=

javax.net.ssl.keyStorePassword=

javax.net.ssl.keyStoreType=


directly from the command line (with -D)

Once that works, you can adjust your system.properties as suggested below

On Fri, Mar 31, 2017 at 11:35 AM, Stuart Kenworthy <
stuart.kenwor...@bjss.com> wrote:

> The first bit about keystore created OK, ignore that it is to do with the
> recorder/proxy keystore, not the playback one. Secondly have you provided
> the absolute path is system.properties and is your jmeter.properties
> referencing the correct version of system.properties?
>
>


Re: Summary and Dashboard report mismatched

2017-01-31 Thread Ivan Rancati
Good morning,

here are the guidelines
http://jmeter.apache.org/issues.html

hope this helps
Ivan

On Tue, Jan 31, 2017 at 2:35 AM, Pravesh Shrivastava <
pravesh.shrivast...@gmail.com> wrote:

> Hi Phillipe,
>
> I am not aware with the process how to log a defect in Bugzilla for JMeter.
> Though, I have screenshots, but if someone, who is acquainted with the
> process, can let me know the same. I will raise it for this issue.
>


Re: Error while doing API testing using JMeter

2017-01-19 Thread Ivan Rancati
Hello,

two ideas:

- what encoding are you using? In your jmeter.log file there should be a
line similar to
sampleresult.default.encoding is set to UTF-8 | ISO-8859-1 ...
>From your error message, it could be that the server expects utf-8 but the
request is differently encoded

- try to intercept the two outgoing requests, with a proxy such as
Webscarab or Fiddler, then compare them


Info you could provide to the mailing list:
- operating system
- version of Jmeter and jdk/jre
- implementation used in your http sampler (3.1, 4, java)

best regards
Ivan

On Thu, Jan 19, 2017 at 4:14 PM, Sankar Das <007bhabanisan...@gmail.com>
wrote:

> Hi,
>
> I am trying to do one api testing using Jmeter. When firing the same
> request from Postman I am getting proper response with response code 200.
>
> But when trying to do the same from JMeter getting 200 response code and
> success message but the request is not passing through. Whereas in Postman,
> it is passing and one orderid is gretting created.
>
> When checked in logs, it is saying message request is not in proper format
> and getting below error message.
>
> Error Massage:
>
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid
> UTF-8 middle byte 0x6b (at char #4353, byte #3999)
>
> What can I do to prevent this error. Please help.
>


Re: Not able to handle dynamic value

2016-12-08 Thread Ivan Rancati
Hi,

perhaps you can extract the key with the Regular Expression Extractor
http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor

best regards
Ivan


On Thu, Dec 8, 2016 at 2:54 PM, Pravesh Prajapati <
prajapati.prav...@gmail.com> wrote:

> Hi Team,
> I have script for one user, which places 10 order, now admin user process
> this 10 order and each order generates 10 unique key, now I have coorilated
> all this values and it is working fine.
>
> Now I am trying to place 100 record from single user & admin user tries to
> process 100 records so how can I get the 100 dynamic values.
> Do I have to correlate all 100 values or is there is any easy way.
> Please do reply.
>
> Thanks in advance
>
> --
> Regards,
> Pravesh prajapati.
> Mob:-9702600170
>


Re: 500 Server Error occurs only in JMeter, same POST is successful when submitted manually

2016-11-19 Thread Ivan Rancati
Hello,

some generic troubleshooting:
- do you have access to the server logs, to compare the successful request
and the one that generates the 500 Server Error?
- you could try to intercept the two outgoing requests, with a proxy such
as Webscarab or Fiddler, then compare them
- check/uncheck the "Use multipart/form data" option

Info you could provide to the mailing list:
- version of Jmeter and jdk/jre
- implementation used in your http sampler (3.1, 4, java)

best regards
Ivan

On Fri, Nov 18, 2016 at 8:23 PM, Hohmann, Kurt D 
wrote:

> In my script, I'm using a JSESSIONID instead of a cookie; the JSESSIONID
> is extracted using a HTTP URL Re-writing Modifier and I can confirm that
> the correct value (the one which appears in the response data from the
> login page) is being applied in the Request.
> e.g. POST https://qa67.ososinfo.org:446/Staff/staffdetail.xhtml;
> JSESSIONID=0655ca5420354753ae413984d34cfc27
>
> I'm also using a VIEWSTATE, which I'm extracting prior to running the
> remainder of the test steps by using a Regular Expression Extractor and
> setting the resulting variable as a parameter in the HTTP Request,
> e.g. javax.faces.ViewState=8d2%2BgOIseczB2FWSo74DqQfkmiYVaK73
> D8bnLTNWCx%2FB8EtE
>
> The problem is that I'm hitting a Response code: 500 | Response message:
> Internal Server Error every time I attempt a post with all of the
> applicable data.
>
> I tried running through the steps manually in a Firefox browser. I copied
> the contents of the Request tab from the failing page into a REST client,
> logged in using a separate tab of the same browser and grabbed the
> appropriate JSESSIONID and VIEWSTATE information, then posted with that
> info in place - and the manual post was successful.
>
> Am I missing something? Is JMeter requiring something to accomplish this
> POST that a I'm not seeing in a manual attempt?
>
> Happy to share any/all of what I'm seeing if it might be helpful in
> helping to troubleshoot.
>
> Thanks,
> Kurt
>


Re: Queries on memory consumption between JMeter and any other programming language

2016-11-17 Thread Ivan Rancati
hi,

a couple of ideas

Server side
Http
Take for example testing an api over http. The only difference between http
requests sent by different tools should be the "User agent" header; that
would be very unlikely to cause any difference (including memory usage) on
the server. If it did, I would consider it a defect on the web/application
server side implementation.
DB
JMeter uses standard Java libraries for DB samplers. So, unless one of the
libraries had a bug, for example not closing a connection (quite unlikely),
I would not expect differences on the db server.

Client side
Here is some info
https://wiki.apache.org/jmeter/JMeterPerformance
Perhaps you could perform similar measurement (for example with jconsole)
with Jmeter 3.0, your particular scenarios, and share your findings with
the community

Disclaimer: I'm just an average JMeter user, the JMeter devs or other users
might have more/better info

On Wed, Nov 16, 2016 at 9:40 PM, Sankar Das <007bhabanisan...@gmail.com>
wrote:

> Hello Everyone,
>
> Doing some api functional testing using JMeter. We can do it with any
> automated tool or any programming language also. But Does JMeter consumes
> less memory at both client and server side while executing?
>
> Similarly, I am making a database connection and executing some queries by
> using any programming language and JMeter, which consumes more memory in
> database server even for single user ?
>
> Thanks!
>


Re: Getting error while trying to run JDBC request

2016-11-15 Thread Ivan Rancati
You could try to telnet or netcat from the virtual box, on the specific
port the db is listening to.
If you get a "connection refused" it might indicate a firewall running on
CentOS, that allows the icmp port (ping) but not 3306, or whatever port the
DB communicates over.

On Tue, Nov 15, 2016 at 1:17 PM, Sankar Das <007bhabanisan...@gmail.com>
wrote:

> Hi,
>
> Trying to connect the oracle database running from a centos virtual
> machine. But getting error
> "Cannot create PoolableConnectionFactory (IO Error: The Network Adapter
> could not establish the connection)"
>
> I am able to run the same script from my local windows machine but not from
> the virtual box,
>
> Able to ping the jdbc url from the virtual box.
>
> Kindly help me on what exactly I am missing here.
>
> Thanks
>


Re: Issue in Jmeter setup in corporate proxy LAN.

2016-11-14 Thread Ivan Rancati
I assume the TMG client (installed on your machine or where else?) allows
you to use the proxy transparently.
If this is the case, I would ask the network team why you have to enter the
proxy information in your browser.

A Java app, like JMeter, sends a normal http request on the network. Unless
the proxy does some filtering on user agents or other http headers, I don't
understand how there can be problems for TMG and Java.

At any rate, the network team might be able to help by checking the proxy
logs in the following scenarios
- Successful http request from your browser (Maybe this will show that the
auth credentials include a domain/workgroup and not just your username. )
- http request from jmeter with no proxy settings
- http request from jmeter with proxy settings



best regards
Ivan

On Mon, Nov 14, 2016 at 2:00 PM, anusuya bhan  wrote:

> Hello,
>
> So I tried using credentials in the first place only and received an error
> saying it's incorrect.
>
> My netwrok team is somehow very confused as they are trying to deal with
> the fact that they have installed TMG client and according to that they say
> I should not use any proxy for Jmeter.
>
> They even concluded that there are some known issues with TMG and Java and
> claimed this issue to be one of that.
>
> Can I have some light on this?
>
> Thanks
> Anusuya
>
> On 14-Nov-2016 1:52 PM, "Stuart Barlow"  wrote:
>
> > Hi Anusuya,
> >
> > It looks as if the company proxy expects credentials. You need to provide
> > a username and password. This can be done with the JMeter -u [username]
> and
> > -a [password] command line options. Try giving your windows username and
> > password. If that doesn't work your network team can probably tell you
> what
> > to use instead.
> >
> > It might also explain why it works for you when you test on a local
> > network connection. Proxies are often configured to be skipped when
> > accessing local IP addresses and domains.
> >
> > Hope that works!
> >
> > Stuart
> >
> > On 14.11.2016 13:23, anusuya bhan wrote:
> >
> >> Hey Ivan,
> >>
> >> So let me try explain step by step what i did.
> >>
> >> 1) i first configured Jmeter to be accessed by the proxy server which i
> >> see
> >> in my IE as configured.
> >> command line - *jmeter -H proxyserver -P 8080*
> >>
> >> Jmeter launches successfully
> >>
> >> 2) Now all i do is add a thread group followed by adding a http requests
> >> default having - the application name eg : xyz.com under the Web server
> >> section
> >>
> >> 3) Now i add a sampler HTTP sampler and add */login.do *under path so
> >> basically, the page i want to hit is *xyz.com/login.do
> >> <http://xyz.com/login.do>*
> >>
> >> 4) Add a listener and run the thread.
> >>
> >> *Error i get : Response code: 407*
> >> *Response message: Proxy Authentication Required ( Forefront TMG
> requires
> >> authorization to fulfill the request. Access to the Web Proxy filter is
> >> denied.  )*
> >>
> >> *Response headers:*
> >> *HTTP/1.1 407 Proxy Authentication Required ( Forefront TMG requires
> >> authorization to fulfill the request. Access to the Web Proxy filter is
> >> denied.  )*
> >> *Via: 1.1 SM80208*
> >> *Proxy-Authenticate: Negotiate*
> >> *Proxy-Authenticate: Kerberos*
> >> *Proxy-Authenticate: NTLM*
> >> *Connection: close*
> >> *Proxy-Connection: close*
> >> *Pragma: no-cache*
> >> *Cache-Control: no-cache*
> >> *Content-Type: text/html*
> >> *Content-Length: 713*
> >>
> >> Is the Issue clearer now or am I confusing you?
> >>
> >> If you could tell me if i am doing something wrong, or should i ask
> >> something from my Network Team. If the latter how do i put it across
> them?
> >>
> >> PS: I can successfully access the same application via Jmeter in my
> >> personal network with same settings.
> >>
> >> Kind Regards
> >>
> >> Anusuya Bhan
> >>
> >> On Mon, Nov 14, 2016 at 12:45 PM, Ivan Rancati 
> >> wrote:
> >>
> >> Hello,
> >>>
> >>> the proxy server info you enter in JMeter should not be your machine.
> >>> It should be your corporate/company proxy. Basically what your browser
> is
> >>> normally configured for accessing a web site.
> >>>
> >>> I would suggest to try a simple (manually entered, no script record

Re: Issue in Jmeter setup in corporate proxy LAN.

2016-11-14 Thread Ivan Rancati
Hello,

the proxy server info you enter in JMeter should not be your machine.
It should be your corporate/company proxy. Basically what your browser is
normally configured for accessing a web site.

I would suggest to try a simple (manually entered, no script recording)
http request first, before you try the recorder.

If the documentation does not help, then I haven't understood your network
setup, and somebody else will have to jump in.

http://jmeter.apache.org/usermanual/get-started.html#proxy_server to set up
JMeter to use your corporate proxy. You need to do this to run JMeter
scripts.

http://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder
to set up the browser to use JMeter (running on your machine) as a proxy.
You need to do this only if your want to use the script recorder

best regards
Ivan

On Mon, Nov 14, 2016 at 11:37 AM, anusuya bhan  wrote:

> Hello,
>
> Please find my inline response.
>
> Thanks
> Anusuya
>
> On 14-Nov-2016 10:37 AM, "Ivan Rancati"  wrote:
> >
> > Hello,
> >
> > Is it possible that there is some confusion between the JMeter script
> > recorder and using the company proxy in JMeter?
> > You could try one step at a time
> >
> > 1) Can JMeter access the site you want to test?
>
> Jmeter can't access any site  from my system that's within company proxy.
>
> Also when you say company proxy what is the setting you mentioning. You
> taking about starting Jmeter with proxy server port number and user name
> password
>
> Proxy server should be my machine .
> is that correct, in my case?
>
> I did that I start Jmeter but after that when I do the below settings for
> recording , jmeter doesn't do anything
>
> > Enter your company proxy info in JMeter (see
> > http://jmeter.apache.org/usermanual/get-started.html#proxy_server) then
> try
> > a simple http request. No recording yet
> >
> > If that works as expected
> >
> > 2) Configure the recording proxy (see
> >
> http://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_
> Script_Recorder
> > )
> >
> >
> > best regards
> > Ivan
> >
>


Re: Issue in Jmeter setup in corporate proxy LAN.

2016-11-14 Thread Ivan Rancati
Hello,

Is it possible that there is some confusion between the JMeter script
recorder and using the company proxy in JMeter?
You could try one step at a time

1) Can JMeter access the site you want to test?
Enter your company proxy info in JMeter (see
http://jmeter.apache.org/usermanual/get-started.html#proxy_server) then try
a simple http request. No recording yet

If that works as expected

2) Configure the recording proxy (see
http://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder
)


best regards
Ivan

On Mon, Nov 14, 2016 at 3:59 AM, anusuya bhan  wrote:

> Hi Team,
>
> Could you please help me in the below issue?
>
> We have installed Apache Jmeter 3.0 in a corporate proxy network, however
> this is unable to do any actions in the network.  On requesting of enabling
> firewall for the same, as currently Jmeter cannot record any applications .
> Network team confirms to have completed the same request however issue
> still exists.
>
> ON further investigation  Network team has given the below comments :
>
> Our SOCKS proxy client is expecting direct communication to the destination
> IP/port to be able to intercept and handle the communication. This is not
> happening as the browser is set to proxy localhost:8080 (jmeter
> requirement). Our guess is the communication is then routed to standard
> internet proxies instead of SOCKS proxy. We can’t guarantee jmeter
> compatibility with our SOCKS proxy and further investigation and tests are
> required.
>
> Can you help me if the above identification is true, or is there some
> workaround that i can suggest my Network Team.
>
> Require your inputs at the earliest.
>
> Kind Regards
>
> Anusuya Bhan
>
> +4915163130716
>


Re: Variable Name must not be null

2016-11-11 Thread Ivan Rancati
Not sure, but quick to check:
in the JDBC Sampler and JDBC Connection Configuration, under "Variable name
bound to pool", is perhaps "Variable Name" empty?

best regards
Ivan

On Fri, Nov 11, 2016 at 7:59 PM, kyle Hailey  wrote:

> running into an error
>
> java.lang.IllegalArgumentException: Variable Name must not be
> null
>
> for simple statement like
>
>  delete from authors where id in (  select id from authors limit 1 )
>
> Any thoughts? I've googled around and not found much.
> I have it set up as an "Query Type :  Update Statement"
> Not sure if that's right. Haven't found much info on query type.
>
> This query works fine in psql
>
> Thanks
> Kyle
>


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

2016-10-21 Thread Ivan Rancati
I'm also not sure I understand the problem.
Assuming I do

1)
use more threads, for example 125, and add a Throughput Controller


2)
There was a similar discussion 3 years ago
http://jmeter.512774.n5.nabble.com/Coordinated-Omission-CO-possible-strategies-tt5718456.html#none

br,
Ivan


On Fri, Oct 21, 2016 at 8:46 AM, Deepak Goel  wrote:

> I am not sure I understand your problem correctly...
>
> Why would the load be reduced to 99 threads? As the threads which haven't
> finished their earlier cycle are still running...they are spending time
> finishing their previous request (which would also indicate a problem with
> the server responding the request)
>
> Hey
>
>


Re: Getting an error -401 - Unauthorized: Access is denied due to invalid credentials

2016-10-17 Thread Ivan Rancati
Hello,

from your log file I see you use JMeter 2.13
For further troubleshooting, you could try debug logging and Jmeter 3.0
Also from your log file, I see that Jmeter attempts to load a keystore but
does not find the file. Is this relevant to your test (i.e. do you need to
provide a client certificate)?

br,
Ivan


On Mon, Oct 17, 2016 at 5:51 AM, sachin Dhote  wrote:

> Hi Sankar,
>
> I had already provided the authentication in authorization manager and used
> HTTP proxy server for recording but still getting an error.
>
> Regards
> Sachin


Re: HttpClient SSL Handshake and self-signed certificate

2016-10-14 Thread Ivan Rancati
hi,
No idea whether JMeter validates the hostname. I thought not, as I have
some tests that access the server by IP address, and the server certificate
has a hostname.
A couple of ideas to try to narrow down the problem

- check jmeter.log
You should see some INFO entries from jmeter.util.SSLManager, see if your
keystore and aliases are loaded as expected.
- java keytool problems
I once could not get the keytool to work (it might have been a OpenJDK on
Linux issue, I did not get around to try with Oracle JDK); I exported
certificate/key to a .p12 file instead and it worked.

Btw, for quicker troubleshooting, you can also pass all the SSL options
directly from the command line, as opposite to editing jmeter.properties,
i.e.
-Djavax.net.ssl.keyStoreType=PKCS12

hope this helps
Ivan

On Fri, Oct 14, 2016 at 12:35 PM, Stuart Barlow 
wrote:

> Hi
>
> In test environments self-signed certificates are common and they're not
> always created in the right way. I'm trying to connect via HTTPS Request to
> a website that uses a self-signed cert where the hostname is not correctly
> set inside the cert. The CN field has a value like "test-web-cert" and that
> cert is also used by two different domains. It's deployed for both
> https://www.test1.thirdpartywebsite.com and https://www.test2.thirdpartywe
> bsite.com
>
> I can access these websites from a browser and can view the certificate
> this way. The browser is more forgiving than JMeter. I tried exporting it
> from the browser and importing into the truststore used by JMeter (I set
> javax.net.ssl.trustStore and javax.net.ssl.trustStorePassword in
> system.properties) and also into the cacerts in my JRE lib/security folder.
> Both of these didn't work.
>
> I always see this in the Response Tab of a Results Tree:
>
> java.net.SocketTimeoutException: Read timed out
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.socketRead(SocketInputStream.java
> :116)
> at java.net.SocketInputStream.read(SocketInputStream.java:170)
> at java.net.SocketInputStream.read(SocketInputStream.java:141)
> at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
> at sun.security.ssl.InputRecord.read(InputRecord.java:503)
> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.
> java:973)
> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSo
> cketImpl.java:1375)
> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.
> java:1403)
> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.
> java:1387)
> at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocke
> t(SSLSocketFactory.java:573)
> at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocke
> t(SSLSocketFactory.java:447)
> at org.apache.jmeter.protocol.http.sampler.LazySchemeSocketFact
> ory.createLayeredSocket(LazySchemeSocketFactory.java:121)
> at org.apache.http.impl.conn.DefaultClientConnectionOperator.
> updateSecureConnection(DefaultClientConnectionOperator.java:219)
> at org.apache.http.impl.conn.ManagedClientConnectionImpl.layerP
> rotocol(ManagedClientConnectionImpl.java:421)
> at org.apache.jmeter.protocol.http.sampler.MeasuringConnectionM
> anager$MeasuredConnection.layerProtocol(MeasuringConnectionM
> anager.java:152)
> at org.apache.http.impl.client.DefaultRequestDirector.establish
> Route(DefaultRequestDirector.java:815)
> at org.apache.http.impl.client.DefaultRequestDirector.tryConnec
> t(DefaultRequestDirector.java:616)
> at org.apache.http.impl.client.DefaultRequestDirector.execute(D
> efaultRequestDirector.java:447)
> at org.apache.http.impl.client.AbstractHttpClient.doExecute(Abs
> tractHttpClient.java:884)
> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos
> eableHttpClient.java:82)
> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos
> eableHttpClient.java:55)
> at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeR
> equest(HTTPHC4Impl.java:619)
> at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(
> HTTPHC4Impl.java:379)
> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sam
> ple(HTTPSamplerProxy.java:74)
> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.samp
> le(HTTPSamplerBase.java:1146)
> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.samp
> le(HTTPSamplerBase.java:1135)
> at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(
> JMeterThread.java:465)
> at org.apache.jmeter.threads.JMeterThread.processSampler(JMeter
> Thread.java:410)
> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> :241)
> at java.lang.Thread.run(Thread.java:745)
>
> My theory at the moment is that the SSL handshake is dropped because of
> hostname validation. I'm trying to connect to
> htt

Re: HTTP PUT bytes output does NOT include the uploaded file size

2016-10-13 Thread Ivan Rancati
Hello,

quick feedback on the UI.
in the "Sample Result Save Configuration" dialog box there is a new
checkbox (Save sent bytes count).
Perhaps the existing checkbox (Save bytes count) could be renamed to "Save
received bytes count" for extra clarity.

The same goes for the headers of the generated .csv file, but perhaps
renaming an existing header might break compatibility with existing
reports.

thanks for the enhancement and best regards
Ivan

On Sun, Oct 9, 2016 at 5:24 PM, Philippe Mouawad <
p.moua...@ubik-ingenierie.com> wrote:

> Hello,
> Enhancement implemented in :
> https://bz.apache.org/bugzilla/show_bug.cgi?id=60229
>
> You can test it and give feedback using nightly build:
> - http://jmeter.apache.org/nightly.html
>
> Regards
> Philippe M.
>
>
> --
> Cordialement.
> Philippe Mouawad.
> Ubik-Ingénierie
>
> UBIK LOAD PACK Web Site <http://www.ubikloadpack.com/>
>
> UBIK LOAD PACK on TWITTER <https://twitter.com/ubikloadpack>
>
>
> On Mon, Oct 3, 2016 at 5:18 PM, Ahmad A  wrote:
>
> > Hi I would argue that many users will benefit from adding a metric to
> > calculate the sent bytes for PUT and POST.
> > I was wondering can someone create a bug for this (or point me to how to
> > create one? I have not created a jmeter bug before).
> > Is there anytime line for this functionality?
> > thanks
> > Ahmad
> >
> > > Subject: Re: HTTP PUT bytes output does NOT include the uploaded file
> > size
> > > To: user@jmeter.apache.org
> > > From: ser...@bosoconsulting.it
> > > Date: Sat, 1 Oct 2016 21:36:34 +0200
> > >
> > > HI ,
> > >
> > > thumbs up for a new metric measuring output bytes.
> > > It should not break any current report, but  I have this need very
> often.
> > > It is a common requirement for many application types like document
> > management.
> > > Also, it is not so simple to forecast the output size, when considering
> > cookies, headers, content compression, etc.
> > >
> > > Regards
> > > Sergio
> > >
> > > Il 01/10/2016 14.57, Philippe Mouawad ha scritto:
> > > > Hello,
> > > > See discussion "Add a new metric : sent bytes", there have been some
> > > > feedback on this proposal.
> > > >
> > > > Even if it's some work, I believe it should be here.
> > > > I am often asked to provide the outgoing traffic from JMeter.
> > > > To provide it I have to rely on 3rd party tools.
> > > > It would be nice to have it as we currently have a report that graphs
> > > > incoming bytes.
> > > >
> > > > Regards
> > > >
> > > > On Sat, Oct 1, 2016 at 2:52 PM, sebb  wrote:
> > > >
> > > >> On 1 October 2016 at 08:35, Ivan Rancati 
> > wrote:
> > > >>> I would suggest:
> > > >>>
> > > >>> write a sampler in Java that does the http put, then you can access
> > the
> > > >>> Response object and set the size to a value you specify.
> > > >>> I think it would also work with the scripting samples (like
> > Beanshell,
> > > >>> Javascript)
> > > >>>
> > > >>> I personally don't think there is anything to fix, as all samplers
> > return
> > > >>> the size of the response, and it would be confusing to have a model
> > where
> > > >>> the size is sometimes the request, sometimes the response, or a mix
> > of
> > > >> the
> > > >>> two. I'm a JMeter user, not a developer, so that's just my opinion,
> > maybe
> > > >>> I'm missing something obvious
> > > >> You have put it very well.
> > > >> JMeter measures the server response size.
> > > >>
> > > >> I suppose there could be an option to include the request size, but
> > > >> that would be a fair amount of work to add.
> > > >> It's obviously not a huge need, otherwise there would have been more
> > > >> requests to add it (and maybe a patch or two).
> > > >>
> > > >> Note that the size of file uploads will generally be known by the
> > > >> tester, so can be allowed for if necessary.
> > > >> Whereas the server response size is not known until the request
> > completes.
> > > >>
> > > >>> On Fri, Sep 30, 2016 at 8:54 PM, Ahmad A 
> > wrote:
> >

Re: Getting an error -401 - Unauthorized: Access is denied due to invalid credentials

2016-10-12 Thread Ivan Rancati
Hallo,

as far as I remember, in the Authorization Manager you have to select
BASIC_DIGEST, and then specify either a domain or a realm (it's been a
while, so I forgot which of the two, sorry).

I think this has been discussed already on jmeter-user, hence my suggestion
to search the mailing list.

best regards
Ivan

On Wed, Oct 12, 2016 at 8:13 AM, sachin Dhote  wrote:

> HI Ivan,
>
> Thanks for reply.
>
> But I am able to see only 2 types, 'BASIC_DIGEST' and 'KERBEROS' only. NTLM
> is not available in drop down box.
>
> I am not clear about Realm field, what to mentioned there.
>
> Thanks and regards
> Sachin
>
> On Wed, Oct 12, 2016 at 10:57 AM, Ivan Rancati 
> wrote:
>
> > From your log, it appears the server requires NTLM authentication, not
> > basic
> >
> > 2016/10/12 10:27:16 INFO  -
> > org.apache.commons.httpclient.HttpMethodDirector: Failure authenticating
> > with NTLM @fsad1.flextronics.com:443
> >
> > I think it can be done, you will have to specify a realm as well as
> > user/password, try to search this mailing list for details.
> >
> > One archive for the JMeter-User mailing list is here
> > http://jmeter.512774.n5.nabble.com/JMeter-User-f512775.html
> >
> > On Wed, Oct 12, 2016 at 7:01 AM, sachin Dhote  wrote:
> >
> > > Hi Guys,
> > >
> > > I am getting below error for website i am tetsing;
> > > *"401 - Unauthorized: Access is denied due to invalid credentials."*
> > >
> > > I have used "HTTP Autherization Manager" in my script with all details
> > > i.e. Base URL,User name,password,Mechanisam=BSAIC_DIGEST"
> > >
> > > in script I used Implementation = HTTPCLient3,1, for others script
> giving
> > > some other error.
> > >
> > > Log file is attached here.
> > >
> > > Could you please suggest me as solution on this problem
> > >
> > >
> > > Thanks and Regards
> > > Sachin
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> > > For additional commands, e-mail: user-h...@jmeter.apache.org
> > >
> >
>


Re: Getting an error -401 - Unauthorized: Access is denied due to invalid credentials

2016-10-11 Thread Ivan Rancati
Actually, the domain/realm for NTLM are also described in the Jmeter Docs

http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Authorization_Manager



On Wed, Oct 12, 2016 at 7:27 AM, Ivan Rancati 
wrote:

> From your log, it appears the server requires NTLM authentication, not
> basic
>
> 2016/10/12 10:27:16 INFO  - org.apache.commons.httpclient.HttpMethodDirector:
> Failure authenticating with NTLM @fsad1.flextronics.com:443
>
> I think it can be done, you will have to specify a realm as well as
> user/password, try to search this mailing list for details.
>
> One archive for the JMeter-User mailing list is here
> http://jmeter.512774.n5.nabble.com/JMeter-User-f512775.html
>
> On Wed, Oct 12, 2016 at 7:01 AM, sachin Dhote  wrote:
>
>> Hi Guys,
>>
>> I am getting below error for website i am tetsing;
>> *"401 - Unauthorized: Access is denied due to invalid credentials."*
>>
>> I have used "HTTP Autherization Manager" in my script with all details
>> i.e. Base URL,User name,password,Mechanisam=BSAIC_DIGEST"
>>
>> in script I used Implementation = HTTPCLient3,1, for others script giving
>> some other error.
>>
>> Log file is attached here.
>>
>> Could you please suggest me as solution on this problem
>>
>>
>> Thanks and Regards
>> Sachin
>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
>> For additional commands, e-mail: user-h...@jmeter.apache.org
>>
>
>


Re: Getting an error -401 - Unauthorized: Access is denied due to invalid credentials

2016-10-11 Thread Ivan Rancati
>From your log, it appears the server requires NTLM authentication, not basic

2016/10/12 10:27:16 INFO  -
org.apache.commons.httpclient.HttpMethodDirector: Failure authenticating
with NTLM @fsad1.flextronics.com:443

I think it can be done, you will have to specify a realm as well as
user/password, try to search this mailing list for details.

One archive for the JMeter-User mailing list is here
http://jmeter.512774.n5.nabble.com/JMeter-User-f512775.html

On Wed, Oct 12, 2016 at 7:01 AM, sachin Dhote  wrote:

> Hi Guys,
>
> I am getting below error for website i am tetsing;
> *"401 - Unauthorized: Access is denied due to invalid credentials."*
>
> I have used "HTTP Autherization Manager" in my script with all details
> i.e. Base URL,User name,password,Mechanisam=BSAIC_DIGEST"
>
> in script I used Implementation = HTTPCLient3,1, for others script giving
> some other error.
>
> Log file is attached here.
>
> Could you please suggest me as solution on this problem
>
>
> Thanks and Regards
> Sachin
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>


Re: HTTP PUT bytes output does NOT include the uploaded file size

2016-10-07 Thread Ivan Rancati
Hello,

the guidelines for entering enhancements requests in Bugzilla are here
http://jmeter.apache.org/issues.html

there are also links to existing enhancement requests and bugs, it might be
good to check if there's already a similar request
hope it helps


On Mon, Oct 3, 2016 at 5:18 PM, Ahmad A  wrote:

> Hi I would argue that many users will benefit from adding a metric to
> calculate the sent bytes for PUT and POST.
> I was wondering can someone create a bug for this (or point me to how to
> create one? I have not created a jmeter bug before).
> Is there anytime line for this functionality?
> thanks
> Ahmad
>


Re: HTTP PUT bytes output does NOT include the uploaded file size

2016-10-01 Thread Ivan Rancati
I would suggest:

write a sampler in Java that does the http put, then you can access the
Response object and set the size to a value you specify.
I think it would also work with the scripting samples (like Beanshell,
Javascript)

I personally don't think there is anything to fix, as all samplers return
the size of the response, and it would be confusing to have a model where
the size is sometimes the request, sometimes the response, or a mix of the
two. I'm a JMeter user, not a developer, so that's just my opinion, maybe
I'm missing something obvious

On Fri, Sep 30, 2016 at 8:54 PM, Ahmad A  wrote:

> Hi IvanThank you for your prompt response.
> The content-length that is being returned with the PUT request is actually
> 0
> Content-Length: 0
> So I am guessing Jmeter is calculating the response size of all the
> headers and text returned which is consistent with the 464 bytes recorded
> for all object PUTs. This calculation of bytes for PUT is not correct since
> the measurement needs to be the amount of data sent (PUT, POST) not
> received (GET).
> Is it possible to get this fixed??
> thanks
> Ahmad
>
>
> > From: ivan.ranc...@gmail.com
> > Date: Fri, 30 Sep 2016 20:39:46 +0200
> > Subject: Re: HTTP PUT bytes output does NOT include the uploaded file
> size
> > To: user@jmeter.apache.org
> >
> > I would imagine JMeter returns the size of the http response, not the
> size
> > of the uploaded data.
> > What does the Content-Length header return for your request?
> > I would imagine it's a constant number, regardless of how many bytes you
> PUT
> >
> > Example with wget, it's similar with curl
> > wget -S -O /dev/null --method=PUT
> > --body-data="123456789012345678901234567890
> 123456789012345678901234567890"
> > http://...
> >
> > best regards
> > Ivan
> >
>


Re: HTTP PUT bytes output does NOT include the uploaded file size

2016-09-30 Thread Ivan Rancati
I would imagine JMeter returns the size of the http response, not the size
of the uploaded data.
What does the Content-Length header return for your request?
I would imagine it's a constant number, regardless of how many bytes you PUT

Example with wget, it's similar with curl
wget -S -O /dev/null --method=PUT
--body-data="123456789012345678901234567890123456789012345678901234567890"
http://...

best regards
Ivan

On Fri, Sep 30, 2016 at 7:52 PM, Ahmad A  wrote:

> HiI am using HTTP PUT with HTTPClient4 implementation with different file
> sizes and then GET to retrieve them back.The JTL file is being populated
> correctly and showing the expected latency for both PUT and GET.
> On the other had, bytes capture in JTL is incorrect for PUT (But they are
> correct for GET).  Consequently this is causing the kb/s calculations to be
> incorrect since the bytes are incorrect for PUTs.
> Is that a configuration issue that I need to change on my side or is this
> a bug???
>
>
> Formatted sample of JTL output (see the contrast between the PUT and GET
> in bytes)timeStamp,elapsed,label,responseCode,responseMessage,
> threadName,dataType,success,failureMessage,bytes,
> grpThreads,allThreads,Latency,IdleTime2016/09/23 22:51:44.106,621,039_
> PUT20MBObj,201,Created,PUT20MBObj_ThrdGrp 
> 39-5,text,true,,464,6,6,xyz,02016/09/23
> 22:52:22.121,3511,040_PUT100MBObj,201,Created,PUT100MBObj_ThrdGrp
> 40-7,text,true,,464,1,1,xyz,02016/09/23 22:58:24.541,773,053_
> GET20MBObj,200,OK,GET20MBObj_ThrdGrp 
> 49-10,text,true,,20972023,1,1,xyz,02016/09/23
> 22:58:57.551,2697,054_GET100MBObj,200,OK,GET100MBObj_ThrdGrp
> 50-6,text,true,,104858104,1,1,xyz,0
>
>
> Thank you..
>
> Ahmad


Re: Reg. Source address option in HTTP sampler

2016-09-20 Thread Ivan Rancati
I think  Source address type should be "IP/Hostname" and not "Device IPv4"

Here is the documentation for the http sampler
http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request

Also, in the doc: "[Only for HTTP Request with HTTPClient implementation]",
so I am not sure whether the IP spoofing works with the Java implementation.


On Tue, Sep 20, 2016 at 1:22 PM, BL Sreekanth 
wrote:

> Here are the links to scripts
>
> http://i.imgur.com/UDjPUsD.png
> http://i.imgur.com/BIuro4l.png
>
> Regards,
> Sreekanth


Re: Reg. Source address option in HTTP sampler

2016-09-20 Thread Ivan Rancati
hi, a couple of comments/ideas

- I see you mention $ip. Could it be simply a typo instead of ${ip} ?
- What's currently selected in "Source address type" ?
- Are you sure your email from 9/15/16 was sent? It is quoted in your
reply, but I haven't seen it on the mailing list.
Because of that, it is unclear (at least to me) if your problem is now to
use IPv6 addresses, or that the same IP address is used for all the requests
- Attachments are filtered list by the mailing list. You might want to
upload the screenshot somewhere and provide a link

Best regards
Ivan

On Tue, Sep 20, 2016 at 8:31 AM, BL Sreekanth 
wrote:

> Hi,
>
> Any updates on how to address this issue.
> How do I ensure that I send requests from my client’s IPv6 address instead
> of IPv4 address?
>
> Thanks/Regards,
> Sreekanth.
>
>
> On 9/15/16, 4:55 PM, "BL Sreekanth"  wrote:
>
> Hi,
>
> I created a csv file with values for username and ip and specified the
> file in csv data set config
> The idea is, for each request the source ip address and username
> should be different.
>
> I ran the script and could see that the script is taking the username
> properly but ip address is not.
> The same ip address is being used for all the user requests.
>
> How I do ensure each request has a different source Ip address. I
> configured the NIC with multiple ip address and also configured each HTTP
> request to use $ip variable. (Screenshots attached)
>
> Still I can’t get each request to use a different source ip. Please
> let me know if any other settings are required
>
> Thanks,
> Sreekanth.
>
>


Re: Reg. Source address option in HTTP sampler

2016-09-13 Thread Ivan Rancati
Not sure an IP range can be specified (at least,

But you could use the thread number,
something like 192.168.1.${__threadNum}

regards
Ivan

On Tue, Sep 13, 2016 at 4:45 PM, BL Sreekanth 
wrote:

> Thank you for the response. I could see the source address option now. Can
> I specify ip address range here ?
>
> Regards,
> Sreekanth.


Re: Certificate

2016-09-10 Thread Ivan Rancati
I'm not completely sure what your scenario is, so apologies if the
following does not apply

1) You don't need a keystore in .jks format. With the
-Djavax.net.ssl.keyStoreType=PKCS12
switch, you can directly use the .p12 file from jmeter and avoid problems
with the Java keytool

2) you can use
openssl pkcs12 -info
to double check that the key is there, and the password is the expected one

best regards
Ivan

On Fri, Sep 9, 2016 at 5:36 PM, Felix Schumacher <
felix.schumac...@internetallee.de> wrote:

>
>
> Am 9. September 2016 14:36:55 MESZ, schrieb Monkey Beach <
> monkeybeac...@yahoo.es.INVALID>:
> >Hello everyone,I've a dubt related with a certificate and how to add it
> >to =
> >a jmeter test.I had read lot of documentation about how to include,
> >prepare=
> >, replace, etc certificates, but when I try to execute te test I found
> >the =
> >next problem:=C2=A0ERROR - jmeter.util.SSLManager: Problem loading
> >keystore=
> >: Cannot recover key java.security.UnrecoverableKeyException: Cannot
> >recove=
> >r key
> >
> >The scenario, I have a p12 certificate wich was imported as a keystore,
> >the=
> >result was good,
>
> Make sure, that you have imported the key/certificate pair. You might have
> imported the certificate, only.
>
> You could try to tell us, what you wanted to do with the key. I haven't
> understood, what you wanted to do, other than that you have got the above
> error message.
>
> Regards,
> Felix
>
> >I set parameters to the call of
> >jmeter.bat=C2=A0-Djavax.net.ssl.keyStore=3D=
> >C:\Users\MyUser\Downloads\keystoreHP.keystore
> >-Djavax.net.ssl.keyStorePassw=
> >ord=3D
> >(I see correctly in the log file)
> >I added to the jmeter script a =C2=A0csv data set configuration with
> >the va=
> >riable wich math with a keystore configuration item in the same script.
> >I search in the internet but always found that that error is related
> >with d=
> >e password, but the password is the correct.
> >Thanks for your help.And sorry if my english is some weak.
> >Monkey
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Re: Remote Testing with different external data files

2016-06-03 Thread Ivan Rancati
On Fri, Jun 3, 2016 at 5:03 AM, Ng Kok Chai  wrote:

> Thanks Sergio and Sebb, after I rename all the external data files with
> same name in JMeter Servers, it worked fine. But now I facing another
> issue, in the server, I have following error:
> jmeter.samplers.RemoteListenerWrapper: testStarted(host)
> java.rmi.ConnectIOException: Exception creating connection to: 10.18.8.XX;
> nested exception is:
> java.net.SocketException: Network is unreachable: connect
>
> So I unable to have the result for report in my client.
>
> In my servers, I have only 1 network interface, 10.17.5.XX
> In my client, I have 4 network interfaces:
> 10.5.238.X for internet facing
> 10.16.5.XX for Jmeter Servers & Web servers
> 10.17.7.XX for access to my Application servers
> 10.18.8.XX for access to my DB servers
>
> Why my JMeter server try to communicate to my Client server via 10.18.8.XX
> ??? it should via 10.16.5.XX. How can I configure this??
>

hi,
in addition to the Jmeter documentation (in particular, the options for RMI)
you may also want to check
1) /etc/hosts. perhaps your hostname or localhost is mapped to the 10.18.8.
address
2) the output of "route -n"

best regards
Ivan


Re: Need to find RCA/Request for CPU and Memory usage on my Production server in Jmeter

2016-05-19 Thread Ivan Rancati
If it's a production system, there should be a monitoring system (for
example Nagios, Icinga or similar) that monitors cpu usage, load and memory
usage.
Typically the data is updated every 5 minutes (is ok for generating alerts,
but too much for analyzing performance).
Maybe you can ask, just for the duration of the test, to generate data
every minute.

Or can you access snmp on the production server?

On Thu, May 19, 2016 at 12:17 PM, Vikash kumar  wrote:

> I can't open the machine as it's access credentials are required to execute
> *htop*
>
> On Thu, May 19, 2016 at 3:45 PM, Neill Lima  wrote:
>
> > If it is Linux, *htop* should serve.
> >
> > On Thu, May 19, 2016 at 11:55 AM, Vikash kumar <
> > vikashku...@tracesoftware.in
> > > wrote:
> >
> > > Hi All,
> > >
> > > I've a scenario where something(requests) is putting heavy load in
> terms
> > of
> > > CPU and Memory in the Application server(Production Server). The issue
> > > which i am facing is i can't install any tool or plugin on my
> application
> > > server since it's a live production server and using jmeter i have to
> pin
> > > point the issue/request because of which it's increasing the load
> > > exponentially.
> > >
> > > Also i can send the request to the production server using Jmeter
> sampler
> > > but again not sure how to get the CPU and Memory usage data on the
> > > production server(not on the system where i've installed jmeter) by
> > sending
> > > these requests.
> > >
> > > Your help/ideas will be very helpful.
> > >
> > > Thanks,
> > > Vikash
> > >
> >
>


small typo in apache/jmeter/protocol/system/SystemSampler.java

2016-04-21 Thread Ivan Rancati
Hello,

I'm trying out a nightly build (r1739297).My testplan has OS Process
Samplers, which under some circumstances don't return an errorlevel 0

The .jtl file then contains "Uexpected" instead of "Unexpected"

Uexpected return code.  Expected [0]. Actual [130]

The typo is of course absolutely minor, maybe worth a fix before the next
release. I sometimes do a grep -c on the .jtl files to count specific types
of errors

It's on line 166
   results.setResponseMessage("Uexpected return code.  Expected
["+expectedReturnCode+"]. Actual ["+returnCode+"].");


thanks and best regards,
Ivan


Re:

2016-03-19 Thread Ivan Rancati
I don't think the screenshots (or other attachment) go through the mailing
list

On Thu, Mar 17, 2016 at 6:29 AM, Harshal Kulkarni <
kulkarni.hars...@gmail.com> wrote:

> Hi Team -
>
> We recently started using jmeter for performance testing in our
> organization. I am getting some hands-on on the tool. I have recorded one
> script, its just a navigational flow containing, login to application-click
> different tabs-logout.
>
> It has one security id per user session, which i am trying to correlate.
> But, while passing the value of correlated variable in post data, it do not
> actually pass the value, instead it getting a parameter name as value.
>
> Please see below screenshots, for details.
>
> Could some one help me here?
>
>
>
>
>
>
>
> -- Forwarded message --
> From: Harshal Kulkarni 
> Date: Wed, Mar 16, 2016 at 8:32 PM
> Subject:
> To: "kulkarni.hars...@gmail.com" 
>
>
>
>
>
>
>
>
>
> --
> Thanks,
> Harshal Kulkarni
> M: +91 998-778-4548
>


Re: Users , you're welcome to express yourselves on JMeter properties

2016-03-13 Thread Ivan Rancati
Good plan, ok for me to remove

Thanks and best regards
Ivan

On Sat, Mar 12, 2016 at 11:06 PM, Sergio Boso 
wrote:

> Ok for me to remove them.
> Regards.
>
> Sergio Boso
> Il 12/Mar/2016 13:52, "Philippe Mouawad"  ha
> scritto:
>
> > Hello,
> > We would like to drop the following JMeter properties:
> >
> > - jmeter.toolbar.display : This property (true by default) allows you to
> > remove the toolbar
> > - jmeter.errorscounter.display: This property (true by default) allows
> you
> > to remove the error counter on the top right
> > - jmeter.icons : Allow you to customize the icons of JMeter
> >
> >
> > Why we would like to drop them:
> >
> >- Because we have a lot of properties in JMeter already and this may
> >make it complex for Newbies or regular users to concentrate on
> important
> >ones
> >- This is more maintenance for the team
> >- It is not that frequent to be able to customize an IDE that way
> >
> >
> >
> > Please express yourself on this and let us know your thoughts.
> >
> > Thanks
> >
> > Regards
> > Philippe
> > Member of Apache JMetet Team
> >
>


Re: IOException: Stream closed with OS Process Sampler

2016-03-09 Thread Ivan Rancati
hello and thanks for the suggestions.

I will try a distributed configuration today. Right now I suspect a limit
in the vm, or possibly in jorphan, so splitting over 2 servers should help.

At the OS level (logs in /var/logs, number of open files...) I don't see
anything suspicious

IPSec is most likely not the problem either, I tried with a simple bash
loop and I can open all 100 connections.
for conn in {1..100} ; do ipsec up env-$conn & echo ; done

With "ipsec status" I see there are 100 active tunnels; with "ip addr show"
I see there are 100 ip addresses, and the 100 tunnels do work (I tried
another bash loop to send a dns request to a server, using dig -b 
@...)

So, narrowing it down towards a Java (VM, or the Jorphan classes). Thanks
and I'll post an update, it might be interesting for other testers who use
the OS Process Sampler

best regards
Ivan

On Tue, Mar 8, 2016 at 11:11 PM, Sergio Boso 
wrote:

> HI,
> also, I would check the IPSEC client configuration.
> It looks like you are hitting some configuration limit somewhere.
>
> A distributed configuration would work around these values.
>
> Regards
>
> Sergio
>
>
> Il 08/03/2016 19.59, chaitanya bhatt ha scritto:
>
>> Have you looked at linux kernel/os logs?
>>
>>   Also, to prove OS is not the bottleneck try launching 2 Jmeter instances
>> on the same machine with 50 threads on each. If you still see the problem
>> OS could be the culprit.
>>
>> Thanks
>> Chaitanya M Bhatt
>>
>> On Tue, Mar 8, 2016 at 3:02 AM, Ivan Rancati 
>> wrote:
>>
>> Hello again,
>>>
>>> I am still struggling with the "IOException: Stream closed" problem.
>>> Quick question: as BufferedInputStream is not a file object (it's VM
>>> internal), there is no point in investigating file descriptor limits at
>>> the
>>> OS (Linux) level, correct?
>>>
>>> Other than this, suggestions or also hints how to further troubleshoot
>>> are
>>> welcome.
>>>
>>>
>>>
>>> Best regards
>>> Ivan
>>>
>>>
>>>
>>> On Thu, Mar 3, 2016 at 10:20 AM, Ivan Rancati 
>>> wrote:
>>>
>>> Good morning,
>>>>
>>>> I am using the OS Process sampler to start an ipsec (StrongSwan)
>>>> connection, and it’s working well until I hit about 100 threads, then
>>>> the
>>>> following exception appears
>>>>
>>>> WARN  - jorphan.exec.StreamCopier: Error writing stream
>>>> java.io.IOException: Stream closed
>>>>
>>>> and the samples start timing out
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 2016/03/01 13:44:30 INFO  - jmeter.reporters.Summariser: summary +
>>>>  50
>>>> in  30.2s =1.7/s Avg: 18785 Min: 14642 Max: 23661 Err: 0 (0.00%)
>>>> Active: 99 Started: 99 Finished: 0
>>>>
>>>> 2016/03/01 13:44:30 INFO  - jmeter.reporters.Summariser: summary =
>>>> 338
>>>> in   320s =1.1/s Avg:  6789 Min:   101 Max: 23661 Err: 0 (0.00%)
>>>>
>>>> 2016/03/01 13:44:32 INFO  - jmeter.threads.JMeterThread: Thread started:
>>>> Open ipsec connections 1-100
>>>>
>>>> 2016/03/01 13:45:01 INFO  - jmeter.reporters.Summariser: summary +
>>>>  49
>>>> in  30.2s =1.6/s Avg: 21878 Min: 17053 Max: 26981 Err: 0 (0.00%)
>>>> Active: 100 Started: 100 Finished: 0
>>>>
>>>> 2016/03/01 13:45:01 INFO  - jmeter.reporters.Summariser: summary =
>>>> 387
>>>> in   350s =1.1/s Avg:  8700 Min:   101 Max: 26981 Err: 0 (0.00%)
>>>>
>>>> 2016/03/01 13:45:14 WARN  - jorphan.exec.StreamCopier: Error writing
>>>> stream java.io.IOException: Stream closed
>>>>
>>>>  at
>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
>>>>
>>>>  at
>>>>
>>> java.io.BufferedInputStream.read1(BufferedInputStream.java:291)
>>>
>>>>  at
>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:345)
>>>>
>>>>  at java.io.FilterInputStream.read(FilterInputStream.java:107)
>>>>
>>>>  at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)
>>>>
>>>>  at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)
>>>>
>>>>  at
>>>> org.apache.jor

Re: IOException: Stream closed with OS Process Sampler

2016-03-08 Thread Ivan Rancati
Hello again,

I am still struggling with the "IOException: Stream closed" problem.
Quick question: as BufferedInputStream is not a file object (it's VM
internal), there is no point in investigating file descriptor limits at the
OS (Linux) level, correct?

Other than this, suggestions or also hints how to further troubleshoot are
welcome.



Best regards
Ivan



On Thu, Mar 3, 2016 at 10:20 AM, Ivan Rancati 
wrote:

> Good morning,
>
> I am using the OS Process sampler to start an ipsec (StrongSwan)
> connection, and it’s working well until I hit about 100 threads, then the
> following exception appears
>
> WARN  - jorphan.exec.StreamCopier: Error writing stream
> java.io.IOException: Stream closed
>
> and the samples start timing out
>
>
>
>
>
> 2016/03/01 13:44:30 INFO  - jmeter.reporters.Summariser: summary + 50
> in  30.2s =1.7/s Avg: 18785 Min: 14642 Max: 23661 Err: 0 (0.00%)
> Active: 99 Started: 99 Finished: 0
>
> 2016/03/01 13:44:30 INFO  - jmeter.reporters.Summariser: summary =338
> in   320s =1.1/s Avg:  6789 Min:   101 Max: 23661 Err: 0 (0.00%)
>
> 2016/03/01 13:44:32 INFO  - jmeter.threads.JMeterThread: Thread started:
> Open ipsec connections 1-100
>
> 2016/03/01 13:45:01 INFO  - jmeter.reporters.Summariser: summary + 49
> in  30.2s =1.6/s Avg: 21878 Min: 17053 Max: 26981 Err: 0 (0.00%)
> Active: 100 Started: 100 Finished: 0
>
> 2016/03/01 13:45:01 INFO  - jmeter.reporters.Summariser: summary =387
> in   350s =1.1/s Avg:  8700 Min:   101 Max: 26981 Err: 0 (0.00%)
>
> 2016/03/01 13:45:14 WARN  - jorphan.exec.StreamCopier: Error writing
> stream java.io.IOException: Stream closed
>
> at
> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
>
> at java.io.BufferedInputStream.read1(BufferedInputStream.java:291)
>
> at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
>
> at java.io.FilterInputStream.read(FilterInputStream.java:107)
>
> at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)
>
> at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)
>
> at org.apache.jorphan.exec.StreamCopier.run(StreamCopier.java:57)
>
>
>
>
>
> My configuration:
>
> I am running Jmeter 2.13 in text (non-GUI) mode on a Ubuntu 15.10 server.
> I also tried the nightly build r1732820 as I saw a possibly related bugfix
> **, no change
>
> java version "1.8.0_74" (Oracle Jdk). I have also tried the OpenJdk, no
> change
>
>
>
> The testplan looks so
>
>
>
> setUp Thread Group
>
>   os Process Sampler: restart networking
>
>   os Process Sampler: delete a ipsec log file, so it does not grow too big
>
>   os Process Sampler: start the ipsec services
>
>   constant timer, wait 5 seconds
>
>
>
> main thread group: 100 threads, run 1 hour with scheduler, rampup 10
> minutes
>
>   os Process Sampler: ipsec up (the name of the connection is a fixed
> string plus the thread number)
>
>  verify that an ip address is given, return code is 0, the string
> “successfully is displayed”
>
>   constant timer, wait 30 seconds
>
>   os Process Sampler: ipsec down (name of the connection as above)
>
>
>
> tearDown
>
>   os Process Sampler: stop the ipsec services
>
>
>
> In the test plan, there are a “View Results Tree” and an “Aggregate
> Report”, which I assume are not used in text mode.
>
> I have the same test plan on another computer, where I copy the .jtl file
> and use JMeter in GUI Mode to look at the results.
>
>
>
> During the execution of the tests, the server does not show overload
> (cpu/memory, checked with top)
>
> I have also verified manually (for loop in bash) that the ipsec
> connections configured in ipsec.conf start correctly
>
>
>
> In the test plan, I tried two variants to execute the command
>
> 1: use /bin/bash as the Command, and /usr/local/sbin/ipsec as a parameter
> (other parameters are then “up” and the name of the connection)
>
> 2: use directly /usr/local/sbin/ipsec as the Command, parameters as above
>
> Here there is also no difference
>
>
> Is there a limit on the number of open streams?
>
> I have tried to run the test with 99 threads, the “Stream closed”
> exception still appears, if I let the test run long enough, so it does not
> look like there is a hard coded limit of 100
>
>
>
> Thanks for any suggestion and best regards
>
> Ivan
>
>
>
>
>
> ** Use Java7 try with resources
>
> Close stream leak
>
> Remove commented code
>
> Fix synchro issue in comparison
>
>
> git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1719558
>


Re: Using JMeter behind proxy with WPAD

2016-03-03 Thread Ivan Rancati
I once had a similar problem with PAC (Proxy auto configuration). Not sure
whether the two technologies are similar, but worth a try:

if you download manually the .dat file, does it contain a list of proxies?
If so, you can use of the proxies in the list when you record a session.
Have a look also at the http headers when you download the .dat file, some
info might be there

best regards
Ivan

On Thu, Mar 3, 2016 at 10:42 AM, Terron Adolfo, ESD <
adolfo.ter...@audatexdatos.es> wrote:

> Hi all,
> I'm trying to configure JMeter to record a session. But I'm facing some
> problems since I'm behind a proxy that's using a WPAD URL like
> http://wpad.domain.com/wpad.dat
>
> Anyone of you as solved this issue?
>
> TIA
>
> Adolfo
>
>
> 
>
> "This e-mail, any associated files and the information contained in them
> are confidential and is intended for the addressee(s) only. If you have
> received this message in error please notify the originator and delete the
> email immediately. The unauthorised use, disclosure, copying or alteration
> of this message is strictly forbidden. E-mails to and from the company are
> monitored for operational reasons and in accordance with lawful business
> practices. Any opinions expressed are those of the individual and do not
> necessarily represent the views of the company. The company does not
> conclude contracts by email and all negotiations are subject to contract.
> We make every effort to maintain our network free from computer viruses but
> accept no responsibility for any viruses which might be transferred by this
> e-mail."
>


IOException: Stream closed with OS Process Sampler

2016-03-03 Thread Ivan Rancati
Good morning,

I am using the OS Process sampler to start an ipsec (StrongSwan)
connection, and it’s working well until I hit about 100 threads, then the
following exception appears

WARN  - jorphan.exec.StreamCopier: Error writing stream
java.io.IOException: Stream closed

and the samples start timing out





2016/03/01 13:44:30 INFO  - jmeter.reporters.Summariser: summary + 50
in  30.2s =1.7/s Avg: 18785 Min: 14642 Max: 23661 Err: 0 (0.00%)
Active: 99 Started: 99 Finished: 0

2016/03/01 13:44:30 INFO  - jmeter.reporters.Summariser: summary =338
in   320s =1.1/s Avg:  6789 Min:   101 Max: 23661 Err: 0 (0.00%)

2016/03/01 13:44:32 INFO  - jmeter.threads.JMeterThread: Thread started:
Open ipsec connections 1-100

2016/03/01 13:45:01 INFO  - jmeter.reporters.Summariser: summary + 49
in  30.2s =1.6/s Avg: 21878 Min: 17053 Max: 26981 Err: 0 (0.00%)
Active: 100 Started: 100 Finished: 0

2016/03/01 13:45:01 INFO  - jmeter.reporters.Summariser: summary =387
in   350s =1.1/s Avg:  8700 Min:   101 Max: 26981 Err: 0 (0.00%)

2016/03/01 13:45:14 WARN  - jorphan.exec.StreamCopier: Error writing stream
java.io.IOException: Stream closed

at
java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)

at java.io.BufferedInputStream.read1(BufferedInputStream.java:291)

at java.io.BufferedInputStream.read(BufferedInputStream.java:345)

at java.io.FilterInputStream.read(FilterInputStream.java:107)

at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)

at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)

at org.apache.jorphan.exec.StreamCopier.run(StreamCopier.java:57)





My configuration:

I am running Jmeter 2.13 in text (non-GUI) mode on a Ubuntu 15.10 server. I
also tried the nightly build r1732820 as I saw a possibly related bugfix
**, no change

java version "1.8.0_74" (Oracle Jdk). I have also tried the OpenJdk, no
change



The testplan looks so



setUp Thread Group

  os Process Sampler: restart networking

  os Process Sampler: delete a ipsec log file, so it does not grow too big

  os Process Sampler: start the ipsec services

  constant timer, wait 5 seconds



main thread group: 100 threads, run 1 hour with scheduler, rampup 10 minutes

  os Process Sampler: ipsec up (the name of the connection is a fixed
string plus the thread number)

 verify that an ip address is given, return code is 0, the string
“successfully is displayed”

  constant timer, wait 30 seconds

  os Process Sampler: ipsec down (name of the connection as above)



tearDown

  os Process Sampler: stop the ipsec services



In the test plan, there are a “View Results Tree” and an “Aggregate
Report”, which I assume are not used in text mode.

I have the same test plan on another computer, where I copy the .jtl file
and use JMeter in GUI Mode to look at the results.



During the execution of the tests, the server does not show overload
(cpu/memory, checked with top)

I have also verified manually (for loop in bash) that the ipsec connections
configured in ipsec.conf start correctly



In the test plan, I tried two variants to execute the command

1: use /bin/bash as the Command, and /usr/local/sbin/ipsec as a parameter
(other parameters are then “up” and the name of the connection)

2: use directly /usr/local/sbin/ipsec as the Command, parameters as above

Here there is also no difference


Is there a limit on the number of open streams?

I have tried to run the test with 99 threads, the “Stream closed” exception
still appears, if I let the test run long enough, so it does not look like
there is a hard coded limit of 100



Thanks for any suggestion and best regards

Ivan





** Use Java7 try with resources

Close stream leak

Remove commented code

Fix synchro issue in comparison


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1719558


Verbatim copy of the JMeter documentation

2016-03-02 Thread Ivan Rancati
Hello,

while looking for info on the OS Process Sampler I came across this "blog"

http://www.sqaforums.com/forums/blogs/ronak/

as far as I can see, each blog entry is a straight copy and paste of an
element from the JMeter documentation

I would assume it's not authorized, so I thought I'd let you know.

Best regards,
Ivan Rancati