Community

Possible dead lock [LSAPI application]

sj
sophia jhon #1

What kind of issue is that is not resolving, it makes my wordpress site slow


[NOTICE] [824] No request delivery notification has been received from LSAPI application, possible dead lock
jo
josephgodwinke #2

Hello @sophiajhondeveloper

Which server os is this ? e.g. Ubuntu 20.04
Which php version are you using for this website ? e.g. php 7.4
Are you using latest version of cyberpanel ?

sj
sophia jhon #5

Ubuntu : Is at latest 20.something
PHP: 8.0

Cyber panel Version :
Current Version: 2.3
Build: 3
Current Commit: eb9eafd4daef7b244fb590c830e3fb3a8d5818f6

jo
josephgodwinke #8

This is a php process issue

It usually happens with some PHP script takes long time to finish, or have a bug causing an infinity loop. People keep refreshing that URL, all PHP worker processes are occupied by the long run script, cannot take new request any more. For some cases, increase the timeout or number of worker processes can help. The eventual fix is to fix the script. Usually it is not some thing can be taken care of automatically by web server.

reference "No request delivery notification has been received from LSAPI application, possible dead lock." · Issue #186 · litespeedtech/openlitespeed · GitHub

Can you try this

# deletes php 8.0 session folders and recreates them
$ killall lsphp
$ rm -rf /var/lib/lsphp/session/lsphp80; mkdir -p /var/lib/lsphp/session/lsphp80; chmod 1733 /var/lib/lsphp/session/lsphp80

Then increase Max Connections to the maximum number of concurrent LSPHP processes you want to allow by:

  1. Go to WebAdmin Console https://SERVER_URL:7080/
  2. Server Configuration > External App > LiteSpeed SAPI App
  3. Click Edit
  • Increase Max Connections to the maximum number of concurrent LSPHP processes you want to allow.
  • Set Environment to PHP_LSAPI_CHILDREN= the maximum number of concurrent LSPHP processes you want to allow.
  1. Apply Changes and click on Graceful Restart or run in terminal service lsws restart

reference

sj
sophia jhon #9

How to get https://SERVER_URL:7080/ admin username and passwords? while installing i have just setup the cyberpanel , now when access this url i don’t know the openlitespeed password where do i get this and how ?

jo
josephgodwinke #10

Run

## reset my admin password
$ cd /usr/local/lsws/admin/misc
$ ./admpass.sh

Choose username and password.

sj
sophia jhon #11

I can’t find 1. Configuration → Server → PHP
2. PHP Handler Defaults and click Edit

in this can you give me the screenshots ?

sj
sophia jhon #13

Do you have any idea how much bit port of server is needed if you traffic of 15000-25000 per day ? and which server is best for it?

jo
josephgodwinke #14

That depends with the provider. You should contact your provider’s support to better understand how they charge you vs what they offer

Throttling is different for all providers there is no general answer for this.

Has your issue been resolved so far ?

sj
sophia jhon #15

I have tired your given instruction but that’s not solved yet , it still giving me this error
No request delivery notification has been received from LSAPI application, possible dead lock.

jo
josephgodwinke #17

Which kind of websites are you running?

Are they built froma framework like Laravel, WordPress or ?

Are they running latest versions ?

There seems to be a php process choking the system

sj
sophia jhon #18

WordPress Only

Yes the all sites are running latest 6.1.1 versions ,

and all plugins are updated

sj
sophia jhon #19

How to check which process is choking it ?

jo
josephgodwinke #23

Run in ssh terminal or vnc tool

Sign in to reply