dddyszy commented on a change in pull request #4936:
URL:
https://github.com/apache/incubator-dolphinscheduler/pull/4936#discussion_r589956656
##########
File path:
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/ProcessUtils.java
##########
@@ -59,7 +59,7 @@
/**
* Expression of PID recognition in Windows scene
*/
- private static final Pattern WINDOWSATTERN = Pattern.compile("(\\d+)");
+ private static final Pattern WINDOWSATTERN =
Pattern.compile("\\((\\d+)\\)");
Review comment:

test result is like this,not contains "()".and if the threads should be
excluded, "\w+\\\\((\d+)\\\\)" take effect,just like this

if you think the second one make sense,i'll fix it
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]