vm.args 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ##-------------------------------------------------------------------------
  2. ## Name of the node
  3. ##-------------------------------------------------------------------------
  4. -name emqttd@127.0.0.1
  5. ## Cookie for distributed erlang
  6. -setcookie emqttdsecretcookie
  7. ##-------------------------------------------------------------------------
  8. ## Mnesia dir. NOTICE: quote the dir with '" "'
  9. ##-------------------------------------------------------------------------
  10. -mnesia dir '"data/mnesia"'
  11. ##-------------------------------------------------------------------------
  12. ## Flags
  13. ##-------------------------------------------------------------------------
  14. ## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
  15. ## (Disabled by default..use with caution!)
  16. ##-heart
  17. -smp true
  18. ## Enable kernel poll and a few async threads
  19. +K true
  20. +A 32
  21. ## max process numbers
  22. +P 1000000
  23. ##-------------------------------------------------------------------------
  24. ## Env
  25. ##-------------------------------------------------------------------------
  26. ## Increase number of concurrent ports/sockets
  27. -env ERL_MAX_PORTS 4096
  28. -env ERTS_MAX_PORTS 4096
  29. #-env ERL_MAX_ETS_TABLES 1024
  30. ## Tweak GC to run more often
  31. ##-env ERL_FULLSWEEP_AFTER 1000
  32. #