Announcement

Collapse
No announcement yet.

Executing mercurial "hg update" will give "abort: out of memory"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Executing mercurial "hg update" will give "abort: out of memory"

    hg process when executed by user will show "abort: out of memory"

  • #2
    Since the mercurial version on the official repos is a bit old, I tried installing fr om rpmforge and fr om source, but neither of them work when executing hg with a normal user. If I execute with root, there will be no problem, hg executes as expected.

    When I execute "hg upd ate" with a normal user I will get a "abort: out of memory". I even se tup the LVE for 16GB of ram and 50% CPU, and this won work. So It looks like there is a extra feature thats lim iting mercurial?

    Any ideias?

    System details:

    # uname -a
    2.6.32-320.4.1.lve1.1.4.el6.x86_64 #1 SMP Wed Mar 7 06:32:27 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

    # python --version
    Python 2.6.6

    # hg --ver sion (fr om source)
    Mercurial Distributed SCM (version 2.2)

    # hg update
    abort: /usr/lib64/python2.6/lib-dynload/operator.so: failed to map segment fr om shared object: Cannot allocate memory!

    # ulimit -a (from a normal user)
    core file size (blocks, -c) 200000
    data seg size (kbytes, -d) 200000
    scheduling priority (-e) 0
    file size (blocks, -f) unlim ited
    pending signals (-i) 385129
    max locked memory (kbytes, -l) 64
    max memory size (kbytes, -m) 200000
    open files (-n) 100
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    real-time priority (-r) 0
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlim ited
    max user processes (-u) 35
    virtual memory (kbytes, -v) 200000
    file locks (-x) unlim ited

    Comment


    • #3
      If you are running it as root -- I am pretty sure it is not due to LVE
      most likely it is either data seg size (-d) or max memory size (-m) or virtual memory (-v)
      I would reset those to unlimited, and try again.

      Comment


      • #4
        hmmm ok, so in what does the LVE Memory Limit that I can set in CPANEL affect, since that is set to 8GB now.

        and how do I change those limite you mentions (data seg size (-d) or max memory size (-m) or virtual memory (-v) ) ?

        Thanks for the help

        Comment


        • #5
          man ulimit will show how to adjust those limits.

          LVE memory limits limits cron/shell/php/cgi scripts run by end users. It doesn limit root at all.

          Comment


          • #6
            Thanks!

            Had to change /etc/bashrc and /etc/profile to set new limits, since it looks like its Cpanel that was setting this limits for SSH connections.

            Comment

            Working...
            X