Control Web Panel

WebPanel => PHP => Topic started by: problemao on October 23, 2017, 07:05:45 PM

Title: 100% CPU usage
Post by: problemao on October 23, 2017, 07:05:45 PM
Hey :), need some help here, recently installed Magento 2 with CWPanel PRO at my new server.
its very slow. when i open my website the CPU usage is 100% and takes a lot of time to load the website..

Any help?
Memory RAM (with Cache): 2.84GB / 14GB
Memory RAM (NO Cache): 0.84GB / 14GB

Apache version: Apache/2.4.27
PHP version: 7.0.10
CPU Details: 4 Core (2400 MHz)
CWPpro version: 0.9.8.359
Title: Re: 100% CPU usage
Post by: BaDTaG on October 23, 2017, 07:37:29 PM
What does top say is using it all ?

shuld give anoutput like when i looked at my server doing a backup
Code: [Select]
root@srv41:/# top
top - 21:35:04 up 43 min,  1 user,  load average: 1.53, 1.92, 1.93
Tasks:  73 total,   3 running,  70 sleeping,   0 stopped,   0 zombie
%Cpu(s): 14.6 us,  1.7 sy,  0.0 ni, 83.3 id,  0.5 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:  25165824 total,  7278060 used, 17887764 free,        0 buffers
KiB Swap:  8388608 total,        0 used,  8388608 free.  5399584 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
21562 root      20   0    4440    812    416 R  76.2  0.0   0:02.29 gzip
  925 admin     20   0  784392 369236  71260 R  19.6  1.5   5:56.17 apache2
  921 mysql     20   0 1287324  64608   8072 S   5.7  0.3   3:37.33 mysqld
  941 root      20   0  876584  10772   2928 S   0.7  0.0   0:02.26 fail2ban-server
Bare in mind this was a debian server but it is the same on a centos server.

pleas post output here so we can help
Title: Re: 100% CPU usage
Post by: problemao on October 23, 2017, 08:19:00 PM
What does top say is using it all ?

shuld give anoutput like when i looked at my server doing a backup
Code: [Select]
root@srv41:/# top
top - 21:35:04 up 43 min,  1 user,  load average: 1.53, 1.92, 1.93
Tasks:  73 total,   3 running,  70 sleeping,   0 stopped,   0 zombie
%Cpu(s): 14.6 us,  1.7 sy,  0.0 ni, 83.3 id,  0.5 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:  25165824 total,  7278060 used, 17887764 free,        0 buffers
KiB Swap:  8388608 total,        0 used,  8388608 free.  5399584 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
21562 root      20   0    4440    812    416 R  76.2  0.0   0:02.29 gzip
  925 admin     20   0  784392 369236  71260 R  19.6  1.5   5:56.17 apache2
  921 mysql     20   0 1287324  64608   8072 S   5.7  0.3   3:37.33 mysqld
  941 root      20   0  876584  10772   2928 S   0.7  0.0   0:02.26 fail2ban-server
Bare in mind this was a debian server but it is the same on a centos server.

pleas post output here so we can help
Here is a print when i type top
(https://i.imgur.com/XrPqaDn.png)

its so strange, got a good vps and its so slow with magento 2....
Title: Re: 100% CPU usage
Post by: locvfx on January 12, 2018, 04:20:49 AM
Suggestion:
Suspend that magento account, if you see the server performance gets better, meaning the Magento app did not well coded.
Then try to install a basic wordpress, you will see the difference between apps