Hello,
Just noticed that when user uploads files - i assume that is what user doing because the process is: usr/bin/perl /usr/libexec/usermin/miniserv.pl /etc/usermin/miniserv.conf 18161 ? R 555:43 _ /usr/libexec/usermin/filemin/upload.cgi
this process takes one core constantly at 100%.
It this will help here is an strace on the process:
================================ .......... shutdown(8, SHUT_RD) = 0 stat("/home/username/public_html/.tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 select(16, [8], NULL, NULL, {60, 0}) = 1 (in [8], left {59, 999999}) read(8, "", 5179) = 0 shutdown(8, SHUT_RD) = 0 stat("/home/username/public_html/.tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 select(16, [8], NULL, NULL, {60, 0}) = 1 (in [8], left {59, 999999}) read(8, "", 5179) = 0 shutdown(8, SHUT_RD) = 0 stat("/home/username/public_html/.tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 select(16, [8], NULL, NULL, {60, 0}) = 1 (in [8], left {59, 999999}) read(8, "", 5179) = 0 shutdown(8, SHUT_RD) = 0 stat("/home/username/public_html/.tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 select(16, [8], NULL, NULL, {60, 0}) = 1 (in [8], left {59, 999999}) read(8, "", 5179) = 0 shutdown(8, SHUT_RD) = 0 stat("/home/username/public_html/.tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 select(16, [8], NULL, NULL, {60, 0}) = 1 (in [8], left {59, 999999}) read(8, "", 5179) = 0 shutdown(8, SHUT_RD) = 0 stat("/home/username/public_html/.tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 select(16, [8], NULL, NULL, {60, 0}) = 1 (in [8], left {59, 999999}) read(8, "", 5179) = 0 shutdown(8, SHUT_RD) = 0 stat("/home/username/public_html/.tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 select(16, [8], NULL, NULL, {60, 0}) = 1 (in [8], left {59, 999999}) read(8, "", 5179) = 0 shutdown(8, SHUT_RD) = 0 ......
..........................This simple process should not use so much CPU.
Comments
Submitted by JamieCameron on Wed, 11/02/2016 - 23:25 Comment #1
Does it stop using CPU once the upload completes?
Submitted by george.asenov on Thu, 11/03/2016 - 03:16 Comment #2
I think yes. I can't know what exactly the user is doing but the usage dropped by itself.
Submitted by JamieCameron on Thu, 11/03/2016 - 23:16 Comment #3
The high CPU usage is expected unfortunately for large uploads, as the format the browser provides them in has to be decoded in perl on the server.