Guest User

Untitled

a guest
Oct 17th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. /etc/sysctl.conf
  2. net.ipv4.ip_local_port_range = 1024 65000
  3.  
  4. /etc/security/limits.conf
  5. mongodb hard nofile 1048576
  6. mongodb soft nofile 1048576
  7. mongodb soft nproc 1048576
  8. mongodb hard nproc 1048576
  9. mongodb hard stack 16384
  10. mongodb soft stack 16384
  11. mongodb hard memlock unlimited
  12. mongodb soft memlock unlimited
  13.  
  14. /lib/systemd/system/mongodb.service
  15. # (file size)
  16. LimitFSIZE=infinity
  17. # (cpu time)
  18. LimitCPU=infinity
  19. # (virtual memory size)
  20. LimitAS=infinity
  21. # (open files)
  22. LimitNOFILE=500000
  23. # (processes/threads)
  24. LimitNPROC=500000
Add Comment
Please, Sign In to add comment