Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
FCGIWrapper 100% CPU Usage

I have installed Magento v2.3.4 website on VPS with below config:

OS: CentOS
CPU: 2 x 2.2 Ghz
RAM: 2 GB

Whenever the website is accessed, I see a sudden spike in CPU usage & it goes upto 100%. This causes website to load slow, even for just one user.

htop shows multiple of these command being executed: htop output

Apache/httpd block generated via DirectAdmin responsible for above is:

<Directory /home/admin/public_html>
    <IfModule mod_fcgid.c>
            FCGIWrapper '/usr/local/safe-bin/fcgid73.sh /usr/local/directadmin/data/users/admin/php/mysite.com.ini -d sendmail_from="admin@mysite.com" -d open_basedir="/home/admin/:/tmp:/var/tmp:/opt/alt/php73/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php73/lib/php/" -d mail.log="/home/admin/.php/php-mail.log"' .php
                <FilesMatch "\.php$">
                    SetHandler fcgid-script
                        Options +ExecCGI
                </FilesMatch>
    </IfModule>
            suPHP_Engine ON
            suPHP_UserGroup admin admin
</Directory>

How should I address the issue? Please guide.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I managed to reduce the high CPU usage by following below:

  1. Clearing the cache by issuing below commands:

    bin/magento cache:clean

    bin/magento cache:flush

  2. Enabling all the cache types from Magento admin panel.

Now the CPU usage hardly goes above 15-20%.

Hope this helps someone! :)

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!