sysmon.vm.conf.example 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ##--------------------------------------------------------------------
  2. ## System Monitoring For Erlang VM
  3. ##
  4. ## System monitoring and introspection
  5. ##--------------------------------------------------------------------
  6. ## Note: This is an example of how to configure this feature
  7. ## you should copy and paste the below data into the emqx.conf for working
  8. sysmon.vm {
  9. ## Time interval for the periodic process limit check
  10. process_check_interval = 30s
  11. ## For how many processes can simultaneously exist at the local node before the corresponding alarm is raised
  12. process_high_watermark = 80%
  13. ## For how many processes can simultaneously exist at the local node before the corresponding alarm is cleared
  14. process_low_watermark = 60%
  15. ## Generated an alarm when an Erlang process spends a long time to perform garbage collection
  16. ## Type:
  17. ## - disabled :: Never alarm
  18. ## - Time During :: The maximum GC time for generating an alarm
  19. long_gc = 100ms
  20. ## Generating an alarm is generated when the Erlang VM detect a task scheduled for too long
  21. ## Type:
  22. ## - disabled :: Never alarm
  23. ## - Time During :: The maximum schedule time for generating an alarm
  24. long_schedule = 240ms
  25. ## Generating an alarm when an Erlang process consumed a large amount of memory for its heap space
  26. ## Type:
  27. ## - disabled :: Never alarm
  28. ## - ByteSize :: The maximum heap size for generating an alarm
  29. large_heap = 32MB
  30. ## Generating an alarm when the RPC connection is overloaded
  31. busy_dist_port = true
  32. ## Generating an alarm when a port (e.g. TCP socket) is overloaded
  33. busy_port = true
  34. }