synchronized samples

2008-01-19 Thread Andrej van der Zee
Hi, I am new to JMeter and I have an issue I am not able to solve. I was hoping to get some help here :) My problem is best explained with a example, so suppose I have the following setup: Thread Group -- Login (HTTP Request) -- Visit Page (HTTP Request) -- Logout (HTTP Request) Now I would

Re: synchronized samples

2008-01-20 Thread Andrej van der Zee
with the Interleave Controller? Thanks, Andrej On Jan 20, 2008 10:03 PM, matthew sporleder [EMAIL PROTECTED] wrote: On 1/20/08, Andrej van der Zee [EMAIL PROTECTED] wrote: Hi, I am new to JMeter and I have an issue I am not able to solve. I was hoping to get some help here :) My

compress POST data in HTTPS requests

2008-10-27 Thread Andrej van der Zee
Hi, I need to compress post data in HTTPS requests. I could not find such functionality, but maybe I overlooked. Is this possible? Cheers, Andrej - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: compress POST data in HTTPS requests

2008-10-28 Thread Andrej van der Zee
Hi, No, though you might be able to work round it by creating a suitable file containing the compressed data. I can't do that. I have to compress XML data and certain node/attribute values have to be replaced by tokens run-time. I guess the last chance is to compress in these BeanShell

replace strings in XML request

2008-11-03 Thread Andrej van der Zee
Hi, Is the following sequence possible with JMeter: 1) Receive XML reply from server 2) Extract node from XML, let's say node X 3) Send another XML request in POST_DATA, but before sending it replacing the session id in the XML by X from 2) I saw that it is possible to send XML requests from a

timestamps out of sync with system clock

2010-11-09 Thread Andrej van der Zee
Hi, We experienced that JMeter's timestamps get out-of-sync with the system clock. Is it true that JMeter does not read the system clock, but uses performance counters or something like that to calculate the difference between the start time and the current time? If so, can I overwrite this

Re: timestamps out of sync with system clock

2010-11-09 Thread Andrej van der Zee
Hi Sebb, Thanks for your reply. JMeter saves both System.currentTimeMillis() and System.nanoTime() at the start of a run. It then uses System.nanoTime()  differences to arrive at the current time with a resolution of 1ms. System.nanoTime() Javadoc says The value returned represents

Re: timestamps out of sync with system clock

2010-11-18 Thread Andrej van der Zee
Hi, I tried a simple program comparing systemTime and nanoTime, and found that it does seem to drift (WinXP/Java1.6). This is not the impression one gets from the Javadoc... Maybe the base times need to be regenerated more frequently - perhaps even every sample, leaving the nanotime just

Re: timestamps out of sync with system clock

2010-11-18 Thread Andrej van der Zee
Hi, I would prefer an option that gets the time ether from currentTimeMillis() or from nanoTime(). On windows, the latter gets its value from the QueryPerformanceCounter() API which causes the drift from the system-clock. On few particular machines we have seen a drift that is very extreme

Re: timestamps out of sync with system clock

2010-11-20 Thread Andrej van der Zee
Hi, Nanotime was added to try and provide additional resolution - looks like it causes more problems than it solves... Is this recently added? Are there older JMeter versions that use currentTimeMillis only? I think the options are: currentTimeMillis only Use cTM for start (or end)

Re: timestamps out of sync with system clock

2010-11-27 Thread Andrej van der Zee
11:32, sebb seb...@gmail.com wrote: On 20 November 2010 11:28, Andrej van der Zee andrejvander...@gmail.com wrote: Hi, Nanotime was added to try and provide additional resolution - looks like it causes more problems than it solves... Is this recently added? Are there older JMeter

Re: timestamps out of sync with system clock

2010-11-28 Thread Andrej van der Zee
Hi, Thank you so much. I know it is a difficult question, but is there anything to say about the stability of these nightly builds? Or is there an upcoming official release date? Cheers, Andrej - To unsubscribe, e-mail:

search-and-replace in binary AMF3 POST data

2011-04-24 Thread Andrej van der Zee
Hi, I want to replay a Flex session that I recorded with JMeter. When using multiple users, I get into trouble because all of them use the same Flex session ID. The requests/responses are AMF3 encoded. With search-and-replace on the Linux command-line I can easily substitute the recorded session

Re: search-and-replace in binary AMF3 POST data

2011-04-24 Thread Andrej van der Zee
Hi, I need to extract the session ID from the first HTTP response's binary POST data and somehow store it (for example by looking for a specific pattern). This was easily done by a post-processor controller of type Regular Expression Extractor: Reference Name: DSId Regular Expression:

Re: search-and-replace in binary AMF3 POST data

2011-04-25 Thread Andrej van der Zee
Hi, Thank you for your reply. My case is different from those, unfortunately. I have HTTP POST data recorded in binary files that is sent in the body of each HTTP request. The binary data is an AMF3 encoded Flex message. Each HTTP request sends one binary file as its HTTP request POST body.

Re: search-and-replace in binary AMF3 POST data

2011-04-25 Thread Andrej van der Zee
Hi, Thanks for your email. If you have a binary data file on your hard drive and are just sending that file to the server with the post, I think you should be able to open the file with one of the languages supported by the BSF sampler and replace the session ID using a regular expression,

Re: search-and-replace in binary AMF3 POST data

2011-04-25 Thread Andrej van der Zee
Hi, If you have a binary data file on your hard drive and are just sending that file to the server with the post, I think you should be able to open the file with one of the languages supported by the BSF sampler and replace the session ID using a regular expression, and then send the file

Re: search-and-replace in binary AMF3 POST data

2011-04-25 Thread Andrej van der Zee
Hi Bruce, Thanks for your time. I think I slowly get the idea by your example, but I think I will go for a BeanShell pre-processor controller anyway. The only thing I am worried about is multiple threads/users running at the same time. More specific, in BeanShell (and I guess in Groovy

Re: search-and-replace in binary AMF3 POST data

2011-04-25 Thread Andrej van der Zee
Hi, If you're doing it in multiple threads you're likely to run into synchronization problems unless you put some variable that is unique into the filenames that you write out. That's why I suggested writing a new file, and consider your original file to be a template. Yes I understand what

Re: search-and-replace in binary AMF3 POST data

2011-04-25 Thread Andrej van der Zee
Hi, I have one more question I was hoping you can answer. When I use a post-processor Regular Expression Extractor and store the DSId in a variable, does every user-thread have its own copy of the variable, or do I need to take care of synchronization? If so, what is the best practice to do this?

jmeter.log messages truncated

2011-04-26 Thread Andrej van der Zee
Hi, I am looking for a way to get the full log messages in jmeter.log. I get the following error: 2011/04/26 18:36:33 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``import java.util.regex.Pattern; import

Re: jmeter.log messages truncated

2011-04-26 Thread Andrej van der Zee
Hi, AFAIK, JMeter does not truncate log messages. The message must have been truncated by BeanShell. Is there any way to control BeanShell logging? Cheers, Andrej - To unsubscribe, e-mail:

Re: jmeter.log messages truncated

2011-04-26 Thread Andrej van der Zee
Hi, But there is exceprion object with stack trace that could be reported to log in this case... Yes indeed, thank you. Andrej - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands,

Re: search-and-replace in binary AMF3 POST data

2011-04-26 Thread Andrej van der Zee
Hi Bruce, Thanks for your help. It took me almost a full day to get this working (I am not a Java nor JMeter person). For anybody else who wants to do the same, below is the full BeanShell. The script substitutes two regular expression for the SDId (Flex session-id ID) and an

feedback: experience with JMeter

2011-04-26 Thread Andrej van der Zee
Hi, I would like to share my experience with JMeter. IMHO, modifying POST-bodies before sending to the server with BeanShell or other external interpreters is harder than it could be. I would expect a post-controller with regular expression with substitutions local to the running thread. This

Re: feedback: experience with JMeter

2011-04-27 Thread Andrej van der Zee
Hi, In general trying to run regex's against a binary file is not reliable. I am not sure the point you are trying to make. It doesn't have to be a binary file for this missing pre-controller with regex. I have seen examples of people doing the same trickery with external scripts for XML POST

Re: feedback: experience with JMeter

2011-04-27 Thread Andrej van der Zee
Hi, merely that you cannot have JMeter perform find/replaces for binary formats. You would have to have some sort of a plugin for each binary format(with the associated cost for every subsequent version of that format). That was not the topic of my email. Why do you keep talking about binary

Re: feedback: experience with JMeter

2011-04-27 Thread Andrej van der Zee
Hi, If the post data is specified as parameter / value this directly works ,  so isn't your post in context of using files in the HTTP sampler? I guess you mean, for example, a url-encoded content-type such as application/x-www-form-urlencoded? If you have an XML template file with values

Re: feedback: experience with JMeter

2011-04-27 Thread Andrej van der Zee
Hi, I don't think this would work with the current design of jmeter. The pre-processors execute via a method call of process() prior to the execution of the sampler. It does not actually reside in the sampler or have any way to modify its internals. It's easy enough to add parameters because

Re: feedback: experience with JMeter

2011-04-27 Thread Andrej van der Zee
I opened an issue in BugZilla: https://issues.apache.org/bugzilla/show_bug.cgi?id=51128 Cheers, Andrej - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail:

Re: feedback: experience with JMeter

2011-04-27 Thread Andrej van der Zee
Hi, I don't think you can do this with a preprocessor, but I wonder how hard it would be to introduce the concept of filterable streams into jmeter. Someone would have to write some filters, and they'd need to be able to present GUI controls in order to be configured. Sampler writers who do

Constant Throughput Timer and elapsed sample time

2011-06-21 Thread Andrej van der Zee
Hi, I have a question about the Constant Throughput Timer. I have the following configuration: Thread Group (10 threads) --- Transaction Controller --- HTTP Request --- View Results In Table --- Constant Throughput Timer (60 samples per minute) Now I noticed that the waiting time for the

advice on setup

2011-06-22 Thread Andrej van der Zee
Hi, I am asked to mimic a pre-set transaction-mix with load, i.e. I received a list of transactions with there frequencies like this: transactionfreq (per sec) A 4.06 B 18.43 C 5.15 D 0.8 E 1.3 etc

Re: advice on setup

2011-06-22 Thread Andrej van der Zee
Have you read the docs? U, which part are you referring to? I have read the docs that describes many different controllers, samplers etc. There are many and I wonder which ones to use together. Cheers, Andrej - To

Re: advice on setup

2011-06-23 Thread Andrej van der Zee
...@jakarta.apache.org -- Andrej van der Zee Koenji-minami 2-40-19A Suginami-ku, Tokyo 166-0003 JAPAN Mobile: +81-(0)80-65251092 Phone/Fax: +81-(0)3-3318-3155 - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org

ant download_jars

2011-06-23 Thread Andrej van der Zee
Hi, I am trying to build JMeter for the first time. I am not really into Java, so I am not sure how to fix it. It seems to download a file that does not exist anymore in the repository when I execute ant download_jars: ... _get_jarfile: [echo] Fetching: lib/xstream-1.3.1.jar

Re: ant download_jars

2011-06-23 Thread Andrej van der Zee
_get_jarfile:     [echo] Fetching: lib/xstream-1.3.1.jar      [get] Getting: http://repository.codehaus.org/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar      [get] To: /usr/local/src/jakarta-jmeter-2.4/build/xstream-1.3.1.jar      [get] Error opening connection

jmeter-server fails (version 2.4.20110623)

2011-06-28 Thread Andrej van der Zee
Hi, I am trying to use jmeter-server. Somehow it connects to the server, but the server fails to connect to 127.0.1.1. Why is it connecting to 127.0.1.1? [root@kok bin]# ./jmeter-server Using local port: 45678 Created remote object: UnicastServerRef [liveRef:

Re: jmeter-server fails (version 2.4.20110623)

2011-06-28 Thread Andrej van der Zee
Hi, Why is it connecting to 127.0.1.1? Hi, I don't fully understand the problem, but the usual answer to this question is there is a bad entry in the hosts file of either node (here: the Jmeter server, I'd guess). Looks like some kind of RMI issue. Never worked with this though, so I

Re: jmeter-server fails (version 2.4.20110623)

2011-06-28 Thread Andrej van der Zee
Why is it connecting to 127.0.1.1? I don't fully understand the problem, but the usual answer to this question is there is a bad entry in the hosts file of either node (here: the Jmeter server, I'd guess). Looks like some kind of RMI issue. Never worked with this though, so I am not

Re: Constant Throughput Timer and elapsed sample time

2011-06-28 Thread Andrej van der Zee
Hi Oliver, The transaction controller has a little checkbox: include timer duration in sample time (or something like that). So... Uhhh yes indeed That helps, I am learning... Thanks, Andrej

Java heap space (out of memory)

2011-06-29 Thread Andrej van der Zee
Hi, When using JMeter-server, I am getting a Java heap space error (out of memory). The test was pretty small actually. I was wondering how I can best control this and if I should do anything special in JMeter-server. I am working on Ubuntu and have about 4GB of memory. Which settings should I

Re: Java heap space (out of memory)

2011-06-29 Thread Andrej van der Zee
also you should modify Jmeter.bat so that Xmx should be as high as you can afford (2Gb or so). Thanks. What is the difference between -Xms512m and -Xmx512m? If I want to reserve 2GB of heap-size, should I both set them on 2048 or 1024? Cheers, Andrej

Re: Java heap space (out of memory)

2011-06-29 Thread Andrej van der Zee
Thanks. What is the difference between -Xms512m and -Xmx512m? If I want to reserve 2GB of heap-size, should I both set them on 2048 or 1024? Ahhh never mind, I see now its a Java-thing which means start and max heap size. Cheers, Andrej

Re: Java heap space (out of memory)

2011-06-29 Thread Andrej van der Zee
yes. Again increasin g this heap only helps when you actually need that much memory at the same time. Otherwise it only delays the problem . if for e.g. you read a lsitener that uses memory proportional to the number of samples , eventually you will get this error , whetever the size of the

Re: Java heap space (out of memory)

2011-06-29 Thread Andrej van der Zee
Hi, Yes. Disable both when running your actual test , only use for debug purposes Listeners like summary report dont use data proportional to samples so those are better but there is really no reason to run an actual test in gui mode. I need the View Result Table for later analysis. But I

Re: Java heap space (out of memory)

2011-06-29 Thread Andrej van der Zee
But if I run in non-GUI mode? That is, I was running JMeter-server in non-GUI mode but still I got the out-of-memory exception on the server. If you are asking for an enhancement that in non-gui mode , some listeners should automatically not run , then you need to file a bugzilla enhancement

Re: Java heap space (out of memory)

2011-06-29 Thread Andrej van der Zee
That would actually be pretty cool. I'm always forgetting to disable my listeners. Most of my tests don't run out of memory anyway, but there's no point in using it if you don't have to! Actually, I do need the results of one of my listeners, even in non-GUI mode. So it should be made an

sending sampler result to jmeter client seems not asynchrone

2011-06-29 Thread Andrej van der Zee
Hi, I have a JMeter-client/server situation. It seems that the results of the sampler are send back to the client synchronously. This kind of messes with my intentions. Is it possible for the JMeter-server not to send back any sampler result until the test is finished? Thank you, Andrej

mode=Hold not working?

2011-07-12 Thread Andrej van der Zee
Hi, I am using a remote setup for my JMeter tests. I want the sampler results to be sent after the test is finished. On both the client and the server (documentation is not clear where to set this option), I set the option mode=Hold. I would expect the View Result Tree to be updated with all the

Re: mode=Hold not working?

2011-07-12 Thread Andrej van der Zee
I am using a remote setup for my JMeter tests. I want the sampler results to be sent after the test is finished. On both the client and the server (documentation is not clear where to set this option), I set the option mode=Hold. I would expect the View Result Tree to be updated with all the

Epoch-timestamp in HTTP sampler

2011-07-13 Thread Andrej van der Zee
Hi, I need a efficient way to get an approximation of the current time in all HTTP samplers as I need to send it as a parameter to the server. What would be the cheapest way in terms of system resources on the JMeter client machine to get the current Epoch time in every HTTP sampler? Thank you,

Re: Epoch-timestamp in HTTP sampler

2011-07-13 Thread Andrej van der Zee
I would guess that the most efficient way would be to write a native custom function to give you epoch time (similar to existing __time assumng that the current values returned by __time dont work for you since you mention it as epoch). Epoch indeed. Sorry for my lack of JMeter-termonology,

Re: Epoch-timestamp in HTTP sampler

2011-07-13 Thread Andrej van der Zee
Sorry thats what I called it . http://gabenell.blogspot.com/2010/01/custom-functions-for-jmeter.html Thank you, got it working now. Now I can add more functions to JMeter without starting interpreters all the time :) I am learning... Cheers, Andrej

sampler name

2011-07-17 Thread Andrej van der Zee
Hi, I am looking for a function that gets the sampler's name in JMeter. Does it exist? Cheers, Andrej - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail:

Re: sampler name

2011-07-18 Thread Andrej van der Zee
One of these might be what you want... ${__javaScript(sampler.getName())} ${__javaScript(sampler.getClass().getName())} I want to send the name of the sampler in an HTTP request header without having to specify this for every sampler serapately. I guess one of these should work. Cheers,

Re: sampler name

2011-07-18 Thread Andrej van der Zee
it sounds like this is a solution for a some problem you are facing(rather than the problem itself) - it would probably be more helpful to describe what problem you are trying to solve. Why would your receiving application deal with something your test script has introduced? Its not the

Re: sampler name

2011-07-18 Thread Andrej van der Zee
ok.it still sounds more logical to configure this based on the URL or parameter, rather than your test script - however if it works for you then go ahead :) Yes that is another option but takes more work and maintenance to find all the mappings between the URL+parameters and the transaction

binary file writer

2011-07-19 Thread Andrej van der Zee
Hi, In need to efficiently write the following fields in for each sampler to a file or keep it in memory and dump it to a file after the test ended, preferably in binary: 1) epoch time in sec, 2) response time, 3) sampler name, 4) success I could not find any such listener but wondered if their

Re: binary file writer

2011-07-19 Thread Andrej van der Zee
You can write your own BSH or BSF Listener code to write the data in any format you wish. In terms of performance, do you expect any remarkable difference from writing a custom listener in Java and using the Beanshell/BSF listener? Also, I want to write to the same file from different thread

Re: binary file writer

2011-07-19 Thread Andrej van der Zee
Take a look at http://code.google.com/p/jmeter-plugins/wiki/FlexibleFileWriter It does not have a binary option, does it? But I guess I could easily add it and reuse the rest, as it contains the fields that I need. Cheers, Andrej

Re: binary file writer

2011-07-19 Thread Andrej van der Zee
To write in binary instead of text in order to save space and make it more efficient to read large datasets into offline analisis tools. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional

Re: binary file writer

2011-07-19 Thread Andrej van der Zee
Hmm, I still can't get it... Binary means multi-byte or non-letter bytes in it. And you can save this data with FFW. It does not add any newlines himself, only specified fields and separators. So it's binary writer. When you open a file for reading or writing in languages like C/C++/Java you

throughput: transactions vs samplers

2011-07-20 Thread Andrej van der Zee
Hi, Recently I have been using the Throughput Controller together with the Constant Throughput Timer (native) and Throughput Shaping Timer (from JMeter Plugin). I became to understand that the throughput values specified in the timers do not reflect transactions per second, but rather samplers

Re: binary file writer

2011-07-20 Thread Andrej van der Zee
Hi, I don't think that keeping a test log in memory is a good idea. What size of a resulting log file do you expect? I have 16GB 64bits machines and extra memory may be added whenever necessary. For example, in long-run tests (10 hours and more) I use the 'Simple File Writer' listener

iterations and re-connects

2011-07-27 Thread Andrej van der Zee
Hi, Is it possible in JMeter to keep a connection open when it goes into the next iteration? It seems that it breaks off the connection and re-connects on every iteration. Cheers, Andrej - To unsubscribe, e-mail:

Re: iterations and re-connects

2011-07-28 Thread Andrej van der Zee
Hi, Do you use a secure HTTP (HTTPS) in your tests? Both, is there something special about https? In the meantime it turned out that the loadbalancer did not keepalive connections to the backend servers. I was looking at the tcpdumps of one backend server and found that a new

Re: iterations and re-connects

2011-07-28 Thread Andrej van der Zee
This is not surprising. Proper Layer-7 Loadbalancing often requires a new connection per request. There were using sticky sessions, so proper application-level load-balancing was already abandoned. The sysads mentioned that the load-balancer did not keepalive connection because of technical

HTTP Cache Manager

2011-08-11 Thread Andrej van der Zee
Hi, I have a question about the HTTP Cache Manager. In a loop I have an HTTP sampler that executes this: GET https://x.y.z/css/main.css After the first request, I get: Response code: 304 Response message: Not Modified Though, in my browser the HTTP request is never sent and I presume it reads