Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
hopestar86
V2EX  ›  Linux

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

  •  
  •   hopestar86 · Jun 6, 2014 · 5739 views
    This topic created in 4374 days ago, the information mentioned may be changed or developed.
    如题,
    百度 google了 各种方面,还是搞不定

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

    批量裁切大量图片 N万张

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

    请教怎么解决?
    3 replies    2014-06-06 09:57:17 +08:00
    Livid
        1
    Livid  
    MOD
    PRO
       Jun 6, 2014
    看起来像是 ulimit 的某个限制被触及了。
    riaqn
        2
    riaqn  
       Jun 6, 2014
    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  
       Jun 6, 2014   ❤️ 1
    另外,为什么不用graphicsmagick呢,是imagemagick的fork。
    http://www.graphicsmagick.org/
    比im高到不知道哪里去了……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5353 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 06:59 · PVG 14:59 · LAX 23:59 · JFK 02:59
    ♥ Do have faith in what you're doing.