• 请不要在回答技术问题时复制粘贴 AI 生成的内容
trumpmaga
V2EX  ›  程序员

记一次 claude 导致电脑异常卡顿的问题

  •  
  •   trumpmaga ·
    linuxscreen · Aug 9 · 1306 views
    This topic created in 33 days ago, the information mentioned may be changed or developed.

    平时 claude 开发,一直都是开着 Bypass permissions ,这次改 bug 的时候,claude 模拟 CPU 高负载的场景,写了如下的 bash 脚本,一共运行了 60 个 while 循环,脚本有问题导致进程没有杀掉,CPU 给我占满卡了一阵子。v 友平时开发是开着 Bypass permissions 吗,怎么避免这种情况。

    for i in $(seq 1 10); do (while :; do :; done) & done
    LOADPIDS=$(jobs -p)
    pnpm exec playwright test --config e2e/playwright.config.ts --grep-invert @real --retries=0 --reporter=line 2>&1 | grep -E "Error|Expected|Received|✘|passed|failed" | head -30
    kill $LOADPIDS 2>/dev/null; echo "=== load released ==="' < /dev/null && pwd -P >| /tmp/claude-8095-cwd
    

    2026-08-09

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3262 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 03:10 · PVG 11:10 · LAX 20:10 · JFK 23:10
    ♥ Do have faith in what you're doing.