Filemin 100% cpu on upload.cgi

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.

Status: 
Active

Comments

Does it stop using CPU once the upload completes?

I think yes. I can't know what exactly the user is doing but the usage dropped by itself.

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.