Skip to content

Commit

Permalink
Merge pull request #24052 from redpanda-data/stephan/remove-pmap
Browse files Browse the repository at this point in the history
dt: Don't run pmap
  • Loading branch information
StephanDollberg authored Nov 7, 2024
2 parents 969693b + 59a49e7 commit e2e63d8
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions tests/rptest/services/redpanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -3243,8 +3243,7 @@ def start_rp():
def _log_node_process_state(self, node):
"""
For debugging issues around starting and stopping processes: log
which processes are running and which ports are in use. Additionally,
capture detailed memory usage for the top 3 memory-consuming processes.
which processes are running and which ports are in use.
"""

self.logger.debug(
Expand All @@ -3262,22 +3261,6 @@ def _log_node_process_state(self, node):
timeout_sec=30):
self.logger.debug(line.strip())

# Analyze memory usage in detail for the top 3 processes
self.logger.debug(
"Gathering detailed memory usage for the top 3 memory-consuming processes..."
)
for process_line in process_lines[
1:4]: # Skip header, get top 3 processes
fields = process_line.split()
pid = fields[1]
mem_usage = fields[3]
self.logger.debug(
f"Process PID: {pid}, Memory Usage: {mem_usage}%")
self.logger.debug(f"Memory map for PID {pid}:")
for pmap_line in node.account.ssh_capture(f"pmap {pid}",
timeout_sec=30):
self.logger.debug(pmap_line.strip())

def start_service(self, node, start):
# Maybe the service collides with something that wasn't cleaned up
# properly: let's peek at what's going on on the node before starting it.
Expand Down

0 comments on commit e2e63d8

Please sign in to comment.