The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
19 views

linux - do the keepalive timer reset itself after data transfer by apps

My app uses Linux's default setup ( 7200,75, 9 ) keeplive config. The question I have is when does this feature kicks in? 1. Once the connection establishes - after 2 hours the first keep alive ...
0
votes
1answer
53 views

Is tcp_keepalive application dependant on Linux?

According to http://tldp.org/HOWTO/TCP-Keepalive-HOWTO/index.html , the kernel keepalive function occurs at the OS level, and doesn't require an application to explicitly call it. However I also read ...
0
votes
0answers
37 views

SSL with keep-alive times out in polling loop and select after the first reqest/response on a socket connection

Are keep-alives supposed to work with SSL? Multiple webpages indicate that it should. However, running either ApacheBench (ab), with the -k keep-alive option or httperf, which hardwires the use of ...
0
votes
0answers
60 views

keepalived detects when service falls but does not switch to backup service then

I have successfully set up keepalived on my servers, and the backup becomes the master when the master's interface falls. I want to go further and be able to switch from a master's service to a ...
1
vote
1answer
172 views

HTTP Keep-Alive puzzle with EC2 Linux, Nginx and Chrome

Please, help to solve HTTP keep-alive problem. Basically, I have amazon-ami linux (v2012.09) on EC2 running nginx (v1.2.6). Chrome (v25.0.1364.99) accesses HTTP page normally, then after about 30 ...
0
votes
0answers
121 views

Incomplete page by nginx -> fcgi -> php-fpm with keepalive

I have problem somewhere between nginx and php-fpm. When I use keep-alive connection for fastgcgi php-fpm, there is often problem with loading page. Page not completely loaded. I tried to debug using ...
0
votes
2answers
163 views

In Nginx can I set Keep-Alive dynamically depending on ssl connection?

I would like to avoid having to repeat all the virtualhost server {} blocks in nginx just to have custom ssl settings that vary slightly from plain http requests. Most ssl directives can be placed ...
0
votes
2answers
90 views

Spawning HTTPD processes

Can any confirm how Apache spawns new children ? As in if I connect to a webserver (HTTP 1.0 / no keep alive) and issue a HTTP /GET I will be spawned a new HTTPD child. If then issue another HTTP ...
1
vote
1answer
79 views

Proxy to keep connection to API alive

On one server I have some 30 PHP sites running under Apache. All those sites use the same (HTTP) API to fetch some data. The API is hosted elsewhere (under my control) The API uses Nginx with ...
0
votes
1answer
760 views

NGINX : Keep alive requests to static content ok - Keep alive requests to php-fpm requests hang until keepalive_timeout is reached

FYI, the initial question I have posted is here, no need to read it as I was way off initially: NGINX + PHP-FPM - Strange issue when trying to display images via php-gd / readfile - Connection wont ...
0
votes
1answer
316 views

Nginx keepalive_requests - What value to use for unlimited?

We are using an nginx backend behind a nginx proxy. We use upstream keepalives. They work quite nicely. We were wondering, what value would we set keepalive_requests on the backend to set the ...
0
votes
1answer
447 views

mod_rewrite+proxy closes connections to backend (keepalive)

We have a fairly typical setup: client <-> apache2 (2.2.22) <-> backend (*). Initially we were using mod_rewrite with the [P] flag in the simplest form: <VirtualHost *:80> ...
1
vote
0answers
629 views

TCP Keepalive and firewall killing idle sessions

In a customer site, the network team added a firewall between the client and the server. This is causing idle connections to get disconnected after about 40 minutes of idle time. The network people ...
2
votes
1answer
303 views

Does apaches keep alive time-out reset every time a request is received?

The title of this question is pretty self explanatory, but: Does apaches keep alive timeout reset (as in, start again) every time a request is received? So for example, assume we have a 60 second ...
0
votes
5answers
412 views

keep ssh connection alive and persistant while switching network interface connections

Scenario: At my desk with laptop plugged in to ethernet and connected to remote server over SSH Want to move to other side of office with laptop and change to WiFi without interrupting SSH ...
1
vote
0answers
296 views

Is it possible to use local web.config to enable keep-alive?

Is there any way to enable keep-alive on IIS 7 in a hosted scenario? I attempted to use the answer to this SO question Where (or how) is the keep-alive setting in web.config?. I added the following ...
3
votes
7answers
994 views

How can I avoid heroku stopping my dyno?

I build MVP's for clients regularly. Often I deploy on Heroku so they can see if the product works and demo it to prospects and investors. Then I have an application deployed on heroku, and it works ...
0
votes
2answers
422 views

keepAlive in Apache causing apache to reach its max_clients

I have an Apache 2.2 running on ubuntu 11.4 with 16Gb RAM, for image hosting from mobile phones through GPRS,since connection is slow i have enabled keepalive and set time out to 6,**based on average ...
1
vote
1answer
365 views

netstat reports ESTABLISHED connection even after I've pulled the cord

I'm experimenting with lost connections between my java application and my mysql server. The application and the server are on two different machines and I'm pulling the physical cord between the ...
0
votes
1answer
156 views

Keep alive and Max_client issue in Apache

I have installed Apache/2.2.17 on ubuntu 11.4(64bit) ,with 48 GB of RAM, and set KeepAlive ON MaxKeepAliveRequests 100 keepalivetimeout to 6 (since lot of dynamic images) StartServers 100 ...
1
vote
1answer
787 views

Is it better to disable Keep-Alive in IIS 7 for high traffic web applications?

The advice below applies to Apache, but it seems generic enough to apply regardless of system. My architecture is 3 web servers behind a load balancer. My IIS servers currently have keep-alive enabled ...
0
votes
1answer
269 views

Keep-alives are not working for websites with NodeBalancer in Linode

I have following configuration in my linode slice NB <----->web1+web2+web3 Here's the configuration screenshot from linode: We need NB in http mode since we need few things that plain tcp mode ...
5
votes
2answers
2k views

What is the difference between keepalive and heartbeat?

I want to structure a high available server cluster . Now I want to know detail about keepalive and heartbeat, what is the difference between both, and How to choice one.
0
votes
0answers
767 views

Disable keepalive for proxies

Can I disable keepalive if my site is being accessed through a proxy? Site is served by nginx on linux, some dynamic parts are proxied to local Apache. If not possible for all proxies in general, ...
1
vote
0answers
182 views

A tool to measure overhead of establishing TCP connections

I need a tool which would while doing port forwarding measure how much time was spent establishing TCP connections vs total time passed. Charles debugging proxy has the port forwarding feature and ...
1
vote
2answers
183 views

Is It Better to set KeepAlive to 1 second rather than turning it off all together?

I've heard setting keepalive timeout at too high a number will diminish its value. So, to be on the safe side, and still somewhat benefit from it, can I set it to 1 second ? Or will setting it to 1 ...
0
votes
2answers
80 views

Keeping connections open

I'm new to cURL and I'm trying to do something reasonably simple. I want to login to a server and download data at regular intervals over a few hours. First, I login to the server - which I've ...
1
vote
3answers
64 views

Can I get a router to call a url on a timer?

I am responsible for a small network spread over several buildings. We have accommodation areas that have a router providing access to the internet to guests. I would love to be able to get the ...
0
votes
1answer
2k views

How to find the connection time-out value in linux?

I am setting up a nginx webserver with php-fpm and (d)dos deflate to ban attacks. Now currently there is no traffic to my server at all, as i'm testing things. With this command i can see who is ...
2
votes
1answer
400 views

Keeping a Python Script alive after leaving SSH Client?

I have a while loop in my Python Script and its independent script so I can't run it as a daemon. Also I have tryed using nohup, but I'm having this error: root@ubuntu:~/Desktop/starthere-group-ok# ...
1
vote
1answer
1k views

Keep-alive options not working on Linux for an outgoing connection

Does anyone know if Linux supports keep-alive socket options on an outgoing connection? I made an outgoing connection with keep-alive options but netstat --timers shows off (I'm assuming timers are ...
3
votes
1answer
5k views

How to adjust nginx keepalive_timeout?

I am using nginx along with php-fpm to server a busy mysql-based site. Currently I am using keepalive_timeout = 5, however I have no clear idea about how to optimally adjust it. So appreciate your ...
4
votes
2answers
771 views

Impact of Connection Close vs Keep-alive

I'm configuring our servers, and due to the nature of our load balancer, we can't send connection keep-alive headers. I'm trying to determine the impact of sending these headers to both the end-user ...
4
votes
2answers
2k views

keep-alive or not keep-alive

My company is launching a new website with potentially large waves of visitors in very short windows (estimate is around 14k visitors in a 2 minutes window). So, I'm reviewing our configuration, and ...
1
vote
1answer
439 views

How to test keep-alive is working on client end

What are some different ways/tools to verify that keep-alive is working on the server from the client's end?
0
votes
1answer
343 views

Apache Timeout/KeepAlive

I run several apache web servers on CentOS 5.x and they all seem to have the same problem. It is typically fast but at times the browser will just sit there waiting forever and it never fails or goes ...
2
votes
1answer
415 views

HP switch 'mirror port' makes a Cisco switch port err-disabled due to keepalive loop-back

I'm trying to connect an HP ProCurve 5304xl switch to a Cisco 2950. The HP port I'm connecting to is described as a 'mirror port', which appears to be like a SPAN port except that it also allows ...
1
vote
1answer
631 views

Keep-Alive and Timeout Behaviours between different browsers on Windows

Short Version Why does chrome send out keep-alive's while IE and FF don't? Long Version Initially, I thought this was a server-side issue. I've got an apache server that's a frontend proxy for a ...
0
votes
1answer
1k views

Is this normal? Multiple httpd process

I'm testing a new Server. This isnt really a peak time for my server (2pm), but still its running a bit slow, I was checking the ESTABLISHED connections using the following command: # netstat -ntu | ...
0
votes
1answer
650 views

how do i turn on the Keep Alive and HTTP Compression in Apache server 2.2( centos)

how do I turn on the KeepAlive and HTTP Compression in Apache server 2.2(centos)
1
vote
2answers
542 views

TIME_WAIT Info (reduce)

I have a ajax application that makes a request every 3 seconds, the requested page sets the header to (header("Connection: Keep-Alive, close");) then performs a database query and returns the latest ...
0
votes
1answer
123 views

Load Balanced Apache keeps browser/user on same server until restart

So we have a load balancer setup to pass off our http connections to an array of six servers .. I have disabled KeepAlive and for some reason, only after I restart apache, does my additional ...
1
vote
1answer
5k views

How to enable `Keep Alive` in a shared hosting environment?

I have only acces to the php.ini file and my good old .htaccess file. Where do I enable the Keep Alive setting? ( Im on a plesk 8.2 )
1
vote
3answers
195 views

Keeping rackspace vserver alive

It appears to me that rackspace somehow freezes cloud VMs after some idle time. This means the first page request to a php page takes much longer to respond than the subsequent requests. I am ...
2
votes
1answer
331 views

How do I confirm whether a particular Apache configuration directive is set?

How do I dynamically check/list a particular Apache configuration directive? I know that this can be checked manually from httpd.conf file, but is there any other way this can be confirmed/found from ...
4
votes
3answers
11k views

How do I make cURL use keepalive from the command line?

I'm trying to verify that HTTP persistent connections are being used during communication with a Tomcat webserver I've got running. Currently, I can retrieve a resource on my server from a browser ...
2
votes
4answers
2k views

What alternative is there to Nginx that supports http keep-alive between backends?

I recently asked a question about how to keep a backend connection persistent using Nginx, but found out it wasn't possible anyway, It is an HTTP/1.0 proxy without the ability for keep-alive ...
2
votes
1answer
538 views

Pros and Cons of Keep-Alive from Web Server Side

Keep-Alive connection feature in HTTP protocol is meant to reduce TCP connection hits to web server. It should be able to improve web server performance. However, I found that some web servers ...
1
vote
2answers
106 views

Funnelling http traffic

I have a situation where a large batch of servers (X), on demand, need to request data from a smaller set of web servers (Y). The worst case scenario is if all servers in X decide to fetch different ...
0
votes
1answer
2k views

Keep-Alive header not sent from Tomcat 5.5 http connector?

We're currently using a hardware load balancer, which then goes to Apache and that then goes to Tomcat 5.5 via the AJP connector. We've decided to dump apache for various reasons - In our current ...

1 2