Skip to content

Commit

Permalink
Optimize for better memory footprint management.
Browse files Browse the repository at this point in the history
Use a garbage collector (Parallel) that supports memory footprint
management :

- GCTimeRatio : Fraction of time (%) spent performing garbage collection
of total time
- AdaptiveSizePolicyWeight : The extent to which current GC times are
used when maintaining the timing goal as opposed to previous times

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
  • Loading branch information
rgrunber committed Mar 3, 2020
1 parent c00bdac commit f9fcabf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
"string",
"null"
],
"default": "-Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication",
"description": "Specifies extra VM arguments used to launch the Java Language Server. Eg. use `-Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication` to increase the heap size to 1GB and enable String deduplication with the G1 Garbage collector",
"default": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m",
"description": "Specifies extra VM arguments used to launch the Java Language Server. Eg. use `-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m ` to optimize memory usage for container environments with the parallel garbage collector",
"scope": "window"
},
"java.errors.incompleteClasspath.severity": {
Expand Down

0 comments on commit f9fcabf

Please sign in to comment.