Skip to content
This repository was archived by the owner on May 23, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hikaricp = "7.0.2"
hibernate = "7.3.1.Final"
jakarta = "3.2.0"

oshi = "6.11.1"
oshi = "6.12.0"
unirest = "4.8.1"
logback = "1.5.32"
apache-commons = "3.20.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import lombok.SneakyThrows;
import org.jetbrains.annotations.NotNull;
import oshi.SystemInfo;
import oshi.ffm.SystemInfo;

import java.util.concurrent.CompletableFuture;

Expand Down Expand Up @@ -34,7 +34,7 @@ public class SystemUtility {
@SneakyThrows
public static @NotNull Long memoryUsage() {
return systemInfo.getOperatingSystem().getCurrentProcess()
.getResidentSetSize() / (1024 * 1024);
.getResidentMemory() / (1024 * 1024);
}

static final SystemInfo systemInfo =
Expand Down