vm.args 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. #+P 2048000
  12. ## Sets the maximum number of simultaneously existing ports for this system.
  13. #+Q 1024000
  14. ## Sets the maximum number of ETS tables
  15. #+e 256000
  16. ## Sets the maximum number of atoms the virtual machine can handle.
  17. #+t 1048576
  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 1000
  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 8192
  38. ## Sets default scheduler hint for port parallelism.
  39. +spp true
  40. ## Sets the number of threads in async thread pool. Valid range is 0-1024.
  41. #+A 8
  42. ## Sets the default heap size of processes to the size Size.
  43. #+hms 233
  44. ## Sets the default binary virtual heap size of processes to the size Size.
  45. #+hmbs 46422
  46. ## Sets the number of IO pollsets to use when polling for I/O.
  47. #+IOp 1
  48. ## Sets the number of IO poll threads to use when polling for I/O.
  49. #+IOt 1
  50. ## Sets the number of scheduler threads to create and scheduler threads to set online.
  51. #+S 8:8
  52. ## Sets the number of dirty CPU scheduler threads to create and dirty CPU scheduler threads to set online.
  53. #+SDcpu 8:8
  54. ## Sets the number of dirty I/O scheduler threads to create.
  55. #+SDio 10
  56. ## Suggested stack size, in kilowords, for scheduler threads.
  57. #+sss 32
  58. ## Suggested stack size, in kilowords, for dirty CPU scheduler threads.
  59. #+sssdcpu 40
  60. ## Suggested stack size, in kilowords, for dirty IO scheduler threads.
  61. #+sssdio 40
  62. ## Sets scheduler bind type.
  63. ## Can be one of: u, ns, ts, ps, s, nnts, nnps, tnnps, db
  64. #+sbt db
  65. ## Sets a user-defined CPU topology.
  66. #+sct L0-3c0-3p0N0:L4-7c0-3p1N1
  67. ## Sets the mapping of warning messages for error_logger
  68. #+W w