SAP Knowledge Base Article - Preview

3028979 - HANA DB failed to start with emergencydump due to shared memory allocation failure

Symptom

  • Hana DB failed to start up, Emergency exit was triggered.
  • You can find the following information in the emergency dump file "indexserver_<host_name>.<port_number>.emergencydump.<date>-<time>.trc":

-----------------------------------------------------------

[CRASH_SHORTINFO] Exception short info: 
SIGNAL 6 (SIGABRT) caught, ... , value int: 0, ptr: 0x0000000000000000 ...
[OK]
--

[CRASH_STACK] :
1: 0x00007ff89edf79db in raise
2: 0x00007ff89f521942 in _crashImpl
3: 0x00007ff89f51e91e in Basis::crashImpl
4: 0x00007ff89f51ec0c in Basis::crashImpl
5: 0x00007ff89f61bcb2 in Diagnose::exitHandler
6: 0x00007ff89fa7467e in _exit
7: 0x00007ff89f621dec in Basis::errorExitWithoutCrashdump
8: 0x00007ff8abf5fd3e inptime::PTimeFactory::startMaster(NameServer::ServiceStartInfo&)
9: 0x00007ff8abf60200 in ptime::PTimeFactory::startup(NameServer::ServiceStartInfo&, bool)
10: 0x00007ff8bed76b06 in PersistenceController::startup DataAccess::TablePreloadReadCallback*, Backup::RecoverCbc_Federation*)
11: 0x00005647164d590e in TRexAPI::TREXIndexServer::assign(NameServer::ServiceStartInfo&, bool, TREX_ERROR::TRexError&)

...

-----------------------------------------------------------

  • In the indexserver trace file, you can see the following messages:

-----------------------------------------------------------

e Memory ptl_shm.cpp(00468) : ShmSystem::create (size=67108864) - No space left on device
e Memory ShmAllocator.cpp(00167) :shared memory allocation failed: exception 1: no.71000004 (Basis/SharedMemory/impl/ptl_shm.cpp:479)
ShmSystem::create (size=67108864) -No space left on device
...
e RS_Segment SegMgr.cc(00719) : Unexpected exception duringAllocation failed $REASON$
e Row_Engine msglog.cc(00082) :Error during RowStore recovery: Allocation failed $REASON$ 
e Row_Engine msglog.cc(00082) :Please check whether your system has enough free memory (especially shared-memory) space or right OS kernel parameter values on shared memory (e.g. shmmax, shmall, shmmni)
e PersistenceLayer ptime_factory.cc(00488) : Unhandled exception in master startup: exception 1: no.1000002 
Allocation failed ; 
...
e Basis ptime_factory.cc(00491) : Process exited due to an error via explicit exit call with exit code 1 , no crash dump will be written
e Basis Crash.cpp(00758) : Crash at ...
Reason:
exception 1: no.2100002 
Emergency exit was triggered

-----------------------------------------------------------


Read more...

Environment

  • SAP HANA Platform Edition 1.0
  • SAP HANA Platform Edition 2.0

Product

SAP HANA 1.0, platform edition ; SAP HANA, platform edition 2.0

Keywords

Shared Memory, kernel, shmmni, shmmax, shmall, RowStore, recovery, Emergency exit
, KBA , HAN-DB , SAP HANA Database , HAN-DB-ENG , SAP HANA DB Engines , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.