Advertisement
m4ly

WildFly 9.01 standalone.conf JMX Remote

Aug 20th, 2015
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.33 KB | None | 0 0
  1. ## -*- shell-script -*- ######################################################
  2. ##                                                                          ##
  3. ##  JBoss Bootstrap Script Configuration                                    ##
  4. ##                                                                          ##
  5. ##############################################################################
  6.  
  7. #
  8. # This file is optional; it may be removed if not needed.
  9. #
  10.  
  11. #
  12. # Specify the maximum file descriptor limit, use "max" or "maximum" to use
  13. # the default, as queried by the system.
  14. #
  15. # Defaults to "maximum"
  16. #
  17. #MAX_FD="maximum"
  18.  
  19. #
  20. # Specify the profiler configuration file to load.
  21. #
  22. # Default is to not load profiler configuration file.
  23. #
  24. #PROFILER=""
  25.  
  26. #
  27. # Specify the location of the Java home directory.  If set then $JAVA will
  28. # be defined to $JAVA_HOME/bin/java, else $JAVA will be "java".
  29. #
  30. #JAVA_HOME="/opt/java/jdk"
  31.  
  32. #
  33. # Specify the exact Java VM executable to use.
  34. #
  35. #JAVA=""
  36.  
  37. JBOSS_MODULES_SYSTEM_PKGS="org.jboss.logmanager"
  38.  
  39. if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
  40.    JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman"
  41. fi
  42.  
  43. # Uncomment the following line to prevent manipulation of JVM options
  44. # by shell scripts.
  45. #
  46. #PRESERVE_JAVA_OPTS=true
  47.  
  48. #
  49. # Specify options to pass to the Java VM.
  50. #
  51. if [ "x$JAVA_OPTS" = "x" ]; then
  52.    JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true"
  53.    JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
  54. else
  55.    echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS"
  56. fi
  57.  
  58. # Sample JPDA settings for remote socket debugging
  59. #JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"
  60.  
  61. # Sample JPDA settings for shared memory debugging
  62. #JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=jboss"
  63.  
  64. # Uncomment to not use JBoss Modules lockless mode
  65. #JAVA_OPTS="$JAVA_OPTS -Djboss.modules.lockless=false"
  66.  
  67. # Uncomment to gather JBoss Modules metrics
  68. #JAVA_OPTS="$JAVA_OPTS -Djboss.modules.metrics=true"
  69.  
  70. # Uncomment this to run with a security manager enabled
  71. # SECMGR="true"
  72.  
  73. # Uncomment this in order to be able to run WildFly on FreeBSD
  74. # when you get "epoll_create function not implemented" message in dmesg output
  75. #JAVA_OPTS="$JAVA_OPTS -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider"
  76.  
  77. # Added 2015-08-01 by Dawid Mocek
  78. JAVA_OPTS="$JAVA_OPTS -Duser.timezone=Europe/Warsaw \
  79.    -Duser.country=PL \
  80.    -Xdebug \
  81.    -Xms128m \
  82.    -Xmx256m \
  83.    -XX:PermSize=128m \
  84.    -XX:MaxPermSize=256m \
  85.    -Dcom.sun.management.jmxremote.port=6789 \
  86.    -Dcom.sun.management.jmxremote.authenticate=false \
  87.    -Dcom.sun.management.jmxremote \
  88.    -Dcom.sun.management.jmxremote.ssl=false \
  89.    -Djava.rmi.server.hostname=192.168.20.100 \
  90.    -Djava.util.logging.manager=org.jboss.logmanager.LogManager \
  91.    -Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/slf4j/impl/main/slf4j-jboss-logmanager-1.0.3.GA.jar \
  92.    -Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.0.Final.jar \
  93.    -Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-jboss-logmanager-1.1.2.Final.jar "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement