Community mailing list archives

RE: wkhtmltopdf severe memory leak

Ray Carnes
- 07/28/2016 16:49:55

In our most recent deployment:


8 CPU’s

2 Threads per core

4 Cores per socket

1 Socket             1

2,900 Mhz CPU



10 Odoo workers


Initially we ran into occasional error -11 with PDF generation.


After increasing the worker  limit_memory_hard parameter to 2GB we have had no further reports of any problems.


For those who don’t know, Odoo recommends 0.12.1 of wkhtmltopdf as documented at




From: David Arnold []
Sent: Thursday, July 28, 2016 1:27 PM
To: Community <>
Subject: wkhtmltopdf severe memory leak



we have experienced the following issue:

In short wkhtml explodes to 1GB+ memory consumption in less then our metrics resolution (2s).

That should worry anyone who runs wkhtmltopdf on the same instance as odoo runs and would kill every averagely scoped server instance under otherwise normal load.

Be warned!
Share your experience with this please!

If I remeber correctly (I'm under way on cellphone):
we are on wkhtmltopdf 0.12.3
the maintainer suggests to try 0.13 alpha

I'll keep you updates once further findings drop in.

Best, Regards

Post to: