Skip to content

Commit

Permalink
将TProfiler启动的线程全部设置成守护线程,解决tomcat环境下shutdown关闭不了应用问题
Browse files Browse the repository at this point in the history
  • Loading branch information
丁宇 committed Jun 4, 2012
1 parent 57b18c5 commit 1db58f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/taobao/profile/Manager.java
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,11 @@ public void startupThread() {

dumpThread = new DataDumpThread(profConfig);
dumpThread.setName("TProfiler-DataDump");
dumpThread.setDaemon(false);
dumpThread.setDaemon(true);

samplerThread = new SamplerThread(profConfig);
samplerThread.setName("TProfiler-Sampler");
samplerThread.setDaemon(false);
samplerThread.setDaemon(true);

controlThread.start();
socketThread.start();
Expand Down

0 comments on commit 1db58f6

Please sign in to comment.