V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
hopestar86
V2EX  ›  Linux

请教 ImageMagick 裁切图片报错 libgomp: Thread creation failed: Resource temporarily unavailable

  •  
  •   hopestar86 · 2014-06-06 02:19:48 +08:00 · 4859 次点击
    这是一个创建于 3624 天前的主题,其中的信息可能已经有所发展或是发生改变。
    如题,
    百度 google了 各种方面,还是搞不定

    find ./ -name '*.jpg' -exec convert -quality 90 -resize "300x300>" {} {} \;

    批量裁切大量图片 N万张

    我在另一台vps上,裁切就没有问题。

    请教怎么解决?
    3 条回复    2014-06-06 09:57:17 +08:00
    Livid
        1
    Livid  
    MOD
       2014-06-06 03:29:02 +08:00
    看起来像是 ulimit 的某个限制被触及了。
    riaqn
        2
    riaqn  
       2014-06-06 09:52:20 +08:00
    man pthread_create

    EAGAIN Insufficient resources to create another thread, or a system-imposed limit on the number of threads was encountered. The latter case may occur in two ways: the RLIMIT_NPROC soft resource limit (set via setrlimit(2)),which limits the number of process for a real user ID, was reached; or the kernel's system-wide limit on the number of threads, /proc/sys/kernel/threads-max, was reached.
    riaqn
        3
    riaqn  
       2014-06-06 09:57:17 +08:00   ❤️ 1
    另外,为什么不用graphicsmagick呢,是imagemagick的fork。
    http://www.graphicsmagick.org/
    比im高到不知道哪里去了……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1455 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 23:50 · PVG 07:50 · LAX 16:50 · JFK 19:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.