4 Replies Latest reply on Jun 15, 2010 1:35 PM by 779386

    Apache - mod_oc4j in 10.1.3 AS error connections

    499866
      We are experiencing a lot of

      [Thu Apr 17 12:33:23 2008] [warn] [client xxxxxx] oc4j_socket_recvfull timed out
      [Thu Apr 17 12:33:23 2008] [warn] [client xxxxxx] oc4j_socket_recvfull timed out
      [Thu Apr 17 12:33:23 2008] [error] [client xxxxxx] [ecid: 1208428101:yyyyyy:22954:0:9,0] mod_oc4j: request to OC4J yyyyyy:12501 failed: recv failed (errno=4)

      in the apache's error_log

      We have installed AS 10.1.3 in cluster with a db 10 oracle in backend. All this working with
      webservices and pl/sql's.

      A request is received in the front end apache's AS10.1.3, this configured with the oc4j with the parameters

      Oc4jSelectMethod metric:local

      The weird thing here is that this errors appears suddenly without any increase of requests
      and this comes with an increase of queue and clients of the apache, all frozen.


      ANY ideas?
        • 1. Re: Apache - mod_oc4j in 10.1.3 AS error connections
          448132
          Looks like you're running out of availlable ports or your OC4J is having problems with handling the number of requests (or something close to that). Did you try to raise apache's loglevel and see if you get more clues?
          • 2. Re: Apache - mod_oc4j in 10.1.3 AS error connections
            499866
            Hi.

            Thanks in advance.
            I don't know any value for available ports in the oc4j configuration. I have the MaxClients of apache and the pool of the datasource, but not in OC4J. ( except the thread pool, and I have no limit here )
            I have an strace of the apache's child when errors appear :

            write(10, "[Thu Apr 17 12:27:55 2008] [warn] [client xxxxxxx] oc4j_socket_recvfull timed out\n", 88) = 88
            close(32) = 0
            sigreturn() = ? (mask now [])
            close(33) = 0
            time(NULL) = 1208428075
            write(10, "[Thu Apr 17 12:27:55 2008] [error] [client xxxxxxxx] [ecid: 1208427773:yyyyyyy:25365:0:1,0] mod_oc4j: request to OC4J yyyyyy:12501 failed: Connect failed\n", 171) = 171
            fcntl64(12, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0
            fcntl64(12, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
            time(NULL) = 1208428075
            write(23, xxxxx - - [17/Apr/2008:12:27:55 +0200] \"POST /NNNNNNNNNN HTTP/1.1\" 500 0\n", 142) = 142
            gettimeofday({1208428075, 56835}, NULL) = 0
            gettimeofday({1208428075, 56887}, NULL) = 0
            times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 487874322
            gettimeofday({1208428075, 57042}, NULL) = 0
            gettimeofday({1208428075, 57096}, NULL) = 0
            open("/aplicaciones/oraclews3/Apache/Apache/logs/dms_metrics_3888.lock", O_WRONLY|O_CREAT, 026777767750) = 32
            fcntl64(32, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
            fcntl64(32, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
            close(32) = 0
            close(-1) = -1 EBADF (Bad file descriptor)
            gettimeofday({1208428075, 57571}, NULL) = 0
            rt_sigaction(SIGUSR1, {0x80682f2, [], SA_RESTORER|SA_INTERRUPT, 0xb24918}, {SIG_IGN}, 8) = 0
            fcntl64(29, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = ? ERESTARTSYS (To be restarted)
            --- SIGUSR1 (User defined signal 1) @ 0 (0) ---
            rt_sigaction(SIGHUP, {SIG_IGN}, {0x8068342, [], SA_RESTORER|SA_INTERRUPT, 0xb24918}, 8) = 0
            rt_sigaction(SIGUSR1, {SIG_IGN}, {0x80682f2, [], SA_RESTORER|SA_INTERRUPT, 0xb24918}, 8) = 0
            futex(0x82ec3b4, FUTEX_WAKE, 1) = 0
            ) = 1
            futex(0x82ec3b0, FUTEX_WAIT, 2, NULLfutex(0x82ec3b0, FUTEX_WAKE, 1) = -1 EAGAIN (Resource temporarily unavailable)
            • 3. Re: Apache - mod_oc4j in 10.1.3 AS error connections
              606735
              I am getting the same issue. Did you fix the problem and if so, what did you do? Thanks