Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit e14ff53

Browse files
committed
Note that service must be specified to enable Profiler
1 parent e0502f7 commit e14ff53

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,12 @@ If the default command (java) is used, then the entry point sources the [setup-e
101101
|Env Var | Description | Type | Default |
102102
|------------------------------------|---------------------|----------|---------------------------------------------|
103103
|`DBG_ENABLE` | Stackdriver Debugger| boolean | `true` |
104-
|`PROFILER_ENABLE` | Stackdriver Profiler| boolean | `false` |
104+
|`PROFILER_ENABLE` | Stackdriver Profiler| boolean | `false`[1] |
105105
|`TMPDIR` | Temporary Directory | dirname | |
106106
|`JAVA_TMP_OPTS` | JVM tmpdir args | JVM args | `-Djava.io.tmpdir=${TMPDIR}` |
107107
|`GAE_MEMORY_MB` | Available memory | size | Set by GAE or `/proc/meminfo`-400M |
108+
|`GAE_SERVICE` | Name of service | string | Set by GAE |
109+
|`GAE_VERSION` | Version of service | string | Set by GAE |
108110
|`HEAP_SIZE_RATIO` | Memory for the heap | percent | 80 |
109111
|`HEAP_SIZE_MB` | Available heap | size | `${HEAP_SIZE_RATIO}`% of `${GAE_MEMORY_MB}` |
110112
|`JAVA_HEAP_OPTS` | JVM heap args | JVM args | `-Xms${HEAP_SIZE_MB}M -Xmx${HEAP_SIZE_MB}M` |
@@ -115,6 +117,8 @@ If the default command (java) is used, then the entry point sources the [setup-e
115117
|`SHUTDOWN_LOGGING_HEAP_INFO` | Shutdown heap info | boolean | `false` |
116118
|`SHUTDOWN_LOGGING_SAMPLE_THRESHOLD` | Shutdown sampling | percent | 100 |
117119

120+
[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_SERVICE` or `K_REVISION`.
121+
118122
If not explicitly set, `JAVA_OPTS` is defaulted to
119123
```
120124
JAVA_OPTS:=-showversion \

0 commit comments

Comments
 (0)