Like many organizations, I don't have a single software application that I run to support the enterprise. I have many different software components that facilitate the business and these software components are deployed to multiple machines. All of these applications were built with some enterprise monitoring and management in mind. S...
I am trying to find an optimal solution for the following problem: there is a need to design a database (postgres-based), the system of triggers and counters in it, which will form a system of efficiently querying, updating and storing information on 'how much unread comments exist in each article (or blog entry, or smth. similar), that ...
Hi
I have created a PerformanceCounterCategory like below
var category = PerformanceCounterCategory.Create("MyCat", "Cat Help", PerformanceCounterCategoryType.SingleInstance, "MyCounter", "Counter Help);
Now i would like to add a new counter to the category to monitor another item but i can't find the api call to do it.
Any Ideas?
...
I set up a hitcounter so that each time someone goes to my site, one of 7 different sidebars loads up. There is a file called counter.php that writes to a text file called hitcounter.txt. All the references to files seem to be relative but when I moved them to a new directory at my new host I got this error instead of a happy hit count...
Hi,
this is driving me crazy.
I have 2 testing machine, one XP, and one Vista.
I am running the same commands on both.
These commands include creating a logman counter ( like a perfmon with command prompt), starting these counters, then stopping them, and then deleting them.
The problem is this:
On XP they work perfectly, I am getting ...
Yes, this is rather subjective, but I am doing research on that matter and am curious to see if others have come to the same conclusions that I have. So, I ask, if you could only monitor 10 SQL Server 2005 counters, what would they be?
...
with some performance counters they are compriseed of 2 counters the actual counter and a "base" counter used for calculations.
The question is, in .net, is there any easy way to get the linked base counter. from the web I've seen them linked by name but that only works sometimes.
Any ideas appreciated.
...
I'm working on a project to capture various disk performance metrics using VBScript and would like to use a sub procedure with an object as an argument. In the following code samples the object I'm referring to is objitem.AvgDiskQueueLength which will provide a value for the disk queue length. I haven't found a way to make it work since ...
I have a photo-hosting website, and I want to keep track of views to the photos. Due to the large volume of traffic I get, incrementing a column in MySQL on every hit incurs too much overhead.
I currently have a system implemented using Memcache, but it's pretty much just a hack.
Every time a photo is viewed, I increment its photo-hits...
I'm building a race administration system, with drivers and race heats.
I need to divide, lets say, 13 drivers into groups of maximum 6 per group. It's not possible since the result will be 2.2 groups, wich is impossible, 3 groups is required. Smaller groups than 6 is allowed, so I decide to divide 13 by 3 to accomplish the follwing di...
I have a C# application that adds some performance counters when it starts up. But if the registry HKEY_LOCAL_MACHINE->SOFTWARE->Microsoft->Windows NT->CurrentVersion->Perflib is corrupted (missing or invalid data), the operation of checking the existence of the performance counters (PerformanceCounterCategory.Exists(category) takes a re...
I am sure everybody has bumped into this. As you scale a web server that uses multiple application pools, it's valuable to collect performance counters for each application pool 24x7. The only problem is - Perfmon links counters to application pools by process ID, so whenever an application pool recycles you have to remove the counters f...
I have a function that is called some large number of times, and eventually segfaults. However, I don't want to set a breakpoint at this function and stop after every time it's called, because I will be here for years. I've heard that I can set a counter in GDB for a breakpoint, and each time the breakpoint is hit, the counter is decreme...
Hello guys, I'm near the end of a program I had got to code for my university courses, but I got into a last trouble: formatting the output!
It's nothing about code: this is just cosmetics (but I need to fix that cause my output's got to respect some standards).
Basically, my program will read a .csv file and process that by dividing t...
I need to count frequencies in the 0.1Hz to 1.99GHz range.
At my disposal is a 16bit counter with an additional overflow bit, a timer accurate to 1uS, frequency dividers and a microcontroller to glue all these together.
The logic I have decided to use is so:
Condition the input signal to give a 50% duty cycle 5Vpp square wave
Feed th...
Hi, I'm trying to create an application that allows multiple recording to take place. In order for that to happen, I have to include a counter and add a variable to my recording file. The problem is - my counter seems to work but it is not captured when recording take place. Any suggestions?
- (IBAction)record:(id)sender
{
if (recorder...
I need to measure the rate an application event which is occuring with a frequence bellow once per sec. Can this be achieved using the CountPerTimeInterval32 counter type and if so how? If not, what is the best type of performance counter to use to measure infrequently occuring events?
...
During performance testing, I found that the values of "Process(w3wp)\% Processor Time" are greater than 100. Some values are
237.1436486
312.5338052
341.2373994
264.4097661
191.6237736
I thought this value represents the CPU usage by w3wp process. I don't understand why the value is greater than 100%.
Any insights appreciated.
Thanks...
For the public void setValue(int newcount) how do I make it so the value the other program sends is used to set the newcount? Also I have to do this "If the newcount < zero or > maxValue, do nothing."
private int maxValue;
private int count;
/**
* Constructor for objects of class Counter
*/
public Counter(int ma...