Results 1 to 4 of 4

Thread: Allocate memory for apache

  1. #1
    Join Date
    Apr 2013
    Beans
    2

    Question Allocate memory for apache

    Hi everyone!
    I have a server that I use for many things. One of the most important is a apache web server. Sometimes other applications use a major part of the memory and the apache server don't work fine.
    There is a method to allocate a minimum amount of memory for apache? For example if I have 8GB RAM and I want apache always have 5 GB allocated and the system and the others applications cannot use more than 3 GB.
    Is this possible?
    Thank you very much!
    Last edited by anndrey; August 5th, 2014 at 10:40 AM.

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    11,296
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Allocate memory for apache

    I've run Apache on machines with much smaller amounts of memory than that and have never seen it run out of memory. How many listeners are you running? How much traffic? How much swap? Are you using a GUI or just running from the command prompt?
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Apr 2013
    Beans
    2

    Re: Allocate memory for apache

    There was just an example. I have a much smallar server. I use a server version without GUI.
    Thanks

  4. #4
    Join Date
    Jun 2011
    Beans
    417
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Allocate memory for apache

    Hi

    You can achieve the memory limitation with the setup of apache in cgroups (Control groups) and there a plenty of guides how it's done. Another possibility is to limit the memory via an ulimit -v 5242880 in /etc/apache2.conf. However I would suggest you that you go with cgroups.

    - HTH

Bookmarks

Posting Permissions

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