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
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
huangxi
build-script
Commits
5648bd9c
Commit
5648bd9c
authored
Sep 23, 2022
by
liaozan
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the directory of gc log
parent
2b91c42a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Dockerfile
Dockerfile
+3
-3
k8s-deploy-template.yaml
k8s-deploy-template.yaml
+1
-1
No files found.
Dockerfile
View file @
5648bd9c
...
...
@@ -10,12 +10,12 @@ COPY --from=builder app/spring-boot-loader/ ./
COPY
--from=builder app/snapshot-dependencies/ ./
COPY
--from=builder app/application/ ./
RUN
mkdir
-p
/data/logs
RUN
mkdir
-p
/data/logs
/gc
ENV
EXT_JVM_OPTS="${JAVA_OPTS}"
ENV
JVM_OPTS="-XX:MaxRAMPercentage=
80 -XX:+AlwaysPreTouch
\
-XX:+UseG1GC -X
log:gc*=debug:/data/logs
/gc-%t.log:time,uptime\
ENV
JVM_OPTS="-XX:MaxRAMPercentage=
75 -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m
\
-XX:+UseG1GC -X
X:G1HeapRegionSize=2m -Xlog:gc*:/data/logs/gc
/gc-%t.log:time,uptime\
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump.hprof\
-XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags $EXT_JVM_OPTS"
...
...
k8s-deploy-template.yaml
View file @
5648bd9c
...
...
@@ -28,7 +28,7 @@ spec:
initContainers
:
-
name
:
${APP_NAME}-init
image
:
busybox
command
:
[
'
mkdir'
,
'
-p'
,
"
/data/logs"
]
command
:
[
'
mkdir'
,
'
-p'
,
"
/data/logs
/gc
"
]
volumeMounts
:
-
name
:
${APP_NAME}-volume
mountPath
:
/data
...
...
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