Windows2003 Apache Process httpd.exe eating Memory solution

Source: Internet
Author: User

Configure Apache httpd.conf files

General server 2G memory or 4G memory, Threadsperchild 200~300,maxrequestsperchild 1000~3000

I have the following settings in the httpd.conf:

The code is as follows Copy Code

KeepAlive on
Maxkeepaliverequests 50
KeepAliveTimeout 5

Threadsperchild 100
Maxrequestsperchild 100
Win32disableacceptex

For PHP scripts, it is helpful to set this parameter to a smaller number, to avoid the constant increase in memory used by the program, which puts pressure on Apache:

This parameter releases memory periodically, because PHP automatically frees up the only resources (memory) after the script has finished executing.


Setting Up Server Configuration

1. Network Places-> Local Area Connection-> Properties->internet Protocol (TCP/IP)-> Properties-> Advanced->wins Label-> Remove the tick before the LMHOSTS query is enabled.
2. Control Panel->windows Firewall-> Advanced tab-> Local Connection Settings-> Service tab to check the secure Web server (HTTPS).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.