Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
13115fbd
You need to sign in or sign up before continuing.
Commit
13115fbd
authored
Jul 07, 2025
by
wangpeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加入内存溢出内存快照
parent
555f5b8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
yifu-insurances-deployment.yaml
k8s-bash/yifu-insurances-deployment.yaml
+2
-0
Dockerfile
yifu-insurances/yifu-insurances-biz/Dockerfile
+3
-1
No files found.
k8s-bash/yifu-insurances-deployment.yaml
View file @
13115fbd
...
...
@@ -56,6 +56,8 @@ spec: # 资源规范字段
value
:
prd
-
name
:
TZ
value
:
Asia/Shanghai
-
name
:
JAVA_OPTS
value
:
"
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/dumps/oom.hprof"
resources
:
#资源配置限制
limits
:
# 最大使用
memory
:
"
2048Mi"
...
...
yifu-insurances/yifu-insurances-biz/Dockerfile
View file @
13115fbd
...
...
@@ -10,6 +10,8 @@ COPY ${JAR_FILE} app.jar
EXPOSE
5005
ENV
TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
RUN
mkdir
-p
/dumps
ENV
TZ=Asia/Shanghai JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
CMD
sleep 60; java -jar app.jar $JAVA_OPTS
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