Hi Peter.
No, the server is a real piece of big hardware, with a lot of xen vm inside.
Laurent has pointed out the problem.
It was a clamscan problem…
Here’s a copy of my answer on the Dolibarr ML…
All the best from here.
Stef
============================================
Hi Laurent
> Check in setup - security if you have enabled an antispam tool executed after each upload and try to disable it if you have it.
I know you know you’re definitly the best but it’s worth repeating ))
Many thanks for pointing out the problem. I had already stopped the clamav service, but without thinking about a direct invocation from Dolibarr. I’m stupid
The next step should be why theses 24 s… To dig around that I made a little test :
With this 12K file : 20181121 - DBOOKER - SOW - manuels dolibarr.pdf
11:08-root@domu210:/srv/doc/erp1.soweb.io/admin/temp>/usr/bin/clamscan “20181121 - DBOOKER - SOW - manuels dolibarr.pdf”
20181121 - DBOOKER - SOW - manuels dolibarr.pdf: OK
----------- SCAN SUMMARY
Known viruses: 6107219
Engine version: 0.100.2
Scanned directories: 0
Scanned files: 1
Infected files: 0
Data scanned: 0.03 MB
Data read: 0.01 MB (ratio 2.33:1)
Time: 22.591 sec (0 m 22 s)
So I retrieve (approx.) my 24 s…
Adding --debug shows all the clamscan (still slow) work against its signature database. I’ve searched the web with no results, except seeing many people complain about clamscan is now far more slower than in old days…