ProgettoArchimista / archimista

Archimista 3.0.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requisiti hardware

DevPGS opened this issue · comments

Abbiamo in produzione una versione di archimista dockerizzata.
Abbiamo notato che ogni tanto a seguito della richiesta di generazione di un pdf, la soluzione non ha abbastanza risorse e va in crash.
Nei log l'ultima operazione registrata è:

Processing by ReportsController#inventory as PDF
Parameters: {"id"=>"21"}
Rendered reports/reportsettings.html.erb (18.2ms)
Rendered reports/inventory.html.erb (51405.4ms)
/usr/local/bin/wkhtmltopdf --page-size A4 --encoding utf-8 --print-media-type --enable-smart-shrinking - /usr/src/app/public/downloads/inventory-20231003194323.pdf
Completed 500 Internal Server Error in 266319ms (ActiveRecord: 7594.0ms)

Errno::ENOMEM (Cannot allocate memory - /usr/local/bin/wkhtmltopdf):
app/controllers/reportscontroller.rb:566:in pdf_init' app/controllers/reports_controller.rb:171:inblock (2 levels) in inventory' app/controllers/reportscontroller.rb:168:in `inventory'

esiste un riepilogo dei requisiti minimi hardware da rispettare?