Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Note that service must be specified to enable Profiler #199

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ If the default command (java) is used, then the entry point sources the [setup-e
|Env Var | Description | Type | Default |
|------------------------------------|---------------------|----------|---------------------------------------------|
|`DBG_ENABLE` | Stackdriver Debugger| boolean | `true` |
|`PROFILER_ENABLE` | Stackdriver Profiler| boolean | `false` |
|`PROFILER_ENABLE` | Stackdriver Profiler| boolean | `false`[1] |
|`TMPDIR` | Temporary Directory | dirname | |
|`JAVA_TMP_OPTS` | JVM tmpdir args | JVM args | `-Djava.io.tmpdir=${TMPDIR}` |
|`GAE_MEMORY_MB` | Available memory | size | Set by GAE or `/proc/meminfo`-400M |
|`GAE_SERVICE` | Name of service | string | Set by GAE |
|`GAE_VERSION` | Version of service | string | Set by GAE |
|`HEAP_SIZE_RATIO` | Memory for the heap | percent | 80 |
|`HEAP_SIZE_MB` | Available heap | size | `${HEAP_SIZE_RATIO}`% of `${GAE_MEMORY_MB}` |
|`JAVA_HEAP_OPTS` | JVM heap args | JVM args | `-Xms${HEAP_SIZE_MB}M -Xmx${HEAP_SIZE_MB}M` |
Expand All @@ -115,6 +117,8 @@ If the default command (java) is used, then the entry point sources the [setup-e
|`SHUTDOWN_LOGGING_HEAP_INFO` | Shutdown heap info | boolean | `false` |
|`SHUTDOWN_LOGGING_SAMPLE_THRESHOLD` | Shutdown sampling | percent | 100 |

[1]: To enable Stackdriver Profiler, the service name must be specified, either using `GAE_SERVICE` or `K_SERVICE`. The service version may also be specified using `GAE_VERSION` or `K_REVISION`.

nolanmar511 marked this conversation as resolved.
Show resolved Hide resolved
If not explicitly set, `JAVA_OPTS` is defaulted to
```
JAVA_OPTS:=-showversion \
Expand Down