Re: Random testing feasible?

2010-07-30 Thread Patty . Wong
deepak, thanks for the clarification. patty Re: Random testing feasible? Deepak Shetty to: JMeter Users List 07/30/2010 11:25 AM Please respond to "JMeter Users List" In your case with 20 pages , if you are willing to create 20 samplers , then yes you could group these under a Rand

Re: Random testing feasible?

2010-07-30 Thread Deepak Shetty
In your case with 20 pages , if you are willing to create 20 samplers , then yes you could group these under a Random Order Controller. However when you use something like a CSV file (so you have one sampler but the path to the sampler varies with each iteration) you cannot use a Random order contr

Re: Random testing feasible?

2010-07-30 Thread Patty . Wong
Deepak, thank you. I am going to try what you suggested. Also, I was reading the jmeter materials and I like to check with you if 'Random Controller' is used for random testing. I was playing with it but cannot draw conclusion. Thanks. Patty Re: Random testing feasible? Deepak Shetty

Re: Random testing feasible?

2010-07-30 Thread Deepak Shetty
hi Depends on how random you want this to be. You could also just have the CSV DataSet Config and have your 250 threads just pick the next line , it will be random in a sense because threads would pick up different pages and the order would vary by each iteration(simplest) If you wanted something m

Re: OutOfMemoryError: Java heap space

2010-07-30 Thread Deepak Shetty
hi it means your machine could not allocate the amount of memory you have specified in a contiguous block. It depends on how much RAM you have , how much is used , how much virtual memory etc etc. Close as many applications a syou can and retry or reduce the Xms Xmx value (1GB or 1.5 Gb) regards

Re: Sending a JSON snippet as POST payload

2010-07-30 Thread Deepak Shetty
sure . BSF Pre Processors/ Samplers / Javascript functions all let you write javascript code that can interact with some of the JMeter objects. BSH is good if you are a java programmer (and want something verified quickly) regards deepak On Fri, Jul 30, 2010 at 2:48 AM, Sriharsha Setty wrote: >

Re: number of threads vs number of simulated users

2010-07-30 Thread Deepak Shetty
If you have tuned java application servers you know how difficult it is getting Thread pool sizing and other archaic java parameters correct - also consider the audience expected to use JMeter. True if you have timers you probably would be able to achieve the same kind of throughput with a smaller

Random testing feasible?

2010-07-30 Thread Patty . Wong
Hi, I have a test plan with about 20 pages. I have set up 250 threads for testing. I like to know if I can perform random testing in the following manner: 1. put the urls for the 20 pages in a file 2. have 250 threads randomly go to one of the urls on the file Thank you. Patty

Re: OutOfMemoryError: Java heap space

2010-07-30 Thread Felix Frank
Make sure your memory + swap can accomodate that amount of memory, also keeping in mind the amount of memory already used by other applications and your OS. Cheers, Felix On 07/30/10 16:31, Suresh Rajachar wrote: > Its 32 bit system and i increased teh heap size to 2048 > > > Regards, > Sure

Re: OutOfMemoryError: Java heap space

2010-07-30 Thread Suresh Rajachar
Its 32 bit system and i increased teh heap size to 2048 Regards, Suresh R From: Felix Frank To: JMeter Users List Sent: Fri, July 30, 2010 3:25:27 PM Subject: Re: OutOfMemoryError: Java heap space To what did you increase it? What type of system is

Re: OutOfMemoryError: Java heap space

2010-07-30 Thread Felix Frank
To what did you increase it? What type of system is this (32bit, 64bit)? On 07/30/10 16:10, Suresh Rajachar wrote: > > > I am facing teh same problem. > After i increase the heap size in jmeter bat file and started the bat file, i > am > geting this error message > > Error occurred during in

Re: OutOfMemoryError: Java heap space

2010-07-30 Thread Suresh Rajachar
I am facing teh same problem. After i increase the heap size in jmeter bat file and started the bat file, i am geting this error message Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. errorlevel=1 Press any

Re: Recording of a script in jmeter

2010-07-30 Thread gsub
Archna, i am unable to open the file.. regarding the lan setting, 1st you close all the browsers, open only 1 (i.e IE) and 1st changed the lan setting with proxy name as Localhost and port as ( 8080, depends on your proxy setting) test plan incude thread http default ( in this enter ur require

Re: junit4 annotations in class which extends

2010-07-30 Thread rroy
I should've mentioned: DummyAnnotatedTest.java is a working sample that comes as part of the JMeter distribution (unpacked from lib/junit/test.jar). -- View this message in context: http://jmeter.512774.n5.nabble.com/junit4-annotations-in-class-which-extends-tp2256746p2259505.html Sent from the

RE: Need help for scripting

2010-07-30 Thread Krishnamoorthy, Rajadurai
Hi, Couple of things here. I am not seeing the logic to generate the random number here. Where are you incrementing loopCountNum? Since it is not getting incremented you get 0 all the time and loop will become endless. You can generate random numbers like this. //p

Re: Recording of a script in jmeter

2010-07-30 Thread gsub
Hi Archna, i thinks its very clear in http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.pdf you need to mentioned proxy port for recording (i.e 8080) and in http request default, mention the port ( as for below link) on which application runinng ( like http://111.11.11.11

Re: Sending a JSON snippet as POST payload

2010-07-30 Thread Sriharsha Setty
Hi Deepak, On Fri, Jul 30, 2010 at 3:59 AM, Deepak Shetty wrote: > 3. Use an HTTPSampler. In the parameter section keep the name field blank. > In value use ${variableName} (Defined in step 1) . So in value you would > have something like > {"attr1":${var1},"attr2":"${var2}",${var3}=["${var4}",

Need help for scripting

2010-07-30 Thread Flik Shen
Hi, I want to generate a random id and validate its existing in DB. I have tried using below components but failed. Please give me some suggestions. 1. BeanShell Sampler, add variable with value 1 into "vars" map by following statement. vars.put("LoopCountNum", "1"); 1. While Controller wi