Month: October 2012

Performance Counters

How to Configure Performance Counters

  1. Click Start, and then click Run.
  2. In the Open box, type perfmon.msc, and then click OK.
  3. Expand Performance Logs and Alerts, right-click Counter Logs, and then click New Log Settings.
  4. In the Name box, type a name for the log, and then click OK.
  5. Click the General tab, click Add Counters.
  6. In the Add Counters dialog, add the following top 10 performance counters
  7. Set the Interval to 1 hour.
  8. Click the Log Files tab, and then do the following:
    a. In the Log file type box, click Text File (Comma delimited).
    b. Click to select the End file names with check box, and then click yyyymmdd.
  9. Click the Schedule tab, specify the start and stop times for the counter log, and then click OK.

Top 10 Performance Counters

  1. Processor(_Total)\% Processor Time  –>  Drill down if > 85%
  2. Processor(_Total)\% User Time
  3. Processor(_Total)\% Privileged Time
  4. Memory\Pages/sec  –>  Drill down if > 20
  5. Memory\Available MBytes  –>  Drill down if < 4MB
  6. LogicalDisk\Avg. Disk Queue Length  –>  Drill down if > 2
  7. LogicalDisk\Disk Bytes/sec
  8. LogicalDisk\Free Megabytes
  9. Network Interface\Bytes Total/sec
  10. Network Interface\Output Queue Length  –>  Drill down if > 2

Microsoft Code Analysis Tool .NET (CAT.NET)

CAT.NET is a binary code analysis tool that helps identify common variants of certain prevailing vulnerabilities that can give rise to common attack vectors such as Cross-Site Scripting (XSS), SQL Injection and XPath Injection.

Using CAT.NET in Visual Studio 2010

By default, CAT.NET v1 cannot be run in Visual Studio 2010. The following tweak can be used to enable CAT.NET v1 in Visual Studio 2010.

  1. In notepad, open file %APPDATA%\Microsoft\MSEnvShared\Addins\Microsoft.ACESec.CATNet.AddIn
  2. Add a line “<Version>10.0</Version>” below the line “<Version>9.0</Version>”
  3. Open Visual Studio 2010, and navigate to Tools –> CAT.NET Code Analysis