-
Notifications
You must be signed in to change notification settings - Fork 807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE #483] Virtual thread compatible #508
Closed
Closed
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
f5f25f5
virtual thread兼容,通过VirtualThreadExecutorAdapter进行声明
EachannChan cc83c79
bean instanceof ThreadContainer && bean instanceof ExecutorService 的…
EachannChan 0d0c160
使用Executors.newVirtualThreadPerTaskExecutor()进行声明
EachannChan 74f64c6
format
EachannChan 17a913b
以注释的方式来声明executor的实现
EachannChan 706d887
动态配置的实现思路
EachannChan f05dd26
proxy的重构,这样写Bean无法注册,耦合性也高
EachannChan a85826c
移除jdk21特性使之兼容老版本
EachannChan 4a93554
Merge remote-tracking branch 'origin/virtual-thread' into virtual-thread
EachannChan 4495be0
fix
EachannChan a729e11
配置中心进行配置,可以获取到executor并执行但spring没有感知到此bean,即postProcessAfterInitializ…
EachannChan 6a1e1a9
解决配置中心配置VT未被登记的问题
EachannChan 3755c8b
doc
EachannChan db44cd8
Merge branch 'springboot3' into virtual-thread
EachannChan 0a38447
监控实现思路
EachannChan f4b5804
Merge remote-tracking branch 'origin/virtual-thread' into virtual-thread
EachannChan c791fd2
监控模块部分实现,VTExecutorStats为期望能获取到的数据
EachannChan ebc5e0e
监控基本实现,留了一些保留字段
EachannChan e29ebd4
complete EsCollector,format
EachannChan 554f3f1
Merge remote-tracking branch 'origin/virtual-thread' into virtual-thread
EachannChan 3dc7ee6
fix conflict and adapt
EachannChan 0b18056
Merge branch 'springboot3' into virtual-thread
EachannChan 4154092
fix and format
EachannChan d9b5d4d
fix dependency
EachannChan 119d2e2
update mvn jdk
EachannChan 7944b9b
try fix gitgub err
EachannChan 33a4214
del
EachannChan fe40c63
format
EachannChan f449863
core rebuild and JDK version check
EachannChan c40e854
重构优化
EachannChan 4027731
Merge branch 'springboot3' into virtual-thread
EachannChan 2f7a99d
format
EachannChan a812aff
Merge remote-tracking branch 'origin/virtual-thread' into virtual-thread
EachannChan a96658e
Merge branch 'virtual-thread' into virtual-thread-spring-boot3
EachannChan b4e5dcb
fix
EachannChan 7eaf4ca
rebuild
EachannChan 15929e1
format
EachannChan 8457c52
format
EachannChan 69ec089
rebuild and fix
EachannChan 84d4d30
Merge branch 'dromara:master' into virtual-thread
EachannChan 21e3b41
rebuild
EachannChan d063f36
optimize
EachannChan 36dc4c4
rebuild
EachannChan 36cd88a
optimize
EachannChan 64afeae
remane
EachannChan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,24 +22,24 @@ | |
|
||
|
||
/** | ||
* ThreadPoolStats related | ||
* ExecutorStats related | ||
* | ||
* @author yanhom | ||
* @since 1.0.0 | ||
**/ | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public class ThreadPoolStats extends Metrics { | ||
public class ExecutorStats extends Metrics { | ||
|
||
/** | ||
* 线程池名字 | ||
* 执行器名字 | ||
*/ | ||
private String poolName; | ||
private String executorName; | ||
|
||
/** | ||
* 线程池别名 | ||
* 执行器别名 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这两个名字字段如果标注@deprecated的话需要兼容,不然直接改名就好? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
行,我看看要是没有其他地方用到这两个字段我就去掉算了 |
||
*/ | ||
private String poolAliasName; | ||
private String executorAliasName; | ||
|
||
/** | ||
* 核心线程数 | ||
|
@@ -51,6 +51,31 @@ public class ThreadPoolStats extends Metrics { | |
*/ | ||
private int maximumPoolSize; | ||
|
||
/** | ||
* 正在执行任务的活跃线程大致总数 | ||
*/ | ||
private int activeCount; | ||
|
||
/** | ||
* 大致任务总数 | ||
*/ | ||
private long taskCount; | ||
|
||
/** | ||
* 执行超时任务数量 | ||
*/ | ||
private long runTimeoutCount; | ||
|
||
/** | ||
* 是否为DtpExecutor | ||
*/ | ||
private boolean dynamic; | ||
|
||
/** | ||
* 是否为虚拟线程执行器 | ||
*/ | ||
private boolean isVirtualExecutor; | ||
|
||
/** | ||
* 空闲时间 (ms) | ||
*/ | ||
|
@@ -81,16 +106,6 @@ public class ThreadPoolStats extends Metrics { | |
*/ | ||
private int queueRemainingCapacity; | ||
|
||
/** | ||
* 正在执行任务的活跃线程大致总数 | ||
*/ | ||
private int activeCount; | ||
|
||
/** | ||
* 大致任务总数 | ||
*/ | ||
private long taskCount; | ||
|
||
/** | ||
* 已执行完成的大致任务总数 | ||
*/ | ||
|
@@ -121,16 +136,6 @@ public class ThreadPoolStats extends Metrics { | |
*/ | ||
private String rejectHandlerName; | ||
|
||
/** | ||
* 是否DtpExecutor线程池 | ||
*/ | ||
private boolean dynamic; | ||
|
||
/** | ||
* 执行超时任务数量 | ||
*/ | ||
private long runTimeoutCount; | ||
|
||
/** | ||
* 在队列等待超时任务数量 | ||
*/ | ||
|
@@ -185,4 +190,5 @@ public class ThreadPoolStats extends Metrics { | |
* 满足99.9%的任务执行所需的最低耗时 | ||
*/ | ||
private double tp999; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,5 @@ | |
**/ | ||
@Data | ||
public class Metrics { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JMXCollector没有用到此名字