Skip to content

[Bug]: agent-browser processes can consume tens of GB and make headless orca serve unresponsive #16367

Closed

Description

@meiyou666

Operating system

Linux

Orca version

1.4.187

Details

[Bug] agent-browser processes can consume tens of GB and make headless orca serve unresponsive

Environment

  • Orca: 1.4.187
  • OS: Linux x86_64
  • Mode: headless orca serve
  • Memory cgroup limit: 64 GiB
  • Workspace: loop-backed filesystem
  • Bundled browser helper: <orca-install>/resources/agent-browser-linux-x64

Summary

After running Orca headlessly for an extended period, I found multiple agent-browser-linux-x64 processes reparented to PID 1.

Two of them were using approximately:

agent-browser  ~25.6 GiB RSS
agent-browser   ~7.2 GiB RSS

Together they pushed the 64 GiB cgroup to its memory limit.

This caused severe memory reclaim and file-cache refaulting, which eventually saturated the workspace loop device. Orca, Claude, Codex, Chrome, and other processes started entering uninterruptible D state.

The Orca server was still listening on port 6768, but the application layer no longer responded, so initially this looked like a remote/networking failure.

Evidence

Memory was essentially at the cgroup limit:

memory.current ≈ 64 GiB
memory.max     = 64 GiB

Most memory was anonymous:

anon ≈ 61 GiB
file cache ≈ 0.6 GiB

There was also very heavy reclaim/refault activity:

workingset_refault_file ≈ 4.46 billion
pgscan                  ≈ 4.82 billion
pgsteal                 ≈ 4.72 billion

The workspace loop device stayed saturated:

READ MB/s   R await ms   inflight   busy%
373.2          50.68        128      100%
345.2          56.65        125       99.6%
361.5          55.99        122      100%
314.4          66.60        125      100%
382.4          46.47        128      100%

Typical blocked processes included:

orca-ide     D  wait_on_page_bit_common
orca-ide     D  blk_mq_get_tag
claude       D  blk_mq_get_tag
chrome       D  blk_mq_get_tag

During the incident, approximate read I/O attribution was:

orca             145 MB/s
codex             62 MB/s
claude            54 MB/s
agent-browser     51 MB/s
other             44 MB/s

Recovery

I terminated only the two very large agent-browser-linux-x64 processes.

Immediately afterward:

memory.current:  ~64 GiB → ~35 GiB
file cache:      ~0.6 GiB → ~4 GiB
loop inflight:   128 → 0
D-state count:   ~20+ → 0

The existing orca serve process recovered without being restarted, and remote access started working again.

Expected behavior

Orca-managed agent-browser processes should have a bounded lifecycle and should eventually be cleaned up when their owning browser/session/runtime is no longer active.

Processes reparented to PID 1 should not remain indefinitely and grow until the runtime reaches its memory limit.

Suggested investigation

  • Track and clean up agent-browser sidecars when their owning session/tab/runtime ends.
  • Detect stale Orca-owned agent-browser processes on startup or reconnect.
  • Consider explicitly configuring an idle timeout for Orca-managed browser sessions.
  • Add diagnostics or safeguards for unusually high agent-browser memory usage.

Related

Metadata

Metadata

Assignees

Labels

bugos:linux

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions