Skip to content

Instantly share code, notes, and snippets.

@cjcolvar
Created May 19, 2017 17:12
Show Gist options
  • Save cjcolvar/e3dc290c6a49c68c7c8a3a37afcdc401 to your computer and use it in GitHub Desktop.
Save cjcolvar/e3dc290c6a49c68c7c8a3a37afcdc401 to your computer and use it in GitHub Desktop.
fcrepo_wrapper config that enables jmx
# Place any default configuration for solr_wrapper here
port: 8984
enable_jms: false
fcrepo_home_dir: tmp/fcrepo4-development-data
java_options:
- '-Dfcrepo.log.http.api=WARN'
- '-Dfcrepo.log.kernel=ERROR'
- '-Dfcrepo.home=tmp/fcrepo4-development-data'
- '-Dfcrepo.spring.jms.configuration=file:///Users/cjcolvar/.rvm/gems/ruby-2.3.1/gems/fcrepo_wrapper-0.7.0/data/spring-noop.xml'
- '-Dcom.sun.management.jmxremote'
- '-Dspring.profiles.active=metrics.jmx'
- '-Xmx512m'
@cjcolvar
Copy link
Author

This enables jmx when running a fedora server via fcrepo_wrapper. You'll need to copy the java options from the running fedora process before you make these changes so you can get the path to the spring-noop.xml file. Once you have fedora running with this config then you can use jconsole to see a little bit more details about a running fedora server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment