Commit a6f87cbcd284114aa5a80327a0cad857d2c1f40f
1 parent
a5e5abf9
perf: 调视频流转换整线程池的最大线程数
(cherry picked from commit 4243e916)
Showing
1 changed file
with
1 additions
and
4 deletions
@@ -28,7 +28,7 @@ public class TkFLVServiceImpl implements TkFLVService { | @@ -28,7 +28,7 @@ public class TkFLVServiceImpl implements TkFLVService { | ||
28 | executorService = | 28 | executorService = |
29 | new ThreadPoolExecutor( | 29 | new ThreadPoolExecutor( |
30 | 0, | 30 | 0, |
31 | - 50, | 31 | + 2048, |
32 | 10L, | 32 | 10L, |
33 | TimeUnit.SECONDS, | 33 | TimeUnit.SECONDS, |
34 | new SynchronousQueue<Runnable>(), | 34 | new SynchronousQueue<Runnable>(), |
@@ -95,9 +95,6 @@ public class TkFLVServiceImpl implements TkFLVService { | @@ -95,9 +95,6 @@ public class TkFLVServiceImpl implements TkFLVService { | ||
95 | } | 95 | } |
96 | 96 | ||
97 | public void close(String url, String browserId) { | 97 | public void close(String url, String browserId) { |
98 | - // executorService.execute(()->{ | ||
99 | - // | ||
100 | - // }); | ||
101 | String key = md5(url + browserId); | 98 | String key = md5(url + browserId); |
102 | if (converters.containsKey(key)) { | 99 | if (converters.containsKey(key)) { |
103 | TkConverter c = converters.get(key); | 100 | TkConverter c = converters.get(key); |