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

  • Home
  • SEARCH
  • 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

I am in the process of migrating an existing webserver running IIS 6 to
I have been running a webserver for some years now but recently it started
i got an webserver running and old version of gambio (xt:commerce fork). The error_log
Whenever I use the following code, the webserver (running IIS 7) refuses to send
i m running a website from a global webserver and a wants to store
I'm currently running a Django project on my school's webserver with FCGI. I did
We have an application running on a loadbalanced environment, let say webserver A and
I am using JBoss 6.0. I am running a simple webserver using the jboss.resteasy
I'm trying to upgrade to Hibernate 3.5.3-FINAL. When running my unit tests, I now
I have a web application, and it's running on a free, slow webserver. I'm

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.