mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-25 18:56:39 +00:00
Tweak some gc settings [stage]
This commit is contained in:
@@ -180,6 +180,8 @@ public abstract class OperationMode {
|
||||
|
||||
var startupMode = getStartupMode();
|
||||
switchToSyncOrThrow(map(startupMode));
|
||||
// If it doesn't find time, the JVM will not gc the startup workload
|
||||
System.gc();
|
||||
inStartup = false;
|
||||
AppOpenArguments.init();
|
||||
}
|
||||
|
||||
+1
-1
@@ -145,7 +145,7 @@ project.ext {
|
||||
]
|
||||
|
||||
// GC config
|
||||
jvmRunArgs += ['-Xms200m', '-Xmx4G', '-XX:MinHeapFreeRatio=20', '-XX:MaxHeapFreeRatio=30', '-XX:GCTimeRatio=39'];
|
||||
jvmRunArgs += ['-Xms300m', '-Xmx4G', '-XX:MinHeapFreeRatio=15', '-XX:MaxHeapFreeRatio=25', '-XX:GCTimeRatio=19'];
|
||||
|
||||
if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
|
||||
jvmRunArgs += ["-Dapple.awt.application.appearance=system"]
|
||||
|
||||
Reference in New Issue
Block a user