• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » What is Keepalive (in the Context of Apache Webserver)

By Abhishek Ghosh January 26, 2024 10:15 am Updated on January 26, 2024

What is Keepalive (in the Context of Apache Webserver)

Advertisement

Keepalive is a mechanism in data transmission with the goals of maintaining a network connection and convincing oneself of the accessibility and function of a communication partner. Keepalives are usually specific packets of a network protocol. A keep-alive signal is often sent at predefined intervals. If no response is received after a signal is sent, it is assumed that the connection is lost, or future data is routed through a different path until the connection is restored. A keep-alive signal can also be used to indicate to the Internet infrastructure that the connection should be maintained. Without a keep-alive signal, NAT-enabled intermediate routers can terminate the connection after a timeout.

Since the sole purpose is to find links that don’t work or to specify connections that should be preserved, keep-alive messages are usually short and don’t take up a lot of bandwidth. However, their exact format and usage will depend on the communication protocol. Other ways of interpreting a lack of response to a keepalive packet can be:

  • Re-establishing the network connection with an existing protocol (e.g. resuming a file download, session management for HTTP and VPN connections),
  • Reconnecting while restarting the protocol (e.g. sending e-mails via SMTP),
  • Final connection abandonment (timeout), i.e. termination of the log with an error message,
  • Deleting routing information from routing tables.

What is Keepalive in the Context of Apache Webserver
 

TCP Keepalives

 

In the TCP protocol, keepalives are optional, but if they are included, they must be disabled by default. In addition, keep-alive packets should only be sent if no data or acknowledgment packets have been received for the connection within an interval. This interval must be configurable. The default setting must not be less than two hours. The keep-alive package does not contain any data. There are three parameters related to keepalive:

Advertisement

---

  1. The hold time is the amount of time between two keep-alive transfers at rest. The TCP keep-alive interval must be configurable and is set to no less than 2 hours by default.
  2. The keep-alive interval is the duration between two consecutive keep-alive retries when no acknowledgment of the previous keep-alive transmission is received.
  3. Keepalive retry is the number of retries that must be performed before declaring that the remote end is unavailable.

If two hosts are connected over a network over TCP/IP, TCP keepalive packets can be used to determine if the connection is still valid and terminate it if necessary.

Advantages of Keepalive

  1. Reduces latency associated with HTTP transfers
  2. Reduces CPU usage while serving different files such as images, stylesheets, javascript files etc

Disadvantages of Keepalive

  • Increases memory usage

Settings for Apache

  1. Keepalive should be turned on
  2. Keepalive timeout should be set to 1 to 5 seconds
  3. Keepalive requests should be 100 or more.
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to What is Keepalive (in the Context of Apache Webserver)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • PHP Snippet to Hide AdSense Unit on WordPress 404 Page

    Here is Easy PHP Snippet to Hide AdSense Unit on WordPress 404 Page to Avoid Policy Violation and Decrease False Impression, False Low CTR.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

vpsdime

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cloud-Powered Play: How Streaming Tech is Reshaping Online GamesSeptember 3, 2025
  • How to Use Transcribed Texts for MarketingAugust 14, 2025
  • nRF7002 DK vs ESP32 – A Technical Comparison for Wireless IoT DesignJune 18, 2025
  • Principles of Non-Invasive Blood Glucose Measurement By Near Infrared (NIR)June 11, 2025
  • Continuous Non-Invasive Blood Glucose Measurements: Present Situation (May 2025)May 23, 2025
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2026 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy