diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 891344f..49d3800 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -13,7 +13,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: '1.20.x' + go-version: '1.22.x' cache-dependency-path: cache-dependency/go.sum - name: Install dependencies run: go get . diff --git a/README.md b/README.md index 2e044f2..9f9c9c4 100644 --- a/README.md +++ b/README.md @@ -56,11 +56,11 @@ Non-Heap = Direct Memory + Metaspace + Reserved Code Cache + (Thread Stack * Thr |---|---|---|---| | 記憶體計算工具分配的預留空間百分比 | `--head-room` | `$BPL_JVM_HEAD_ROOM` | `0` | | 運行時的用戶線程數 | `--thread-count` | `$BPL_JVM_THREAD_COUNT` | `200` | -| 運行時將加載的 class 數量 | `--loaded-class-count` | `$BPL_JVM_LOADED_CLASS_COUNT` | 若沒提供, 則以 App 目錄, JVM class 數量, JVM class 數量調整, 於啟動時動態的計算出建議值 | +| 運行時將加載的 class 數量 | `--loaded-class-count` | `$BPL_JVM_LOADED_CLASS_COUNT` | 若沒提供,則以 App 目錄,JVM class 數量,JVM class 數量調整,於啟動時動態的計算出建議值 | | App 目錄 | `--app-path` | `$BPI_APPLICATION_PATH` | `/app` | -| JVM class 數量 | `--jvm-class-count` | `$BPI_JVM_CLASS_COUNT` | 若沒提供, 則動態計算 `$JAVA_HOME` 下的 class 數量 | -| JVM class 數量調整 | `--jvm-class-adj` | `$BPL_JVM_CLASS_ADJUSTMENT` | 無, 可接受數字 ( `1000`) 或百分比 (`150%`) | -| JVM CA 目錄 | `--jvm-cacerts` | `$BPI_JVM_CACERTS` | 若沒提供, 則試著使用 `$JAVA_HOME/lib/security/cacerts` | +| JVM class 數量 | `--jvm-class-count` | `$BPI_JVM_CLASS_COUNT` | 若沒提供,則動態計算 `$JAVA_HOME` 下的 class 數量 | +| JVM class 數量調整 | `--jvm-class-adj` | `$BPL_JVM_CLASS_ADJUSTMENT` | 無,可接受數字 (`1000`) 或百分比 (`150%`) | +| JVM CA 目錄 | `--jvm-cacerts` | `$BPI_JVM_CACERTS` | 若沒提供,則試著使用 `$JAVA_HOME/lib/security/cacerts` | | Java 啟動參數 | `--jvm-options` | `$JAVA_OPTS` | | | 是否啟用 [JDWP](https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/introclientissues005.html) | `--enable-jdwp` | `$BPL_DEBUG_ENABLED` | `true` | | 是否啟用 [NMT](https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/tooldescr007.html) | `--enable-nmt` | `$BPL_JAVA_NMT_ENABLED` | `false` | @@ -94,7 +94,7 @@ memory-calculator -h ## 開發前準備 -- Golang: v1.20+ +- Golang: v1.22+ - Jib ContainerTool - Linux 基礎映像