php - mongodb slow simple queries in production environment -


all queries taking time complete in web server database.

asking simple documents in big indexed collection in machine takes <0ms, in production machine takes ~20ms-300ms.

the hardware next:

poweredge r410 x5660 2 tb sata disks 16 gb ram 

in machine e3-1230v2 , 250gb ssd disk , 24gb ram works fine.

before upgrading machine or changing 1 (ssd+64gb ram+e3-1270v3), have find bottleneck.

  1. i'm suspecting of memory mapped, page faults values high.
  2. i don't know why mapped memory 280 gb , db storage 46 gb.
  3. php-fpm processes reaches 100% of cpu, if queries slow , php waiting response, consumes cpu?

enter image description here


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -