My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
ActiveThreadsOverTime  

Listener, Graph
Updated Apr 4, 2011 by a...@apc.kg

Active Threads Over Time Listener since 0.1.0

Don't forget to set up saving thread counts when running in non-GUI mode!

If you are doing distributed tests, you should name the thread groups like this in your test plan:

${__machineName()}_My Threadgroup name

Active Threads Over Time is a simple listener showing how many active threads are there in each thread group during test run.
The plugin produces graph like shown below:

Legend items represents Thread Groups in your test plan.

Example

http://jmeter-plugins.googlecode.com/svn-history/trunk/examples/ActiveThreadsOverTimeExample.jmx

Comment by adrian.s...@gmail.com, Aug 10, 2010

Since you are still looking for more ideas, here some more input (note: any idea is inspired from the log analysis page from the jmeter wiki, or similar material).

Any graph plotting something over time will get a lot of data in longer tests, or in tests with lots of operations per second. In these cases, the graph gets so busy with dots that it appears to be continuous streams of colors. What I do is process the log, choose significant intervals and/or reduce the number of samplers plotted and then read the processed log in the listener (or plot with excel).

However, others approached this by plotting mean values of the input data in the graph, calculated over shorter intervals of the whole period (for say, a mean is calculated for blocks of data corresponding to 5% of the plotted period of time and then you plot only the mean value). I'm not stuck on plotting mean values though, still thinking if there are alternatives (would be nice to configure this, maybe you need 90% line, or max).

But the idea seems ok, for line charts with markers as you have used it would reduce the number of markers represented to 20 per series plotted. This would be nice if possible, not to completely replace the current behavior. This is seems more appropiate for response times / throughput over time listeners, rathter than this one, but those don't have wiki pages yet :D.

Comment by marco.ma...@realemutua.it, Oct 28, 2010

We found 2 problems:

1) reading XML output from a file previously recorded, graph doesn't refreshed at all: we have to restart JMeter 2) comparing graph shown at the end of the test and the one reloaded from the same output file, there main differences in Y axis

Problem 1 is common to all plugins-listener.

Comment by mrbri...@gmail.com, Jul 22, 2011

Hello, is there any plugin which shows ACTUAL number of threads running on server?(Tomcat 6) This plugin only shows threads generated by JMeter "Thread Groups", too bad. Please, e-mail me if there is any way to solve my issue. Thanks.

Comment by project member a...@apc.kg, Jul 22, 2011

This plugin is not "too bad". You need Tomcat-specific monitoring tool, it's not the topic of this plugin.

Comment by mrbri...@gmail.com, Jul 22, 2011

I didnt mean that the plugin is bad. It's good. But I will have to write my own plugin, i think. Source code reading gave me a thought of your PerfMon plugin extension adding option Actual Threads. But i'm new to Java, so it won't be so trivial for me. Maybe someone allready implemented it?...

Comment by project member a...@apc.kg, Jul 22, 2011

I think the right way would be adding server process threads monitoring to PerfMon. It will take some time. For now I suggest you using external server threads monitoring tool.

Comment by mrbri...@gmail.com, Jul 22, 2011

For now I have jconsole from JDK packet. But the reason i need this extension is next: i make a test plan to test server with Tomcat, e.g. using Stepping Thread Group, but as i was told, 1 thread can generate many other threads on the server, so I have to know how many threads are actualy runnin'. And i need to add this info on Composite Graph, where CPU, Memory and etc characteristic. Btw, there is a guy in my company, real Java Developer, maybe i'll give him this job :) I'll let you know if we make it. Thanks for your answers.

Comment by project member a...@apc.kg, Jul 22, 2011

You guys better make this thing inside our project. For all the community to have this improvements...

Comment by mrbri...@gmail.com, Jul 22, 2011

I'll provide your with src code when done, man :)

Comment by comedy...@gmail.com, Oct 25, 2011

In distributed testing, is this chart shows average result of agents? because I set up 10 threads in my jmx file, and remote started on 4 agents, I checked this chart, there was only 10 active threads in this graph.

Comment by project member Stephane...@gmail.com, Oct 25, 2011

Hi,

Did you followed instructions here (in bold on top of this page):

If you are doing distributed tests, you should name the thread groups like this in your test plan:

${machineName()}My Threadgroup name

Comment by er.gaura...@gmail.com, Nov 15, 2011

Hi,

I have created a test plan with 15 threads and loop count as 2 but Active Threads over time is reflecting No. of active threads upto 8 only in graph.Please suggest if i am missing any step

Regards Gaurav

Comment by project member a...@apc.kg, Nov 15, 2011

This means threads finish their work of 2 iterations end stop. And you have only 8 threads working at a time.

Powered by Google Project Hosting