#1063670 fcgiwrap very slow with default systemd config (no parallel request)

Package:
fcgiwrap
Source:
fcgiwrap
Description:
simple server to run CGI applications over FastCGI
Submitter:
Martin Monperrus
Date:
2025-08-31 23:00:43 UTC
Severity:
normal
#1063670#5
Date:
2024-02-10 21:09:30 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?

I installed fcgiwrap to run Python scripts on nginx.

   * What was the outcome of this action?

CGI scripts can be run, but sequentially, one-by-one, very slow

   * What outcome did you expect instead?

CGI scripts can be run in parallel.

   * What is the solution?

The default setup in /lib/systemd/system/fcgiwrap.service should use option "-c
<number>" (Number of processes to prefork), for example "-c 5"

Thanks!

#1063670#10
Date:
2025-08-31 22:52:36 UTC
From:
To:
You can adjust -c value in /etc/default/fcgiwrap EnvironmentFile:

root@host:/# cat /etc/default/fcgiwrap
DAEMON_OPTS=-f -c69

I hope this helps.