Marcin,

   We had similar issues, so decided to just create the performance counters 
when the application is started  the first time, have you thought about doing 
that? (we allow our customers to configure which counters they actually want to 
use because we have over 15,000 metrics available within our application).

John

-----Original Message-----
From: Marcin Roman [mailto:t-mro...@microsoft.com] 
Sent: Thursday, November 03, 2011 10:21 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Installing performance counters problem

Hi,

It turned out that all of the missing entries were of type rawBase and it was 
expected behavior not to show them. But the problem with gathering data still 
exist: it should be able to work with multiple instances and setting on/off 
MultiInstance attribute does not allow to catch anything. The application that 
registers counters works properly and the counters are visible in performance 
monitor, but when I click them, the instances field is empty.

Regards,
Marcin

-----Original Message-----
From: Marcin Roman [mailto:t-mro...@microsoft.com] 
Sent: 1. november 2011 16:37
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Installing performance counters problem

Hi,
This is my first post on this list, so I would like to say hello ☺

I have several performance counters that I want to install. All of them should 
go to the same category. I did some research over the web and found the 
following threads:
http://stackoverflow.com/questions/3856680/how-do-i-create-performance-counters-for-a-net-application-with-a-wix-based-ins
http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg34128.html
http://masstransit-project.com/documentation/performance-counters
which recommends using PerformanceCategory/PerformanceCounters tags. So I read 
the documentation, found an example in the source 
(wix35-sources\examples\test\perfcounter) and try to implement something 
similar.

I wrote something similar to:
<util:PerformanceCategory Id="Id" Name="Category 
Name" Help="Description" MultiInstance="yes">
    <util:PerformanceCounter Name="% performance counter 
1" Type="rawFraction" />
    <util:PerformanceCounter Name="PerformanceCounter2" Type="rawBase" />
    <util:PerformanceCounter Name="# performance counter 
3" Type="numberOfItems64" /> </util:PerformanceCategory>

After installation, I opened Performance Monitor and then wanted to add new 
counters. The "Category Name" was created successfully in Available counters, 
but unfortunately it has only the counters that name starts with "%" and "#" 
(so the second from above is missing - why?). When I chose the existing one, 
moved it to Added counters and press OK, the changes are not applied (no data 
is gathered). Fields Parent and Instance are blank.

I tried to install also the example from wix source, but the installation 
finishes with "Failed to install performance counters (-2147024894)"; there is 
also nothing interesting in log.
It is also unclear to me how the mapping works; is that the name from 
PerformanceCounter matches the name under which performance counter is 
registered, or there is different rule? I have some doubts now, because of the 
problems above. Documentation is very limited at this point.
I am using WiX 3.5.

Thank you in advance,
Marcin

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save &#36;700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to