Out of memory when trying to commit
When I tried to make a commit I got:
---
bzr: out of memory
Use -Dmem_dump to dump memory to a file.
---
How can I fix this issue?
OS: Windows 7
bzr: bzr-2.4.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Bazaar Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Martin Pool
- Solved:
- 2013-05-26
- Last query:
- 2013-05-26
- Last reply:
- 2012-04-20
When I tried to make a commit I got:
---
bzr: out of memory
Use -Dmem_dump to dump memory to a file.
---
How can I fix this issue?
OS: Windows 7
bzr: bzr-2.4.
Martin Packman (gz) said : | #2 |
Are there any very large files in the repository? Trying to version big binaries can result in this kind of problem, see bug 109114 for more. More details about the size of the repository and the changes you're trying to commit would be useful.
I already committed many revisions of some binary files the size of largest one is 250 MB but the issue occurred when I tried to commit tiny text file.
For that I'm wondering why this happen!
Martin Packman (gz) said : | #4 |
Having it only start failing on a small commit can be surprising. What's probably happening is that the automatic repacking is triggered, and that requires memory proportional to the size of the repo. To confirm this, run `bzr pack` and see if you get the same "out of memory" error.
Unfortunately, once your repository has been bloated by big binaries, it's not easy to go back. Branching from an earlier revision then omitting them is one option, or otherwise rewriting them out of the history.
I got same error when I run `bzr pack` !!!
What's your suggestion? Do I need create a new repository?
|
#6 |
This is an out-of-memory error. We are working on fixing them.
Can you please paste the traceback from .bzr.log, whose location is
shown by 'bzr --version'.
LELAK (r-sysrdmin-t) said : | #7 |
Same problem here. Looking for help!
Thank you!
Bazaar (bzr) 2.5.0
Python interpreter: C:\Program Files (x86)\Bazaar\
Python standard library: C:\Program Files (x86)\Bazaar\
Platform: Windows-7-6.1.7600
bzrlib: C:\Program Files (x86)\Bazaar\
Bazaar configuration: C:/Users/
Bazaar log file: C:\Users\
Copyright 2005-2012 Canonical Ltd.
http://
bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.
Bazaar is part of the GNU Project to produce a free operating system.
LELAK (r-sysrdmin-t) said : | #8 |
BZR LOG from out of memory error:
Fri 2012-04-20 20:18:59 -0300
0.085 bazaar version: 2.5.0
0.086 bzr arguments: [u'qsubprocess', u'--bencode', u'l6:commit2:
0.088 looking for plugins in C:/Users/
0.088 looking for plugins in C:/Program Files (x86)/Bazaar/
0.139 encoding stdout as osutils.
0.197 bazaar version: 2.5.0
0.197 bzr arguments: [u'commit', u'-m', u'apache conf', u'apache-conf', u'jacobdelafonf
0.201 encoding stdout as osutils.
1.368 opening working tree 'W:/kohler/
2.191 preparing to commit
[10224] 2012-04-20 20:19:02.865 INFO: Committing to: bzr+http://
3.754 Selecting files for commit with filter [u'apache-conf', u'jacobdelafonf
[10224] 2012-04-20 20:19:04.717 INFO: added jacobdelafonfr_
[10224] 2012-04-20 20:19:04.719 INFO: added jacobdelafonfr_
[10224] 2012-04-20 20:19:04.720 INFO: added jacobdelafonfr_
[10224] 2012-04-20 20:19:04.720 INFO: added jacobdelafonfr_
[10224] 2012-04-20 20:19:04.720 INFO: added apache-conf
[10224] 2012-04-20 20:19:04.721 INFO: added apache-
[10224] 2012-04-20 20:19:04.721 INFO: added apache-
[10224] 2012-04-20 20:19:04.721 INFO: added apache-
[10224] 2012-04-20 20:19:04.723 INFO: added apache-
25.876 Auto-packing repository GCRepositoryPac
26.122 repacking 10 revisions
27.443 repacking 10 inventories
28.980 repacking chk: 10 id_to_entry roots, 8 p_id_map roots, 836 total keys
92.200 repacking 5821 texts
119.500 Adding the key (<bzrlib.
121.019 aborting commit write group because of exception:
121.019 Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
MemoryError
Thanks Martin Pool, that solved my question.