Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While trying to clone a ~500 MB repository onto my local drive using mercurial, I repeatedly get the "Out of Memory" error. I have 2 GB of memory and I have never seen this. I installed the latest version of mercurial, and I have tried using different authentications. Anyone have any advice?

share|improve this question
up vote 4 down vote accepted

I'm running into this issue myself, even on a 64-bit machine with 4 GB of RAM. It turns out to be a known issue in Mercurial on Windows:

Essentially large files in the repository are causing memory fragmentation which prevents memory allocations from succeeding on Windows. Unfortunately the issue is not yet fixed and the last discussion on the ticket is from December of last year. It seems like the options at this point are:

  • Run a 64 bit version of mercurial. ATM, I don't see any available for easy download on Windows, this may need to be built
  • Somehow pare down the repo to remove the large files only, if possible.
share|improve this answer
Good answer... Out of votes until later, but will return with +1 for you. – nicorellius May 13 '10 at 15:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .