Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, How to reduce virtual memory on apache process? Look at picture. Can we set any amount of memory? Or it will set automatic by each application? OS: Suse 12 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2012
    Posts
    24

    Reduce Virtual Memory


    Hi,

    How to reduce virtual memory on apache process? Look at picture. Can we set any amount of memory? Or it will set automatic by each application?

    OS: Suse 12
    Webserver: Apache 2.2 PHP5

    Thanks.
    Attached Images Attached Images

  2. #2
    Linux Newbie nplusplus's Avatar
    Join Date
    Apr 2010
    Location
    Charlotte, NC, USA
    Posts
    106
    Quote Originally Posted by zabidin5417 View Post
    Hi,

    How to reduce virtual memory on apache process? Look at picture. Can we set any amount of memory? Or it will set automatic by each application?

    OS: Suse 12
    Webserver: Apache 2.2 PHP5

    Thanks.
    The memory footprint of your Apache processes or threads will be determined by the compiled in or enabled modules. Apache running with only the required modules will have a base footprint, and any modules compiled in or enabled additionally will add to that. So, if you want to reduce the memory usage, either disable the modules you do not need or recompile Apache with only the modules you need.

    I believe there is no other deterministic way to reduce the value per thread/process. Of course, the lightest load and greatest scalability will be achieved by running a threaded Apache instead of a preforking Apache, but, at least in the past, you could encounter some stability issues with certain modules. I think most of those stability issues are resolved with any version ≥2.2.

    N++

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •