Issues with Python/Django Software running on CloudLinux

Operating System & Version
CLOUDLINUX 7.9
cPanel & WHM Version
v94.0.4

ctrlaltdel21

Member
Jan 6, 2021
23
1
3
Ontario, Canada
cPanel Access Level
Root Administrator
We had a software developer custom build a inhouse project management system which is hosted on cPanel on a subdomain. We had to upgrade our dedicated server to CloudLinux to install the Python Apps.

The software is incredibly slow and essentially unusable alot of the time. Only 10 staff users have access to this site. The software developer says it's issues with our hosting server. Our hosting server company says it's issues with the software development. Here is what our hosting company said:

Unless your whole server is overloaded by other activities being handled by other accounts on that server, that site should already have full access to the system CPU.

I do see on the SSH console (running top) that the OurUserName user is using quite a bit of CPU running /home/OurUserName/virtualenv/django_software/3.6/bin/python3.6_bin /opt/passenger-5.3.7-13.el7.cloudlinux/src/helper-scripts/wsgi-loader.py...

You've got three of them running. One has been running for 13 minutes, another for seven minutes, and a third one just started. Based on the CPU times they're clocking, it appears you have a CPU limit of %100 on that hosting account (using Cloudlinux LVE). If you wish to give this account truly unlimited access to the CPU, use the LVE manager in WHM to give the OurUserName 1600% access to the CPU.


I made the adjustment they recommended, but set it to 1400% - still doesn't work.

Here is what the software developer responded with after I told them what our hosting company said:

....All it's doing is making an occasional database call and serving up HTML templates, there's absolutely nothing in the application that runs for 14 minutes. Even if it wanted to there is a hard cutoff of 5 minutes and it will terminate that process as being too greedy of a request.

Also, the script that they say is being run 3 times and shouldn't be is their script not even ours, that's their passenger scripts (opt/passenger-5.3.7-13.el7.cloudlinux/src/helper-scripts/wsgi-loader.py) to run 3 times loading the WSGI.


Any insight on what the issue really is would be appreciated. Thank you in advance.
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,859
600
273
cPanel Access Level
Root Administrator
Hey there! I think for issues like this it is best if we take a look at the server directly to ensure that everything with cPanel and CloudLinux is working well, as that would start eliminating things on our end at least. I don't have much advice I can offer through the forum as I would expect the base software itself to run normally.
 

ctrlaltdel21

Member
Jan 6, 2021
23
1
3
Ontario, Canada
cPanel Access Level
Root Administrator
Hey there! I think for issues like this it is best if we take a look at the server directly to ensure that everything with cPanel and CloudLinux is working well, as that would start eliminating things on our end at least. I don't have much advice I can offer through the forum as I would expect the base software itself to run normally.
Thank you for your reply. Should I submit a ticket then?