This is an automated email from the ASF dual-hosted git repository.
spricoder pushed a commit to branch feature/memory_transfer
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/feature/memory_transfer by
this push:
new 05e60f391c5 Add check log
05e60f391c5 is described below
commit 05e60f391c5de4a10aeaa0aa486382231d4f411c
Author: spricoder <[email protected]>
AuthorDate: Sat Feb 22 18:18:48 2025 +0800
Add check log
---
.../main/java/org/apache/iotdb/commons/memory/MemoryRuntimeAgent.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/memory/MemoryRuntimeAgent.java
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/memory/MemoryRuntimeAgent.java
index 850d7cb94a7..5ee4aabd874 100644
---
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/memory/MemoryRuntimeAgent.java
+++
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/memory/MemoryRuntimeAgent.java
@@ -79,6 +79,7 @@ public class MemoryRuntimeAgent implements IService {
MemoryManager memoryManager =
MemoryManager.global().getMemoryManager("OnHeap");
if (memoryManager != null) {
long originMemorySize =
memoryManager.getTotalAllocatedMemorySizeInBytes();
+ LOGGER.info("[Origin]Total memory size changed from {} to {}",
originMemorySize, totalMemory);
if (totalMemory >= (1 + ratio) * originMemorySize
|| totalMemory <= (1 - ratio) * originMemorySize) {
LOGGER.info("Total memory size changed from {} to {}",
originMemorySize, totalMemory);