CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

Multiple language server processes increase memory footprint

Open tarbayev opened this issue 10 months ago • 5 comments

Describe the bug

The extension spawns 2 copilot-language-server-arm64 processes per project, each consuming about 1GB of memory. This increases memory pressure and leads to poor performance. Xcode's own high memory consumption doesn't make things better. The fact that VS Code doesn't have this issue suggests that this is something that should be addressed.

Versions

  • Copilot for Xcode: 0.46.0
  • Xcode: 26.1.1
  • macOS: 15.6.1

Hardware

  • Apple M1 Pro 32 GB

Steps to reproduce

  1. Open an Xcode project
  2. Observe 2 copilot-language-server-arm64 processes spawning instantly
  3. Open another project
  4. Observe another 2 copilot-language-server-arm64 instances spawning
  5. Close all the projects
  6. Observe the copilot-language-server-arm64 processes remaining in memory

Screenshots

Image

tarbayev avatar Jan 31 '26 11:01 tarbayev

The Memory column you showed is not the real physical memory consumption. Can you show the real mem column as well?

Here is what I see on my macOS, the real mem is just 36 MB. Image

testforstephen avatar Feb 02 '26 08:02 testforstephen

@testforstephen Doesn't look much better for me.

Image

tarbayev avatar Feb 02 '26 10:02 tarbayev

@tarbayev thanks for the information. May I ask whether the memory consumption is sustained over time or just a peak value?

testforstephen avatar Feb 02 '26 11:02 testforstephen

@testforstephen It's like this straight after opening a project. Good thing it doesn't grow over time.

tarbayev avatar Feb 03 '26 18:02 tarbayev

The same problem persists; each language process is consuming approximately 1GB of memory, causing severe lag when editing code in Xcode.

What are these processes used for? Could their number be reduced?

coder-xiaolong avatar Feb 26 '26 03:02 coder-xiaolong