Hi, I have a php script which is coded very poorly, so occasionally that script is causing infinite loops in the process there by increasing WaitQ in my litespeed server. And it is not possible to detect just which process is causing that, So i usually kill all process running under that user to bring back the WaitQ.
I am using the litespeed web server which maintain the live report in a file which i gave in the attachment, hdwrock1 is the user and corresponding waitQ is mentioned with WAITQUE_DEPTH (Which is 0 now)
All you need is to create a bash script to detect if the WaitQ is more than 0 (Zero) of that user hdwrock1, then script has to kill all process of that particular user. And run that script every minute using cron.
11 freelancers are bidding on average $32 for this job
Hi, I can write the script, but would like to know from where is this wait queue parameter read. Is that a specific file for lightspeed. Can we identify that particular user as well from that file.? Thanks
Hey there, I'm a System Engineer with coding skills. I have been working with Linux/Unix systems for years. I had developed tons of Bash scripts. Regards.
Hi, under WaitQ you mean iowait for each process(that make queue) of user hdwrock1 right? If so i know how to do it and I will fulfill this task with pleasure for you.
I am currently working as an Devops engineer. As part of my current role i need to write many scripts to automate. So this project must be very simple with the experience i have in scripting.