Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - high cpu usage using wmi

Reply
 
Old 05-13-2007   #1 (permalink)
anonymous


 
 

high cpu usage using wmi

I have written an application that starts a ManagementEven****cher and uses
WMI. The application takes around 0-1% CPU in XP whereas in Vista CPU usage
is 40% continuously. Is there a fix?


My System SpecsSystem Spec
Old 05-13-2007   #2 (permalink)
Geo


 
 

RE: high cpu usage using wmi

You are posting from the future, please adjust your time&date settings.
I never read posts from people who try to get on top of the list this way.

"anonymous" wrote:

> I have written an application that starts a ManagementEven****cher and uses
> WMI. The application takes around 0-1% CPU in XP whereas in Vista CPU usage
> is 40% continuously. Is there a fix?
>

My System SpecsSystem Spec
Old 05-13-2007   #3 (permalink)
anonymous


 
 

Re: high cpu usage using wmi

I didnt know that posts written here take around 5 minutes to appear.
anyways can you answer my question?

"Geo" <Geo@discussions.microsoft.com> wrote in message
news:E5F5B503-BB8F-4D1C-91ED-5936EC893A49@microsoft.com...
> You are posting from the future, please adjust your time&date settings.
> I never read posts from people who try to get on top of the list this way.
>
> "anonymous" wrote:
>
>> I have written an application that starts a ManagementEven****cher and
>> uses
>> WMI. The application takes around 0-1% CPU in XP whereas in Vista CPU
>> usage
>> is 40% continuously. Is there a fix?
>>


My System SpecsSystem Spec
Old 05-13-2007   #4 (permalink)
Mr. Arnold


 
 

Re: high cpu usage using wmi


"anonymous" <na@vista> wrote in message
news:BDC17BA5-9403-4683-86F6-A01AC9FC2CE5@microsoft.com...
>I have written an application that starts a ManagementEven****cher and uses
>WMI. The application takes around 0-1% CPU in XP whereas in Vista CPU usage
>is 40% continuously. Is there a fix?


Well, your .Net program runs on a thread. So, set the thread's processing
priority.

System.Threading.Thread.CurrentThread.Priority = High, Normal,
BelowNormal -- enums.

You can look it up use the .NET IDE Help or use Google.

You should post to a MS-Public-dotnet NG.

My System SpecsSystem Spec
Old 05-13-2007   #5 (permalink)
anonymous


 
 

Re: high cpu usage using wmi

Hi Mr Arnold, the program runs fine on Windows XP. I saw that the CPU is
used by wmiprvse.exe which is not the same process as the program. So
System.Threading.Thread.CurrentThread.Priority on the program will not
affect wmiprvse's priority. I have manually set wmiprvse.exe's priority to
low but no luck, the same 40-50% use.

This problem doesn't occur in XP, and the program and wmiprvse.exe both take
less than 1% CPU on the average. So, it is a Vista issue.

Your further suggestions are appreciated.
Thanks.

"Mr. Arnold" <MR. Arnold@Arnold.com> wrote in message
news:OQxBggUlHHA.1532@TK2MSFTNGP03.phx.gbl...
>
> "anonymous" <na@vista> wrote in message
> news:BDC17BA5-9403-4683-86F6-A01AC9FC2CE5@microsoft.com...
>>I have written an application that starts a ManagementEven****cher and
>>uses WMI. The application takes around 0-1% CPU in XP whereas in Vista CPU
>>usage is 40% continuously. Is there a fix?

>
> Well, your .Net program runs on a thread. So, set the thread's processing
> priority.
>
> System.Threading.Thread.CurrentThread.Priority = High, Normal,
> BelowNormal -- enums.
>
> You can look it up use the .NET IDE Help or use Google.
>
> You should post to a MS-Public-dotnet NG.


My System SpecsSystem Spec
Old 05-13-2007   #6 (permalink)
Mr. Arnold


 
 

Re: high cpu usage using wmi


"anonymous" <na@vista> wrote in message
news:5DB68B6E-309C-48AD-A270-F94A06BD132D@microsoft.com...
> Hi Mr Arnold, the program runs fine on Windows XP. I saw that the CPU is
> used by wmiprvse.exe which is not the same process as the program. So
> System.Threading.Thread.CurrentThread.Priority on the program will not
> affect wmiprvse's priority. I have manually set wmiprvse.exe's priority to
> low but no luck, the same 40-50% use.
>
> This problem doesn't occur in XP, and the program and wmiprvse.exe both
> take less than 1% CPU on the average. So, it is a Vista issue.
>
> Your further suggestions are appreciated.


You may be able to look at the code for this solution and pillage and
plunder something together that you could use, non UI. It's a shot.

http://www.codeproject.com/csharp/CustomTaskManager.asp

>
> "Mr. Arnold" <MR. Arnold@Arnold.com> wrote in message
> news:OQxBggUlHHA.1532@TK2MSFTNGP03.phx.gbl...
>>
>> "anonymous" <na@vista> wrote in message
>> news:BDC17BA5-9403-4683-86F6-A01AC9FC2CE5@microsoft.com...
>>>I have written an application that starts a ManagementEven****cher and
>>>uses WMI. The application takes around 0-1% CPU in XP whereas in Vista
>>>CPU usage is 40% continuously. Is there a fix?

>>
>> Well, your .Net program runs on a thread. So, set the thread's processing
>> priority.
>>
>> System.Threading.Thread.CurrentThread.Priority = High, Normal,
>> BelowNormal -- enums.
>>
>> You can look it up use the .NET IDE Help or use Google.
>>
>> You should post to a MS-Public-dotnet NG.

>


My System SpecsSystem Spec
Old 05-22-2007   #7 (permalink)
bigjimmer


 
 

RE: high cpu usage using wmi

CURIOUS IF YOU FOUND AN ANSWER TO THIS PROBLEM?

"anonymous" wrote:

> I have written an application that starts a ManagementEven****cher and uses
> WMI. The application takes around 0-1% CPU in XP whereas in Vista CPU usage
> is 40% continuously. Is there a fix?
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
High CPU Usage Vista General
high cpu usage when using wmi Vista performance & maintenance
High CPU usage when using WMI Vista performance & maintenance
High CPU usage Vista performance & maintenance
Very High CPU Usage Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46