Skip to content

Commit

Permalink
print vsz, and disk size. add swap memory
Browse files Browse the repository at this point in the history
  • Loading branch information
YotillaAntoni committed Jan 14, 2025
1 parent fd89ec3 commit ad7f89b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ jobs:
(
while true; do
echo "Top memory-consuming process at $(date):"
ps -eo user,pid,comm,rss,args --sort=-rss | head -n 21
ps -eo user,pid,comm,rss,vsz,args --sort=-rss | head -n 21
echo "-----------------------------"
df -h
sleep 30
done
) &
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class TestingExasolServer

private static final long ONE_GB = 1_073_741_824L;
private static final long MAX_MEMORY = 4 * ONE_GB;
private static final long SWAP_MEMORY = 6 * ONE_GB;
private static final long RESERVED_MEMORY = 2 * ONE_GB;

private final ExasolContainer<?> container;
Expand All @@ -58,7 +59,7 @@ public TestingExasolServer()
.withSupportInformationRecordedAtExit(Path.of("/tmp/db-log"), ExitType.EXIT_ANY)
.withCreateContainerCmdModifier(cmd -> cmd.getHostConfig()
.withMemory(MAX_MEMORY)
.withMemorySwap(MAX_MEMORY)
.withMemorySwap(SWAP_MEMORY)
.withMemoryReservation(RESERVED_MEMORY)
.withOomKillDisable(true));
cleanup = startOrReuse(container);
Expand Down

0 comments on commit ad7f89b

Please sign in to comment.