Skip to content

Commit

Permalink
fix: 스레드 풀 개수 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kariskan committed Aug 29, 2024
1 parent 2bbafa0 commit 7528513
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ jobs:
else
echo "No process found on port 8080"
fi
nohup java -XX:NativeMemoryTracking=summary -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/ubuntu/heapdump.hprof -jar storage-0.0.1-SNAPSHOT.jar --spring.profiles.active=local > app.log 2>&1 &
nohup java -Xmx1200m -XX:NativeMemoryTracking=summary -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/ubuntu/heapdump.hprof -jar storage-0.0.1-SNAPSHOT.jar --spring.profiles.active=local > app.log 2>&1 &
EOF
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ private void processMultipartData(InputStream inputStream, UploadContext context
fileMetadataRepository.updateUploadStatusById(context.getFileMetadata().metadataId());
} catch (AmazonS3Exception e) {
log.error("[AmazonS3Exception] 입력 예외로 완성되지 않은 S3 파일 제거 중 예외 발생. ERROR MESSAGE = {}", e.getMessage());
} catch (Exception e) {
log.error("[Exception] 예상치 못한 예외가 발생했습니다: {}, {}", e.getCause(), e.getMessage());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
public class CommonConstant {
public static final Character[] FILE_NAME_BLACK_LIST = {'\\', '/', ':', '*', '?', '"', '<', '>', '|'};
public static final int MAX_FOLDER_DEPTH = 50;
public static final int FILE_WRITER_CORE_POOL_SIZE = 20;
public static final int FILE_WRITER_MAXIMUM_POOL_SIZE = 40;
public static final int FILE_WRITER_CORE_POOL_SIZE = 15;
public static final int FILE_WRITER_MAXIMUM_POOL_SIZE = 30;
public static final int FILE_WRITER_KEEP_ALIVE_TIME = 10;
public static final int FILE_WRITER_QUEUE_SIZE = 40;
public static final int THUMBNAIL_WRITER_CORE_POOL_SIZE = 10;
Expand Down
18 changes: 9 additions & 9 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ spring:
on-profile: local
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
# hikari:
# maximum-pool-size: 20
hikari:
maximum-pool-size: 5
jpa:
hibernate:
ddl-auto: none
Expand Down Expand Up @@ -39,13 +39,13 @@ management:
export:
enabled: true

server:
tomcat:
threads:
min-spare: 10
max: 20
accept-count: 100
max-connections: 20
#server:
# tomcat:
# threads:
# min-spare: 50
# max: 20
# accept-count: 100
# max-connections: 100

share:
server-domain: localhost:8080
Expand Down

0 comments on commit 7528513

Please sign in to comment.