Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3936716
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:58:54+00:00 2026-05-19T23:58:54+00:00

My webserver is running out of memory evry now and then. As optimization process,

  • 0

My webserver is running out of memory evry now and then. As optimization process, I enabled mod_deflate to compress content. Now I am not sure if it further aggravates the issues with memory. Does mod_deflate increase memory consumption of apache? I don’t want further crashes due to memory.

Below is the cmd I am using to get the memory consumption of each child of apache,


MEMUSE=top -b -n 1 | grep [h]ttpd | awk '{ print $6 }' | grep m | sed 's/m//' |awk '{ x+=$1 ; print x }' | tail -1 ; CHILDCOUNT=ps aux|grep [h]ttpd | wc -l ; echo "scale=2; ($MEMUSE)/$CHILDCOUNT" | bc

I actually want to know if the tradeoff is worth?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T23:58:55+00:00Added an answer on May 19, 2026 at 11:58 pm

    One ongoing compression consumes roughly 300 kilobytes of memory for zlib + probably requires the server to hold both the uncompressed and compressed versions briefly in memory. The resources consumed by zlib are freed after compression. Whether that causes you a problem or not depends on your memory amount and the rate of hits to resources that require compression. For most servers however mod_deflate should not cause major issues. The speedup from mod_deflate with html files (and text files generally) is noticeable in many cases so it is usually worth the extra resource requirements.

    If you combine the mod_deflate especially with mod_cache* in correct order (the modules are being run in the loading order) you might be able to lower the memory consumption slightly because compression wouldn’t have to be done every single hit on resource. This however requires some testing to accomplish.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We've got a webserver running IIS. We'd like to run maybe a shared blog
I have a webserver running on my Windows XP computer. I have set the
I got a webserver with a running application. There's a webpage with a form:
I'm about to deal with managing and running my first Internet connected Apache webserver
Okay, so I'm running a small test webserver on my private network. I've got
I have a Delphi Web Server setup and running, publishing Web Services, and I
We've been running eAccelerator on each of 3 webservers and are looking to move
I've installed .NET Framework 3.5 SP1 on web server (Server 2008 Enterprise), so running
Greetings! I'd like to build an apache web server, running on debian lenny. It
If webserver can send gzip response, why can't browser sent gzip request?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.