zoukankan      html  css  js  c++  java
  • "File too large" error when using scp in AIX

    ##

    ulimit 设置不正确。

    Hi Clifford,

    You were correct. Here is the 'ulimit -a' output:
    serverapp02:/# ulimit -a
    time(seconds) unlimited
    file(blocks) unlimited
    data(kbytes) 131072
    stack(kbytes) 32768
    memory(kbytes) 32768
    >>>coredump(blocks) 2097151
    nofiles(descriptors) 2000
    serverapp02:/#
    So should I just triple the coredump(blocks) size to 6291453 so I can scp my
    large file that is over 2GB?

    Thanks,
    BP

    /etc/security/limits 将stack值设为了-1 为何用ulimit -a 看到的是   4194304?
       
       出现这种问题的原因是在您的操作系统中设置了默认的stack的“硬限制”(hard limit)。要解决这个问题,您需要在/etc/security/limits中设置stack的新的硬限制(hard limit)为无限,然后再设置stack的限制。如:
       default:
       fsize = 2097151
       core = 2097151                 《-coredump
       cpu = -1
       data = 262144
       rss = 65536
       stack_hard = -1
       stack = -1
       nofiles = 2000

  • 相关阅读:
    sys.argv
    webbrowser
    2014年11月26日(程序员的加班)
    下一站红灯
    Java基础知识总结(超级经典)
    JAVA的三个开发方向
    2014年11月23日
    大学,一切才刚刚开始
    XML学习总结
    C# 文件重命名
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/12484570.html
Copyright © 2011-2022 走看看