CodePudding user response:
1, when your Server memory is enough, the KeepAlive=On or Off little influence On the performance of system,2, when you are on the Server of a static page (mostly in the Html, images, Css, Js), suggested that open the KeepAlive,
More than 3, when your Server for the dynamic request (because connect to the database, more access to file system), KeepAlive off, will save some memory, to save the memory is just can be a Cache file system (the vmstat command Cache in a column), reduce I/O pressure,
PS: when the KeepAlive=On KeepAliveTimeOut set actually is also a problem, set too short, can lead to the Apache frequent connection is established, to cause the Cpu pressure, set up is too long, the system will accumulate useless Http connection, consume large amounts of memory, specific set how much, can adjust constantly, because of your web site to browse and server configuration,