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
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
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:
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
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
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
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
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
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
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)
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
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:
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
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:
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.
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,
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
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
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
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?
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
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:
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,
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
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
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
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
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
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
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:
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
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
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
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
...@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
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
_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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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,
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
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:
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,
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
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
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
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
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
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
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
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
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
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:
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
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
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
69 matches
Mail list logo