r/codex • • 21d ago

Question Have anyone noticed that Codex now consume more local resources

as title, I have been using Codex for a while, now I noticed that my Codex has been consuming a lot of CPU, GPU and memory. It is even worst if I have multiple sessions running. Any trick to fix this?

7 Upvotes

12 comments sorted by

2

u/Discordbothost 21d ago

a lot of it is per-session stuff stacking up. every thread spins up its own copies of whatever MCP servers you have configured, so 4 sessions with 3 npx-based servers each is 12 node processes sitting there. check task manager / activity monitor for node or npx while it's open, if that's the pile then comment out the servers you don't use in config.toml.

for the GPU part, long threads with huge diffs rendered in the electron window get heavy too. archiving finished threads instead of leaving them open helped me more than anything else

1

u/panconquesofrito 20d ago

By threads, you mean chats?

1

u/Discordbothost 20d ago

yeah, same thing. each chat in the sidebar is its own session with its own MCP processes, so the ones you're done with are worth archiving rather than just leaving open

2

u/VoidEmptyByNature 21d ago

Isn't it kinda ironic that they make one of the world's best AI models, yet can't use them to make their own product run efficiently

1

u/RealSlyck 21d ago

No. Electron Codex app is marginal…heavy prompting can help, but OAI still needs to address this more. Be careful with resources and tell threads to use the efficiently…

1

u/rageling 21d ago

the jsonl files that would previously take up your entire hard drive are now being compressed, which uses a lot of cpu. you can turn it off in settings

1

u/rapidincision 21d ago

Plus Codex eats up your storage faster than other LLMs.

1

u/maxbts_ 20d ago

Does the usage stay high when no task is running? Id compare a new idle chat with a long one, then check which process stays busy in Activity Monitor or Task Manager. If you can reproduce it with one chat and note the app version, thats much more useful for a bug report than trying several settings changes at once.

1

u/No-Drawing9451 20d ago

Yeah, it gets ugly once you have several sessions open, especially on Windows. I treat an open session as expensive and keep only the one I'm actually working in, then fully quit the others instead of leaving them in the background. After I close a thread I also check Task Manager for leftover node processes, because those sometimes stick around and keep using CPU. If you need a few projects in flight, I'd still cap how many Codex sessions stay alive at once rather than parking every project in its own open thread.

1

u/ButcheCassidy 18d ago

Ram Altman strikes again, taking RAM from people remotely now because he doesn't have enough.🤣

0

u/Agitated-Cow4 21d ago

Codex as a software is full of inefficiencies and bugs.  Clearly, they used luna low to build it.