 |
|
 |
Thank you very much
讚
|
|
|
|
 |
|
 |
Can you give any update to work on vista and win7
|
|
|
|
 |
|
 |
Hi!
I'm trying to add this code to a XPCOM dll to consum it from firefox
Is it necessary any kind of special security context to consum this code?
In other words, how can I modify this code to run on a dll useful in a XPCOM context?
It's possible?
Thank you so much!
|
|
|
|
 |
|
 |
See Google Groups on api forums where the right way has been shown (and for multiple Cores)
|
|
|
|
 |
|
 |
Baseing on the source code provided in here, I created a dll as a Native Library in Java so that I could get the CPU usage at the moment of the servlet executing. Initially, everything is fine. However, when I carried out the stress test (about 30 concurrent users), the Websphere 5.1.14 would be hang and restarted automatically after a period of time (e.g. 1 hr). I find that there was an error event in the Windows event log. The message was about
"Faulting application java.exe, version 142.2004.6.26, faulting module CheckCPU.dll, version 0.0.0.0, fault address 0x00003111"
I really have no idea about it, may anyone kindly give me advice?
Thanks a lot.
P.S. The websphere is running in Windows 2003 SP1
|
|
|
|
 |
|
 |
how can i calculate the cpu usage of a dll when the computer has more then one cores (4)?
|
|
|
|
 |
|
 |
Hi,
I'm using Vista Ultimate 64-bit, and your application displays my CPU being busy by around 387%, which doesn't look right... ))
My CPU Intel Core Quadro.
|
|
|
|
 |
|
 |
Can I make use of same code for WinPE bootable systems?I am using WinXP image for WinPE boot.
|
|
|
|
 |
|
 |
Great sample, but why wouldn't you refactor GetCpuUsage(DWORD dwProcessID) and GetCpuUsage(DWORD dwProcessID)? At least have one call the other...
|
|
|
|
 |
|
 |
Hi, thanks for the code. It works under ISAPI if running on XP but not on Win 2003 server. I'm calling it througn process id.
The following line returns 0 every time. But works fine under XP!
Any suggestions? Thank you.
lnNewValue = PerfCounters.GetCounterValueForProcessID(&pPerfData, dwObjectIndex, dwCpuUsageIndex, dwProcessID);
|
|
|
|
 |
|
 |
hi!
thank you for your codes.
now, i am using your code in my program, but i wonder how can i get the counter index to get value. ( such as user time, kernel time of cpu..)
i was trying to find the secret of indexes, but failed...
can you show me the way to find the indexes or the indexing list of counters?
user time, kernel time... it's neccessary to my program...
thank you for your help, in advance!!
-- i agree.. BUT!! --
|
|
|
|
 |
|
 |
I have a strange bug. Your code works great, but after inserting at a big project it starts to always return 100% about full cpu usage. Any ideas? -___-
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
I don't think so. It works for me in XP but does not work in Vista. For Vista see http://msdn2.microsoft.com/en-us/library/aa394317(printer).aspx? I have not tried to implement the new stuff but will soon have to...
Howard C. Anderson
HTTP://www.astroshow.com
|
|
|
|
 |
|
 |
works on vista for me
|
|
|
|
 |
|
 |
hi friends!
is there any libray or header available in turbo c++ compiler to get the CPU usage, system perfomance monitor etc., ?
kindly reply me soon
thanks in advance
AK
|
|
|
|
 |
|
 |
Hello!
i'm trying to compile with gcc. but i can't find the way.
any help?
|
|
|
|
 |
|
 |
Ok i`m starting to think i may be retarded since i tried everything to get this wonderful code to work correctly on my XP box. I read all the previous messages and STILL can't get it to work. it always shows 100%.
However the original, unmodified sample project i downloaded here is dead right on the CPU load.
|
|
|
|
 |
|
 |
If my sample works good on your xp then send me by mail your code dudiav@hotmail.com so i can take a look.
|
|
|
|
 |
|
 |
Well that is the funny thing ... it`s your original code, those exact files(appart from adding a T()) made as a new project in VS2005. But your code _converted_ to VS2005 works just fine. *boggles*
|
|
|
|
 |
|
 |
I have almost the same situation. Have you solved this problem?
|
|
|
|
 |
|
 |
For some reason, this project won't compile under Visual C++ 2005 (Express). It doesn't find the atlbase.h / atldef.h and when I include them (from the latest Microsoft SDK), even if I copy the files to Visual C++'s include folder, it doesn't recognize it. And when it does, it gives me another error:
Project : error PRJ0003 : Error spawning 'midl.exe'.
What could I do?
|
|
|
|
 |
|
 |
Nevermind, I solved the midl.exe part; but I still can't compile due to the lack of atldef.h...
|
|
|
|
 |
|
 |
how did u solved the midl.exe error, i am stuck here. I'm trying to create a dll and it displays the error as below.
Project : error PRJ0003 : Error spawning 'midl.exe'.
Please guide me,
thanks in advance
madhav_sigdel
|
|
|
|
 |