Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c071a63f
authored
Feb 26, 2019
by
xuxueli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
JobHandler#msg长度限制,修复异常情况下日志超长导致内存溢出的问题
parent
2abe679b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
doc/XXL-JOB官方文档.md
xxl-job-core/src/main/java/com/xxl/job/core/thread/JobThread.java
doc/XXL-JOB官方文档.md
View file @
c071a63f
## 《分
布式任务调度平台XXL-JOB》
## 《分
布式任务调度平台XXL-JOB》
...
@@ -1434,7 +1434,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
...
@@ -1434,7 +1434,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
-
18、调度日志排序逻辑调整为按照调度时间倒序,兼容TIDB等主键不连续日志存储组件;
-
18、调度日志排序逻辑调整为按照调度时间倒序,兼容TIDB等主键不连续日志存储组件;
-
19、执行器优雅停机优化;
-
19、执行器优雅停机优化;
-
20、连接池配置优化,增强连接有效性验证;
-
20、连接池配置优化,增强连接有效性验证;
-
21、
[
迭代中
]
JobHandler执行结果日志长度限制:
-
21、
JobHandler#msg长度限制,修复异常情况下日志超长导致内存溢出的问题;
-
22、
[
迭代中
]
执行器端口复用:
-
22、
[
迭代中
]
执行器端口复用:
-
23、
[
迭代中
]
任务线程隔离:
-
23、
[
迭代中
]
任务线程隔离:
-
执行器测异步响应,不存在阻塞不需要隔离;
-
执行器测异步响应,不存在阻塞不需要隔离;
...
...
xxl-job-core/src/main/java/com/xxl/job/core/thread/JobThread.java
View file @
c071a63f
...
@@ -154,6 +154,9 @@ public class JobThread extends Thread{
...
@@ -154,6 +154,9 @@ public class JobThread extends Thread{
if
(
executeResult
==
null
)
{
if
(
executeResult
==
null
)
{
executeResult
=
IJobHandler
.
FAIL
;
executeResult
=
IJobHandler
.
FAIL
;
}
else
{
executeResult
.
setMsg
((
executeResult
!=
null
&&
executeResult
.
getMsg
().
length
()>
50000
)?
executeResult
.
getMsg
().
substring
(
0
,
50000
).
concat
(
"..."
):
executeResult
.
getMsg
());
executeResult
.
setContent
(
null
);
// limit obj size
}
}
XxlJobLogger
.
log
(
"<br>----------- xxl-job job execute end(finish) -----------<br>----------- ReturnT:"
+
executeResult
);
XxlJobLogger
.
log
(
"<br>----------- xxl-job job execute end(finish) -----------<br>----------- ReturnT:"
+
executeResult
);
...
...
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