r/apache • • 7d ago

Anybody else experimenting constant crashes recently ?

Hey

We host a fairly standard web config with a few hundred separated vhosts. In the last few days, we've been having more and more periods of time where Apache crashes every few minutes.

It seems to be related to AI botnets, but the max load is still under the absolute maximums we had in the past without a total crash, which is why we suppose there may be something else at play (some corrupted payload ? but we can't find anything so far).

Mitigation measures are getting harder to find by the day.

Anyone else in the same situation ?

3 Upvotes

13 comments sorted by

3

u/GnawingPossum 7d ago

Is Apache and the underlying operating system fully up to date? Do you have have a firewall with a WAF feature?

3

u/Cherveny2 6d ago

the ai scraper bots are the bane of my existence lately. regularly ban then with require not ips, until get firewall team to ban there.

still rarely seeing crashes, just 421s and the like for unable to load the page while bots going at it.

as others have said, check your logs, see exactly what's happening during the incidents. also check resource utilization during the outages (cpu. memory, etc) (can use nagios, etc], to see if running out during the crashes

also, if you have php involved, and using fpm, check those logs too.

if you aren't patched up on php, been some major php issues too of late, 2 just this week.

2

u/yusurprinceps 7d ago

Check your error logs and access logs

2

u/IdiosyncraticBond 7d ago

Don't know your config, but are you up to tge latest oatch level if Apache? As there were quite a few the last weeks, like the htto/2 one. Including https://ubuntu.com/security/notices/USN-9090-1 which solve some of the issues.

1

u/mds1256 7d ago

I can see in my windows error logs httpd.exe is crashing multiple times per half hour, not seeing much down time though but it is something I need to look into

1

u/Fit_Tailor_6796 7d ago

Without posting what your logs say, no one can help you.

1

u/Ok_Strike9189 6d ago

Have you prevented the apache processes from the slowloris attack? Have you tried temporarily serving your pages over HTTP/1.1 over HTTP/2 because there was a flaw that I think affected apache servers that were serving pages over HTTP/2. and another cause may be a faulty component in the system that could cause the computer to reboot at random times. See what your server adminstrator has to say about the hardware.

1

u/boli99 6d ago

are you using anything funky like mpm_itk? ive had problems with that in the past.

whats in your dmesg? maybe you've got a RAM problem going on.

1

u/Hot_Arachnid3547 5d ago

Agreed — the last 12–18 months have made AI-oriented crawlers and scrapers a material operational factor for a large share of sites.

They routinely generate sustained request volumes that look and behave like low-grade DDoS against origin capacity: high concurrency against uncacheable or expensive endpoints (search, filters, cart, account, dynamic product pages, API routes), frequent re-requests of the same URLs, and little regard for crawl-delay or cache headers. The practical result is CPU saturation, exhausted PHP/worker pools, database connection pressure, and elevated error rates even when human traffic is unchanged.

That load also surfaces and amplifies existing code weaknesses. Memory leaks, unbounded in-memory caches or rate-limit stores, unclosed connections/file handles , session accumulation, and inefficient queries that were tolerable under normal traffic become visible problems once the request rate stays elevated for hours or days. The same applies to AI-generated code that is correct on the happy path but leaks resources or grows state without bound — it only fails under the sustained volume these bots supply.

Industry measurements line up with the observation: automated traffic has exceeded human traffic on major networks, bad-bot volume has grown far faster than human traffic, and AI crawler/agent requests have risen sharply, with multiple documented cases of individual crawlers driving multi-hour resource exhaustion on otherwise stable servers.

The bigger issue is the lack of solid open-source alternatives to Cloudflare. We ended up writing our own controls: broad ASN and network blocks at the router/network layer, plus tighter single-IP and smaller then /23 rules at the server level. The initial setup took a few weeks of work mostly identifying right targets; since then it has mostly been routine maintenance. Sadly not everybody has layer/3 network access.

1

u/csdude5 3d ago

I was having issues with bots crashing my server, too, but Cloudflare (free version) helped a lot. I also built a rate limiting tool with APCu (for PHP) that was the real fix.

Lemme know if you want me to paste my APCu fix.

1

u/soopastar 7d ago

Feed your logs, config, and os/apacher version into Claude.

0

u/digitalmahdi 6d ago

Go behind cloudflare

1

u/Easy_Orange_2923 1d ago

I'd like to help preserve a somewhat decentralized Internet.