chore: update Java VM arguments for improved performance on MacOS#1810
Merged
markscott-ms merged 1 commit intofinos:mainfrom Nov 18, 2025
Merged
chore: update Java VM arguments for improved performance on MacOS#1810markscott-ms merged 1 commit intofinos:mainfrom
markscott-ms merged 1 commit intofinos:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates the Java VM arguments for the Java Language Server in VSCode to address memory issues on macOS, particularly with Apple Silicon. The changes remove problematic settings and switch to more appropriate garbage collection and memory configurations for language server workloads.
Key changes:
- Removed
-Dsun.zip.disableMemoryMapping=trueflag that causes OOM errors on macOS - Switched from ParallelGC to G1GC with string deduplication for better memory management
- Adjusted heap sizes (max: 4G→2G, min: 100m→256m) to reduce memory pressure while maintaining adequate initial allocation
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
markscott-ms
approved these changes
Nov 18, 2025
pmerrison
pushed a commit
to pmerrison/architecture-as-code
that referenced
this pull request
Nov 20, 2025
chore: update Java VM arguments for improved performance on MacOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
VSCode on MacOS frequently complains about being out of memory.
The current configuration has -Dsun.zip.disableMemoryMapping=true, which is a known problematic setting on macOS. This flag is often recommended but can actually cause OutOfMemory errors on Mac, particularly with Apple Silicon Macs, because it forces the JVM to load entire JAR files into heap memory instead of memory-mapping them.
The key issues with current configuration:
Type of Change
Affected Components
cli/)shared/)calm-widgets/)calm-hub/)calm-hub-ui/)docs/)calm-plugins/vscode/)Commit Message Format ✅
Testing
Checklist