I have provisionally dated the incident to December 5, 2025. I still need to confirm the exact date.
The payment success rate fell on one of our company’s WooCommerce sites. I eventually traced it to a Docker memory limit I had set earlier. The fix was straightforward: raising the memory ceiling on the container running PHP a little restored normal payment processing.
There was some history behind this. The server had crashed before. Using logs and commands such as ps, I had traced the problem to the container running PHP. At the time I suspected a “thread leak” was causing abnormal resource use. I described that investigation in my post on server downtime and memory troubleshooting. This post picks up the story with the impact on payments.
To keep that container from consuming excessive resources and taking down the entire server again, I gave it a memory limit in Docker. The limit was there to protect the host, but I had set it too low for the site to process payments normally.
When we noticed the drop in successful payments, further investigation confirmed that the container had too little memory available. I kept the resource limit and raised the ceiling slightly. Payments recovered. That adjustment fixed the failures caused by the tight ceiling. The earlier resource leak was a separate issue.
One troubleshooting lesson stayed with me: when WooCommerce payments start failing, check memory early, particularly if the site’s container resource limits have recently changed. Alongside the payment API, plugin settings, and callbacks, check whether the environment handling those requests still has enough resources.
There are several levels to check:
- How much memory is available on the host? First establish whether the server as a whole is under memory pressure.
- How much memory can the container actually use? The host can have free memory even when a container has reached its own ceiling. Docker’s hard limit applies to usage across the whole container. Docker resource constraints
- What is PHP’s own memory limit?
memory_limitcontrols how much memory an individual script may allocate. That is a different level from the container-wide ceiling. Changing the PHP configuration alone leaves Docker’s ceiling in place. PHP memory_limit documentation
Compare the times of failed payments with container memory usage, PHP error logs, and system OOM records. That tells you more than checking free memory at a single instant. After adjusting the ceiling, watch both payment recovery and the host’s remaining headroom.
Setting a container resource limit means accounting for both host stability and the memory the site’s real workload needs. On this WooCommerce site, payment failures exposed a limit that was too tight.