diff --git a/src/main/java/com/woowacamp/storage/domain/file/service/FileWriterThreadPool.java b/src/main/java/com/woowacamp/storage/domain/file/service/FileWriterThreadPool.java index 7bcd800..6e4b543 100644 --- a/src/main/java/com/woowacamp/storage/domain/file/service/FileWriterThreadPool.java +++ b/src/main/java/com/woowacamp/storage/domain/file/service/FileWriterThreadPool.java @@ -75,7 +75,9 @@ public void produce(InitiateMultipartUploadResult initResponse, String currentFi Thread.currentThread().getId(), partNumber); log.info("current thread count: {}", ((ThreadPoolExecutor)executorService).getActiveCount()); log.info("current queue size: {}", workQueue.size()); + long start = System.currentTimeMillis(); uploadPart(initResponse.getUploadId(), currentFileName, partNumber, contentBuffer, bufferLength, partETags); + log.info("uploadPart execute time: {}", System.currentTimeMillis() - start); AtomicInteger currentConsumeCount = currentPartCountMap.get(currentFileName); if (currentConsumeCount != null) { currentConsumeCount.incrementAndGet();