Results 1 to 10 of 10
  1. #1

    Apache keeps failing?

    My image-upload server service is going rather well, but I cant seem to understand why my apache keeps failing? Im told its because I have too many connections or something, But I dont really understand.
    Can anyone offer a solution or an explination?

  2. #2
    Join Date
    Apr 2002
    Location
    UK
    Posts
    429
    I think we're going to need more information about this one. Do you have log entries; 'top' displays when it's up and running etc.?

    When you say it's failing, do you mean the service is crashing or do you mean it's just failing to serve the web pages?

  3. #3
    Join Date
    Apr 2005
    Location
    Manila
    Posts
    40
    is this a dedicated server?

    ask your support guy to add another stick of RAM, see if this solve the problem. if yes then, pay for it. If not, I think you need to recompile apache - use the latest version of 1.3 branch.

    cheers!
    Prime Outsourcing | offshore solutions | manual labor | staff leasing |
    because American & European labor are expensive

  4. #4
    Join Date
    Jan 2004
    Location
    North Yorkshire, UK
    Posts
    4,163
    Probably reached its max child limit, edit this in your httpd.conf file, remember though lifting this might cause your server to run like a slug.

    For image upload hosting though i'd suggest using thttpd, lot lighter.

  5. #5
    you could try reducing the KeepAliveTimeout in apache. in many cases this can help, but i suggest you read up about this before you use it.

  6. #6
    The server spec is rather beefy, 2.8ghz p4, 2gb ram using centOS.
    Apache keeps failing, as in goes "down".

  7. #7
    Join Date
    Nov 2004
    Location
    UK
    Posts
    774
    As Dan suggested, you may want to try using thttpd instead.

  8. #8
    Thanks. But would this still be the best idea when Im using an account based image system? ALl users data will be stored via sql and using seperate user files for each person.

  9. #9
    How do i check what IP addresses are connecting to apache?
    My host said they blocked 4 IP ranges that were slowing down the server, how can i avoid this in the future?

  10. #10
    Join Date
    Nov 2004
    Location
    England
    Posts
    513
    Read /var/log/messages and/or have a look in /var/log/httpd to see what's going on, then maybe people will be able to help?

    If some IPs are slowing the server down, look into installing mod_dosevasive and mod_throttle, they're great at preventing such things.

Posting Permissions

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