Skip to content

Instantly share code, notes, and snippets.

@jwkicklighter
Created August 7, 2019 14:53
Show Gist options
  • Select an option

  • Save jwkicklighter/824caff91139b78b48c660f8ad145242 to your computer and use it in GitHub Desktop.

Select an option

Save jwkicklighter/824caff91139b78b48c660f8ad145242 to your computer and use it in GitHub Desktop.
Verify that jemalloc is enabled for Ruby
#! /bin/bash
#
# If this prints anything to the console, jemalloc is enabled.
# Otherwise the command will just exit with no output.
MALLOC_CONF=stats_print:true ruby -e "exit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment