Monitor Processes

The critical processes to check are the Search server and the Index.

This task shows you how to:

Context:

To...

Use...

Or connect to...

Check All Processes

cvcmd status

Administration Console >Home > Processes > Host list

Check Local Processes

<DATADIR>\bin\ cvinit.[bat|sh] status

Administration Console >Home > Processes

Check Process Logs

<DATADIR>\run\<PROCESS NAME>\log.log

Administration Console >Home > Logs > Hosts and Processes lists

Look for Restarts or Loop Failing

http://<HOSTNAME>:<BASEPORT+11>/mami/deploy/getDeploymentStatus

-

Check All Processes

Context: Processes may be in the following statuses:

  • Started
  • Starting
  • Stopped
  • Dead

  1. Go to <DATADIR>/bin.
  2. Run cvcmd[.sh] status.

    The output displays:

    NAME                  STATUS PAYLOAD  PID         STARTDATE
    consolidationserver-cs0     started - 7332  2018-10-07  11:15:55+0200
    searchserver-ss0            started - 2260  2018-10-07  11:15:55+0200
    master                      started - 9240  2018-10-07  09:48:38+0200
    index6-bg0-i0               started - 9236  2018-10-07  09:48:38+0200
    gateway                     started - 9250  2018-10-07  09:48:38+0200
    indexingserver-bg0          started - 9239  2018-10-07  09:48:38+0200
    connectors-java0            started - 23311 2018-10-07  10:49:01+0200
    convert-c0                  started - 9231  2018-10-07  09:48:38+0200
    crawler-exa0                started - 2213  2018-10-07  11:15:52+0200

Check Local Processes

  1. Go to <DATADIR>/bin.
  2. Run <DATADIR>\bin\cvinit.bat|sh status.

    The output displays:

    NAME                  STATUS  PAYLOAD PID     STARTDATE
    searchserver-ss0      started -       2260    2018-10-07T11:15:55+0200
    master                started -       9240    2018-10-07T09:48:38+0200
    index6-bg0-i0         started -       9236    2018-10-07T09:48:38+0200
    gateway               started -       9250    2018-10-07T09:48:38+0200
    indexingserver-bg0    started -       9239    2018-10-07T09:48:38+0200
    connectors-java0      started -      23311    2018-10-07T10:49:01+0200
    convert-c0            started -       9231    2018-10-07T09:48:38+0200
    crawler-exa0          started -       2213    2018-10-07T11:15:52+0200

Check Process Logs

  1. Go to <DATADIR>\run\<PROCESS NAME>\log.log.
  2. Look for ERROR.
  3. If the log information level is not enough, set the log level to DEBUG in Administration Console > Troubleshooting > Logs.

Look for Restarts or Loop Failing

  1. Go to http://<HOSTNAME>:<BASEPORT+11>/mami/deploy/getDeploymentStatus.
  2. Look for nbUnexpectedRestarts, nbConsecutiveUnexpectedRestarts, and loopCrashing="true".

    Example:

    <DeploymentStatus xmlns="exa:exa.bee.deploy.v10">
    <HostStatus hostname="ngdev018.paris.exalead.com" install="cvdefault" status="ok"
     architecture="amd64-linux" nbCpus="8" cpuUsage="3.0112925"
     dataDir="/data/vquesnia/data_TRUNK_95767"
     installDir="/data/vquesnia/cloudview-dev_trunk.dev.95767-linux-x64" user="vquesnia"
     hostAgentStartupConfigVersion="17" exaHostAgentPort="16009" javaHostAgentPort="16027">
    <ProcessStatus processName="searchserver-ss0" status="started" pid="11652"
     lastStartDate="1554377913673" nbUnexpectedRestarts="0" loopCrashing="false"
     nbConsecutiveUnexpectedRestarts="0" 
     ports="16019,16020,16000,16021,16010,16023"
     debugPort="16029" defaultPort="16019"/>
    <ProcessStatus processName="master" status="started" pid="11645"
     lastStartDate="1554377913673" nbUnexpectedRestarts="0" loopCrashing="false"
     nbConsecutiveUnexpectedRestarts="0"
     ports="16003"
     debugPort="-1" defaultPort="16003"/>
    <ProcessStatus processName="index6-bg0-i0" status="started" pid="11650"
     lastStartDate="1554377913673" nbUnexpectedRestarts="0" loopCrashing="false"
     nbConsecutiveUnexpectedRestarts="0"
     ports="16015"
     debugPort="16035" defaultPort="16015"/>
    <ProcessStatus processName="gateway" status="started" pid="11644"
     lastStartDate="1554377913673" nbUnexpectedRestarts="0" loopCrashing="false"
     nbConsecutiveUnexpectedRestarts="0" 
     ports="16001,16004,16005,16006,16007,16027,16011,16008"
     debugPort="16037" defaultPort="16004"/>
    <ProcessStatus processName="indexingserver-bg0" status="started" pid="11655"
     lastStartDate="1554377913674" nbUnexpectedRestarts="0" loopCrashing="false"
     nbConsecutiveUnexpectedRestarts="0"
     ports="16012,16013,16014"
     debugPort="16031" defaultPort="16012"/>
    <ProcessStatus processName="connectors-java0" status="started" pid="11648"
     lastStartDate="1554377913673" nbUnexpectedRestarts="0" loopCrashing="false"
     nbConsecutiveUnexpectedRestarts="0"
     ports="16024,16025,16026"
     debugPort="16033" defaultPort="16024"/>
    <ProcessStatus processName="convert-c0" status="started" pid="11657"
     lastStartDate="1554377913674" nbUnexpectedRestarts="0" loopCrashing="false"
     nbConsecutiveUnexpectedRestarts="0"
     ports="16038,16017"
     debugPort="16040" defaultPort="16038"/>
    <ProcessStatus processName="hostagent" status="started" pid="11609"
     lastStartDate="1554377913668" nbUnexpectedRestarts="0" loopCrashing="false"
     nbConsecutiveUnexpectedRestarts="0"
     ports="16009"
     debugPort="-1" defaultPort="16009"/>
    <MemoryInfos swapSize="16777212" swapFree="16759548"
     physicalSize="12151328" physicalFree="903324"/>
    </HostStatus>
    </DeploymentStatus>