Home > Microsoft Exchange Tips > Exchange Server Administration Tips > Virtual memory fragmentation in Exchange
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SERVER ADMINISTRATION TIPS

Virtual memory fragmentation in Exchange


Serdar Yegulalp
06.28.2005
Rating: -2.83- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


VIEW MEMBER FEEDACK TO THIS TIP

Virtual memory is the most "official" term for what's been most commonly called a "swap file" -- an area of disk space allocated by the operating system where items can be temporarily swapped out of RAM when physical memory gets low. Exchange relies on the presence of virtual memory much the same as any other Windows application.

Over time, the virtual memory space can become internally fragmented, making it harder to allocate large blocks of memory efficiently. When this happens, your Exchange 2000 or 2003 system may eventually throw a warning or error of Event ID 9582, Event ID 9665 or Event ID 12800:

"The virtual memory necessary to run your Exchange server is fragmented in such a way that performance may be affected. It is highly recommended that you restart all Exchange services to correct this issue."

Event ID 9582 is usually more a warning of a possible problem in the offing rather than a problem itself. If it appears by itself without the other errors, it is not as crucial.

Event ID 9665 and Event ID 12800 are more critical though. If either occurs, the system may not be configured to properly use its available memory. You may want to set the /3GB and /userva=3030 switches in BOOT.INI. This allocates more memory to the user mode, as opposed to the kernel, and may proactively prevent virtual memory from being used up.

You may also want to set the HeapDecommitFreeBlockThreshold registry key to control how often virtual memory blocks are freed up, which can help alleviate virtual memory fragmentation -- but try the other settings first.

Please note that you don't want to use /3GB on a regular Windows Server 2000 system (as opposed to Windows Server 2003 or Windows Advanced/Datacenter Server 2000); see KB article 291988 for more information on what to do if this is your situation.

Because virtual memory is not directly correlated with physical memory, adding RAM alone to the system without tuning its performance may not resolve the problem. Also, clustered Exchange servers may be more prone to this problem than conventional ones, since clusters tend to allocate memory more aggressively for multiple storage groups and databases.

Also, check how many storage groups are present in the server. You should keep the number of storage groups to a minimum; each one allocated uses up a good deal of memory.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter and a regular contributor to SearchExchange.com.


MEMBER FEEDBACK TO THIS TIP

If Event ID 9582 is not as crucial, would you just wait until your information store dismounts, or can you suggest for a fix to prevent this from happening?
—Mich M.

******************************************

I'd actually take the initiative and see if using the /3GB switch and related tuning mechanisms stops the errors. This may be a symptom of a problem in the offing. If you deal with it sooner rather than later, it'll mean less headaches further down the line. (If you're not dealing with a system that has more than 1GB of RAM, then I recommend adding memory to that system anyway, since running Exchange with less than that is problematic at best!)
—Serdar Yegulalp, tip author

******************************************

I would like a little clarity on the issues surrounding setting (or not) the /3GB switch for Exchange Server. We have recently installed a new Exchange server, which has 4GB of RAM compared to our old machine which had 1GB. I am now seeing frequent messages relating to virtual memory fragmentation, and wondered if I am safe to set the switch. Some articles say it is OK if you're running Exchange 2000 with this amount of RAM, others say don't if it's on an Exchange 2000 server.

This is our setup:

  • All our servers are running Windows Server 2000 Standard.
  • The domain controller is on a separate server.
  • We have Exchange 2000 Enterprise SP3 on a new, dual Xeon server with 4GB RAM and five mail databases (to separate company email).

Would you recommend setting this or not? The following errors are popping up hourly:

  • EventID: 9582
  • MSExchangeIS
  • The virtual memory necessary to run your Exchange Server... (you know the rest!)

I would really appreciate any advice you have to offer.
—Leena B.

******************************************

From what I've been able to determine, the Standard edition of Windows 2000 Server does not support the /3GB switch. According to Microsoft, it is unsupported on that edition of Windows and can cause stability issues:

"The /3GB switch is supported only on the following operating systems:

  • Windows 2000 Advanced Server
  • Windows 2000 Datacenter Server
  • Windows Server 2003 Standard Edition
  • Windows Server 2003 Enterprise Edition
  • Windows Server 2003 Datacenter Edition"

Microsoft has a couple of articles that explain why it's not a good idea to use the /3GB switch in regular Windows 2000 Server:

In a situation like this, you may want to consider migrating to Windows Server 2003, or try some of Microsoft's suggested memory-optimizations for Exchange Server 2003 that don't involve using the /3GB switch:

The problem may be something as simple as a misconfigured page file, for instance, or a few too many storage groups.

Good luck, and if you want to write back with further feedback please feel free to do so as it'll help other people with similar issues.
—Serdar Yegulalp, tip author


Do you have comments on this tip? Let us know.

Related information from SearchExchange.com:

  • Reference Center: More Exchange defragmentation tips and advice

    Please let others know how useful this tip is via the rating scale below Do you have a useful Exchange Server or Microsoft Outlook tip, timesaver or workaround to share? Submit it to our tip contest and you could win a prize.

    Rate this Tip
    To rate tips, you must be a member of SearchExchange.com.
    Register now to start rating these tips. Log in if you are already a member.




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


    RELATED CONTENT
    Exchange Server Administration Tips
    Re-enable Exchange Server 2007 remote streaming backups in SP1
    How to use Exchange Management Shell's Filter command
    Why Exchange ActiveSync fails with NAT firewalls
    How to use the Exchange Management Shell command syntax
    Email archiving and e-discovery best practices for Microsoft Exchange
    Secure Edge Transport servers using the Security Configuration Wizard
    Is it time to upgrade users' Windows Mobile devices?
    Top 10 Microsoft Exchange Server 2003 registry hacks
    Monitor mail flow with the Exchange Server 2007 Queue Viewer tool
    Use Performance Monitor to detect Exchange 2003 message queue problems

    Microsoft Exchange Server Defragmentation
    How to calculate white space in an Exchange streaming (.STM) file
    Is an Exchange 2003 offline defrag needed prior to moving databases?
    Defragment Exchange information store database files
    Defragment Microsoft Outlook .PST files for better performance
    Should you use NTFS compression on Exchange Server files?
    Exchange Server Standard Maintenance Checklist
    Optimize Exchange Server 2003 database maintenance
    Running ESEUTIL to compact an information store without installing Exchange Server
    Top 10 Exchange tips of 2005
    Using an external hard drive to defragment Exchange

    Microsoft Exchange 2000 Server
    Error 1053: Exchange System Attendant service could not start
    Solve server problems with the Exchange Troubleshooting Assistant tool
    Move mailboxes to Exchange 2007 after Windows upgrade
    Third-party tools that modify NDRs for oversized email
    IP address changes for an Exchange 2000 recovery server
    Exchange Server 2003 tips and tricks -- 7 tips in 7 minutes
    How to enable Exchange Server public folder logging
    Deciphering an 0xc103798a Exchange Server setup error code
    Exchange Server error message: 'A non-delivery report with a status code of 5.4.0 was generated for recipient'
    New Exchange Server installation not receiving SMTP or POP3 email
    Microsoft Exchange 2000 Server Research

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    E2K  (SearchExchange.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

  • HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsWebcastsWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




    All Rights Reserved, Copyright 2004 - 2008, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts