Git-svn内存不足

时间:2014-10-03 08:09:47

标签: out-of-memory git-svn

我正在尝试使用git-svn克隆一个相当大的svn存储库,并且在某个时刻我收到一条错误消息:

Failure loading plugin: APR: Can't create a character converter from 'UTF-8' to native encoding: Cannot allocate memory at /usr/libexec/git-core/git-svn line 5061

有时是

Cannot allocate memory: zlib (compress2): out of memory: Compression of svndiff data failed at /usr/libexec/git-core/git-svn line 5061

错误消息。我还有~3GB内存空闲。我应该怎么做才能让git-svn可以利用它?

(我在RedHat Enterprise Linux 6.5上这样做,如果这有任何区别的话)

1 个答案:

答案 0 :(得分:0)

From

  

此错误消息是关于git尝试分配的内存 -   它比免费更重要。这很可能是由一个大的引起的   已经检入SVN的文件。不幸的是,这并不容易   解决它(除了购买更多的内存) - 你必须删除   大文件和提交从SVN添加。

但请尝试以下操作:

  1. 增加互换内存
  2. 增加ulimit