You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document the memory_sizes configuration section of config/openjdk.yml.
Add missing documentation of repository_root for both OpenJDK and
Tomcat configuration files.
Improve the repository documentation.
Add an empty memory_sizes section to config/openjdk.yml to make it
easier for users to configure memory sizes.
[#52618651]
The following properties may be specified in [`config/openjdk.yml`][openjdk_yml].
35
+
The following optional properties may be specified in the `memory_sizes` mapping.
33
36
34
37
| Name | Description
35
38
| ---- | -----------
@@ -38,10 +41,10 @@ The following properties may be specified in [`config/openjdk.yml`][openjdk_yml]
38
41
| `permgen` | The Java maximum PermGen size to use. This is applicable to versions of OpenJDK earlier than 1.8. For example, a value of `128m` will result in the java command line option `-XX:MaxPermSize=128m`. Values containing whitespace are rejected with an error, but all others values appear without modification on the java command line appended to `-XX:MaxPermSize=`.
39
42
| `stack` | The Java stack size to use. For example, a value of `256k` will result in the java command line option `-Xss256k`. Values containing whitespace are rejected with an error, but all others values appear without modification on the java command line appended to `-Xss`.
40
43
41
-
####Default Memory Sizes
44
+
### Default Memory Sizes
42
45
43
46
If some memory sizes are not specified using the above properties, default values are provided. For maximum heap, Metaspace, or PermGen size, the default value is based on a proportion of the total memory specified when the application was pushed. For stack size, the default value is one megabyte.
44
47
45
-
If any memory sizes are specified which are not equal to the default value, the proportionate defaults are adjusted accordingly. The default stack size is never adjusted from the default value.
48
+
If a memory size is specified which are not equal to the default value, the defaults are adjusted proportionately, except that the default stack size is never adjusted.
46
49
47
-
The default memory size proportions are configured in the `memory_heuristics`section of [`config/openjdk.yml`][openjdk_yml]. Each memory size is given a weighting between `0` and `1` corresponding to a proportion of the total memory specified when the application was pushed. The weightings should add up to `1`.
50
+
The default memory size proportions are configured in the `memory_heuristics`mapping of [`config/openjdk.yml`][openjdk_yml]. Each memory size is given a weighting between `0` and `1` corresponding to a proportion of the total memory specified when the application was pushed. The weightings should add up to `1`.
Copy file name to clipboardExpand all lines: docs/util-repositories.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,13 @@
2
2
Many components need to have access to multiple versions of binaries. The buildpack provides a `Repository` abstraction to encapsulate version resolution and download URI creation.
3
3
4
4
## Repository Structure
5
-
The repository is an HTTP-accessible collection of files. The repository root must contain an `index.yml` file ([example][example_index_yml]) that is a mapping of concrete versions to URIs.
6
-
5
+
The repository is an HTTP-accessible collection of files. The repository root must contain an `index.yml` file ([example][example_index_yml]) that is a mapping of concrete versions to absolute URIs consisting of a series of lines of the form:
7
6
```yaml
8
7
<version>: <URI>
9
8
```
10
9
10
+
The collection of files may be stored alongside the index file or elsewhere.
0 commit comments