How to determine the maximum memory for Apache

Posted on 2009-02-24
Last Modified: 2012-05-06
Hello experts,
I want to make sure my Apache server does not run out of memory. Then I want to set memory limit to a high value, like -XmX for Tomcat.
Please show me how to do that. I am running Apache 2.2 on windows.
Question by:partnerex_dev
    1 Comment
    LVL 23

    Accepted Solution

    As far as I know, you can't do that in such way.
    You can set limit by using ulimit, but this will set limits for all your users (including apache user).
    To tune apache you should look at prefork/worker module and set proper values for ServerLimit, MaxClients, etc... (take a look here:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    This video discusses moving either the default database or any database to a new volume.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now