standalone.conf 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ## -*- shell-script -*- ######################################################
  2. ## ##
  3. ## JBoss Bootstrap Script Configuration ##
  4. ## ##
  5. ##############################################################################
  6. #
  7. # This file is optional; it may be removed if not needed.
  8. #
  9. #
  10. # Specify the maximum file descriptor limit, use "max" or "maximum" to use
  11. # the default, as queried by the system.
  12. #
  13. # Defaults to "maximum"
  14. #
  15. #MAX_FD="maximum"
  16. #
  17. # Specify the profiler configuration file to load.
  18. #
  19. # Default is to not load profiler configuration file.
  20. #
  21. #PROFILER=""
  22. #
  23. # Specify the location of the Java home directory. If set then $JAVA will
  24. # be defined to $JAVA_HOME/bin/java, else $JAVA will be "java".
  25. #
  26. #JAVA_HOME="/opt/java/jdk"
  27. #
  28. # Specify the exact Java VM executable to use.
  29. #
  30. #JAVA=""
  31. if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
  32. JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman"
  33. fi
  34. # Uncomment the following line to prevent manipulation of JVM options
  35. # by shell scripts.
  36. #
  37. #PRESERVE_JAVA_OPTS=true
  38. #
  39. # Specify options to pass to the Java VM.
  40. #
  41. if [ "x$JAVA_OPTS" = "x" ]; then
  42. JAVA_OPTS="-Xms1024m -Xmx2560m -XX:MaxPermSize=2048m -Djava.net.preferIPv4Stack=true"
  43. JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
  44. else
  45. echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS"
  46. fi
  47. # Sample JPDA settings for remote socket debugging
  48. #JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"
  49. # Sample JPDA settings for shared memory debugging
  50. #JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=jboss"
  51. # Uncomment to not use JBoss Modules lockless mode
  52. #JAVA_OPTS="$JAVA_OPTS -Djboss.modules.lockless=false"
  53. # Uncomment to gather JBoss Modules metrics
  54. #JAVA_OPTS="$JAVA_OPTS -Djboss.modules.metrics=true"