Click here to Skip to main content
15,883,731 members
Articles / Desktop Programming / Windows Forms

CPUAlert: Save your CPU from Burning Hot and Battery Running Out Quickly

Rate me:
Please Sign up or sign in to vote.
4.74/5 (20 votes)
11 Jun 2011CPOL5 min read 89.9K   1.6K   69  
CPUAlert monitors CPU and Memory consumption of processes and alerts you when they are taking too much consistently and gives you an option to recycle or terminate
<?xml version="1.0"?>
<configuration>
<configSections>
    <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <section name="CPUMonitor.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
    </sectionGroup>
</configSections>
<startup><supportedRuntime version="v2.0.50727"/></startup>
    <userSettings>
        <CPUMonitor.Properties.Settings>
            <setting name="How_Frequently_To_Check" serializeAs="String">
                <value>00:00:30</value>
            </setting>
            <setting name="CPU_Threshold" serializeAs="String">
                <value>30</value>
            </setting>
            <setting name="How_Long_To_Wait_Before_Warning_For_CPU" serializeAs="String">
                <value>00:01:00</value>
            </setting>
            <setting name="How_Long_To_Wait_Before_Kill_Notice_For_CPU" serializeAs="String">
                <value>00:05:00</value>
            </setting>
            <setting name="Memory_Threshold_Bytes" serializeAs="String">
                <value>200000000</value>
            </setting>
            <setting name="How_Long_To_Wait_Before_Warning_For_Memory" serializeAs="String">
                <value>00:01:00</value>
            </setting>
            <setting name="How_Long_To_Wait_Before_Kill_Notice_For_Memory"
                serializeAs="String">
                <value>00:05:00</value>
            </setting>
            <setting name="Default_Postpone_Time" serializeAs="String">
                <value>00:05:00</value>
            </setting>
            <setting name="How_Long_To_Wait_Before_Killing_Process_If_Normal_Close_Does_Not_Work"
                serializeAs="String">
                <value>00:00:30</value>
            </setting>
        </CPUMonitor.Properties.Settings>
    </userSettings>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect BT, UK (ex British Telecom)
United Kingdom United Kingdom

Comments and Discussions