Skip to content

Instantly share code, notes, and snippets.

View donbonifacio's full-sized avatar
🚀
Building platforms

Pedro Pereira Santos donbonifacio

🚀
Building platforms
View GitHub Profile
JVM: “Elapsed time: 22s”
Jodejs: “Elapsed time: 104s”
Phantomjs “Elapsed time: 155s”

vmstat <ms>

Shows virtual memory stats every ms millis.

jps -lvm

Shows the java processes running, their PID, and command line arguments.

jcmd <pid> help

obb-rules[obb-spec]$ OBB_SCENARIOS_TO_TEST=0 lein with-profile clj run
Testing obb-rules.board-test
Testing obb-rules.actions.go-to-test
Testing obb-rules.actions.strikeback-test
Testing obb-rules.actions.damage-calculator-test

Monitoring

  • rabbitmqctl status - generic node info
  • rabbitmqctl cluster_status - checks connectivity with other nodes and alarms

Troubleshoot

Consumer prefetch

By default Rabbit will prefetch several messages to boost performance. If the consumption