Adding product to purchase order is very slow


  • Version: 12.0.4
  • Operating System: Linux (Debian bitnami VM)
  • Web Server: Apache/2.4.46
  • PHP: 7.3.22
  • Database: MySQL or MariaDB 5.5.5-10.3.24-MariaDB
  • URL(s): /fourn/commande/card.php
  • HW: GCloud n1-highcpu-2 (2 vCPU, 1,8 GB RAM)

Hello everyone,
Adding a new line to a purchase order and changing purchase order status are the only operations that are very slow (they take an average time of 25 secs).

Every other operation on every other module is actually quite fast (average < 1 sec).

Any suggestions?

Thanks in advance,

I will attach here the operation log at DEBUG level.
During almost all the time of the operation the php process takes 100% of the CPU.

Help is greatly appreciated.


slow_fourn_issue._02log.log (45.2 KB)

Maybe an external module by hookmanager in the code that point to another server maybe with slow connection?

I solved the problem restoring Dolibarr DB on a brand new VM with a brand new Dolibarr 12.0.4 installation.
Maybe it was a permission problem at OS level.

Thank you.