domain.conf.bat 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. rem ### -*- batch file -*- ######################################################
  2. rem # ##
  3. rem # JBoss Bootstrap Script Configuration ##
  4. rem # ##
  5. rem #############################################################################
  6. rem # $Id: run.conf.bat 88820 2009-05-13 15:25:44Z dimitris@jboss.org $
  7. rem #
  8. rem # This batch file is executed by run.bat to initialize the environment
  9. rem # variables that run.bat uses. It is recommended to use this file to
  10. rem # configure these variables, rather than modifying run.bat itself.
  11. rem #
  12. if not "x%JAVA_OPTS%" == "x" (
  13. echo "JAVA_OPTS already set in environment; overriding default settings with values: %JAVA_OPTS%"
  14. goto JAVA_OPTS_SET
  15. )
  16. rem #
  17. rem # Specify the JBoss Profiler configuration file to load.
  18. rem #
  19. rem # Default is to not load a JBoss Profiler configuration file.
  20. rem #
  21. rem set "PROFILER=%JBOSS_HOME%\bin\jboss-profiler.properties"
  22. rem #
  23. rem # Specify the location of the Java home directory (it is recommended that
  24. rem # this always be set). If set, then "%JAVA_HOME%\bin\java" will be used as
  25. rem # the Java VM executable; otherwise, "%JAVA%" will be used (see below).
  26. rem #
  27. rem set "JAVA_HOME=C:\opt\jdk1.6.0_23"
  28. rem #
  29. rem # Specify the exact Java VM executable to use - only used if JAVA_HOME is
  30. rem # not set. Default is "java".
  31. rem #
  32. rem set "JAVA=C:\opt\jdk1.6.0_23\bin\java"
  33. rem #
  34. rem # Specify options to pass to the Java VM. Note, there are some additional
  35. rem # options that are always passed by run.bat.
  36. rem #
  37. rem # JVM memory allocation pool parameters - modify as appropriate.
  38. set "JAVA_OPTS=-Xms64M -Xmx512M -XX:MaxPermSize=256M"
  39. rem # Prefer IPv4
  40. set "JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true"
  41. rem # Make Byteman classes visible in all module loaders
  42. rem # This is necessary to inject Byteman rules into AS7 deployments
  43. set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman"
  44. rem # Use JBoss Modules lockless mode
  45. rem set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.lockless=true"
  46. rem The ProcessController process uses its own set of java options
  47. set "PROCESS_CONTROLLER_JAVA_OPTS=%JAVA_OPTS%"
  48. rem The HostController process uses its own set of java options
  49. set "HOST_CONTROLLER_JAVA_OPTS=%JAVA_OPTS%"
  50. rem # Sample JPDA settings for remote socket debugging
  51. rem set "PROCESS_CONTROLLER_JAVA_OPTS=%PROCESS_CONTROLLER_JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,address=8788,server=y,suspend=n"
  52. rem set "HOST_CONTROLLER_JAVA_OPTS=%HOST_CONTROLLER_JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"
  53. rem # Sample JPDA settings for shared memory debugging
  54. rem set "PROCESS_CONTROLLER_JAVA_OPTS=%PROCESS_CONTROLLER_JAVA_OPTS% -agentlib:jdwp=transport=dt_shmem,address=jboss,server=y,suspend=n"
  55. rem set "HOST_CONTROLLER_JAVA_OPTS=%HOST_CONTROLLER_JAVA_OPTS% -agentlib:jdwp=transport=dt_shmem,address=jboss,server=y,suspend=n"
  56. :JAVA_OPTS_SET