Metrics don't show up at all

6 views
Skip to first unread message

Jan Kotuc

unread,
Nov 24, 2010, 5:08:09 AM11/24/10
to vulcan...@googlegroups.com
Hi y'all,

I'm using Vulcan to build a PHP project using Ant script, which also
calls Jmeter testing. I wrote a nice XSL transformation to produce XML
files with custom metrics such as described here:
http://code.google.com/p/vulcan/wiki/XmlMetrics (<metric key="A label"
value="12" type="number|percent|string"/>; file attached). The build and
test process works well, the only problem is that they don't show up no
matter what possible include and exclude patterns I set up for the
XmlMetrics plugin. :( I tried "results/xml/*.xml" (that's where the file
originally was), "**/*.xml", or even moved the file to the root of the
project's directory and typed simply "*.xml", or typed the exact
filename: "results/xml/jmetermetrics.xml".

I don't get what I'm doing wrong. AFAIK, the path should be relative to
the project's root directory, where the "build.xml" file is. Funnily
enough, the build.xml is the only file I see in listing, even though I
don't want to (screenshot attached). Could it be that XmlMetrics plugin
has only one set of patterns for the entire Vulcan? Shouldn't it have a
per-project setup? Apart from that, I don't know what can be wrong. Be
very thankful for any help.

Regards

Mahy

Screenshot.png
jmeter_metrics.xml

Chris Eldredge

unread,
Nov 24, 2010, 1:56:53 PM11/24/10
to vulcan...@googlegroups.com
Mahy,

Try adding a line to WEB-INF/classes/log4j.properties like this:

log4j.logger.net.sourceforge.vulcan.metrics=DEBUG

Then restart the application.

On the next build, $TOMCAT_HOME/logs/vulcan.log should print some debug statements about which files the metrics plugin is processing, and any errors that occur while parsing them.

Hope that helps,

Chris


--
You received this message because you are subscribed to the Google Groups "Vulcan Users" group.
To post to this group, send email to vulcan...@googlegroups.com.
To unsubscribe from this group, send email to vulcan-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/vulcan-users?hl=en.


Jan Kotuc

unread,
Nov 24, 2010, 4:23:21 PM11/24/10
to vulcan...@googlegroups.com
Thanks for the answer. It sheds some light at least. Unfortunately, I
couldn't find any "vulcan.log" file at all. The only log file I found
were catalina logs and localhost logs (snippets of two catalina logs
attached). The catalina logs are full of info about unstopped and later
terminated Vulcan threads that might cause memory leaks... Apart from
that, catalina.out also contains log4j information about not having
found "vulcan.log":

java.io.FileNotFoundException: /usr/share/tomcat6/logs/vulcan.log (No
such file or directory)
(strack trace follows).

Now this is really puzzling. Ideas, anyone?

Mahy

catalina_log_snippet.txt
catalina_out_snippet.txt

Jan Kotuc

unread,
Nov 30, 2010, 3:11:28 PM11/30/10
to vulcan...@googlegroups.com
I tried "vanilla" version of Tomcat (instead of the Ubuntu one) and it
works much better. The following appears in vulcan.log:

2010/11/30 20:38:49 INFO net.sourceforge.vulcan.core.BuildManager:
Project Zabinec completed build 3 with status PASS.
2010/11/30 20:38:49 DEBUG net.sourceforge.vulcan.metrics.dom.DomBuilder:
Merging file /root/vulcan/work/Zabinec/results/xml/ZabinecMetrics.xml
into metrics document.
2010/11/30 20:38:49 DEBUG
net.sourceforge.vulcan.metrics.XmlMetricsPlugin: Transform identity.xsl
did not produce any metrics.
2010/11/30 20:38:49 DEBUG
net.sourceforge.vulcan.metrics.XmlMetricsPlugin: Transform unit-test.xsl
did not produce any metrics.
2010/11/30 20:38:49 DEBUG
net.sourceforge.vulcan.metrics.XmlMetricsPlugin: Transform
static-analysis.xsl did not produce any metrics.
2010/11/30 20:38:49 DEBUG
net.sourceforge.vulcan.metrics.XmlMetricsPlugin: Transform
code-coverage.xsl did not produce any metrics.

What should I try next?

TIA

Mahy

On 11/24/2010 07:56 PM, Chris Eldredge wrote:

> <mailto:vulcan...@googlegroups.com>.


> To unsubscribe from this group, send email to
> vulcan-users...@googlegroups.com

> <mailto:vulcan-users%2Bunsu...@googlegroups.com>.

Jan Kotuc

unread,
Nov 30, 2010, 3:41:11 PM11/30/10
to vulcan...@googlegroups.com
It seems that the file is not being processed by the XSL transformation
responsible for *custom* metrics. What I have are metrics from JMeter
transformed to the format required for custom metrics in Vulcan...

Mahy

On 11/24/2010 07:56 PM, Chris Eldredge wrote:

> <mailto:vulcan...@googlegroups.com>.


> To unsubscribe from this group, send email to
> vulcan-users...@googlegroups.com

> <mailto:vulcan-users%2Bunsu...@googlegroups.com>.

Chris Eldredge

unread,
Dec 3, 2010, 5:08:10 PM12/3/10
to vulcan...@googlegroups.com
Looking at your sample XML, you are specifying a label attribute.  Vulcan is expecting the attribute to be named key.  If you change this, your metrics should be picked up by the identity transform.

Jan Kotuc

unread,
Dec 7, 2010, 5:15:57 AM12/7/10
to vulcan...@googlegroups.com
It helped! Just one other question: how to create "trend graphs" out of
those metrics?

TIA

Jan

On 12/03/2010 11:08 PM, Chris Eldredge wrote:
> Looking at your sample XML, you are specifying a label attribute.
> Vulcan is expecting the attribute to be named key. If you change this,
> your metrics should be picked up by the identity transform.
>
> On Tue, Nov 30, 2010 at 3:41 PM, Jan Kotuc <jko...@gmail.com
> <mailto:jko...@gmail.com>> wrote:
>
> It seems that the file is not being processed by the XSL transformation
> responsible for *custom* metrics. What I have are metrics from JMeter
> transformed to the format required for custom metrics in Vulcan...
>
> Mahy
>
> On 11/24/2010 07:56 PM, Chris Eldredge wrote:
> > Mahy,
> >
> > Try adding a line to WEB-INF/classes/log4j.properties like this:
> >
> > log4j.logger.net.sourceforge.vulcan.metrics=DEBUG
> >
> > Then restart the application.
> >
> > On the next build, $TOMCAT_HOME/logs/vulcan.log should print some
> debug
> > statements about which files the metrics plugin is processing, and any
> > errors that occur while parsing them.
> >
> > Hope that helps,
> >
> > Chris
> >
> > On Wed, Nov 24, 2010 at 5:08 AM, Jan Kotuc <jko...@gmail.com
> <mailto:jko...@gmail.com>

> > <mailto:vulcan...@googlegroups.com


> <mailto:vulcan...@googlegroups.com>>.
> > To unsubscribe from this group, send email to
> > vulcan-users...@googlegroups.com
> <mailto:vulcan-users%2Bunsu...@googlegroups.com>

> > <mailto:vulcan-users%2Bunsu...@googlegroups.com
> <mailto:vulcan-users%252Buns...@googlegroups.com>>.

Reply all
Reply to author
Forward
0 new messages