메뉴 건너뛰기

조회 수 8645 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

웹로직과 아파치 혹은 OHS 연동 후 페이지가 정상적으로 보이나 특정 작업을 하는 페이지는 400에러가 발생

웹로직 아파치 연동시 400에러 발생

아파치에서 POST 시 400에러 발생 혹은

아파치 웹로직 연동 POST 400에러 등 여러가지 방법으로 말할 수 있겠다


400에러의 세부내용은 dumpio를 통해서 찍어보면

Failure of Web Server bridge: Internal processing error 가 선명하게 찍힌다




원인

위와 같은 증상을 호소하는 사람들의 공통점은 대량의 내용을 POST로 웹로직에 전달하였다

JSON으로 대량의 데이터를 보내거나 hwpml 등 여러상황에서 발생 했다

단서를 얻은것은 JSON으로 소량의 데이터 전송시 성공하나 대량으로 전송시 400에러가 발생함..


해결법

/tmp/_wl_proxy 폴더의 퍼미션을 확인하자 감이 오는가??

딩동댕


 

Location of POST Data Files

When the FileCaching parameter is set to ON, and the size of the POST data in a request is greater than 2048 bytes, the POST data is first read into a temporary file on disk and then forwarded to the WebLogic Server in chunks of 8192 bytes. This preserves the POST data during failover.

The temporary POST file is located under /tmp/_wl_proxy for UNIX. For Windows it is located as follows (if WLTempDir is not specified):

  1. Environment variable TMP

  2. Environment variable TEMP

  3. C:\Temp

/tmp/_wl_proxy is a fixed directory and is owned by the HTTP Server user. When there are multiple HTTP Servers installed by different users, some HTTP Servers might not be able to write to this directory. This condition results in an error.

To correct this condition, use the WLTempDir parameter to specify a different location for the _wl_proxy directory for POST data files.

https://docs.oracle.com/cd/E21764_01/web.1111/e16435/plugin_params.htm#PLGWL480


post가 2048 bytes가 넘으면 temp 공간에 두고 보내는데 왜? 혹시 모를 failover에 대비하게 위해서 

해당경로 _wl_proxy의 경로가 아파치 혹은 OHS유저가 사용할 수 없는 권한 또는 오너쉽이라면 POST 사이즈가 클때 400 에러가 발생한다

그리고 두개 이상의 웹제품군이 설치되어있는 서버에는 WLTempDir 파라메터를 이용하여 경로를 지정해주면 오류가 발생하지 않을것 같다


WLTempDir /location  <<-- 이렇게


내 생각은 MTU 사이즈가 보통 약 1400이니 한패킷에 다 담기지 않는 데이터를 web에서 처리를 할때 _wl_proxy를 사용하여 조립하고나서 웹로직에 전달 하는 거라고 판단 했으나 오라클 공식 문서를 보니 아니였다... 비슷했으니 뭐;;;


중요한건 데이터가 크면 디스크에 두고 웹로직으로 전송한다


혹 비슷한 오류가 발생하면 위의 항목을 확인하도록 하자


  1. No Image

    mod_rewrite 예제

    Date2016.12.22 Views7145
    Read More
  2. No Image

    netstat 사용법

    Date2016.12.22 Views8768
    Read More
  3. No Image

    APACHE, OHS 400 웹로직 연동후 특정 작업에 400 error

    Date2016.12.30 Views8645
    Read More
  4. No Image

    apachec rewrite 사용하기 // www 강제 사용 // HTTP to HTTPS // 특정경로만 HTTP

    Date2016.12.30 Views7081
    Read More
  5. No Image

    crontab 설정 방법

    Date2017.02.02 Views7215
    Read More
  6. crontab 을 이용한 PHP 스케줄링 작업

    Date2017.02.02 Views8500
    Read More
  7. No Image

    아파치 로그(Apache Log) 관리법

    Date2017.02.02 Views7871
    Read More
  8. 아파치 디렉토리 보이는 것 막기

    Date2017.02.02 Views8071
    Read More
  9. No Image

    솔라리스 10 (Telnet/FTP/SSH) 설정

    Date2017.02.03 Views7994
    Read More
  10. No Image

    SSH / FTP 등 기본 접속환경 설정(리눅스 / 솔라리스)

    Date2017.02.03 Views7827
    Read More
  11. No Image

    TOMCAT/사이트 여러개 운영

    Date2017.03.09 Views8444
    Read More
  12. [CentOS 6.5] Tomcat 설치 및 구동

    Date2017.03.11 Views9483
    Read More
  13. [CentOS 6.5] JDK (JAVA) 설치

    Date2017.03.11 Views8690
    Read More
  14. [CentOS 6.5] SSH,TELNET, FTP 설치 및 운용

    Date2017.03.11 Views8558
    Read More
  15. [CentOS 6.5] Virtual Box를 이용한 CentOS 6.5 설치

    Date2017.03.11 Views6600
    Read More
  16. tomcat - server.xml 설정

    Date2017.03.11 Views67349
    Read More
  17. No Image

    Tomcat 6에 Datasource 설정하기

    Date2017.03.11 Views7624
    Read More
  18. No Image

    DHCP IP 자동 할당

    Date2017.03.11 Views7964
    Read More
  19. MySQL Linux Port 방화벽 설정(3306)

    Date2017.03.11 Views9468
    Read More
  20. No Image

    솔라리스 - 간단 vi 명령어

    Date2017.04.12 Views7904
    Read More
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 Next
/ 12

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved