Skip to content

The CopilotForXcode used 508GB of memory #298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
akuzminskyi opened this issue May 22, 2025 · 8 comments
Open

The CopilotForXcode used 508GB of memory #298

akuzminskyi opened this issue May 22, 2025 · 8 comments

Comments

@akuzminskyi
Copy link

Describe the bug
The CopilotForXcode used 508GB of memory, I suppose this is too much.

Versions

  • Copilot for Xcode: 0.35.0
  • Xcode: 16.3
  • macOS: 15.5

Screenshots
Image

Logs
github-copilot-for-xcode.log.zip

Additional context

@zenangst
Copy link

Seeing simliar behavior. Was wondering why my machine suddenly wanted to take a trip to the moon.

@testforstephen
Copy link

The indexing job may consume significant system resources while indexing your workspace. Could you share the approximate size of your codebase so we can better estimate the impact? thanks.

@zenangst
Copy link

$ tokei .
===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 C Header              182        25854         6748        15385         3721
 JavaScript              1           31           27            0            4
 JSON                  628        91694        91694            0            0
 Python                  1          197          157            6           34
 Shell                  18          728          541           69          118
 SVG                     2            2            2            0            0
 Swift                2372       225716       189211         5741        30764
 TypeScript              1           45           45            0            0
 Xcode Config           63          616          504            2          110
 YAML                    2           12           12            0            0
-------------------------------------------------------------------------------
 Markdown                1          101            0           65           36
 |- BASH                 1           13           13            0            0
 (Total)                            114           13           65           36
===============================================================================
 Total                3271       344996       288941        21268        34787
===============================================================================

@akuzminskyi
Copy link
Author

--------------------------------------------------------------------------------
Language                      files          blank        comment           code
--------------------------------------------------------------------------------
JSON                          26706           3617              0        3928782
Swift                         14151         246462         154919        1345937
YAML                            551           2452            247         405809
HTML                            274           5981             14         145816
XML                             964            518            211         103509
C/C++ Header                    384          16054          69107          81802
Objective-C                     262           7224           4693          39075
Markdown                        398          13553            114          34850

@testforstephen
Copy link

@zenangst @akuzminskyi thank you for sharing the info. they're helpful for us to setup benchmark. we will investigate further to see how to mitigate it.

@albianto
Copy link

I also work on a huge project and I'm getting constant v8::internal::V8::FatalProcessOutOfMemory lately.
Makes copilot basically unusable.
I don't get past 8GB of allocated memory though, not sure how you guys can go above that.

@testforstephen
Copy link

Hi @akuzminskyi, in your case, the real memory usage is 201M, not 508G.

508G memory in your screenshot is the virtual memory space that’s given to copilot. It has no relation with the actual physical memory and storage usage. I took a look into all nodejs processes running in my MacBook Pro, all of them show 390G+ virtual memory size. I think virtual memory size is not a meaningful metric for evaluating memory consumption.

@akuzminskyi
Copy link
Author

akuzminskyi commented May 24, 2025

@testforstephen thanks. feel free to close the issue if this is irrelevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@zenangst @albianto @akuzminskyi @testforstephen and others