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 b...


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



RELATED CONTENT
Exchange Server Administration Tips
Remove Exchange 2003 objects from AD to install Exchange 2010
Don'ts for optimal Exchange 2007 mailbox server efficiency
Is your Exchange 2007 hub transport server healthy?
Avoid Outlook 2007 performance issues during repairs
Developing an Exchange 2007 server role DR plan
How DSAccess service improves Exchange Server 2007 reliability
An introduction to the Exchange Remote Connectivity Analyzer tool
Monitor Exchange 2007 with disk- and RPC-related counters
DPM 2007 replica inconsistencies in Exchange databases
Track Exchange 2007 mailbox server health using database counters

Microsoft Exchange Server Defragmentation
Creating disk space for an Exchange Server 2003 priv1.edb database
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?
Cleaning up Exchange
Defragging servers
Exchange Server Standard Maintenance Checklist
Optimize Exchange Server 2003 database maintenance

Microsoft Exchange Server 2003
Remove Exchange 2003 objects from AD to install Exchange 2010
Leapfrogging from Exchange 2003 to Exchange 2010
Top 5 Exchange ActiveSync tips
Exchange Mailbag: POP3 settings and Outlook issues
Migrating to Exchange 2007 with correct permissions
Problems receiving email from outside a Exchange Server 2003 domain
Exchange admins: Is it time to rethink your email address policy?
Exchange Server 2003 collects email from only specific POP3 domains
Changing email address formats in Exchange Server 2003
Should you remove .STM files from Exchange Server 2003?
Microsoft Exchange Server 2003 Research

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


locks 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.




    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.



  • Email Server Solutions: Exchange 2007, Exchange 2003, Exchange 2000, SharePoint
    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




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