cpu-usage

Tasklist CPU % usage

I'm trying to use tasklist to find out which process is consuming more than X percent of my CPU (to later kill it with taskkill.) How do I know what percent does a time format represents? The documentations says: TASKLIST options /FI filter And one filter may be: CPUTIME eq, ne, gt, lt, ge, le CPU...

CPU Usage Per Process in Python

Is it possible for me to see the amount of processor usage (% of maximum) that the current, python, app is using? Scenario: My host will allow me to run my app as long as it does not consume more then X% of the CPU power, so I would like it to 'keep an eye on itself' and slowdown. So how can I know how much CPU the app is using? Targ...

How to get the CPU Usage in C#?

I want to get the overall total CPU usage for an application in C#. I've found many ways to dig into the properties of processes, but I only want the CPU usage of the processes, and the total CPU like you get in the TaskManager. How do I do that? ...

Does anyone know how a System.Windows.Forms.Timer affects the host application and the system in general?

Does anyone know how a System.Windows.Forms.Timer affects the host application and the system in general? A threaded background loop on one hand has a very high CPU usage %, whilst a Timer with a very high tick rate shows no effect in Windows Task Manager. Does a high tick-rate timer clutter up the Windows Message loop, or? ...

Flash / Actionscript CPU profiler

Have you found such a tool and used it successfully? ...

Is a multi-user and multi-processor environment useful with threading?

Taking CPU affinity into account, will such an environment be useful with threading? Or will there be a performance degradation in such a system, if multiple users login and spawn multiple kernel and user threads? ...

Limit in the memory and cpu available for a user in Linux

Hello, I am a little concern with the amount of resources that I can use in a shared machine. Is there any way to test if the administrator has a limt in the amount of resources that I can use?. And if does, to make a more complete question, how can I set up such limit?. Thank you. ...

jQuery animate() and browser performance.

I've got some elements that I'm moving across the page very slowly. Essentially, I'm decreasing the left margin of two images over a span of 40 seconds or so. Visually, it's working beautifully. However, my processor jumps to about 50% usage during the animations. This isn't specific to any single browser either- it's the same way on S...

Is it possible to control CPU usage from a Java application?

I'm developing a Java application that streams music via HTTP, and one problem I've come up against is that while the app is reading the audio file from disk and sending it to the client it usually maxes out the CPU at 90-100% (which can cause users problems running other apps). Is it possible to control the thread doing this work to us...

Best way to measure execution time in automated regression tests

I have some code that I want to measure the speed of while it runs continuously in automated regression tests. The purpose of this would be to alert me to changes made to the code which have had a negative impact on performance. In pseudo-code, I want something like this: cpuTimer.start runTest cpuTimer.stop diff = cpuTimer.getDuratio...

View CPU usage of individual processors in UNIX

I am trying to diagnose a problem on a server box that I believe is related to CPU usage. However, when I log in to the box and run 'top' I see a %CPU of 160 or higher. This is because this is a multi-processor box. How do I see the CPU usage of the individual processors? How can I do this in real time? Thanks! ...

How can I stop a Java while loop from eating >50% of my CPU!?

Okay, I tested this on an empty program, and just having a while(true){} running gave me >50% on my CPU. I have a game I'm working on that uses a while loop as it's main loop, and it's CPU is at 100 all the time. How can I get Java to repeat something over and over without eating up >50% of my CPU just to do the repeating? ...

Is there any way of throttling CPU/Memory of a process?

Problem: I have a developers machine (read: fast, lots of memory), but the user has a users machine (read: slow, not very much memory). I can simulate a slow network using Fiddler (http://www.fiddler2.com/fiddler2/) I can look at how CPU is used over time for a process using Process Explorer (http://technet.microsoft.com/en-us/sysintern...

Command line command to auto-kill a command after a certain amount of time.

I'd like to automatically kill a command after a certain amount of time. I have in mind an interface like this: % constrain 300 ./foo args Which would run "./foo" with "args" but automatically kill it if it's still running after 5 minutes. It might be useful to generalize the idea to other constraints, such as autokilling a process ...

Is there a way to see how much CPU usage per core a process is using?

I know in perfmon you can see how much each core is utilized, and how much total CPU a particular process is using. However I can't seem to find a way to see how much CPU a process is using broken down by cores. Is there a built-in way to see this information? Is there a programmatic way to see this? (C# preferred) Am I demonstrati...

Estimating relative CPU usage during compilation...

While compiling this morning I had a thgought. Given a dedicated Linux machine (running Fedora for example), users remotely log in and compile (using gcc) their c++ software, which is stored on their own machines (on a small LAN), linked with symbolic links, to the Linux box. Assume that each user is compiling exaclty the same code fo...

Firefox plugin CPU usage

Hi, I need to collect data on firefox CPU usage during web-development coding session and I'm wondering if it is possible to monitor CPU usage of particular firefox plugin. Right now i'm using windows' perfmon.msc, but it will only allow me to monitor firefox process as a whole. Do you know any tools that would allow me to get CPU da...

How to reduce CPU usage when moving a component in a OnMouseMove event in Delphi 7 ?

In a Delphi 7 application, I want to move a component accordingly to the mouse. Im doing something like that: procedure MyComponent.MouseMove(Sender: TObject;Shift: TShiftState; X, Y: Integer); begin AnotherComponent.Top := X; AnotherComponent.Left := Y; end; When I move the mouse the CPU usage for the main core goes up to 100% on...

CPU Usage using WMI & C#

How can i retrieve the current CPU usage in c# using WMI? I've seen plenty of posts using performance counters, but I need a solution that can work with remote machines. I've also found a VB solution here, but I'd prefer to accomplish this in C# if possible. ...

Tomcat consuming high CPU

Tomcat.exe is consuming 75% of CPU. Is anyone having any idea why it happens and how can that be decreased? I am using Tomcat5.5 & J2SDK v 1.4.2_12 ...