How to Check Shared Memory Dump History in SAP ASE

If SAP ASE generated a shared memory dump after an error, you may want to know when it happened and whether the dump was written successfully. ASE 16.1 SP00 PL02 introduces the monMemoryDumps monitoring table for this purpose.

Check the ASE version and monitoring settings

select @@version
go
sp_configure 'enable monitoring'
go
sp_configure 'memory dumps pipe active'
go
sp_configure 'memory dumps pipe max messages'
go

The last two parameters must be available in your ASE release. The history requires monitoring and the memory dump pipe to be enabled, with a non-zero message limit. The commands above only display the current configuration.

Display dump history

select SPID, Event, StartTime, EndTime,
       Status, Name, Size
from master..monMemoryDumps
order by StartTime desc
go

You can also review the history through the Administration and Management Console for supported releases. If there are no rows, check whether collection was enabled when the event occurred. For older versions, use the ASE error log and the configured dump directory.

Do not trigger a shared memory dump just to test the history in production. Dump collection can consume disk space and, depending on its settings, interrupt database processing. Treat dump files as sensitive.

Reference

SAP Note: 3793147

SAP Help: monMemoryDumps

SAP Help: Configuring Shared Memory Dump Conditions

You May Also Like

Leave a Reply?