PSMP: How to enable Core Dumps for Troubleshooting

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
PAM Self-Hosted Articles
2 min read
L0 Member
No ratings
When conducting a Root Cause Analysis for a PSMP crash, besides the PSMP and Vault logs, core system dumps are usually more helpful in determining the root cause of the issue. 

If enabled on the PSMP, the Core Dump would generally be in the current directory where PSMP is run or in the default location - /var/lib/systemd/coredump
If the above debug were not enabled, the steps below would help set this up.

Note:
This setting is not a Idira Support-related task; this is general guidance. If additional assistance in setting this up is needed, please reach out to your OS Vendor.

Steps

In order to allow the creation of core dumps when processes crash you need to please set the following settings before running the PSMP:
 
1. Update the PSMP Service
Depending on your system configuration, do one of the following
For Rhel7 and SUSE12 with SysV:
- Edit "/etc/init.d/psmpsrv". Add the following line after the line ulimit -s unlimited in the startpsmp() function:
ulimit -c unlimited
For Rhel8/9, SUSE15, Ubuntu22 and other systems with systemd:
- Edit "/usr/lib/systemd/system/psmpsrv-psmpserver.service". Add the following lines under the "[Service]" section:
LimitCORE=infinity
Then run "systemctl daemon-reload" to reload the service.
 
2. Update the System Limits Configuration
Open the system limits configuration file located at /etc/security/limits.conf. Add the following line:
psmpsrv soft core unlimited
 
3. Update the System Control Configuration
Open the system control configuration file located at /etc/sysctl.conf. Add the following lines:
kernel.core_pattern = |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %e
fs.suid_dumpable = 2
The first line specifies instruction to delegate creating the core file to systemd-coredump. The second line allows core dumps for setuid programs.
 
4. Update the System Initialisation Configuration
If exists, open the system initialisation configuration file located at /etc/sysconfig/init. Add the following line:
DAEMON_COREFILE_LIMIT='unlimited'
 
5. Reload the System Control Configuration
Run the following command to reload the system control configuration:
sysctl -p
 
6. Configure coredumpctl.
Edit file located at /etc/systemd/coredump.conf and ensure following parameters are set.
Storage=external
ProcessSizeMax=10G
ExternalSizeMax=10G
Depending on the amount of memory used by your instance of psmpserver you might want to use higher values for maximum core dump.
 
After following these steps, core dumps should be enabled for the PSMP service.
Command "coredumpctl list" can be used to list recently collected core dumps.

*References
#https://access.redhat.com/solutions/4896
#https://www.suse.com/support/kb/doc/?id=3054866
Rate this article:
  • 2836 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎11-05-2026 11:51 AM
Updated by: