Skip to content

Commit

Permalink
Merge pull request #431 from Zelusik/hotfix/#425-async-heap-space
Browse files Browse the repository at this point in the history
리뷰 생성 시 Java heap space out of memory 에러 발생
  • Loading branch information
Wo-ogie authored Jan 26, 2024
2 parents 35bd93d + 34734c2 commit aa4e1c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ WORKDIR /spring
ARG JAR_FILE=/build/libs/eatery-0.0.1-SNAPSHOT.jar
COPY ${JAR_FILE} /spring/app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-Dspring.profiles.active=prod", "-Duser.timezone=Asia/Seoul", "-Xms512m", "-Xmx1024m", "-jar", "/spring/app.jar"]
ENTRYPOINT ["java", "-Dspring.profiles.active=prod", "-Duser.timezone=Asia/Seoul", "-Xms512m", "-Xmx2048m", "-jar", "/spring/app.jar"]
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public class AsyncConfig implements AsyncConfigurer {
@Override
public Executor getAsyncExecutor() {
ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor();
threadPoolTaskExecutor.setCorePoolSize(3);
threadPoolTaskExecutor.setMaxPoolSize(10);
threadPoolTaskExecutor.setCorePoolSize(2);
threadPoolTaskExecutor.setMaxPoolSize(5);
threadPoolTaskExecutor.setQueueCapacity(300);
threadPoolTaskExecutor.setTaskDecorator(new AsyncTaskDecorator());
threadPoolTaskExecutor.setThreadNamePrefix("eatery-async-");
Expand Down

0 comments on commit aa4e1c8

Please sign in to comment.