All queries are taking too much time to complete in a web server database.
Asking for simple documents in a big indexed collection in another machine takes <0ms, in the production machine takes ~20ms-300ms.
The hardware is the next:
PowerEdge R410 with a X5660
2 TB SATA disks
16 GB ram
In a machine with a E3-1230v2 and 250gb SSD disk and 24gb ram works fine.
Before upgrading the machine or changing it for another one (ssd+64gb ram+E3-1270v3), I have to find the bottleneck.
- I'm suspecting of memory mapped, the page faults values are high.
- I don't know why mapped memory is 280 gb and db storage only 46 gb.
- php-fpm processes reaches 100% of the cpu, if the queries are slow and the php is waiting for a response, it consumes cpu?