Manually running a defrag on your EDB file will erase out all the blanks in BOTH the EDB file and the STM file simultaneously. The Command is ESEUTIL. I recently defragged a 38gb edb file, and when it was done...it was 23 gb.
This saved tremendous space on an older server running with hard drives less than 60gb. It went from having less than 1gb of space on a daily bases, to having 25 gb of free space. I am sure this should assist in server performance.
1) check the size of your EDB file in C:\Programs files\Exchsrvr\MDBDATA. There are lots of log files, but it's default name is Priv1.edb and Priv1.stm.
2) Find out if you have 110% free space available. If it is a 20gb file....have 22gb free space available.
My instructions are for the more difficult situation of NOT having the 110% available. These instructions will work for those with the space or without it.
2a) Have a mapped drive to a place with plenty of room for at least the EDB+STM+10% more.
3) Dismount your mailbox database. (yes- email will NOT function during this time. My 38gb EDB file took 6 hours to get thru the processes completely)
3) Drop to a DOS prompt. CD to C:\Program Files\Exchsrvr\bin
(the command only works in this directory)
Type ESEUTIL /d "c:\Program Files\Exchsrvr\MDBDATA\Priv1.edb" /t "<location of your mapped drive + desired file name"
LET'S EXPLAIN HOW TO TYPE THIS COMMAND A LITTLE BETTER.
ESEUTIL /d "c:\Program Files\Exchsrvr\MDBDATA\Priv1.edb" /t "<H:\defrag"
There are many switches to use
ESEUTIL /D – Used for offline defragmentation of a Database
ESEUTIL /R – Used for recovery purposes of a Database
ESEUTIL /g – Performs an integrity check of a Database
ESEUTIL /k – Performs a checksum test of a Database
ESEUTIL /p – Repairs a Database when it’s corrupt (and beyond recovery)
ESEUTIL /m – can dump header information of a Database and Log Files
ESEUTIL /y – can copy large files like Mailbox Database files efficiently
ESEUTIL /c – Is used to ‘hard recover’ a database during an online backup
But some of the switches have "sub-switches and commands" and the /d for Defrag,,,is one of them
Notice in my example, there is a "/t " The /t refers to some other mapped location that has lots of free space over 110% of the EDB file size....and gives that temporary file some name I made up called DEFRAG. You call it anything you can think of. the ESEUTIL command will create 2 new files in that location. Defrag.edb and defrag.stm.
Again..my 38 Gb job took 6 hours. So plan accordingly as your email will not function during this time.
When complete...don't forget to re-mount your mailbox database in the System Manager.
Defragging the actual email server does not defrag the database full of Email called the EDB file. In Exchange 2003 Email servers, there is also an associated database called the STM file.
They are located in C:\Program Files\Exchsrver\MBDDATA
The command that defrags these databases is ESEUTIL.
Before I give the steps. I think a little preliminary understanding of "WHY" the database full of Email would even need a special defragging. The EDB database will get large. There are limits to how big it can get. People think the maximum size of the EDB file is 16 GB. ( 16,383 megabytes ). They are close. I have had technicians come to me asking;
"Why if their EDB file is only 10GB, is their system shutting down for being over the 16 GB limit?"
That's because the 16,383 megabytes (MB) limit is the maximum size of BOTH the EDB and the STM files together!
SO--some people have heard of files being 20gb, 30gb, 40gb.,..etc....How do they get away with going over the maximum limit without Exchange shutting off the service and email stopping? Well, Exchange 2003 had a Service Pack 2 that came out..and with it...the "DEFAULT" maximum was upped 2 more gb to 18 gb.
You can change this maximum limit up to a 75 gb database with a registry entry.
Edit the REG_WORD keys:
Database Size Limit in GB
Database Size Buffer in Percentage
Database Size Check Start Time in Hours from Midnight
**NOTE** When EMail saves, it 'rounds up' to the nearest number of blank space to take. Saving the word "THE" (3 spaces) .....may have Exchange saving 10 spaces for that 3-lettered word. So the larger you make your database able to hold more mail......the more mail you have saving all those extra blank spaces....taking up space and making your database unnecessarily big. And also can quickly approach the maximum limits you created.....causing a shut down.
Now if you ARE the person that opens your Outlook....goes to FILE- OPEN- OPEN OTHER USER'S FOLDER....and you want that list to go away....then use the REGEDIT command and browse down to the key(s) mentioned in Part 1 of 2....and press your delete key each time you want to clear the Out look memory..
But...of course...there is always a better way.
There is a free computer clean up product called...amazingly enough....CleanUP.
After you insall this...there is a button to press for OPTIONS.
In the OPTIONS area...is a TAB called REGISTRY.
It has a browse button.....so browse out to
Now you never have to go to the registry again to drill down through all those folders.
Just run CleanUP and your Outlook Memory gets wiped also.