Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
build-script
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tools
build-script
Commits
9cfcddab
Commit
9cfcddab
authored
Oct 13, 2022
by
liaozan
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update Dockerfile
parent
ea8097dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Dockerfile
Dockerfile
+1
-1
k8s-deploy-template.yaml
k8s-deploy-template.yaml
+3
-2
No files found.
Dockerfile
View file @
9cfcddab
...
...
@@ -14,7 +14,7 @@ RUN mkdir -p /data/logs/gc
ENV
EXT_JVM_OPTS="${JAVA_OPTS}"
ENV
JVM_OPTS="-XX:MaxRAMPercentage=70 -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m\
ENV
JVM_OPTS="-XX:
+AlwaysPreTouch -XX:MinRAMPercentage=70 -XX:
MaxRAMPercentage=70 -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m\
-XX:+UseG1GC -XX:G1HeapRegionSize=2m -Xlog:gc*:/data/logs/gc/gc-%t.log:time,uptime\
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump/heapdump.hprof -XX:OnOutOfMemoryError=/app/dump-file-rollover.sh\
-XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags"
...
...
k8s-deploy-template.yaml
View file @
9cfcddab
...
...
@@ -27,7 +27,7 @@ spec:
terminationGracePeriodSeconds
:
30
initContainers
:
-
name
:
${APP_NAME}-init
image
:
busybox
image
:
registry-vpc.cn-hangzhou.aliyuncs.com/acs/
busybox
command
:
[
'
mkdir'
,
'
-p'
,
'
/data/logs/gc'
,
'
/data/heapdump'
]
volumeMounts
:
-
name
:
${APP_NAME}-volume
...
...
@@ -55,7 +55,8 @@ spec:
scheme
:
HTTP
path
:
/actuator/health
port
:
1024
failureThreshold
:
6
initialDelaySeconds
:
20
failureThreshold
:
4
periodSeconds
:
10
livenessProbe
:
httpGet
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment