Announcement

Collapse
No announcement yet.

Process Monitor and Killing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Process Monitor and Killing

    So, every once in a while, I get a dllhost.exe that runs away. My solution is, after it consumes enough memory to take down HS or whatever other service that gets killed off...I go downstairs, kill off that dllhost.exe and then restart the PC to get all the services back up and running.

    So, I thought, why not put a script together to monitor this dllhost.exe and kill it, if it ever gets above say 256MB.

    So, I poked around the internet, found this:
    http://www.neowin.net/forum/topic/61...-memory-usage/

    I initially forgot, that in settings.ini, I had to add in System.Diagnostics and System.ComponentModel to scripting references. So, I did. Shutdown HS, brought it back up.
    When I run the code that is in that link, I get this error message in the log:
    Script compile error: Type 'Process' is not defined.on line 440, which is the debug line for where I put the Dim processes()

    Poking around more on the internet, I found this:
    http://msdn.microsoft.com/en-us/libr...v=vs.110).aspx
    Which seems to validate that process is actually part of System.Diagnostics.
    Later on in the code, there is a collection (?) that is used, so I am guessing that is why System.ComponentModel is being included.

    Any help is appeciated...or if you know of another way to go about this, I'm all "ears" !

    --Dan
    Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

    #2
    http://board.homeseer.com/showthread.php?t=123268 plus http://board.homeseer.com/showthread.php?t=124787 =
    Jon

    Comment


      #3
      I should read the manual better. I am already using BOTH of those...
      I did not realize that besides the SLEW of defaults, you can ADD your own!

      Thanks, I"ll give it a whirl!

      --Dan
      Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

      Comment


        #4
        OOOOH...PROCESS monitor...no, I'm using the Performance Monitor....
        AHH...that's why I did not see that option.

        So silly of me.

        --Dan
        Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

        Comment

        Working...
        X