standalone.conf.bat 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. rem Uncomment the following line to disable manipulation of JAVA_OPTS (JVM parameters)
  13. rem set PRESERVE_JAVA_OPTS=true
  14. if not "x%JAVA_OPTS%" == "x" (
  15. echo "JAVA_OPTS already set in environment; overriding default settings with values: %JAVA_OPTS%"
  16. goto JAVA_OPTS_SET
  17. )
  18. rem #
  19. rem # Specify the JBoss Profiler configuration file to load.
  20. rem #
  21. rem # Default is to not load a JBoss Profiler configuration file.
  22. rem #
  23. rem set "PROFILER=%JBOSS_HOME%\bin\jboss-profiler.properties"
  24. rem #
  25. rem # Specify the location of the Java home directory (it is recommended that
  26. rem # this always be set). If set, then "%JAVA_HOME%\bin\java" will be used as
  27. rem # the Java VM executable; otherwise, "%JAVA%" will be used (see below).
  28. rem #
  29. rem set "JAVA_HOME=C:\opt\jdk1.6.0_23"
  30. rem #
  31. rem # Specify the exact Java VM executable to use - only used if JAVA_HOME is
  32. rem # not set. Default is "java".
  33. rem #
  34. rem set "JAVA=C:\opt\jdk1.6.0_23\bin\java"
  35. rem #
  36. rem # Specify options to pass to the Java VM. Note, there are some additional
  37. rem # options that are always passed by run.bat.
  38. rem #
  39. rem # JVM memory allocation pool parameters - modify as appropriate.
  40. set "JAVA_OPTS=-Xms512M -Xmx1088M -XX:MaxPermSize=512M"
  41. rem # Prefer IPv4
  42. set "JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true"
  43. rem # Make Byteman classes visible in all module loaders
  44. rem # This is necessary to inject Byteman rules into AS7 deployments
  45. set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman"
  46. rem # Sample JPDA settings for remote socket debugging
  47. rem set "JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"
  48. rem # Sample JPDA settings for shared memory debugging
  49. rem set "JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_shmem,address=jboss,server=y,suspend=n"
  50. rem # Use JBoss Modules lockless mode
  51. rem set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.lockless=true"
  52. :JAVA_OPTS_SET