Re: the option of Retrieve All embedded resources from html file doesnt load ALL resourses

2015-05-08 Thread Jesse Zhang
The scripts recordded by Test Script Recorder is clutter.There is a chrome 
extension developed by Blazemeter which can record simple scripts.I exported 
the scripts to local .jmx file,and then used Jmeter to run the test.But the 
http requests are not all.So i want to find a solution to the problem. 


 On Thursday, May 7, 2015 8:25 PM, Robin D. Wilson rwils...@gmail.com 
wrote:
   

 JMeter does not execute the Javascript, or interpret CSS - both of which may 
add files to your download.

However, you can record what gets downloaded (using the HTTP proxy recorder) 
and just replay that if you like.

--
Robin D.Wilson


-Original Message-
From: Jesse Zhang [mailto:ynz...@yahoo.com.INVALID] 
Sent: Thursday, May 7, 2015 1:25 AM
To: user@jmeter.apache.org
Subject: the option of Retrieve All embedded resources from html file doesnt 
load ALL resourses

Hello everyone,
There is an original http request such as http://www.baidu.com/.I checked the 
option of retrieve all embedded resources from html files.Then I add a View 
Results Tree to run the test.Comparing the results with those http requests 
captured by a packetcapture tool,I find that the results are few resources but 
not all.I dont konw what is the reaon causing that.I guess it is because the 
browser excute javascript and then send some http requests which cant be parsed 
from html.Is that right?How can i fix it?Do i need a JS interpreter into 
Jmeter(is this possible?) or to excute JS like a browser in Jmeter?Or is that 
some good idea else?
Thanks  Regards
Jesse

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



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


   

RE: the option of Retrieve All embedded resources from html file doesnt load ALL resourses

2015-05-08 Thread Robin D. Wilson
I guess I don't understand what you mean by 'clutter', but I'm glad you found 
something that worked for you.


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

-Original Message-
From: Jesse Zhang [mailto:ynz...@yahoo.com.INVALID] 
Sent: Friday, May 08, 2015 2:13 AM
To: JMeter Users List
Subject: Re: the option of Retrieve All embedded resources from html file 
doesnt load ALL resourses

The scripts recordded by Test Script Recorder is clutter.There is a chrome 
extension developed by Blazemeter which can record simple scripts.I exported 
the scripts to local .jmx file,and then used Jmeter to run the test.But the 
http requests are not all.So i want to find a solution to the problem. 


 On Thursday, May 7, 2015 8:25 PM, Robin D. Wilson rwils...@gmail.com 
wrote:
   

 JMeter does not execute the Javascript, or interpret CSS - both of which may 
add files to your download.

However, you can record what gets downloaded (using the HTTP proxy recorder) 
and just replay that if you like.

--
Robin D.Wilson


-Original Message-
From: Jesse Zhang [mailto:ynz...@yahoo.com.INVALID] 
Sent: Thursday, May 7, 2015 1:25 AM
To: user@jmeter.apache.org
Subject: the option of Retrieve All embedded resources from html file doesnt 
load ALL resourses

Hello everyone,
There is an original http request such as http://www.baidu.com/.I checked the 
option of retrieve all embedded resources from html files.Then I add a View 
Results Tree to run the test.Comparing the results with those http requests 
captured by a packetcapture tool,I find that the results are few resources but 
not all.I dont konw what is the reaon causing that.I guess it is because the 
browser excute javascript and then send some http requests which cant be parsed 
from html.Is that right?How can i fix it?Do i need a JS interpreter into 
Jmeter(is this possible?) or to excute JS like a browser in Jmeter?Or is that 
some good idea else?
Thanks  Regards
Jesse

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



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


   


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



Re: Jmeter test submitted n times as background process

2015-05-08 Thread sebb
On 7 May 2015 at 17:00, RPh on yahoo rxfillph...@yahoo.com.invalid wrote:
 Hi,
 Is it reasonable to submit the same jmeter test from command line as multiple 
 unix processes?
 Example:
 (jmeter -n -j jmeterlog1.log -t mytest.jmx  -Jnum_users=10 -Jramp_up=10) 
 (jmeter -n -j jmeterlog2.log -t mytest.jmx  -Jnum_users=10 -Jramp_up=10) 
 (jmeter -n -j jmeterlog3.log -t mytest.jmx  -Jnum_users=10 -Jramp_up=10) 

Yes, provided that the tests don't share any output files.

 Would this simulate 30 user load?

That depends on the JMX file, but assuming it uses num_users in the
obvious way, then yes.

 We get this error when we submit above jobs:



 The JVM should have exitted but did not. The following non-daemon threads 
 are still running (DestroyJavaVM is OK): ...

  Any ideas why?

That is a separate question.

Please post a separate query and include the names of the threads.

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


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



Re: End jmeter test run from a Java sampler

2015-05-08 Thread Shalin Shekhar Mangar
Hi Deepak,

I must be missing something obvious. How can my Sampler get access to the
the JMeterContextService? I don't see any methods exposed
via AbstractJavaSamplerClient or JavaSamplerContext which let me get the
JMeterContextService object.

On Wed, May 6, 2015 at 7:39 PM, Deepak Shetty shet...@gmail.com wrote:

 If the CSV reads the field into say a variable called query , then just
 define a parameter on the JavaSampler  with a value of ${query}
 If you need all defined variables then you can use the same
 JMeterContextService -- getJMeterContext() --getVariables() which gives
 you the JMeterVariables object on which you can get/set whatever variables
 you need.

 On Tue, May 5, 2015 at 11:07 PM, Shalin Shekhar Mangar 
 shalinman...@gmail.com wrote:

  Okay, I think I understand your hint about the CSV Data Set Config. I can
  use that and set the Stop thread on EOF property to true. So let's say
  that I read a line of my query file using the CSV Data Set Config, how
 do I
  access that string from inside my Java sampler?
 
  On Wed, May 6, 2015 at 12:31 AM, Deepak Shetty shet...@gmail.com
 wrote:
 
   ok try - use JMeterContextService - Get JmeterContext from which you
 can
   get the JMeter thread of JMeterThreadGroup and do ask it to stop --
  
 
 https://jmeter.apache.org/api/org/apache/jmeter/threads/JMeterContext.html
   (Note its a different matter that I dont think you should be doing thi
 )
  
   On Tue, May 5, 2015 at 11:54 AM, Shalin Shekhar Mangar 
   shalinman...@gmail.com wrote:
  
No, I am reading the file contents myself i.e. with Java code inside
  the
custom sampler.
   
On Tue, May 5, 2015 at 11:15 PM, Deepak Shetty shet...@gmail.com
   wrote:
   
 Are you using CSV Data Set Config to read the query file?

 On Tue, May 5, 2015 at 9:57 AM, Shalin Shekhar Mangar 
 shalinman...@gmail.com wrote:

  Hello,
 
  I am writing a Java sampler that generates queries from a file to
  run
  against my custom application server. How do I signal to Jmeter
  that
   I
 have
  run out of queries and that the test is complete?
 
  I have set the thread group to loop forever. I can of course
   constrain
it
  to run only a certain number of times but I'd like to test with
  many
  different query files and I don't want to create different
configuration
  (loop count, num threads) for each query file.
 
  --
  Regards,
  Shalin Shekhar Mangar.
 

   
   
   
--
Regards,
Shalin Shekhar Mangar.
   
  
 
 
 
  --
  Regards,
  Shalin Shekhar Mangar.
 




-- 
Regards,
Shalin Shekhar Mangar.


Re: Need to simulate 2400 tps

2015-05-08 Thread Vikas Bajaj
Thanks felix. i will try this 


 On Monday, April 20, 2015 11:50 PM, Felix Schumacher 
felix.schumac...@internetallee.de wrote:
   

 

Am 20. April 2015 22:38:15 MESZ, schrieb Vikas Bajaj 
vikas8...@yahoo.com.INVALID:
Thanks Felix.. below is what i see in the properties file.set
HEAP=-Xms512m -Xmx512mset NEW=-XX:NewSize=128m -XX:MaxNewSize=128m
do you want em to increase the max help size?

I still can't say whether you have to change those values, since I don't know 
your machine and your load. 

You will have to look for yourself. You can do this by using jconsole, visualvm 
or jstat. You might also add gc logging and look at the logs.

If you don't want to bother, you can of course just put bigger values into the 
memory settings and look if your load problems disappear. 

If you want to go that way, I would double the heap to 1024  and probably set 
NEW to an empty string.

In your special case I am guessing 
that you are not interested in the actual content of the video streams and that 
you should enable the md5 sum option in the http sampler.

Regards
 Felix

ThanksVikas bajaj 



On Tuesday, April 14, 2015 11:14 PM, Felix Schumacher
felix.schumac...@internetallee.de wrote:
  

 

Am 15. April 2015 02:36:36 MESZ, schrieb Colas
vikas8...@yahoo.com.INVALID:
Hi 

I am trying to exeute a video playback stream and need to achieve 2400
tps but I think due to jmeter resource limitation on my client I am
not
able reach beyond 300 tps.

What is the solution?

You give too few hints about your setup for a valid answer, but it
could be your memory setup. Look at your heap size for the jvm and at
your gc logs while running. 
You could use visualvm, jstat or jconsole to take a live view into
resource usage. 

Regards
Felix


I have two Amazon workspaces and I am planing to distribute the load
using distributive testing . Any other thoughts ?

Thanks 
Vikas


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


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



  


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



  

Re: End jmeter test run from a Java sampler

2015-05-08 Thread Deepak Shetty
https://jmeter.apache.org/api/org/apache/jmeter/threads/JMeterContextService.html
static method named getContext()

On Fri, May 8, 2015 at 12:32 PM, Shalin Shekhar Mangar 
shalinman...@gmail.com wrote:

 Hi Deepak,

 I must be missing something obvious. How can my Sampler get access to the
 the JMeterContextService? I don't see any methods exposed
 via AbstractJavaSamplerClient or JavaSamplerContext which let me get the
 JMeterContextService object.

 On Wed, May 6, 2015 at 7:39 PM, Deepak Shetty shet...@gmail.com wrote:

  If the CSV reads the field into say a variable called query , then just
  define a parameter on the JavaSampler  with a value of ${query}
  If you need all defined variables then you can use the same
  JMeterContextService -- getJMeterContext() --getVariables() which gives
  you the JMeterVariables object on which you can get/set whatever
 variables
  you need.
 
  On Tue, May 5, 2015 at 11:07 PM, Shalin Shekhar Mangar 
  shalinman...@gmail.com wrote:
 
   Okay, I think I understand your hint about the CSV Data Set Config. I
 can
   use that and set the Stop thread on EOF property to true. So let's
 say
   that I read a line of my query file using the CSV Data Set Config, how
  do I
   access that string from inside my Java sampler?
  
   On Wed, May 6, 2015 at 12:31 AM, Deepak Shetty shet...@gmail.com
  wrote:
  
ok try - use JMeterContextService - Get JmeterContext from which you
  can
get the JMeter thread of JMeterThreadGroup and do ask it to stop --
   
  
 
 https://jmeter.apache.org/api/org/apache/jmeter/threads/JMeterContext.html
(Note its a different matter that I dont think you should be doing
 thi
  )
   
On Tue, May 5, 2015 at 11:54 AM, Shalin Shekhar Mangar 
shalinman...@gmail.com wrote:
   
 No, I am reading the file contents myself i.e. with Java code
 inside
   the
 custom sampler.

 On Tue, May 5, 2015 at 11:15 PM, Deepak Shetty shet...@gmail.com
wrote:

  Are you using CSV Data Set Config to read the query file?
 
  On Tue, May 5, 2015 at 9:57 AM, Shalin Shekhar Mangar 
  shalinman...@gmail.com wrote:
 
   Hello,
  
   I am writing a Java sampler that generates queries from a file
 to
   run
   against my custom application server. How do I signal to Jmeter
   that
I
  have
   run out of queries and that the test is complete?
  
   I have set the thread group to loop forever. I can of course
constrain
 it
   to run only a certain number of times but I'd like to test with
   many
   different query files and I don't want to create different
 configuration
   (loop count, num threads) for each query file.
  
   --
   Regards,
   Shalin Shekhar Mangar.
  
 



 --
 Regards,
 Shalin Shekhar Mangar.

   
  
  
  
   --
   Regards,
   Shalin Shekhar Mangar.
  
 



 --
 Regards,
 Shalin Shekhar Mangar.



unsub

2015-05-08 Thread harry_no_spot