asp tutorials, asp.net tutorials, sample code, and Microsoft news from 15Seconds
Data Access  |   Troubleshooting  |   Security  |   Performance  |   ADSI  |   Upload  |   Email  |   Control Building  |   Component Building  |   Forms  |   XML  |   Web Services  |   ASP.NET  |   .NET Features  |   .NET 2.0  |   App Development  |   App Architecture  |   IIS  |   Wireless
 
Pioneering Active Server
 Power Search










Active News
15 Seconds Weekly Newsletter
• Complete Coverage
• Site Updates
• Upcoming Features

More Free Newsletters
Reference
News
Articles
Archive
Writers
Code Samples
Components
Tools
FAQ
Feedback
Books
Links
DL Archives
Community
Messageboard
List Servers
Mailing List
WebHosts
Consultants
Tech Jobs
15 Seconds
Home
Site Map
Press
Legal
Privacy Policy
internet.commerce














internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

HardwareCentral
Compare products, prices, and stores at Hardware Central!

Performance Monitoring in SharePoint Portal Server 2003
By Gayan Peiris
Rating: 4.0 out of 5
Rate this article


  • email this article to a colleague
  • suggest an article

    Introduction

    Performance monitoring helps organizations identify performance bottlenecks of the current environment and identify the right time to scale out the SharePoint server farm. I will be looking at what are the critical performance counters in a SharePoint Portal environment and how to monitor them. This article includes information regarding analyze logs information to determine the best scale out options for SharePoint server farm. Organizations can use the Microsoft Windows Server 2003 System Monitor, Performance Logs and Alerts to monitor the counters described in this article.

    Monitoring performance regularly, organizations can recognize trends as they develop and prevent performance problems. This will also help to decide when to upgrade the hardware and whether upgrades are improving the server's performance.

    General Server Performance Counters

    Following is a list of general performance counters that should be monitored for all SharePoint Portal Server based servers.

    Performance ObjectCounterThresholdDescription
    ProcessorPercent processor time_total80 to 85 percent averaged over three intervalsThe total percentage of processor usage for a server.
    Network interfaceBytes total per second_network interface50 percent of the available network interface bandwidth -- for example, a 100-MB network interface running at 50,000 KB per secondThe rate at which bytes are sent and received over each network adapter.
    Logical diskPercent idle time_ (drives C:,D:, and so on)20 percent over idle time_.Reports the percentage of time during the sample interval that the disk was idle. If this value is very low, the logical disk is very busy.
    Paging filePercent usageAbove 70 percentReview this value in conjunction with memory -- available megabytes and page faults per second -- to understand paging activity on the server.
    MemoryAvailable MBs128 MB -- assuming 2 GB of RAM as prescribed on serversThe amount of physical memory, in MBs, immediately available for allocation to a process or for system use on the server.
    MemoryPage faults per second20A high rate of page faults indicates a lack of physical memory.
    SystemProcessor queue lengthThe number of CPUs + 1Exceeding the threshold indicates that the processors are not fast.
    ASP.NET applicationsRequests per second_totalThrough ongoing monitoring, trends begin to emerge that equate requests per second with CPU consumptionThe number of requests executed per second; this roughly equates to the number of HTTP pages per second.

    Table 1: General Windows Server 2003 Performance Counters

    SharePoint Portal Server Counters

    A SharePoint Portal Server supports many topologies that allow organizations to set up different server farm environments from small server farms to larger load balance server farm environments according to an organization's requirements. This will introduce various numbers of Web Servers, Search Server and Index Servers in to the SharePoint farm environment. Some server farms can contain more than one SharePoint component bundled up together. For example, Web and Search components together in a single server.

    The following table contains a list of performance counters that are relevant for all of the SharePoint components.

    ObjectCounterThresholdDescription
    ProcessorPercent processor time_total80 to 85 percent averaged over three intervalsThe total percentage of processor usage for a server.
    ASP.NET applicationsRequests per second_totalThrough ongoing monitoring, trends begin to emerge that equate requests per second with CPU consumptionThe number of requests executed per second; this roughly equates to the number of HTTP pages per second.
    Web serviceGet requests per second_total, individual portal, or IIS Virtual rootThrough ongoing monitoring, trends begin to emerge that equate get requests per second with CPU consumptionGenerally speaking, this is the rate at which clients are requesting information from the front-end Web servers.
    SearchQuery rate10 per secondThe number of queries posted to the server per second; keep in mind that in the medium server farm configuration, the front-end servers are doing much more than searching.
    SearchSucceeded queriesThis counter should be used mostly for troubleshooting search problemsThe number of queries that produce successful searches. Monitor this counter along with the failed queries counter if you need to troubleshoot search problems.
    Search catalogsNumber of documentsMicrosoft has tested up to 5 million documents per content indexThe total number of documents in the catalog.
    Search catalogsQueries rate_(index names or all instances)Indicates which catalogues are searched most often by usersThe number of queries posted to indexes per second; in conjunction with other performance data, this can help determine if your index configuration can be optimized.

    Table 2: SharePoint Portal Server Performance counters

    Front End Web Servers in a Server Farm

    The Processor, ASP.NET application and Web Service performance objects determine when to add a new dedicated Front End Web server to the farm environment. When above three performance objects counters continuously approach or exceed any of the thresholds; organizations should consider adding additional Front End Web servers to the server farm. At the same time make sure you check the general counters in Table 1 to better understand the Windows Server 2003 server performance.

    The "percent processor time" counter is the main indicator of Front End Web server performance. The organization should gather this information every 15 minutes to determine the health of the Front End Web server. If the organization is having high performance expectations, this counter should record a lower average threshold.

    Having a heavily used Windows SharePoint Services Site can add extensive performance impact on Front End Web servers. Organizations should identify these kinds of WSS sites and consider scaling out one or more those sites to a separate server farm to reduce the performance impact on Front End Web servers.

    Front End Web / Search Servers in a Server Farm

    Table 2 lists the important performance counter for a Front End Web server with SharePoint Search component in a server farm. If the "search catalog" size exceeds 5 million, Microsoft recommends adding an additional Front End / Searching server to the server farm or separating the indexing by moving the Indexing server to a dedicated Indexing server. This will reduce the propagation and crawling time.

    The amount of CPU time taken for the search operations is another key factor of monitoring the health of the server farm. When the "query rate" counter exceeds the recommended threshold and search operations consumes more than 40 to 50 percent of the overall server capacity, organizations should consider scaling out toward a Larger Server Farm. If percent processor time is exceeding the threshold but the query rate is below the threshold and front end web traffic is bringing the server to its maximum capacity, the organization should consider adding an additional Front End Web/Search server to the Server Farm.

    Index Servers

    The main performance thresholds for index servers are 80 to 85 percent processor time and 85 percent memory availability. Adding additional indexing servers to a farm environment is not totally done looking at performance counters. It is more determined by the function of indexing and propagation time. When it take few hours for an incremental crawl and propagation, and the organization needs this to be done in half hour, consider adding another indexing server.

    Performance of an indexing server also depends on the location of the crawled content and the processing power of the indexing server. Crawl time may depend on content location, network performance, type of documents in the index, frequency and type of content index updates.

    Microsoft recommends no more than four index servers per large server farm.

    Microsoft SQL Server

    The present processor time counter is the leading indicator for Microsoft SQL Server performance. Examine percent processor time in conjunction with overall memory capacity, network traffic and input/output subsystem capacity will provide an accurate health report on your dedicated SQL Server on the SharePoint farm.

    Using Performance Monitor on Windows 2003 Server

    The System Monitor interface can be invoked by clicking Start -> Run and typing "perfmon" or by clicking Start -> Administrative Tools -> Performance and selecting System Monitor. The system monitor can display in tree formats including graph, histogram and text report.


    Figure 1: System Monitor

    Adding Performance Counters

    • Right click the counter pane and select Add Counter
    • Select the option whether you are monitoring the local computer counters by selecting Use local computer counter option or another remote computer by selecting Select counter from computer option by providing the UNC path for the remote computer
    • Select the object of interest from the Performance object drop down list
    • Select the counter according to the selected performance object
    • Click Add to add it in the System monitor
    • Click Explain button if you need more details about the counter


    Figure 2: Add Counter window

    The administrators can subscribe to receive alerts when the performance counters threshold exceeds the limit. This will provide the flexibility of not having to physically be in front of a server to monitor the performance.

    Please refer to Help and Support section on Windows Server 2003 Start menu for more information regarding System Monitor and how to use it.

    Logs

    Monitoring system performance in conjunction with IIS logs and SPS Usage Analysis logs provides more in depth information regarding organization portal environment being used. The performance counters provide the information regarding the resource consumption on a per-server basis. The logs provide in depth web traffic analysis data, such as which sites that are most heavily used and by whom, number of visitors to the site and peak period of activity.

    Internet Information Services (IIS) Logs

    IIS logs include detailed information such as who has visited sites and what was viewed, in terms of total visits, page views and trends over time. Careful analysis of IIS logging data will help organizations to discover how much traffic is going to portal sites, how much is going to WSS sites and search operations.

    It will also help organizations to identify bottlenecks and performance issues. Most importantly this will help to identify the most used Windows SharePoint Services Sites in the portal and its impact on the Front End Web server. According to this information, organizations can decide when to move one or more site collections to a dedicated Windows SharePoint Services server farm to reduce the performance impact on the Front End Web server.

    Setting Up IIS Log Files

    Set up logs files to be created daily for each virtual server. It is good practice to locate these logs separate from the drive that holds the operating system data. The local administrators group and the IIS_WPG group should have access to the log file directory.

    IIS logging is enabled by default for each virtual server. The user can check whether IIS logging is enabled by following these steps.

    • Click Start -> Run
    • Then in the Run window type "inetmgr" to open the Internet Information Services (IIS) Manager
    • Select the virtual directory, right click and select the Properties menu option
    • As displayed in the figure 3, the user can see whether the "Enable Logging" check box is selected.


      Figure 3: Property window of a virtual server

    The recommended log file format for IIS logs is the W3C format. This is the default log file format and enables you to select the fields you want to include in the log file. By limiting the number of fields you can simplify the process of identifying the data and save server resources, CPU usage. User can follow these steps to select the logging properties for their virtual server.

    • In the Properties window of the virtual server select the Properties button next to "Active log format"
    • The Logging Properties window will open as displayed in Figure 4
    • This window enables the user to select the appropriate schedule that will suit their organization (daily is recommended)
    • This screen also displays the log file directory and file name.


      Figure 4: Logging Properties General window

    • Select the Advanced (or Extended Properties) option from the top tab section
    • The following window will open allowing you to select from all the available fields:


      Figure 5: Logging Properties Advance window

    IIS logs files can also be logged in a database that complies with Open Database Connectivity (ODBC), such as Microsoft SQL Server database as displayed in figure 6.


    Figure 6: ODBC Logging option for IIS Logs


    Figure 7: ODBC Logging Properties window

    The information being logged to the SQL Server then can be reviewed by generating reports using the SQL Server Query Analyser.

    Conclusion

    Organizations can use the Windows 2003 System Monitor, Performance logs and alerts to monitor their SharePoint Portal Server environment. The performance counter details were taken from Microsoft SharePoint Products and Technologies Resource Kit.

    About the Author

    Gayan Peiris is a Technical Architect for Unique World Pty Ltd (www.uniqueworld.net) in Canberra, Australia. He is a MCSD with MCAD, MCP, Bcom and MIT certifications. Gayan has designed and developed Microsoft Web and Windows solutions since 1999. His expertise lies in developing scalable, high-performance applications with Microsoft Enterprise Server Products in .NET technology .His core skills are ADO.NET, ASP.NET, C#, VB.NET, Web Services, XML, MS SharePoint Portals, MS Content Management Server, MS Project Server, Live Communication Server, DNA and SQL Server.
    www.gayanpeiris.com

  • Rate This Article
    Not HelpfulMost Helpful
    1 2 3 4 5
    Supporting Products/Tools
    XCache
    XCache combines dynamic content caching technology with content delivery network (CDN) support options, file compression and a whole lot of manageability features to help e-businesses deliver superior web site performance and reliability. You'll appreciate the administrative ease, your visitors will appreciate increased page delivery speed.
    [Top]
    XCompress
    XCompress works by compressing outgoing text between the Web server and the client. Page response times may improve by a factor of three or more while overall bandwidth use can drop by two thirds or more.

    XCompress runs on Windows 2000 and Windows NT 4.0 and is tightly integrated with Microsoft Internet Information Server (IIS) with MMC and COM interfaces.

    [Top]
    XTune
    XTune 2.0 is the most powerful tuning application for IIS 4 or IIS 5 ever conceived. Indispensable to the enterprise and straightforward, this web tuning tool allows you to configure hidden operating system, network, Active Server Pages and Internet Information Server settings for better performance, without any additional hardware or software.

    This version scans your system more deeply, offering more performance-enhancing recommendations and greater insight into your web architecture. The Performance Wizard guides and teaches you throughout the complete tuning process, so you can learn while making your box run better than ever.

    Purchase here.

    [Top]
    Other Articles
    Aug 12, 2004 - Middle-Tier Hosting: Enterprise Services, IIS, DCOM, Web Services, and Remoting
    There is broad-reaching debate about remoting, Web services, Enterprise Services, and DCOM. In short, it is a debate about the best technology to use when implementing client/server communication in .NET. Rocky Lhotka shares his thoughts on the issue while offering clear explanations of basic application architecture terminology.
    [Read This Article]  [Top]
    May 18, 2004 - ASP.NET 2.0 Caching Features
    This article examines some of the new and exciting caching features in ASP.NET 2.0 and shows how to implement them in Web applications.
    [Read This Article]  [Top]
    Feb 12, 2004 - Case Study: Match.com
    When it came time to find a technology for its massive upgrade, Match.com chose .NET. Has the online dating service's partnership with Microsoft been as successful as the relationships it has established for many of its millions of members? Read on ...
    [Read This Article]  [Top]
    Jan 15, 2004 - Database Performance Philosophy
    Longtime 15Seconds discussion list member Tore Bostrup offers valuable advice on designing databases and applications for efficient querying.
    [Read This Article]  [Top]
    Dec 29, 2003 - Caching Oracle Data for ASP.NET Applications
    Narayan Veeramani shows how ASP.NET developers can improve application performance by caching data stored in an Oracle database and keeping the cached data in sync with the data in the Oracle database.
    [Read This Article]  [Top]
    Dec 2, 2003 - Leveraging MSMQ in ASP.NET Applications
    Ever developed a Web application that requires extensive processing? Ever had long running Web pages that often time out in the browser? Greg Huber reveals a simple technique that uses Microsoft Message Queuing (MSMQ) and the System.Messaging framework to handle long running Web processes.
    [Read This Article]  [Top]
    Mar 14, 2002 - Web Site Compression
    As IT professionals try to reduce the cost of operating their Web sites, they should consider reducing the amount of bandwidth usage. Learn how to successfully compress your HTML output and save money on your monthly bandwidth.
    [Read This Article]  [Top]
    Feb 6, 2002 - The Just Two Theory on Web Servers
    Maintaining a large Web farm is both costly and unnecessary. Learn how to reduce your Web farm to just two servers in this controversial article by Wayne Berry.
    [Read This Article]  [Top]
    Aug 14, 2001 - NT Authentication's Impact on Connection Pooling
    Steve Witkop examines OLE DB and ODBC connection pooling when used with Microsoft NT LAN Manager Web server authentication.
    [Read This Article]  [Top]
    Jul 16, 2001 - Removing Duplicates in a String List
    Members of the 15 Seconds discussion list put together a couple of scripts to benchmark methods for removing duplicate items in a string list.
    [Read This Article]  [Top]
    Mailing List
    Want to receive email when the next article is published? Just Click Here to sign up.

    Support the Active Server Industry



    JupiterOnlineMedia

    internet.comearthweb.comDevx.commediabistro.comGraphics.com

    Search:

    Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

    Jupitermedia Corporate Info


    Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

    Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers