SMResourceError when using TIBCO KTP sysvshm memory type.

SMResourceError when using TIBCO KTP sysvshm memory type.

book

Article ID: KB0088463

calendar_today

Updated On:

Products Versions
TIBCO KTP -
Not Applicable -

Description

Resolution:
Description:
============
A TIBCO KTP node fails in timeout upon installation/start when using sysvshm memory type.

Environment:
===========
TIBCO KTP 3.5+

Symptoms:
========
Switchadmin command fails with the following error in stdout.

        Installing node testnode...

        Starting node testnode ...
                Installing Registry ...
                Updating Registry ...

swsrv: testnode: Timeout waiting for coordinator to start

Install switch failed

And you in the coordinator log file you can see :
2011-12-22 16:08:32.247877|SCD|INFO |21536|syscoor.cpp(899)|Start of Coordinator initialization
2011-12-22 16:08:32.247955|SCD|INFO |21536|syscoor.cpp(912)|SW_HOME environment variable is set to xxx
2011-12-22 16:08:32.263669|EXP|WARN |21536|syscoor.cpp(974)|CATCH(DSEException)
2011-12-22 16:08:32.263743|EXP|WARN |21536|dseexcpt.cpp(406)|STACK TRACE:
  +++ START +++
    psmem.cpp (499): THROW SWSMemory::SMResourceError: reason: 'Operating system error: function 'shmget': error code (22): error string 'Invalid argument''
    psmemshm.cpp (185): RETHROW SWSMemory::SMResourceError
    psmem.cpp (222): RETHROW SWSMemory::SMResourceError
    psmem.cpp (260): RETHROW SWSMemory::SMResourceError
    smmgr.cpp (765): RETHROW SWSMemory::SMResourceError
    smmgr.cpp (828): RETHROW SWSMemory::SMResourceError
    osstmgr.cpp (511): RETHROW SWSMemory::SMResourceError
    osstmgr.cpp (655): RETHROW SWSMemory::SMResourceError
    syscoor.cpp (974): DUMP SWSMemory::SMResourceError
  +++ END +++
2011-12-22 16:08:32.263763|SCD|FATAL|21536|syscoor.cpp(980)|createStateManager: Failed to create state manager for node testnode
2011-12-22 16:08:32.263782|SCD|FATAL|21536|syscoor.cpp(1309)|SWSysCoord::abort.  Coordinator process 21536 exiting!

Cause:
========
The error occured because the expected shared memory size (see parameter memorysize) exceeds the limit allowed by the system which is defined by the max-shm-memory kernel parameter.

Resolution:
==========
Increase the max-shm-memory kernel parameter to a larger value than the node memory size.

Issue/Introduction

SMResourceError when using TIBCO KTP sysvshm memory type.