vm.args.edge 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. ######################################################################
  2. ## Erlang VM Args for EMQ X Edge
  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. +P 16384
  12. ## Sets the maximum number of simultaneously existing ports for this system.
  13. +Q 4096
  14. ## Sets the maximum number of ETS tables
  15. +e 512
  16. ## Sets the maximum number of atoms the virtual machine can handle.
  17. +t 262144
  18. ## Set the location of crash dumps
  19. -env ERL_CRASH_DUMP {{ platform_log_dir }}/crash.dump
  20. ## Set how many times generational garbages collections can be done without
  21. ## forcing a fullsweep collection.
  22. -env ERL_FULLSWEEP_AFTER 0
  23. ## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
  24. ## (Disabled by default..use with caution!)
  25. -heart
  26. ## Specify the erlang distributed protocol.
  27. ## Can be one of: inet_tcp, inet6_tcp, inet_tls
  28. #-proto_dist inet_tcp
  29. ## Specify SSL Options in the file if using SSL for Erlang Distribution.
  30. ## Used only when -proto_dist set to inet_tls
  31. #-ssl_dist_optfile {{ platform_etc_dir }}/ssl_dist.conf
  32. ## Specifies the net_kernel tick time in seconds.
  33. ## This is the approximate time a connected node may be unresponsive until
  34. ## it is considered down and thereby disconnected.
  35. #-kernel net_ticktime 60
  36. ## Sets the distribution buffer busy limit (dist_buf_busy_limit).
  37. +zdbbl 1024
  38. ## Sets default scheduler hint for port parallelism.
  39. +spp false
  40. ## Sets the number of threads in async thread pool. Valid range is 0-1024.
  41. ## Increase the parameter if there are many simultaneous file I/O operations.
  42. +A 1
  43. ## Sets the default heap size of processes to the size Size.
  44. #+hms 233
  45. ## Sets the default binary virtual heap size of processes to the size Size.
  46. #+hmbs 46422
  47. ## Sets the default maximum heap size of processes to the size Size.
  48. ## Defaults to 0, which means that no maximum heap size is used.
  49. ##For more information, see process_flag(max_heap_size, MaxHeapSize).
  50. #+hmax 0
  51. ## Sets the default value for process flag message_queue_data. Defaults to on_heap.
  52. #+hmqd on_heap | off_heap
  53. ## Sets the number of IO pollsets to use when polling for I/O.
  54. +IOp 1
  55. ## Sets the number of IO poll threads to use when polling for I/O.
  56. +IOt 1
  57. ## Sets the number of scheduler threads to create and scheduler threads to set online.
  58. +S 1:1
  59. ## Sets the number of dirty CPU scheduler threads to create and dirty CPU scheduler threads to set online.
  60. +SDcpu 1:1
  61. ## Sets the number of dirty I/O scheduler threads to create.
  62. +SDio 1
  63. ## Suggested stack size, in kilowords, for scheduler threads.
  64. #+sss 32
  65. ## Suggested stack size, in kilowords, for dirty CPU scheduler threads.
  66. #+sssdcpu 40
  67. ## Suggested stack size, in kilowords, for dirty IO scheduler threads.
  68. #+sssdio 40
  69. ## Sets scheduler bind type.
  70. ## Can be one of: u, ns, ts, ps, s, nnts, nnps, tnnps, db
  71. #+sbt db
  72. ## Sets a user-defined CPU topology.
  73. #+sct L0-3c0-3p0N0:L4-7c0-3p1N1
  74. ## Sets the mapping of warning messages for error_logger
  75. #+W w
  76. ## Sets time warp mode: no_time_warp | single_time_warp | multi_time_warp
  77. #+C no_time_warp
  78. ## Prevents loading information about source filenames and line numbers.
  79. +L
  80. ## Specifies how long time (in milliseconds) to spend shutting down the system.
  81. ## See: http://erlang.org/doc/man/erl.html
  82. -shutdown_time 10000