macOS: Too many open files under normal session usage

オープン
#583 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
macos, tauri, typescript

調査の方向性

No source files or tests are named. Start by reproducing on macOS with five configured workspaces, using the reported ulimit and lsof snapshots to identify which process exhausts file descriptors. Done means normal or mostly-idle session usage no longer reaches the limit and Too many open files is not observed.

索引モデルが issue の本文から書いたものです。

説明

Summary

I'm hitting intermittent Too many open files errors in Codex Monitor on macOS.

This does not look like just a random local spike. Codex Monitor's normal workload seems to keep a meaningful number of file descriptors open across:

  • codex-monitor
  • child codex app-server
  • WebKit.WebContent

On my machine the soft limit is low:

ulimit -n
256

launchctl limit maxfiles
maxfiles    256 unlimited

With 5 workspaces configured, I sampled a live session and saw roughly:

  • codex-monitor: ~104-105 FDs
  • codex app-server: ~94-95 FDs
  • WebKit.WebContent: ~59 FDs

I did not prove a monotonic FD leak in a short sample, so this may be more of a headroom / scaling issue under normal session management than a continuously growing leak.

Closing idle sessions or workspaces may reduce pressure temporarily, but because session management is the core job of the app, I think normal or mostly-idle usage should stay well below the point where Too many open files is possible.

Version: 0.7.66

There also wasn't much useful local logging to show which process actually crosses the limit. If useful, I can provide lsof snapshots and a longer sampling run.

主要言語
TypeScript
スター
4.4k
フォーク
418
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Dimillian/CodexMonitor のほかの issue

Dimillian/CodexMonitor の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。