vm.args.cloud 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ##############################
  2. # Erlang VM Args
  3. ##############################
  4. ## NOTE:
  5. ## Basic args like '-name' and '-setcookie' should be configured in emqx.conf
  6. ## If they are configured in both file, the args configured in emqx.conf will
  7. ## be used.
  8. ## Sets the maximum number of simultaneously existing processes for this system.
  9. +P 256000
  10. ## Sets the maximum number of simultaneously existing ports for this system.
  11. +Q 262144
  12. ## Sets the maximum number of ETS tables
  13. +e 256000
  14. ## Sets the maximum number of atoms the virtual machine can handle.
  15. #+t 1048576
  16. ## Set the location of crash dumps
  17. -env ERL_CRASH_DUMP {{ platform_log_dir }}/crash.dump
  18. ## Set how many times generational garbages collections can be done without
  19. ## forcing a fullsweep collection.
  20. #-env ERL_FULLSWEEP_AFTER 1000
  21. ## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
  22. ## (Disabled by default..use with caution!)
  23. #-heart
  24. ## Specify the erlang distributed protocol.
  25. ## Can be one of: inet_tcp, inet6_tcp, inet_tls
  26. #-proto_dist inet_tcp
  27. ## Specify SSL Options in the file if using SSL for Erlang Distribution.
  28. ## Used only when -proto_dist set to inet_tls
  29. #-ssl_dist_optfile {{ platform_etc_dir }}/ssl_dist.conf
  30. ## Specifies the net_kernel tick time in seconds.
  31. ## This is the approximate time a connected node may be unresponsive until
  32. ## it is considered down and thereby disconnected.
  33. #-kernel net_ticktime 60
  34. ## Sets the distribution buffer busy limit (dist_buf_busy_limit).
  35. +zdbbl 8192
  36. ## Sets default scheduler hint for port parallelism.
  37. +spp true
  38. ## Sets the number of threads in async thread pool. Valid range is 0-1024.
  39. +A 8
  40. ## Sets the default heap size of processes to the size Size.
  41. #+hms 233
  42. ## Sets the default binary virtual heap size of processes to the size Size.
  43. #+hmbs 46422
  44. ## Sets the number of IO pollsets to use when polling for I/O.
  45. #+IOp 1
  46. ## Sets the number of IO poll threads to use when polling for I/O.
  47. #+IOt 1
  48. ## Sets the number of scheduler threads to create and scheduler threads to set online.
  49. #+S 8:8
  50. ## Sets the number of dirty CPU scheduler threads to create and dirty CPU scheduler threads to set online.
  51. #+SDcpu 8:8
  52. ## Sets the number of dirty I/O scheduler threads to create.
  53. #+SDio 10
  54. ## Suggested stack size, in kilowords, for scheduler threads.
  55. #+sss 32
  56. ## Suggested stack size, in kilowords, for dirty CPU scheduler threads.
  57. #+sssdcpu 40
  58. ## Suggested stack size, in kilowords, for dirty IO scheduler threads.
  59. #+sssdio 40
  60. ## Sets scheduler bind type.
  61. ## Can be one of: u, ns, ts, ps, s, nnts, nnps, tnnps, db
  62. #+sbt db
  63. ## Sets a user-defined CPU topology.
  64. #+sct L0-3c0-3p0N0:L4-7c0-3p1N1
  65. ## Sets the mapping of warning messages for error_logger
  66. #+W w