Enabling Apache HTTP/2 => Too many open files error
by Richard W.M. Jones
I fixed this now, but I could find virtually no documentation about it
online, so I'm writing this email to document what surely must be a
common problem ...
I wanted to enable HTTP/2 support in Apache on Fedora 38.
I followed the documentation here which worked [although it's way more
complicated than it needs to be, why isn't HTTP/2 the default out of
the box?]
https://httpd.apache.org/docs/2.4/howto/http2.html
Anyway the problem I had was that the server worked fine provided
there were not too many clients (and by "too many" I mean a simple
load test with 4-16 clients failed). Apache randomly threw 403
Forbidden errors, but with less load it gave a normal (2xx) response.
The first problem is the error is misleading:
[Wed Feb 22 13:24:52.013780 2023] [core:error] [pid 3047850:tid 3047899] (24)Too many open files: [remote 192.168.0.139:53738] AH00132: file permissions deny server access: /var/www/html/[filename]
If you concentrate on the second part "file permissions deny server
access" -- as I did -- then you'll be looking at file permissions,
SELinux, restorecon, ausearch etc. That's a red herring, there is no
permissions problem.
The real error is the first part "Too many open files".
It turns out that the default open file limit (1024!) is too low. To
change this and fix the problem:
# systemctl edit httpd
This creates an "override" file to which you should add (or you could
just create this file directly):
# cat /etc/systemd/system/httpd.service.d/override.conf
[Service]
LimitNOFILE=65536
and then restart Apache for the change to take effect.
Why on earth Apache needs > 1024 open files to serve a dozen clients
is not clear at all.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
1 year, 2 months
Bluetooth LE (BTLE) GATT development for Fedora.
by Steve Underwood
Hi,
Is anyone familiar with BTLE GATT programming for Fedora (or any other
Linux)? I've done some Bluetooth classic programming for Fedora in the
past, and that's very straightforward, using the standard Bluez library
and header files installed by Fedora RPMs. Now I am trying to do GATT
application development and it seems the only way I can do this is to
download the Bluez source code, delve around inside to find the relevant
bits, and work from there. Am I missing something? Should I be able to
do an RPM install of a GATT development development kit?
Regards,
Steve
1 year, 2 months
Fedora (37) i686 32-bit virt-p2v ?
by Franta Hanzlik
Hi,
I want to virtualize any old i686 Windows XP 32-bit physical PC on F37.
Result from building virt-p2v boot disk:
# virt-p2v-make-disk -o /dev/sde --arch i686
virt-p2v-make-disk: cannot find /usr/lib64/virt-p2v/virt-p2v.i686.xz
You used the '--arch' option, so it’s likely that you will need to build
a virt-p2v.i686 binary yourself.
See p2v-building(1) section BUILDING i686 32 BIT VIRT-P2V for help.
It seems as virt-p2v.i686.xz blob isn't in Fedora (nor 'p2v-building'
man page, but it can be found easily).
What now? I see two possibilities:
1) it is somewhere on Fedora, but not in core repos
2) I have to build it myself - but have no idea about optimal way.
'p2v-building' man page recommends 32-bit chroot (without details),
or (on Fedora) use 'mock' - but it seems it is not there anymore.
Has anyone done this? What optimal way would you recommend?
---
TIA, Franta Hanzlik
1 year, 2 months
recommended partition for swap with 0.5 TB memory
by Ranjan Maitra
Hi,
I am trying to install Fedora on to a new machine that has 0.5 TB RAM. Hard drives are 256 GB for / and friends, and 2 TB for /home partition. In the past, it used to be suggested that swap be twice that of RAM: this later changed to the same amount, and now it is very unclear (to me) because I have not tracked the latest recommendations. Anyway, what would you suggest? The machine is a Dell Precision 7920 with 28 cores/56 threads.
Many thanks for any suggestions, and best wishes,
Ranjan
1 year, 2 months