Skip to content

Commit ab68e0e

Browse files
rgrunberfbricon
authored andcommitted
Optimize for better memory footprint management.
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>
1 parent 4065df7 commit ab68e0e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
"string",
7474
"null"
7575
],
76-
"default": "-Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication",
77-
"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",
76+
"default": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m",
77+
"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",
7878
"scope": "window"
7979
},
8080
"java.errors.incompleteClasspath.severity": {

0 commit comments

Comments
 (0)