Generate PDFs outside of the CMS
Generating PDFs on-the-fly uses enormous amounts of CPU and RAM. Consequently, do not generate PDFs to order, page by page, but instead offer a few files generated and optimized outside of the CMS
Use a reverse proxy
Reverse proxies (Varnish, Squid or Nginx) are designed to quickly serve content (e.g. HTML pages and images) using as little of the CPU as possible. You can therefore minimize the infrastructure needed by avoiding unnecessarily accessing the application server.