Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Windows Vista

Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 05-13-2007, 02:30 AM
anonymous
Newsgroup Contributor
 
Posts: n/a
high cpu usage using wmi

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 05-13-2007, 02:30 AM
  #2 (permalink)  
Old 05-13-2007, 03:10 AM
Geo
Newsgroup Contributor
 
Posts: n/a
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:
[color=blue]
> I have written an application that starts a ManagementEventWatcher and uses
> WMI. The application takes around 0-1% CPU in XP whereas in Vista CPU usage
> is 40% continuously. Is there a fix?
>[/color]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 05-13-2007, 03:20 AM
anonymous
Newsgroup Contributor
 
Posts: n/a
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...[color=blue]
> 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:
>[color=green]
>> I have written an application that starts a ManagementEventWatcher and
>> uses
>> WMI. The application takes around 0-1% CPU in XP whereas in Vista CPU
>> usage
>> is 40% continuously. Is there a fix?
>>[/color][/color]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 05-13-2007, 03:30 AM
Mr. Arnold
Newsgroup Contributor
 
Posts: n/a
Re: high cpu usage using wmi


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

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 05-13-2007, 03:40 AM
anonymous
Newsgroup Contributor
 
Posts: n/a
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. [email]Arnold@Arnold.com[/email]> wrote in message
news:OQxBggUlHHA.1532@TK2MSFTNGP03.phx.gbl...[color=blue]
>
> "anonymous" <na@vista> wrote in message
> news:BDC17BA5-9403-4683-86F6-A01AC9FC2CE5@microsoft.com...[color=green]
>>I have written an application that starts a ManagementEventWatcher and
>>uses WMI. The application takes around 0-1% CPU in XP whereas in Vista CPU
>>usage is 40% continuously. Is there a fix?[/color]
>
> 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.[/color]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 05-13-2007, 05:30 AM
Mr. Arnold
Newsgroup Contributor
 
Posts: n/a
Re: high cpu usage using wmi


"anonymous" <na@vista> wrote in message
news:5DB68B6E-309C-48AD-A270-F94A06BD132D@microsoft.com...[color=blue]
> 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.[/color]

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.

[url]http://www.codeproject.com/csharp/CustomTaskManager.asp[/url]
[color=blue]
>
> "Mr. Arnold" <MR. [email]Arnold@Arnold.com[/email]> wrote in message
> news:OQxBggUlHHA.1532@TK2MSFTNGP03.phx.gbl...[color=green]
>>
>> "anonymous" <na@vista> wrote in message
>> news:BDC17BA5-9403-4683-86F6-A01AC9FC2CE5@microsoft.com...[color=darkred]
>>>I have written an application that starts a ManagementEventWatcher and
>>>uses WMI. The application takes around 0-1% CPU in XP whereas in Vista
>>>CPU usage is 40% continuously. Is there a fix?[/color]
>>
>> 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.[/color]
>[/color]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 05-22-2007, 09:00 PM
bigjimmer
Newsgroup Contributor
 
Posts: n/a
RE: high cpu usage using wmi

CURIOUS IF YOU FOUND AN ANSWER TO THIS PROBLEM?

"anonymous" wrote:
[color=blue]
> I have written an application that starts a ManagementEventWatcher and uses
> WMI. The application takes around 0-1% CPU in XP whereas in Vista CPU usage
> is 40% continuously. Is there a fix?
>[/color]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
High CPU Usage trevordixon@gmail.com Windows XP 10 07-07-2007 09:50 AM
High CPU Usage trevordixon@gmail.com Windows XP 0 07-06-2007 02:00 PM
High CPU Usage brian Windows Vista 23 05-25-2007 06:10 AM
high cpu usage hello Windows XP 0 03-21-2007 06:00 PM
High CPU Usage Gatherel Windows XP 3 03-04-2007 08:45 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 04:44 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0