Change to
PDF_GENERATOR=hosted_ninja
and retest.
@david sounds good, will do. I changed the .env from snappdf to hosted_ninja and saved. I then ran the status check in Invoice Ninja, and it showed PDF as hosted_ninja. Interestingly, even though hosted_ninja was now the pdf generator, I tried saving an invoice, and immediately saw all the snappdf processes fire up and the system start to grind to a halt. I waited a couple more minutes before testing again as maybe something else had to run in the background and I was too quick.
Sure enough, I’ve tried editing/saving 10 or so each of products, clients, payments, just as I did before, and then going to Invoices and editing one and saving, and saving again, and… it seems to be working! I’ve opened a few invoices now, and then saving, and repeating, and watching htop the whole time on the server, CPU usage is staying around 10% or below, and disk activity is next to nothing now. Seems stable!
I can see you only have a single CPU in your machine, you should only run a single queue worker, not 8
Good to know, thanks! I’ve now updated my supervisor conf from the default of 8 processes to 1. But even at 8, it was stable just using ninja_hosted.
I then switched back to snappdf now that I only have 1 supervisor process, and everything is working correctly. So, I was able to use 8 supervisor processes no problem with hosted_ninja, but the combination of snappdf and 8 worker processes was too much. I confirmed this by switching supervisor processes back to 8 with snappdf, and the system locked up for a few minutes again almost right away after saving a couple invoices. Changing back to 1 process again solves this. Thanks again!