PerformanceCounter.NextValue with static value of Performance Monitor
Hi !
I have one question about the documentation "PerformanceCounter.NextValue Method for .Net Framework 4.5".
In the remark note we have the following:
If the calculated value of a counter depends on two counter reads, the first read operation returns 0.0. Resetting the performance counter properties to specify a different counter is equivalent to creating a new performance counter, and the
first read operation using the new properties returns 0.0. The recommended delay time between calls to the NextValue method is one second, to allow the counter to
perform the next incremental read.
But i need the counter "Current Bandwith" of "Network Interface" category, and it is static, its value does not change. I need to do two readings NextValue for static counters?
Thanks!
Hi Rafael,
I think this thread is specific to Windows Performance forum. This form is to discuss problems about CLR development. So I am helping you to move this thread directly into that forum. Thank you for your understanding.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
Possible to simulate a spreadsheet for input, with static values per row
Haven't seen this done but thought I'd ask, is it possible to simulate a spreadsheet interface in Apex? Basically, I have 9 columns each of which needs to be filled out for 10 time periods per day (row), and it's easiest for the user to tab across the columns then down to a new row / next timeslot, to fill out the whole day's worth of data, rather than entering hour by hour & then changing the timeslot manually. This would require that the value for column 1 of row 1 = 8, column 1 of row 2 = 9, column 1 of row 3 = 10 and so on. So, a tabular form but with static values on each row.
Is this possible & if so, any pointers to what to start researching to make this work would be greatly appreciated. I know they can work in a spreadsheet & upoad it and we may go that way but this seemed like an interesting problem to see if Apex could handle it; I just am uncertain where to start on it is all.
Many thanks for your pointers!
gp
Edited by: 834058 on Jul 18, 2011 10:37 AMTabular report, with some modifications to have rows added at start of usage. User would on occasion need to click a control to add rows..
Thank you,
Tony Miller
Webster, TX
There are two kinds of pedestrians -- the quick and the dead.
If this question is answered, please mark the thread as closed and assign points where earned.. -
OBIEE 10g - Logical column with static value
I created a logical column with static numeric value in it and added it to presentation layer. The column is not showing up in Answers. All other columns I added are showing up. The issue is with this one only.
I have verified permissions on this column in presentation layer. I tried reloading server metadata in answers, restarting all services but it didn't help.
One thing I noticed this column is showing fx icon instead of Σ icon.Kid,
The fx means it is a calculated column/formula and the sigma means that you've added some aggregation type to the column.
Either way it shouldn't matter and your column should be showing up.
I would attempt to create a new column and in the fx field try entering static text and see if that allows the column to be visible after dragging it to the presentation layer subject area.
Also what is the value that you are adding? -
Standard value for performance monitoring
Guys,
I am looking into performance monitoring in the RWB bacause I think our production server is too slow. I get an average processing time per message around 60 sec, +/- 30 sec depending on the volume going through. This is obviously an unexceptable value...
But I was wondering, are there standards set for these values to indicate when performance is too (s)low? Any reference docs available from SAP?
ThanksThere are various factors need to be considered. 60 seconds happening for almost all interfaces or only some specific. If only for some interfaces, then check the message volume size. SAP recommends message size up to 5 mb for optimum performance. Also security layers such as https/ssl and message level security such as encryption or digital signing/verify could cause some additional delay in processing too.
Fixing Hardware is easy... You go for the SAP recommended spec.
If you are using PI 7.1 or above use Message Packaging configuration. This will help considerable boost in performance.
Please check this link
http://help.sap.com/saphelp_nwpi71/helpdata/en/46/7a6e3469454b2be10000000a155369/content.htm -
Evaluate function doesn't work with Static values
Hi All,
I have been trying to call a evaluate function and have been successfully in calling it..but i face problem when i pass any static values to it...
For eg
when i try calling the function using one of the columns...it works fine
Evaluate('dbo.Hello(%1)',"Dim table_name"."Department" )
the function normally changes it to upper case.so i get all the value in the column in department in upper case.
but when i call any static value like
Evaluate('dbo.Hello(%1)','hello') it throws the following error..
[nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 42015] Cannot function ship the following expression: Evaluate( dbo.Hello(%1),'hello') . (HY000)
Can any one please help me in this
Regards
SKWhich version of Jdev are you using? What are the results you are getting?
-
SelectOneChoice with static Value
I want to create a simple selectOnechoice . I create input form that include :
name : _________ => I use af:inputText
department : _________ => I use af:selectOneChoice, that is a static list following code:
<af:selectOneChoice value="#{bindings.PersonEntryDepartment.inputValue}" label="department" id="selectOneDepartment" unselectedLabel="select department">
<af:selectItem label="Computer Science" value="0" binding="#{addPerson.selectItem1}" id="selectItem1"/>
<af:selectItem label="Science" value="1" binding="#{addPerson.selectItem2}" id="selectItem2"/>
</af:selectOneChoice>
when I click ok , I get value
name = value that I entered
department = null
How to get value from af:selectOneChoice, I want to receive department's value is 0 or 1Hi,
try setting valuePassThrough on the selectOneChoice to "true"
Frank -
Adding Expired heading with static value for reverse proxy
I'd like to add an Expired heading to a response leaving a reverse proxy to make sure that the browser will not cache the file locally (or at least attempt to prevent it).
Is this possible with SWP? I cannot find out how to do this in the admin interface at least. I'm running 4.0.5 B04
thanx,I'd like to add an Expired heading to a response leaving a reverse proxy to make sure that the browser will not cache the file locally (or at least attempt to prevent it).
Is this possible with SWP? I cannot find out how to do this in the admin interface at least. I'm running 4.0.5 B04
thanx, -
Performance monitor CF9 Windows 2008 R2 x64
When I enable the performance counters for coldfusion 9, I'm not able to add any counters in the performance monitor.
I can add counters in the 32 bit version of perfmon (mmc /32 perfmon.msc) but that is only because the CF9 performance counters seem to be incompatible with the 32 bit performance monitor.
The really weird thing is that when I tried to enable 1 single counter at a time they all worked, including the Coldfusion 9 counters.
The CF9 counters only work in combination with a few other counters;
.NET CLR Data
.NET CLR Networking
.NET Data Provider for Oracle
.NET Data Provider for SqlServer
.NET Framework
BITS
WmiApRpl
There is a bug tracked for what seems to be the same problem on Windows 7, this was closed but I dont know of any fix for this.
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=83344
I would appreciate any help in the right direction.
Thanks for reading,
JayHello,
Perhaps enable CFSTAT, CFadminUI > Debugging & Logging > Debug Output Settings > Enable CFSTAT .Do you get values for the same counters when using cfstat (eg C:\ColdFusion\bin>cfstat 5)?
CFSTAT uses similar counters as CF Performance Monitor.
HTH, Carl. -
Java Application Performance Monitoring - J2EE Transaction Monitoring
Hi,
Does SCOM 2012 R2 support J2EE transaction monitoring, ie how application behaves from end users. Apdex scores,response time and throughput , Execution method and SQL queries.I could not find transaction monitoring information in Java MP guide.
Is that Java managment pack supports monitoring only Tomcat and not weblogic,websphere and jboss on Linux servers,
Appreciate help in this
Thanks in advance
BharathHi Bharath,
"Apdex scores,response time and throughput , Execution method and SQL queries."
You're talking about the metrics similar to those which we have after configuring application monitoring in .NET Application Performance Monitoring (AVIcode APM) template, right? If so, this sort of APM profiling for Java apps introduced in SCOM 2012
R2. But it's only for Tomcat5.5+ hosted Web Applications:
http://blogs.technet.com/b/random_happy_dev_thoughts/archive/2014/01/07/system-center-2012-management-pack-for-java-application-performance-monitoring-released.aspx
If you use another application server rather than Tomcat (WebLogic, WebSphere, JBoss), I would recommend you to take a look at BeanSpy instrumentation itself:
http://www.systemcentercentral.com/demystifying-jee-app-performance-monitoring-in-opsmgr-2012-jee-faqs/
Download link:
http://www.microsoft.com/en-us/download/details.aspx?id=29270
This is not AVIcode-like APM (AVIcode-like APM relies on it as a prerequisite), but if you are familiar with MBeans structure, you could configure quite interesting monitoring transactions for your java apps:
http://blogs.inframon.com/post/2012/04/27/WebSphere-monitoring-with-the-JEE-Application-Performance-Monitoring-management-packs.aspx
http://stefanroth.net/2012/04/10/scom-2012-jee-application-availability-monitor-template/
Igor Savchenko, VIAcode Consulting LLC (http://www.viacode.com/) -
Static values of message choice
hi,
I want to create a message choice with static values, without VO.
how can i do this?
thxI want to put in a list values of currency.
I have create VO DeviseVO with two attribute :
RowKey : primaryKey,number
Values : Varchar
i have tried this code but the numberd displayed is 0
public void initializeMethod(){
String values []={"Dinar","Euro","Dollar"};
DeviseVOImpl pervo=getDeviseVO1();
if(pervo.getFetchedRowCount()==0)
for(int i=0;i<3 ;i++)
pervo.executeQuery();
Row prow = pervo.createRow();
pervo.insertRow(prow);
try
prow.setAttribute("RowKey",new Number(i));
prow.setAttribute("Values",values [ i ] );
pervo.getCurrentRow().validate();
catch(Exception ex)
pervo.getCurrentRow().remove();
pervo.executeQuery();
System.out.println(pervo.getFetchedRowCount());
} -
Query Issue with adding a static value
I have written a query in SAP that works the way I need it to. I am going to schedule it so that SAP does a file transfer of the output to another area where the data will be accumulated.
My problem is that I want the name of the system to appear at the end of each line but it is not in any table I can find to match up with the userid.
EX:
UserID Group System
JDOE HR Query Group P201
The field for system is not in any tables but I want to add it and give it a constant/static value all the time in the output.
Any ideas?
Thanks!
Justin Dauby -- SAP Security Analyst
Kimball International Inc.,The name of the system is not in a table, but rather a structure called SYST. You can evaluate it using the system field sy-sysid.
Another option is to call function module RFC_SYSTEM_INFO. The export parameter RFCSI_EXPORT will deliver the system id from component RFCSYSID of the structure RFCSI.
Cheers,
Julius -
BO Webi: How to populate a variable with the set of static values for Graph
Hi All,
I have the data: Order number, Order Date, processing time coming from the SAP Bex query in the below format:
Order No Order Date Processing time (Days)
1 Jan-2011 4
2 Jan-2011 5
3 Feb-2011 6
In BO webi report, I have to report the number of orders which were processed in <1day, <2days, <3days,...<10days in a graphical view. i.e., X-Axis: <1day, <2days, <3days,...<10days(10 static buckets for the processing days)
Y-Axis: Number of Orders.
The graphical output should be like below:
X-Axis: <1day, <2days, <3days,<4days,<5days,<6days,<7days,<8days,<9days,<10days
Y-Axis: 0, 0,0,0,1,2,3,3,3,3 (count(Order No)) (Cumulative count)
I am able to calculate the number of orders individually for each of the 10 buckets. But the problem i am facing is that I am not able to hold the 10 static bucket values in a variable to use it for the x-axis in the Graph, as these 10 static bucket values are not coming from the backend source.
I would like to know if there is way to populate a variable(to use it for the X-Axis in the graph) with the set of 10 static values.
Any help would be highly appreciated.
Thanks,
LeelaHi ,
I think we can use the variable as X-axis in chart.. but Variable Qulaification should be Dimension.
can you try this?.
Using efasion universe
1) Select month and Sold at (unit price) , then run the query
2) create the variable V_Month ==If [Month]=1 Then "Month1" Else "Month2" (Note = Variable Qulaification should be Dimension)
3) Create the variable V_Sum= sum (Sold at (unit price))
4) create another variable V_Cumulative_Sum==[V_Sum]+Previous([V_Sum])
Now add V_Month and V_Cumulative_Sum in table , then convert to chart.. now you can add the variable V_Month as X-axis of the chart.
Hope this will help:)
Thanks
Ponnarasu K -
Dropdown box with query *and* static values?
Hi guys,
If I had a dropdown box with a LOV being generated from a query,
Select distinct PERSON from USER_TABLE
Bill
Fred
Steve
Is it possibe to somehow add static values so that they sit permanently on top of what ever values are produced by the query?
Null
Not Null
Bill
Fred
Steve
Thanks,
Neil.select 'Null' d, 'Null' r from dual
union all
select 'Not Null' d, 'Not Null' r from dual
union all
select distinct person d, person r from user_table
...like that?
Scott -
Investigating disk utilization issue with performance monitor
Hello
im using windows 2008r2 server, lately the server became very slow.
i ran performance monitor with the "avg disk queue length" counter and it seems that is very high, how can i tell exactly wich process is consuming all the disk utilization?
Thanks!
GuyHi,
Thanks for your post.
Please refer to this article about hunting down hard disk resource hogs
http://www.techrepublic.com/article/how-to-hunt-down-hard-disk-resource-hogs/
Regards.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
IIS FTP Live monitor with Resource Monitor or Performance Monitor
Hi
I am looking for a way to use "Performance/ Monitor" or "Resource Monitor" to monitor live connections and sent/received kb, and so far i only get data when starting the collector for then to view the report.
It is not the way i want it, i would like to view live connection and speed, byte and well the relevant data for an FTP site?
any input on this?
This topic first appeared in the Spiceworks CommunityHi stealth,
Maybe you can get further assistance from scripting guys forum :
http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
I just find the blog regarding cpu usage via vb script:
http://blogs.technet.com/b/heyscriptingguy/archive/2005/04/21/why-does-my-performance-monitoring-script-keep-returning-the-same-incorrect-values.aspx
Best Regards
Elton Ji
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.
Maybe you are looking for
-
Is there a way to order multiple different prints in any quantity from Iphoto? it appears currently like I would have to ship each separately, even if only one print... is there a way around this so I can can get several DIFFERENT prints of any quant
-
"Disk Can Not Be Read or Written To"
Alright, here's my problem. Couple days ago ALL of my music dissipeared off my iPod for no apparent reason overnight. I plugged my iPod back in and all the music showed up, but there's no CD art work and I can't transfer songs between the two. I get
-
Need suggestion about a fast XML parser
I have a program which needs to parse lots of XML files of sizes varing from few MBs to hundreds of MBs. It needs to parse the file in one-pass, and for which the SAX approach is best suited. I initially tried coding this program using the SAX parser
-
How to view adobe flash? how to save pdf opened in safari?
I am new user on vista. Safari is cool. got addicted but have toughtime getting used to it. 1. Flash files won't run. Adobe do not have flash plugin for safari http://www.flickr.com/photos/8869854@N04/545930914/ for reference 2. PDFs open in Safari w
-
HT201077 Photo Stream website not showing on Windows Computer
I was able to set up a photo stream and make it a public website, but I can't see it on a Windows Computer. It only hangs while it is trying to load. I am able to view the website from an Mac. Any ideas why it isn't working from a Windows computer