Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2012
    Posts
    45

    * too many 408 error codes in access log

    Apache access log is showing too many 408 error codes,nearly 400 per day.



    x-x-x-x - - [25/Apr/2012:22:43:06 -0600] "-" 408 0 "-" "-"


    there are around 400 of these kind of request from different ip address.

    I don't know is this the reason for spawning too many children,sometimes its nearing to 624 children,and that too with just handful of users.How can i figure out the exact cause.we are using php,and mysql(connections-800)

    enabled: tcp_tw_reuse


    syn_retries :2
    syn_ack_retires :3
    fin-time_out:30
    apache timeout:15
    keepalive on
    keepalive timout 7
    max_spare:40
    min_spare:25
    requestperchild:4000
    MAX_CLIENTS:800

  2. #2
    What you can do is try yourself the request that caused the 408 and see if the script responds as you expect. The 408 is not the real issue but perhaps has to do with the intentions of the IPs involved.

    You could send a request header to the server and then wait for 20secs before sending another header. That will cause a 408 with your current config but its a different matter with someone not playing right.

    Now if the script takes to long to complete (more than 15 secs) then there might be a problem with your application and needs to be fixed. And something else you could try is connectivity from the origin these IPs are connecting. If you can find some proxies for these areas you could test it.

  3. #3
    Join Date
    Apr 2012
    Posts
    45

    * Requesting for "-"

    Quote Originally Posted by enigma-1 View Post
    What you can do is try yourself the request that caused the 408 and see if the script responds as you expect. The 408 is not the real issue but perhaps has to do with the intentions of the IPs involved.

    You could send a request header to the server and then wait for 20secs before sending another header. That will cause a 408 with your current config but its a different matter with someone not playing right.

    Now if the script takes to long to complete (more than 15 secs) then there might be a problem with your application and needs to be fixed. And something else you could try is connectivity from the origin these IPs are connecting. If you can find some proxies for these areas you could test it.
    isnt the accesslog showing that request has been made for "-" which does not exist and thus resulted in 408??

  4. #4
    Quote Originally Posted by ananthan-nair View Post
    isnt the accesslog showing that request has been made for "-" which does not exist and thus resulted in 408??
    No if the request was for the hyphen you would see something like /- and you wouldn't get a 408. Here the request was not complete the reason for the 408.

  5. #5
    Join Date
    Apr 2012
    Posts
    45

    Red face How - came in accessslog

    Quote Originally Posted by enigma-1 View Post
    No if the request was for the hyphen you would see something like /- and you wouldn't get a 408. Here the request was not complete the reason for the 408.
    How can i figure out why that kind of request occurs.How that "-" came in accesslog.Is there a solution for it.I still cant figure out the issue with too many children,i tired all your suggestions,but still childrens are reaching 620 for 2-3 clients.But they are requesting alot.

  6. #6
    Ok can you rule out that is the application the problem? Is it one site with one application you're hosting or multiple?

    If it's one application put a maintenance page on for the test, force the apache to route any requests to a static page and see if you get the problem.

  7. #7
    Join Date
    Apr 2012
    Posts
    45

    *

    Quote Originally Posted by enigma-1 View Post
    Ok can you rule out that is the application the problem? Is it one site with one application you're hosting or multiple?

    If it's one application put a maintenance page on for the test, force the apache to route any requests to a static page and see if you get the problem.

    All the 408 requests were got,when accessed through our android application.with Web UI,it seems there is no problem.

Similar Threads

  1. Why I always got 408 error?
    By jerrychenme in forum Reseller Hosting
    Replies: 38
    Last Post: 02-02-2010, 08:45 PM
  2. Log php errors to a error log
    By hd2000 in forum Hosting Security and Technology
    Replies: 1
    Last Post: 07-13-2007, 10:40 PM
  3. Apache Error log: log files that exist
    By Elliot01 in forum Hosting Security and Technology
    Replies: 3
    Last Post: 07-04-2007, 06:00 PM
  4. /var/log/dbrecover.log error messages
    By qhasxeem in forum Dedicated Server
    Replies: 0
    Last Post: 01-21-2004, 03:27 PM
  5. tools to debug access.log and error.log
    By Bashar in forum Hosting Security and Technology
    Replies: 0
    Last Post: 08-23-2003, 01:54 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •