We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7755581 + b53eca1 commit 3347b98Copy full SHA for 3347b98
src/main/java/sirius/db/es/ElasticMetricsProvider.java
@@ -81,8 +81,8 @@ public int getCurrentMaxMemoryPressure() {
81
82
private int calculateMemoryPressure(JsonNode memoryStats) {
83
JsonNode oldGenStats = memoryStats.at(OLD_GEN_STATS_POINTER);
84
- int usedInBytes = oldGenStats.path("used_in_bytes").asInt();
85
- int maxInBytes = oldGenStats.path("max_in_bytes").asInt();
+ long usedInBytes = oldGenStats.path("used_in_bytes").asLong();
+ long maxInBytes = oldGenStats.path("max_in_bytes").asLong();
86
87
if (maxInBytes == 0) {
88
return 0;
0 commit comments