We help IT Professionals succeed at work.

How to reduce "windows.edb" size or limit it

1,369 Views
Last Modified: 2019-04-05
Hi,

We are running Windows Server 2016 as a Terminal Service. We need to enable windows search service as users outlook also configure on each terminal session. Every 30-45 days "windows.edb" is 180GB. I have to delete the file to make space in C drive. If we disable windows search than users are not able to search anything on server and outlook.

Is there any permanent solution except increase the C drive disk space or move "windows.edb" into another drive. How to reduce "windows.edb" size or limit it?

Thanks in Advance.
Comment
Watch Question

JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
That is your mail file and deleting stuff in it will limit users as you note.

Accordingly, you need to add space (and I suggest lots) to your server.

Author

Commented:
Hi John,

Thanks for the reply but C drive already have 400GB size and no matter how big the C drive windows.edb will consume all the space. I hope, there is some solution where we restrict windows.edb file to grow.
Devin BeckerIdentity Management and Security
CERTIFIED EXPERT
Distinguished Expert 2018

Commented:
The Windows.edb is a database file of the Windows Search service, which provides content indexing, property caching, and search results for files, e-mail, and other content.

So as you know, since the Windows.edb file will continue to grow in size, the best bet to avoid problems for end users would be to index the file in another drive. which can be done as follows:

open Control Panel > Indexing Options > Advanced > Index location > Select new.

There are also options to defragment the database using esentutl.exe, but moving the database location sounds like the best option for you and you end users.

Hope this helps,

Devin Becker
DevOps Associate @ EE
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
Maybe put mail on another drive that is at least a Terabyte and possibly more
Devin BeckerIdentity Management and Security
CERTIFIED EXPERT
Distinguished Expert 2018

Commented:
Also worth noting, there was a patch that server 2012 had that prevented  this kind of growth of that file, however, I have not been able to find a patch for such problem on server 2016.

If I find something I will make sure to let you know here.

EDIT: Alternatively, you could write a script that you could put on a schedule to delete and rebuild the index so that the size stays lower, however, it's kind of just a bandage for now. Nothing I've found seems concrete in fixing this specific issue "permanently"

Devin Becker
DevOps Associate @ EE
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
So you don't want to disable search, don't want to increase the drive and do not want to move it to another drive.

Your only option is to reduce the items being indexed or periodically defrag the edb

sc config wsearch start=disabled
sc stop wsearch
esentutl.exe /d %AllUsersProfile%\Microsoft\Search\Data\Applications\Windows\Windows.edb
sc config wsearch start=delayed-auto
sc start wsearch

Open in new window

http://woshub.com/windows-edb-file-too-big-how-to-reduce-size/
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Since I administered a file server index for a long time, I can tell you that 180 GBs is incredibly large for a single server. May I ask how big the folders are that are being indexed? How many TB?

Author

Commented:
Hi,
Please close the ticket. Shaun Vermaak and Devin Becker suggestion is helpful.
Thanks guys for your replies.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Geforce, please close this question, you as author are supposed to do it by selecting helpful comments and selecting comments that led to a solution as solution. If you found your own solution, please share it and select that as solution.
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.