vm.args.cloud 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. ######################################################################
  2. ## Erlang VM Args
  3. ######################################################################
  4. ## NOTE:
  5. ##
  6. ## Arguments configured in this file might be overridden by configs from `emqx.conf`.
  7. ##
  8. ## Some basic VM arguments are to be configured in `emqx.conf`,
  9. ## such as `node.name` for `-name` and `node.cooke` for `-setcookie`.
  10. ## Sets the maximum number of simultaneously existing processes for this system.
  11. ## Preferably set in `emqx.conf`,
  12. #+P 2097152
  13. ## Sets the maximum number of simultaneously existing ports for this system.
  14. ## Preferably set in `emqx.conf`,
  15. #+Q 1048576
  16. ## Sets the maximum number of ETS tables
  17. ## Preferably set in `emqx.conf`,
  18. #+e 262144
  19. ## Sets the maximum number of atoms the virtual machine can handle.
  20. #+t 1048576
  21. ## Set how many times generational garbages collections can be done without
  22. ## forcing a fullsweep collection.
  23. -env ERL_FULLSWEEP_AFTER 1000
  24. ## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
  25. ## (Disabled by default..use with caution!)
  26. #-heart
  27. ## The shell is started in a restricted mode.
  28. ## In this mode, the shell evaluates a function call only if allowed.
  29. ## Prevent user from accidentally calling a function from the prompt that could harm a running system.
  30. -stdlib restricted_shell emqx_restricted_shell
  31. ## Sets the distribution buffer busy limit (dist_buf_busy_limit).
  32. ## Preferably set in `emqx.conf`,
  33. #+zdbbl 8192
  34. ## Sets default scheduler hint for port parallelism.
  35. +spp true
  36. ## Sets the number of threads in async thread pool. Valid range is 0-1024.
  37. ## Increase the parameter if there are many simultaneous file I/O operations.
  38. +A 4
  39. ## Sets the default heap size of processes to the size Size.
  40. #+hms 233
  41. ## Sets the default binary virtual heap size of processes to the size Size.
  42. #+hmbs 46422
  43. ## Sets the default maximum heap size of processes to the size Size.
  44. ## Defaults to 0, which means that no maximum heap size is used.
  45. ##For more information, see process_flag(max_heap_size, MaxHeapSize).
  46. #+hmax 0
  47. ## Sets the default value for process flag message_queue_data. Defaults to on_heap.
  48. #+hmqd on_heap | off_heap
  49. ## Sets the number of IO pollsets to use when polling for I/O.
  50. #+IOp 1
  51. ## Sets the number of IO poll threads to use when polling for I/O.
  52. ## Increase this for the busy systems with many concurrent connection.
  53. +IOt 4
  54. ## Sets the number of scheduler threads to create and scheduler threads to set online.
  55. #+S 8:8
  56. ## Sets the number of dirty CPU scheduler threads to create and dirty CPU scheduler threads to set online.
  57. #+SDcpu 8:8
  58. ## Sets the number of dirty I/O scheduler threads to create.
  59. +SDio 8
  60. ## Suggested stack size, in kilowords, for scheduler threads.
  61. #+sss 32
  62. ## Suggested stack size, in kilowords, for dirty CPU scheduler threads.
  63. #+sssdcpu 40
  64. ## Suggested stack size, in kilowords, for dirty IO scheduler threads.
  65. #+sssdio 40
  66. ## Sets scheduler bind type.
  67. ## Can be one of: u, ns, ts, ps, s, nnts, nnps, tnnps, db
  68. #+sbt db
  69. ## Sets a user-defined CPU topology.
  70. #+sct L0-3c0-3p0N0:L4-7c0-3p1N1
  71. ## Sets the mapping of warning messages for error_logger
  72. #+W w
  73. ## Sets time warp mode: no_time_warp | single_time_warp | multi_time_warp
  74. +C multi_time_warp
  75. ## Prevents loading information about source filenames and line numbers.
  76. #+L
  77. ## Specifies how long time (in milliseconds) to spend shutting down the system.
  78. ## See: http://erlang.org/doc/man/erl.html
  79. -shutdown_time 30000
  80. ## patches dir
  81. -pa "{{ platform_data_dir }}/patches"
  82. ## Mnesia thresholds
  83. -mnesia dump_log_write_threshold 5000
  84. -mnesia dump_log_time_threshold 60000
  85. ## Disable os_mon's disksup by default
  86. -os_mon start_disksup false