Skip to Content
0
Aug 09, 2023 at 11:18 AM

Failed to lock semaphore 45; RC=; cannot lock semaphore for write to ASTAT file

464 Views

Hello experts!

On bw system we're using kernel 754 211 and in system log shows following errors:

image.png

workprocess trace shows:

I Wed Aug  9 12:00:06:897 2023<br>I  *** ERROR => SemRq: Inv. State detected. Units 1. Key=45 [semux.c      1044]<br>I  {root-id=8BC304ECAB5D1EEE82A3EC550E49B275}_{conn-id=64D2B3C9B8FF17D2E10000000A010153}_1<br>M  ***LOG R00=> PfSemLock, SemRq ( 45) [pfxxstat.c   20536]<br>M  *** ERROR => PfAStatFlush: cannot lock semaphore for write to ASTAT file [pfasshm.c    1266]

more detailed trace of this situation from another time:

M  NiDgHdlSend: hdl 30 sent 1 of 1 bytes to 127.0.0.1:29855
M  RqQQueueGetNumberOfRequests: Queue <GatewayQueue> in slot 1 contains 0 requests of type NOWP
M  DpRqPutIntoQueue: put request into GATEWAY queue (workerType 0, prio LOW, rq_id 5840820), queue has 0 requests
M  DpRqFree: freeing REQ_HANDLER_RFC_RESP request (rq_id 5840820, slot 627)
M  ThCPIC: return 0
A  ab_allow_preemption: allow preemption [/bas/754_REL/src/krn/abap/runt/abfunc.c:4755]
Y  COMMIT WORK: imode= , vb= , vbmode=A, bdc= , ctu=
M  PfAStatWriteCollected: entering, recursion = 0
M  SosIGetAnchor: get anchor for type/name 1/10
M  PfSemLock: lock sem 45
M  PfAStatWriteCollected: records fit into buffer
M  PfAStatRecsToBuf: entering ...
M  SosIGetAnchor: get anchor for type/name 1/10
M  PfAStatRecToBuf: entering ...
M  SosIGetAnchor: get anchor for type/name 1/10
M  PfAStatRecToBuf: new hour 469858 > last hour 469857 ==> backup ASTAT file
M  PfAStatShmToLocal: entering ...
M  PfAStatIndInit: initialisiere ASTAT-Index Satz
M  PfAStatFlush: copied SHM contents to local variables
M  PfSemLock: lock sem 45
M  ThEppGetConnectionCounter: read connectionCounter 1 from epp 0
I  *** ERROR => SemRq: Inv. State detected. Units 1. Key=45 [semux.c      1044]
I  {root-id=8BC304ECAB5D1EEE82A3EC550E49B275}_{conn-id=64CF4D6A9AC317D2E10000000A010153}_1
M  ***LOG R00=> PfSemLock, SemRq ( 45) [pfxxstat.c   20536]
M  ThGetTransactionId: got internal transaction id (imported) >E93635B14CE90190E0064CF9ABAE882B<
M  ThEppGetConnectionCounter: read connectionCounter 1 from epp 0
M  ThEppGetConnectionCounter: read connectionCounter 1 from epp 0
M  *** ERROR => PfAStatFlush: cannot lock semaphore for write to ASTAT file [pfasshm.c    1266]
M  PfAStatBackupFile: no recs in the astat file: no backup needed

the process that generates the error:

image.png

We don't use application stats now, but I would like to know what is this error about, and fix it if possible.

Best regards,

Jedrzej

Attachments

image.png (18.1 kB)
image.png (20.5 kB)