Commit 02a43e98 by WangJinfeng

update RTDmpFetch poolSize = 50

parent 4589cb76
...@@ -11,7 +11,7 @@ if [[ ! -d "/home/hadoop/wangjf/RTDmp/data" ]]; then ...@@ -11,7 +11,7 @@ if [[ ! -d "/home/hadoop/wangjf/RTDmp/data" ]]; then
mkdir -p /home/hadoop/wangjf/RTDmp/data mkdir -p /home/hadoop/wangjf/RTDmp/data
fi fi
java -cp ../${JAR} mobvista.dmp.datasource.rtdmp.RTDmpFetch "${start_time}" "${end_time}" java -Xmx4096m -cp ../${JAR} mobvista.dmp.datasource.rtdmp.RTDmpFetch "${start_time}" "${end_time}"
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
exit 255 exit 255
......
...@@ -87,9 +87,9 @@ public class RTDmpFetch { ...@@ -87,9 +87,9 @@ public class RTDmpFetch {
ThreadFactory threadFactory = new ThreadFactoryBuilder() ThreadFactory threadFactory = new ThreadFactoryBuilder()
.setNameFormat("RTDmpFetch-%d").build(); .setNameFormat("RTDmpFetch-%d").build();
ExecutorService pool = new ThreadPoolExecutor(50, 80, ExecutorService pool = new ThreadPoolExecutor(40, 60,
120L, TimeUnit.MILLISECONDS, 120L, TimeUnit.MILLISECONDS,
new LinkedBlockingQueue<>(64), threadFactory, new ThreadPoolExecutor.AbortPolicy()); new LinkedBlockingQueue<>(128), threadFactory, new ThreadPoolExecutor.AbortPolicy());
for (int i = 0; i < jsonArray.size(); i++) { for (int i = 0; i < jsonArray.size(); i++) {
int finalI = i; int finalI = i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment