Skip to content
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

[SR-4930] SourceKitService consumes too much memory #47507

Open
asifmohd opened this issue May 18, 2017 · 1 comment
Open

[SR-4930] SourceKitService consumes too much memory #47507

asifmohd opened this issue May 18, 2017 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@asifmohd
Copy link

Previous ID SR-4930
Radar rdar://21619189
Original Reporter @asifmohd
Type Bug
Environment

Macbook pro early 2015 (8GB Ram)
Mac OS 10.12.5
Xcode 8.3.2
Swift version 4.0-dev (LLVM 9d68c67a3a, Clang fb6de28c01, Swift 24d5e87)

Additional Detail from JIRA
Votes 1
Component/s Source Tooling
Labels Bug
Assignee None
Priority Medium

md5: 0ba3c3a42cf5547ece9e393add5adb45

Issue Description:

SourceKitService keeps using more and more memory for every swift file that i open in a project.

It seems that the claimed memory is never released till the user restarts Xcode.

Would it be possible to have an upper limit on the amount of memory sourcekit could use and then keep cycling files in FIFO order, and maintain a memory usage of around 1 GB or something?

Example:

This impacts everyday development in swift for large projects, as we have to restart Xcode every few hours just to reclaim the memory lost to SourceKitService.

@belkadan
Copy link
Contributor

cc @akyrtzi

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

2 participants