After using WMIquery to listen Creation/Deletion of one process makes CPU usage to 100 % at remote terminal server

Hi there ,
I am new to the WMI and stuck with max CPU usage .
I have to open my plugin(MakeyourVoice.exe )
 as MyAPP.exe process starts by a windows user. For hearing 
the start of MyAPP.exe in processes space ,I have created the WMIquery in watcher.exe and query
 used as
scope =
new ManagementScope(String.Format("\\\\{0}\\root\\CIMV2", “localhost”),
null);
scope.Connect();
wmiStartQuery =
new
WqlEventQuery("__InstanceOperationEvent",
new TimeSpan(0, 0, 1),
"TargetInstance ISA \"Win32_Process\" AND TargetInstance.Name=\"MyAPP.exe\" ");
ManagementEventWatcher StartWatcher =
new ManagementEventWatcher(scope, wmiStartQuery);
// register for WMI event within the scop
 StartWatcher.EventArrived +=
this.WmiEventHandler;
 // Start Watcher
 StartWatcher.Start();
Now the problem is if I run my watcher process in Remote Terminal Server (Windows Server 2008 R2 Standard)  with 5-6
number of users logged in the CPU usage shoot up to 100 %.Due to this users  cannot do any activity on system.
Could you please suggest how can I solve this issue, so that users can use my plugin?
Thanks in advance..

Hi Sharma, 
Please seek help from
Scripting forum or else wait until any of our moderator move this post to concerning forum.
Thank you for understanding.
Regards, Ravikumar P

Similar Messages

  • Dock Process High CPU Usage (No Parallels, Already Tried Deleting dock.plist)

    I'm having a reoccuring problem with the Dock process putting the CPU usage over 100% continiously.
    I am not running Parallels. I have already tried removing the com.apple.dock.plist file. The problem persists.
    This is a 2008 MBP with 8GB of ram. Recently upgraded to 10.7.2.
    No other changes except for upgrading to 10.7.2.
    The only other odd behivor was that initially the com.apple.dock.plist file was missing from the ~/Library/Preferences folder initially. It wouldn't automitacally recreate either. I had to create a new use and copy the file over to my profile. After that the .db and .lockfile got created and it appeared to sovle the problem for about a day.
    Any thoughts?

    I am also having the same issue. Within an hour of starting a simple Windows 7 x64 VM - using 1 core and 2GB RAM - the processor usage and memory go through the ceiling on the Dock process. Literally using all available CPU processes and over 2-3GB of memory itself. This is not a usable or acceptable bug. I need to use Windows 7 for work and I cannot afford to spend time restarting things every 2 hours. It uses so many resources that time machine cannot back up and eventually the whole system becomes unusable - and not in the generlly thought of way but in th way I remember windows being when explorere and everything that goes with it was crashing. I have some theories and I am going to try to turn off the 3D aceleration and see if that makes a difference but I really hope this gets the attention of VMWare. I enjoy a lot of the feature the seperates Fusion from Parallels. I work in IT and need to be able to interchange and use different VM's on the fly before they go to our ESX server and/or other VMware workstation PC's. If it wasn't for that fact alone - I may very well already be downloading Parallels. I will update with how the 3D adjustment goes.
    UPDATE (over an hour later): After Shutting down the VM and going into the settings - to help you that dont know (Virtual Machine>Settings>Display) and turned off the 3D Acceleration (which I don't need for my work applications) the problem seems to have stopped. The dock is now not going over 32 MB of memory used and the CPU use is stable (generally arond 0.1% or lower) !!!!
    I hope VMWare fixes this soon, but for now this will be a decent workaround. Hope this helps more of you! I will repost this over at apple support.

  • After 3 weeks with MS Tier 2 on the phone, the CPU is often 100%, memory 2.5 gigs, slooooow performance. Everything has been uninstalled, reinstalled, wiped cle

    I have been letting a MS techie try everything to stop my laptop from choking on 100% cpu usage and a gradually rising memory, slowing the computer to a standstill. Even with no internet access, the cpu usage swings wildly and eventually ends up at max, stopping the computer. Complete malware scans, disc clean up, registry cleanup, complete uninstall/reinstall of addons, Firefox (incl registry keys), disc defrag, almost nothing left to throw out and then reinstall. A reboot does not always help,. several times, it rebooted at 100% cpu usage. But the sysinternals performance monitor shows the largest drain on cpu is Firefox. MS has taken large files twice now to analyze the problem, will report back in a week. IE runs better but I want to continue using FX. If I can.

    Did you check which programs and services are started?
    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test to see if that helps.
    If it works in Windows Safe mode then you have a problem with other software, likely security software or a system driver, that is running on your computer.<br />
    Make sure that you have the latest updates of your security software and major hardware drivers.
    You can use the MSConfig program or the Autoruns utility to see which software and services are getting started.
    *http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx

  • How to set a password to my airport express after using it for a long time without one?

    First,i haven't ever set a password .
    So what should i do when i was asked to input my passport?
    THEN do you have original one or something like that?
    Hope to get your help ASAP!
    thanks!

    Hi - the default password in English is "public" - I hope this helps.

  • Terminal Server Profiles - Not Deleting(No Roaming Profiles)

    I am currently not using roaming profiles. I have two Terminal Servers(both 2008R2) and 1 database server. Terminal server A houses the profiles and pulls user settings, desktop etc. In using the broker service, even if I log into to Terminal server B, I
    get the profile that was setup on Terminal Server A or in other words, upon logging in the DELETED PROFILE is still being pulled.
    So Indeed...
    Upon deleting user1 from Terminal Server A and where the profiles are housed, it deletes just fine.
    But..
    Upon logging back into Terminal Server A or Terminal Server B I get the old profile. Obviously there is a caching problem somewhere.
    Can anyone help please?

    Assuming you are not running some other profile management product there are a few places a user profile comes from.  
    If they do not have a roaming profile set, their profile is copied from the hidden directory c:\Users\DEFAULT\
    It can be  copied from a roaming profile or it can be a mandatory profile.
    I would be more inclined to think that on server B, the profile is roaming.
    To check do a GPresult on the server or check the setting for the user in the registry.  Run Regedit, navigate to
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\SID\
    With SiD = Security Identifyer of the user. You can click ProfileList and Select find to search for the userID and locate the correct SID or you can examine the ProfileImagePath key to find it.
    Once you have located the correct SID, look for CentralProfile key under the SID.  If you don't find it or it matches the ProfileImagePath, then you are not roaming.  If it is something else the profile is roaming.  
    If that doesn't work, download process monitor -> http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx to the server.  
    Run it as an administrator.  Click filter at the top and select filter...
    CLick the drop down that says architecture and select User, then in the box after is enter the username as domain\username.  You can also clcik the down arrow and select the user if they are logged on.
    Have the user logon, delete all the profiles and have them login and you should be able to see what is going on.  Once the user is logged on click the magnify glass icon on the toolbar to stop the trace and llok for the section where the profile is being
    copied.
    You can click Edit and then select find to search for "C:\Users\whatevertheuseridis"

  • CPU usage for Image acquiring by using Imaq1411

    Hello,
    Running the IMAQ program makes the CPU usage almost 100%. I tested it out with my own program and the example program you provided. So far I haven't have any clue about this.
    I've tried to set the ROI as the help said (Left, Top, Right, Bottom), but failed. I had to set that in the order of Left, Bottom, Right and Top on my program.
    With the Snap.vi, I set up the ROI and step x, y. The original image size is 640X480. But I just want to see the center part (160X120) of whole image depending on the Zoom (1:1, 1:2, 1:4). To do that, I programmtically set the ROI and Step (x, y) to be like the followings, which I think makes the same image size (160X120) but a different zoom.
    (0, 480, 640,0) and (4, 4) for ZoomX1
    (1:1)
    (160, 360, 480, 120) and (2, 2) for ZoomX2 (1:2)
    (240, 300, 400, 180) and (1, 1) for ZoomX4 (1:4)
    Does it make sense?
    Thanks, GraceSun"

    Hello.
    After looking into your question a little more carefully, it seems that you are essentially trying to zoom in on the center of your image. To do this, you should not need to use the Step X, Step Y inputs at all, you should simply have to setup the ROI descriptor to get the selected part of the image. If you would like all images to be the same size, despite the zoom, you should use the horizontal and vertical scaling parameters. See the following KnowledgeBase for more info on these parameters.
    Again, I would like to reiterate that the correct order for the ROI should be Left, Top, Right, Bottom. That being said, however, 'If it aint broke, don't fix it
    You are definitely on the right track to getting the zooming feature you want down.
    Regards,
    Colin C.
    Applications Engineering
    Colin Christofferson
    Community Web Marketing
    Blog

  • Use batch file to determine if computer is a terminal server

    Hello experts,
    I am trying to create a batch file that I can use to install MS Office 2013 and another software on Windows Server 2003 R2,
     Windows Server 2008 R2, and Windows Server 2012 terminal servers (Remote Desktop Services) via GPO. The installation files are NOT
     "msi" files.  Can you please tell me how I can use command line in a batch or script file to determine if a machine is a terminal server or not? I tried the Change user /query command on a Windows Server 2008 R2
    terminal server and a Windows 7 machine and both machines returned the following status
    Application EXECUTE mode is enabled.
    which will be a problem because the installation batch file would treat the Windows 7 machines as a terminal server when it's not really a terminal server.
    Basically, I want the batch file to check to determine if the machine is a terminal server. If it is a terminal server, then it would run change user /install, install the software, reboot server, then run change user
    / execute.  Your help will be greatly appreciated.

    Hi,
    For Office 2013 there should not be any concerns since it is windows installer based and things will be handled automatically.  For the other software you could simply put the session in install mode in every case.  For the servers/workstations
    where install mode doesn't apply the change user /install and change user /execute will simply fail without any harmful effects.
    You may check whether or not the machine is a terminal server using WMI, for example:
    wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting Get TerminalServerMode
    0 = Remote Administration mode (not a RDSH/TS)
    1 = Application Server mode (aka RDSH/Terminal server)
    -TP
    When I run the command from the command line, it works, but when I try it in a "IF" statement, nothing happens.  I am I doing something wrong using the wmic code in the IF statement?

  • Cpu usage on app tier always too high(100% used)

    EBS suite version:12.1.3
    app tier CPU usage always 100% used,DB tier CPU only about 30% used
    env:one-node app tier and one-node db tier
    Processes in Instance:
    --------------------------------------------------------------+---------
    ias-component | process-type | pid | status
    --------------------------------------------------------------+---------
    OC4JGroup:default_group | OC4J:oafm | 26162 | Alive
    OC4JGroup:default_group | OC4J:forms | 26014 | Alive
    OC4JGroup:default_group | OC4J:forms | 26013 | Alive
    OC4JGroup:default_group | OC4J:forms | 26015 | Alive
    OC4JGroup:default_group | OC4J:oacore | 25803 | Alive
    OC4JGroup:default_group | OC4J:oacore | 25804 | Alive
    OC4JGroup:default_group | OC4J:oacore | 25802 | Alive
    HTTP_Server | HTTP_Server | 25742 | Alive
    CPU usage details:
    Tasks: 521 total, 22 running, 498 sleeping, 0 stopped, 1 zombie
    Cpu(s): 83.9%us, 13.6%sy, 0.0%ni, 0.7%id, 0.0%wa, 0.0%hi, 1.7%si, 0.0%st
    Mem: 32665600k total, 32178908k used, 486692k free, 546536k buffers
    Swap: 10288440k total, 108k used, 10288332k free, 19519600k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    1966 mchen 15 0 694m 64m 27m S 78.3 0.2 0:13.04 rwrun
    25802 mchen 15 0 1595m 1.4g 7456 S 75.5 4.5 14:04.82 java
    25804 mchen 17 0 1531m 1.3g 7452 S 58.4 4.3 15:09.88 java
    25803 mchen 18 0 1460m 1.3g 7452 S 54.3 4.0 13:49.11 java
    6128 mchen 15 0 683m 48m 23m S 18.6 0.2 0:01.00 rwrun
    7416 mchen 15 0 94336 46m 15m S 13.3 0.1 0:00.76 frmweb
    5554 mchen 15 0 97360 49m 15m S 10.4 0.2 0:01.29 frmweb
    26015 mchen 20 0 1357m 457m 7316 S 10.4 1.4 2:13.15 java
    7244 mchen 15 0 94340 46m 15m S 10.1 0.1 0:00.72 frmweb
    7428 mchen 15 0 92776 44m 15m S 9.8 0.1 0:00.55 frmweb
    6843 mchen 15 0 92800 44m 15m S 9.2 0.1 0:00.64 frmweb
    7763 mchen 15 0 74524 28m 13m S 8.2 0.1 0:00.32 frmweb
    5686 mchen 15 0 98648 51m 15m S 7.9 0.2 0:01.28 frmweb
    6162 mchen 15 0 97876 50m 15m S 7.9 0.2 0:00.99 frmweb
    5611 mchen 15 0 98648 51m 15m S 7.6 0.2 0:01.32 frmweb
    6461 mchen 15 0 94924 47m 15m S 7.3 0.1 0:00.97 frmweb
    3809 mchen 15 0 691m 60m 27m S 6.9 0.2 0:08.97 rwrun
    26014 mchen 19 0 1340m 442m 7316 S 6.6 1.4 1:29.05 java
    7283 mchen 15 0 94340 46m 15m S 6.3 0.1 0:00.68 frmweb
    5126 mchen 15 0 85392 39m 14m R 5.7 0.1 0:01.04 frmweb
    26013 mchen 16 0 1332m 449m 7308 S 5.7 1.4 1:20.39 java
    6544 mchen 15 0 97884 50m 15m S 5.4 0.2 0:01.10 frmweb
    7140 mchen 15 0 94336 46m 15m S 5.4 0.1 0:00.62 frmweb
    4366 mchen 15 0 690m 60m 27m S 4.7 0.2 0:07.76 rwrun
    6314 mchen 15 0 688m 56m 28m S 4.7 0.2 0:01.32 rwrun
    6368 mchen 15 0 690m 58m 28m S 4.7 0.2 0:01.25 rwrun
    7793 mchen 16 0 70100 22m 11m R 4.7 0.1 0:00.15 frmweb
    3734 mchen 15 0 98.1m 51m 15m S 4.4 0.2 0:02.01 frmweb
    6048 mchen 15 0 96364 48m 15m R 4.4 0.2 0:00.75 frmweb
    6205 mchen 15 0 80728 33m 13m S 4.1 0.1 0:00.43 frmweb
    6375 mchen 15 0 87840 41m 14m S 4.1 0.1 0:00.79 frmweb
    5592 mchen 15 0 98404 50m 15m S 3.8 0.2 0:01.17 frmweb
    5784 mchen 15 0 94924 47m 15m S 3.8 0.1 0:00.99 frmweb
    7365 mchen 15 0 74124 28m 13m S 3.8 0.1 0:00.25 frmweb
    4830 mchen 16 0 107m 61m 16m R 3.5 0.2 0:01.90 frmweb
    5304 mchen 15 0 99244 51m 15m S 3.5 0.2 0:01.26 frmweb
    5754 mchen 15 0 82072 36m 14m S 3.5 0.1 0:00.52 frmweb
    4447 mchen 15 0 692m 61m 27m S 3.2 0.2 0:08.69 rwrun
    5816 mchen 15 0 99056 51m 15m S 3.2 0.2 0:01.19 frmweb
    6076 mchen 15 0 94340 46m 15m S 3.2 0.1 0:00.78 frmweb
    7658 mchen 15 0 74124 28m 13m S 3.2 0.1 0:00.26 frmweb
    7801 mchen 15 0 57524 9516 6296 S 3.2 0.0 0:00.10 frmweb
    7830 mchen 18 0 57524 9524 6300 S 3.2 0.0 0:00.10 frmweb
    4251 mchen 15 0 98.1m 51m 15m S 2.5 0.2 0:01.60 frmweb
    7231 mchen 15 0 74264 28m 13m S 2.5 0.1 0:00.24 frmweb
    7341 mchen 15 0 92804 44m 15m S 2.5 0.1 0:00.71 frmweb
    7790 mchen 15 0 57524 9524 6300 S 2.5 0.0 0:00.08 frmweb
    7867 mchen 17 0 57524 9464 6240 S 2.5 0.0 0:00.08 frmweb
    6547 mchen 15 0 81388 35m 14m S 2.2 0.1 0:00.41 frmweb
    6900 mchen 15 0 89136 42m 14m S 2.2 0.1 0:00.61 frmweb
    7308 mchen 15 0 74092 28m 13m S 2.2 0.1 0:00.26 frmweb
    7454 mchen 15 0 71324 25m 12m S 2.2 0.1 0:00.15 frmweb
    7679 mchen 15 0 74128 28m 13m S 2.2 0.1 0:00.20 frmweb
    5681 mchen 15 0 98780 51m 15m R 1.9 0.2 0:01.02 frmweb
    7040 mchen 15 0 74572 28m 13m S 1.9 0.1 0:00.27 frmweb
    26581 mchen 17 0 554m 56m 8808 S 1.9 0.2 0:18.90 java
    too many frmweb and java processes:
    bash-3.2$ ps -ef|grep frmweb|wc -l
    74
    bash-3.2$ ps -ef|grep java|wc -l
    25
    I am new to EBS,any suggestions?
    thanks

    Please see the following docs.
    Forms Process (FRMWEB) Consumes 100% of CPU in Oracle Applications R12 [ID 745711.1]
    TROUBLESHOOTING FRMWEB RUNAWAY PROCESSES CONSUMING 100% CPU IN SOCKET MODE [ID 1382442.1]
    R12: How To Generate A Stack Trace For Forms With Applications R12 [ID 789659.1]
    Thanks,
    Hussein

  • Automatically delete songs from my iPhone after I get done listening to it.

    I have about 30 gigs of mp3's loaded on to my iPhone 3GS. I have some smart playlists (like all songs by a particular artist) and I have synced these playlists on to my iPhone.
    This is a subset of my music, and I intend to load the others after I get done listening to these.
    I could listen to these through the playlists in order, or shuffle them. In any case, I would like the iPhone's iPod and/or iTunes to remove the song from my iPhone as I get done listening to it. This way, the # of songs on my iPod will gradually dwindle and eventually I'll upload another set on to it. I will also avoid listening to one song many times.
    How do I do this?
    Can I keep track of which songs have been played and delete them off my iPhone manually? It will be a pain to have to do this manually..

    I have some smart playlists that I use to fill my ipod with new music.
    Such as,
    Last Played is not in the past 15 days
    Limit to 600MB selected by most recently added
    Live Updating is checked in all of these playlists.
    There are a lot of options in smart playlist criteria to help you do what you want.

  • Table space not getting cleaned after using free method (permanent delete)

    Hi ,
    We are using the free method of the LIB OBJ, to permanently delete the objects. As per documentation, the ContentGarbageCollectionAgent will be cleaning the database which runs in a scheduled mode. But the log of that ContentGargabageCollectionAsgent shows, all zero for objects without reference, objects cleared,etc. I.e the table space remains the same before and after deleteing all the contents in the cmsdk database. But the agent is running as per the schedule but just comes out doing nothing.
    Can anbody put some light on this issue.
    thanks
    Raj.

    Hi Matt,
    Thanks for replying. It's been a very long time waiting for you ;)
    ---"Are you running the 9.2.0.1, 9.2.0.2, or 9.2.0.3 version of the Database?"
    we are using 9.2.0.1
    ---"If you installed the CM SDK schema in the "users" tablespace ......."
    Yes we are using USERS tablespace for our Development.
    I ran the query. The result is:
    SYSTEM MANUAL NOT AFFECTED
    USERS MANUAL NOT AFFECTED
    CTXSYS_DATA MANUAL NOT AFFECTED
    CMSDK1_DATA MANUAL NOT AFFECTED
    (USERS belongs to develpoment cmsdk schema. And CMSDK1 for Prod CMSDK schema)
    From the results I see only "Manual", but still I don't see the tablespace size being coming down. Both table space sizes (USER and CMSDK1) always grows higher and higher.
    Also to let you know, We use ORACLE EM Console (Standalone) application to see the oracle databse information online. Will there be any thing to do with the tool we use to see the table space sizes. We make sure we always refresh it before making a note.
    So is there anything else I can see. Once I saw the ContentGarbageCollection agent to free 1025 objects and deleted 0 objects. But I don't see any change in the table space size. I am little confused b/w freed and deleted.
    thanks once again for your response Matt.
    -Raj.

  • Can't delete a file or folde after using admin. password.

    Can't delete a file or folder after using admin. password.

    Solving Trash Problems...
    http://thexlab.com/faqs/trash.html

  • Can I delete files on Macbook after using TM?

    I just used TM for first time. I need to free up HD space on Macbook before I run out. Do I need to move files to external or can I delete them after using TM? Do not want to loose the data that I have.

    Apple says that the Time Machine volume can share space with other files but recommends that Time Machine have its own volume. If you put the files on the same volume as Time Machine you could not use Time Machine to back them up. Also, 160GB is on the smallish side for a Time Machine volume so taking up space for extra files will mean that you will run out of space for backups more quickly.
    External drives can be bought for less than what Leopard costs and extra storage is always a worthwhile investment.

  • My ipad tells me that my icloud email is already used.  That is true.  The one whom it is assigned to is me.  How can I get it back after deleting it?

    My ipad tells me that my icloud email is already used.  That is true.  The one whom it is assigned to is me.  How can I get it back after deleting it?

    Deleting an email account for the the mail app will not have any effect on ther AppleId and its use for other services. You need to delete the old ID and set up the new one for other services suxch as FaceTime, App store, etc.
    It sounds like you are trying to set up a new ID rather that just adding your old one back in. Or maybe I'm missing something.

  • Hi..i use to able able to delete the apps inside my pc and when I sync to 2 of my iPads, the apps are gone in the iPad. Now after deleting from the pc, the apps still appear in both the iPads. Please assist. Thanks

    hi..i use to able able to delete the apps inside my pc and when I sync to 2 of my iPads, the apps are gone in the iPad. Now after deleting from the pc, the apps still appear in both the iPads. Please assist. Thanks

    Here you are "the strange draft logos"...

  • HT4897 I have more than one iCloud account.... Once an email alias is deleted from one account.... can it then be used by another account?  If so, how long after it's deletion before it's made available?

    I have more than one iCloud account.... Once an email alias is deleted from one account.... can it then be used by another account?  If so, how long after it's deletion before it's made available?

    Aliases remain tied forever to the account which created them. They cannot be moved to another account, converted to a full account, nor reinstated after being deleted.

Maybe you are looking for

  • Logic for Open Sales order qty

    What should be the logic given to determine "open sales order qty" during designing a report. Note the criterias are as under: 1) Open sales order qty is the confirmed qty less the delivery qty. 2) The delivery qty should be delivery order qty (The d

  • AC adapter for PX1269E-1G50 external HDD

    Hi all, I have lost the AC adapter for the PX1269E-1G50 external HDD and would like to buy a new one. Does anyone know what the part number is for this adapter, and where to buy it? Thanks

  • Macbook is playing up and running slow,

    I done a force shut down and tried resetting the SMC (not sure if this worked) When I powered up again it is loading slowly but when the desktop appears it won't let me click on any icons? So is frozen, what's should I do next?

  • Colors are gone when running report jsp

    Hi guys, Could you send me to some reference to understand why colors are gone when I run a report that was called from a Form in web environment?. Colors of letters are still ok, but the frames that were coloured in Design time does not appear in co

  • Can't export 5.1 Audio

    So I have 5.1 audio in my timeline. Yet, when I export to .aif, I get a mixed version, with alot of signal in left and right, but none at all for the other channels. Here's a screenshot. The first set of tracks is the 5.1, the second is the resulting