i use litespeed on sharing hosting, i run a multiple user spawned php processes
it works fine until...
if someone spawn a php it will start php process in self management mode
its just ok
but if he dont run another php script in 10min, children will stop, parent will also stop (defined that way to safe memory)
BUT
socket for this process is still there
(
/tmp/phpls_login.sock
/tmp/phpls_login.sock.432
/tmp/phpls_login.sock.622
/tmp/phpls_login.sock.567
)
that repeats itself few times and for example 24h later
client try to run php script and see 503 service unavailable screen
to restore it to work i need to remove all phpls sockets from /tmp
then i just put F5 on browser and everything works fine.
it also work the same with admin_php from lsws panel
for now i need to 2 times go to /opt/lsws/admin/...
and delete socket file to run lsws panel
Why he don't delete sockets?
It is safe to delete it in cron for example every hour?
What can i do to prevent that?
<extProcessor>
<type>lsapi</type>
<name>phpm_login</name>
<address>uds://tmp/phpls_login.sock</address>
<note></note>
<maxConns>8</maxConns>
<env>PHPRC=/address/jasiu300</env>
<env>LSAPI_CHILDREN=10</env>
<env>LSAPI_PGRP_MAX_IDLE=30</env>
<env>LSAPI_MAX_IDLE=300</env>
<env>LSAPI_MAX_PROCESS_TIME=12</env>
<env>LSAPI_AVOID_FORK=1</env>
<initTimeout>60</initTimeout>
<retryTimeout>0</retryTimeout>
<persistConn></persistConn>
<pcKeepAliveTimeout>-1</pcKeepAliveTimeout>
<respBuffer>0</respBuffer>
<autoStart>1</autoStart>
<path>/address/jasiu300/php</path>
<backlog>100</backlog>
<instances>1</instances>
<runOnStartUp></runOnStartUp>
<extMaxIdleTime>-1</extMaxIdleTime>
<priority>5</priority>
<memSoftLimit>280M</memSoftLimit>
<memHardLimit>300M</memHardLimit>
<procSoftLimit>500</procSoftLimit>
<procHardLimit>500</procHardLimit>
</extProcessor>
Thanks for answers.
it works fine until...
if someone spawn a php it will start php process in self management mode
its just ok
but if he dont run another php script in 10min, children will stop, parent will also stop (defined that way to safe memory)
BUT
socket for this process is still there
(
/tmp/phpls_login.sock
/tmp/phpls_login.sock.432
/tmp/phpls_login.sock.622
/tmp/phpls_login.sock.567
)
that repeats itself few times and for example 24h later
client try to run php script and see 503 service unavailable screen
to restore it to work i need to remove all phpls sockets from /tmp
then i just put F5 on browser and everything works fine.
it also work the same with admin_php from lsws panel
for now i need to 2 times go to /opt/lsws/admin/...
and delete socket file to run lsws panel
Why he don't delete sockets?
It is safe to delete it in cron for example every hour?
What can i do to prevent that?
<extProcessor>
<type>lsapi</type>
<name>phpm_login</name>
<address>uds://tmp/phpls_login.sock</address>
<note></note>
<maxConns>8</maxConns>
<env>PHPRC=/address/jasiu300</env>
<env>LSAPI_CHILDREN=10</env>
<env>LSAPI_PGRP_MAX_IDLE=30</env>
<env>LSAPI_MAX_IDLE=300</env>
<env>LSAPI_MAX_PROCESS_TIME=12</env>
<env>LSAPI_AVOID_FORK=1</env>
<initTimeout>60</initTimeout>
<retryTimeout>0</retryTimeout>
<persistConn></persistConn>
<pcKeepAliveTimeout>-1</pcKeepAliveTimeout>
<respBuffer>0</respBuffer>
<autoStart>1</autoStart>
<path>/address/jasiu300/php</path>
<backlog>100</backlog>
<instances>1</instances>
<runOnStartUp></runOnStartUp>
<extMaxIdleTime>-1</extMaxIdleTime>
<priority>5</priority>
<memSoftLimit>280M</memSoftLimit>
<memHardLimit>300M</memHardLimit>
<procSoftLimit>500</procSoftLimit>
<procHardLimit>500</procHardLimit>
</extProcessor>
Thanks for answers.