Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Too many backend server connections
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bo Yu  
View profile  
 More options Aug 5, 10:49 pm
From: Bo Yu <flyin...@gmail.com>
Date: Wed, 5 Aug 2009 19:49:57 -0700 (PDT)
Local: Wed, Aug 5 2009 10:49 pm
Subject: Too many backend server connections
Hi All,

I'm using lighttpd 1.4.23 with mod_cache 1.8.0 for static pic cache
service. But I encountered a problem: when I started lighty online, it
can just serve normally for 2-3 minutes, then the pics can't be
accessed. I found there were too many connections established to the
backend server( more than 30,000 ), therefore, the backend server
can't handle these too many connections/requests. Is there any
solution that can help release the connections to the backend server
very quickly? Don't talk to me about the hitrate, cause it's the first
time to start lighty+modcache as the cache server that it need to
create the cache content for the first time.

followed is my configuration:

server.modules              =
("mod_redirect","mod_access","mod_status","mod_cache","mod_mem_cache","mod_ proxy","mod_compress","mod_expire","mod_accesslog")
server.max-keep-alive-requests = 4
server.max-keep-alive-idle = 4
server.max-read-idle = 30
server.max-write-idle = 180
server.event-handler = "linux-sysepoll"
server.network-backend = "linux-sendfile"
server.max-fds = 65535
server.stat-cache-engine = "fam"
cache.support-queries = "enable"
cache.dynamic-mode = "enable"
cache.bases = ("/srv/lcache")
cache.max-memory-size = 1536
cache.refresh-pattern = (
"\.(?i)(flv)$" => "0 fetchall-for-range-request flv-streaming",
"\.(?i)(js|css|xml)$" => "10080″,
"\.(?i)(htm|html|shtml)$" => "10080″,
"\.(?i)(jpg|bmp|jpeg|gif|png)$" => "10080 use-memory″,
"\.(?i)(rar|zip|wmv|avi|mp3|ape|rm|mpeg|mpg|wma|asf|rmvb|flv)$" => "0
fetchall-for-range-request",
"." => "10080 update-on-refresh"
)
cache.purge-host = "^(192\.168\.)"
cache.ignore-hostname = "enable"
proxy.server               = ( "/" =>
                               ( "localhost" =>
                                 (
                                   "host" => "192.168.1.18",
                                   "port" => 3080
                                 )
                               )
                             )
proxy.worked-with-mod-cache = "enable"

Any help is much appreciated!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shellcode  
View profile  
 More options Aug 5, 11:10 pm
From: shellcode <shellc...@gmail.com>
Date: Thu, 6 Aug 2009 11:10:35 +0800
Local: Wed, Aug 5 2009 11:10 pm
Subject: Re: Too many backend server connections

1) try to change proxy.server to

proxy.server  = ( "/" =>
        (
                ( "host" => "192.168.1.18", "port" => 3080 )
        )
)

2) disable keepalive of backend http server

3) what's the capacity of your cache server? how many memory?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Yu  
View profile  
 More options Aug 6, 2:56 am
From: Kevin Yu <flyin...@gmail.com>
Date: Thu, 6 Aug 2009 14:56:00 +0800
Subject: Re: Too many backend server connections
Hi shellcode,

Thanks for your advice. I will find another chance to try. any result
I will give feedback.
My server's total memory is 4G.

Kevin Yu
Mail: flyin...@gmail.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Yu  
View profile  
 More options Aug 6, 3:04 am
From: Kevin Yu <flyin...@gmail.com>
Date: Thu, 6 Aug 2009 15:04:18 +0800
Local: Thurs, Aug 6 2009 3:04 am
Subject: Re: Too many backend server connections
BTW: isn't the connection number increasing if I disable keepalive of
backend http server?

Kevin Yu
Mail: flyin...@gmail.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shellcode  
View profile  
 More options Aug 6, 3:17 am
From: shellcode <shellc...@gmail.com>
Date: Thu, 6 Aug 2009 15:17:50 +0800
Local: Thurs, Aug 6 2009 3:17 am
Subject: Re: Too many backend server connections

it is better to provide the http response header using 'curl -v
http://host/uri'

there maybe some http header to prevent modcache from cache response


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Yu  
View profile  
 More options Aug 6, 4:18 am
From: Kevin Yu <flyin...@gmail.com>
Date: Thu, 6 Aug 2009 16:18:26 +0800
Local: Thurs, Aug 6 2009 4:18 am
Subject: Re: Too many backend server connections
here are the response headers:

< HTTP/1.1 200 OK
< Content-Type: image/jpeg
< Last-Modified: Thu, 09 Jul 2009 04:58:51 GMT
< X-Powered-By: ASP.NET
< Expires: Thu, 13 Aug 2009 08:16:10 GMT
< Cache-Control: max-age=604800
< X-Cache: HIT
< Content-Length: 2298
< Date: Thu, 06 Aug 2009 08:16:10 GMT
< Server: lighttpd

Kevin Yu
Mail: flyin...@gmail.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google