Skip to content

Capturing a Process Memory Dump

If the SenseOn agent shows abnormally high memory usage and a service restart does not correct it, a process memory dump helps. The dump gives the support team a snapshot of the contents of memory at that moment. This helps the support team find if there is a memory leak. If there is a leak, it also helps them find which part of the agent causes it.

Send the dump file and the agent version information to support@senseon.io. The steps on this page tell you how to get the version information.

ℹ Two versions to report on version 7.0 and later: A device on version 7.0 or later runs the bootstrapper and also the sensor. The two have different version numbers. The version steps on this page collect the two version numbers. A device on version 6 or earlier has no bootstrapper. Thus the bootstrapper command reports that the package is not installed, for example package senseon-bootstrapper is not installed from rpm -q. That response is expected on such a device, and only the sensor version applies.

⚠ File size: Do not send a full process memory dump by email. A full dump is usually several hundred megabytes, which is too large for email. Upload the dump with the file sharing method that your support contact gives you, or attach it to your open support case.


Windows

Step 1: Identify the process

Open an elevated PowerShell window. Run this command:

Get-Process senseon* | Select-Object Name, Id, WorkingSet64, PrivateMemorySize64

Record the Id of the process that has the elevated Working Set. This is the PID that you will use in the next step.

Step 2: Create the dump

Option A — Task Manager

  1. Open Task Manager.
  2. Go to the Details tab.
  3. Right-click the senseon-seed.exe process. If a different senseon-* process has the elevated Working Set, right-click that process instead.
  4. Select Create memory dump file.
  5. The dialog shows the location of the saved .dmp file (usually C:\Users\<username>\AppData\Local\Temp\).

Option B — Sysinternals ProcDump

If Task Manager is not available, or the system has too little free memory to open it, use ProcDump from Sysinternals:

procdump -ma <PID> C:\Temp\senseon-agent.dmp

Replace <PID> with the process ID from Step 1. The -ma flag captures a full memory dump, not a minidump.

Step 3: Gather version information

Run these commands. Include the output in your support message:

Get-Process -Id <PID> | Select-Object Name, Id, WorkingSet64, PrivateMemorySize64, VirtualMemorySize64
Get-Content "C:\Program Files\senseon-see\version.txt"
Get-Package -Name 'senseon-bootstrapper' | Select-Object Name, Version

Linux

Step 1: Identify the process

ps aux | grep senseon-seed

Record the PID (second column) of the senseon-seed process.

Step 2: Create the dump

If gcore is not available, install it (it is part of gdb):

sudo apt-get install gdb   # Debian/Ubuntu
sudo yum install gdb       # RHEL/CentOS

Then capture the dump:

sudo gcore -o /tmp/senseon-seed.core <PID>

Step 3: Gather version information

ps -p <PID> -o pid,vsz,rss,comm
cat /etc/senseon-see/version.txt
dpkg -l senseon-bootstrapper   # Debian/Ubuntu
rpm -q senseon-bootstrapper    # RHEL/CentOS

macOS

Step 1: Identify the process

ps aux | grep senseon

Record the PID of the process that has high memory usage.

Step 2: Create the dump

sudo gcore -o /tmp/senseon.core <PID>

Step 3: Gather version information

ps -p <PID> -o pid,vsz,rss,comm
cat /var/senseon-see/version.txt
pkgutil --pkg-info io.senseon.senseon-bootstrapper