/home/jeus/jeus8/domains/jeus_domain/config/domain.xml

 

 

 

<max-thread-pool-size>50</max-thread-pool-size>
<min-thread-pool-size>1</min-thread-pool-size>

 

최대 커넥션 수:50개

최소 커넥션 수:50개

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request procesption: Failed to parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. /tmp/tomcat.6245698fb13fe05_00000062.tmp (그런 파일이나 디렉터리가 없습니다)] with root cause


java.io.FileNotFoundException: /tmp/tomcat.6245698832114394963.8080/work/Tomcat/localhost/ROOT/upload_8103f650_6e95_4e3f_9382_e0a8fb13fe05_00000062.tmp (그런 파일이나 디렉터리가 없습니다)

 

해결책

1. 재부팅

2. 여기 댓글을 보면 될 듯 하다 

https://github.com/spring-projects/spring-boot/issues/5009#issuecomment-323646628

 

 

 

댓글 내용

Resurrecting a closed issue, but for anyone who might find it useful, I've used the following with great success (spring boot / elastic beanstalk).

It will exclude the /tmp/tomcat* directories for auto-cleanup.

 

# Prevent the tmpwatch cron job from deleting tomcat tmp files as this causes "Internal Server Errors"
# This script overwrites the existing file (which is backed up in the same directory as tmpwatch.bak)
# 
# Place this in the root of your project under .ebextensions/tmpwatch_cron.config.
# 
# If using elastic beanstalk and spring boot:
# 1) add this to your .ebextensions/ folder with the provided name
# 2) ensure the .ebextensions folder is added as part of the zip that gets uploaded to elastic beanstalk 
#    (hint: maven-assembly-plugin to bundle as zip)
#
# see: https://github.com/spring-projects/spring-boot/issues/5009
files:
  "/etc/cron.daily/tmpwatch" :
    mode: "000755"
    owner: root
    group: root
    content: |
      #! /bin/sh
      flags=-umc
      /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
        -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \
        -X '/tmp/hsperfdata_*' -X '/tmp/tomcat*' 10d /tmp
      /usr/sbin/tmpwatch "$flags" 30d /var/tmp
      for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
        if [ -d "$d" ]; then
          /usr/sbin/tmpwatch "$flags" -f 30d "$d"
        fi
      done

commands:
  01_tmpwatch_command:
    command: "touch /tmp/$(date '+%F.%T.%N').tmpwatch_cmd_01"

 

 

 

 

 

출처: https://adunhansa.tistory.com/209 [취미개발 블로그와 마음수양:티스토리]

'Server' 카테고리의 다른 글

[JEUS]Connection Pool 설정  (0) 2024.09.02
IP 알아내기, IP 찾기(ping)  (0) 2024.05.02
war파일 압축하기, war파일 압축 풀기  (0) 2024.04.23
AJP  (0) 2023.10.31

ping [사이트 이름]

ex) ping www.naver.com

 

1. war파일 압축하기

 

- 윈도우에서 cmd창을 엽니다

- war 파일을 만들고 싶은 폴더로 이동합니다.

   ex) cd C:\work

- jar cvf [압축할 파일명].war [압축할 대상]

   ex) jar cvf example.war examFolder

- 압축 완료 시 C:\work에 example.war(압축파일)이 생성됩니다.

 

 

2. war파일 압축 풀기

 

- 파일이 있는 경로로 갑니다.

- jar xvf [파일이름].war 로 압축 풀립니다.

 

 

정리

 

- 압축하기

jar cvf [압축할 파일명].war [압축할 대상]

 

- 압축 풀기

jar xvf [파일이름].war

 

 

-f : 아카이브 파일 명 지정
-v : 처리 과정을 화면에 출력
-x : tar 아카이브에서 파일 추출 (파일 해제시 사용)
-d : tar 아카이브와 파일 시스템 간 차이점 검색
-t : 아카이브 파일 안에 있는 파일 목록을 출력
-r : 아카이브의 마지막에 파일들 추가

AJP
AJP는 웹서버(Apache)에서 요청되는 것을 WAS에서 들어오는 요청을 위임하는 프로토콜 입니다.

웹 WAS를 구축하는 사람들은 AJP를 통해 웹서버로부터의 오는 요청들을 로드 밸런스 역할로 이용합니다.



예를 들어 TOMCAT SERVER.XML에서 AJP를 사용해 각 PORT에 맞는것을 요청해 어떤 PORT로 들어오면 이 WAS를 탈 수 있게 해줍니다.


https://gaebaldiary.tistory.com/33

포트 상태 확인


1. 열려있는 모든 포트 표시
$ netstat -nap

-n: host명으로 표시 안함
-a: 모든소켓 표시
-p: 프로세스ID와 프로그램명 표시


2. LISTEN 포트 표시
$ netstat -nap | grep LISTEN


3. 특정 포트 상태 확인
$ netstat -nap | grep 포트번호


출처: https://meyouus.tistory.com/m/135

'Server > Linux' 카테고리의 다른 글

리눅스 내용 찾기 명령어  (0) 2023.09.12
내용으로 파일 찾기 명령어  (0) 2023.07.25
리눅스 파일 찾기 명령어  (0) 2023.07.24

tail -f  "파일명"|grep "찾을문자"

ex) tail -f "./log/server.log"|grep "error"
->실시간 로그에서(로그파일은 현재디렉토리 하위 폴더인 log폴더에 있음) error라는 문자를 포함한 로그를 보여주기.

'Server > Linux' 카테고리의 다른 글

리눅스 포트 상태 확인  (0) 2023.09.21
내용으로 파일 찾기 명령어  (0) 2023.07.25
리눅스 파일 찾기 명령어  (0) 2023.07.24

grep "ajax" ./*/*.jsp | more

ajax문자가 내용에 포함된
하위의하위폴더에서 확장자가jsp인 파일을 찾아라

'Server > Linux' 카테고리의 다른 글

리눅스 포트 상태 확인  (0) 2023.09.21
리눅스 내용 찾기 명령어  (0) 2023.09.12
리눅스 파일 찾기 명령어  (0) 2023.07.24

+ Recent posts