Commit d8eeba98 authored by Dave Syer's avatar Dave Syer

Add JAVA_OPTS advice to some docs

parent 3d9da643
...@@ -101,7 +101,10 @@ v3.0.5 or above. You also need JDK 1.7 (although Boot applications can run on Ja ...@@ -101,7 +101,10 @@ v3.0.5 or above. You also need JDK 1.7 (although Boot applications can run on Ja
---- ----
NOTE: You may need to increase the amount of memory available to Maven by setting NOTE: You may need to increase the amount of memory available to Maven by setting
a `MAVEN_OPTS` environment variable with the value `-Xmx512m -XX:MaxPermSize=128m` a `MAVEN_OPTS` environment variable with the value `-Xmx512m -XX:MaxPermSize=128m`. Remember
to set the corresponding property in your IDE as well if you are building and running
tests there (e.g. in Eclipse go to `Preferences->Java->Installed JREs` and edit the
JRE definition so that all processes are launched with those arguments).
_Also see link:CONTRIBUTING.adoc[CONTRIBUTING.adoc] if you wish to submit pull requests, _Also see link:CONTRIBUTING.adoc[CONTRIBUTING.adoc] if you wish to submit pull requests,
and in particular please fill out the and in particular please fill out the
......
...@@ -555,8 +555,6 @@ This allows you to attach a debugger to your packaged application: ...@@ -555,8 +555,6 @@ This allows you to attach a debugger to your packaged application:
-jar target/myproject-0.0.1-SNAPSHOT.jar -jar target/myproject-0.0.1-SNAPSHOT.jar
---- ----
[[using-boot-running-with-the-maven-plugin]] [[using-boot-running-with-the-maven-plugin]]
=== Using the Maven plugin === Using the Maven plugin
The Spring Boot Maven plugin includes a `run` goal which can be used to quickly compile The Spring Boot Maven plugin includes a `run` goal which can be used to quickly compile
...@@ -568,7 +566,13 @@ resources for instant ``hot'' reload. ...@@ -568,7 +566,13 @@ resources for instant ``hot'' reload.
$ mvn spring-boot:run $ mvn spring-boot:run
---- ----
Useful operating system environment variable:
```
$ export MAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=128M -Djava.security.egd=file:/dev/./urandom
```
(The "egd" setting is to speed up Tomcat startup by giving it a faster source of entropy for session keys.)
[[using-boot-running-with-the-gradle-plugin]] [[using-boot-running-with-the-gradle-plugin]]
=== Using the Gradle plugin === Using the Gradle plugin
...@@ -581,6 +585,11 @@ the `spring-boot-plugin` ...@@ -581,6 +585,11 @@ the `spring-boot-plugin`
$ gradle bootRun $ gradle bootRun
---- ----
Useful operating system environment variable:
```
$ export JAVA_OPTS=-Xmx1024m -XX:MaxPermSize=128M -Djava.security.egd=file:/dev/./urandom
```
[[using-boot-hot-swapping]] [[using-boot-hot-swapping]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment