Hi chris,

Apologies for the delayed response. So I have the base installation of
apache 2.4 within Amazon EC2 (via these instructions:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html) which
loads these modules by default, among a few others:

LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_socache_module modules/mod_authn_socache.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_dbd_module modules/mod_authz_dbd.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cache_module modules/mod_cache.so
LoadModule cache_disk_module modules/mod_cache_disk.so
LoadModule cache_socache_module modules/mod_cache_socache.so
LoadModule data_module modules/mod_data.so
LoadModule dbd_module modules/mod_dbd.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule dumpio_module modules/mod_dumpio.so
LoadModule echo_module modules/mod_echo.so
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule filter_module modules/mod_filter.so
LoadModule headers_module modules/mod_headers.so
LoadModule include_module modules/mod_include.so
LoadModule info_module modules/mod_info.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule macro_module modules/mod_macro.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule remoteip_module modules/mod_remoteip.so
LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule request_module modules/mod_request.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
LoadModule socache_dbm_module modules/mod_socache_dbm.so
LoadModule socache_memcache_module modules/mod_socache_memcache.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule status_module modules/mod_status.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule suexec_module modules/mod_suexec.so
# This module will cause Apache to fail to load if there is no DNS
# LoadModule unique_id_module modules/mod_unique_id.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule version_module modules/mod_version.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule watchdog_module modules/mod_watchdog.so

It is using *MPM_Prefork* by default, with default values (nothing
specified). I could setup a phpinfo page privately if you'd like as well. I
have requested repeatedly to Amazon to put out a page that is more
comprehensive than their basic MPM tuning page
for following the instructions does not fix it. Ironically the server
grinds to a halt even if no requests are being made to it.

IMHO, even with the default installation Apache eats up too much memory. It
would be MUCH simpler if there was a MAX_MEMORY_PERCENT directive you can
place in httpd.conf, which specifies the percentage of free memory Apache
is allowed to consume. Any thoughts?

On Sat, Oct 1, 2016 at 1:59 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> Hash: SHA256
> Tony,
> On 10/1/16 4:36 PM, Tony DiLoreto wrote:
> > All,
> >
> > I'm at my wits end trying to simply run Apache 2.4 on my Amazon
> > EC2 server. There are dozens of stackoverflow and websites, but
> > the suggestions do not seem to work on my instance.
> >
> > *Hardware*
> >
> > * Amazon EC2 Instance * t2.medium (2 VCPUs, 4GB RAM, 1GB Swap
> > added)
> >
> > *Software*
> >
> > * Base Amazon Unix distro * Apache 2.4, PHP 5 (no mysql) via
> > Amazon instructions:
> > http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
> >
> >  Shortly after installation, I'm finding the serve grinds to a
> > halt. Apache eats 95% of total memory, to the point where I cannot
> > run base unix commands like 'ls'. Looking for recommendations on:
> >
> > * which modules I can safely disable (those that few very users
> > need) * _exact_ values for maxConnectionsPerChild,
> > maxRequestWorkers, etc.
> >
> > That leaves me with 1GB free for the operating system. My
> > Wordpress website will not be serving more than 10k
> > pageviews/month, and never more than 20 at any given moment.
> >
> > Any recommendations?? Thanks in advance!
> Weird, httpd takes up 95% of RAM? What modules do you have enabled?
> Does it eat all that RAM if you don't make any requests? Which MPM are
> you using?
> What if you disable mod_php and temporarily disable Wordpress? Does it
> behave nicely, then?
> - -chris
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
> ZZ6t2regMseG5cTUtNFIJMb5LmOy56JjvxPZXmu4o9kyRPqSs3he3bxwBI4aAHWR
> gVQBxWonqFkwsBEpr4u3q30nZN8LchZGPXTQcw7+/SLbP7EBaFnTiEhPPEwj374H
> XFEyTkh0tv3Hd4q85W8OwgcENHm8IyTA8FuqhUr0xtVsfxhA6xvqcrz34rdYoYW5
> FlHQclK7t2pqsSWjRJh6fnFwrS8u8xEtsFfRWhinkNAJpOCch4vnKOgSWeBF3zH+
> tuNiGbP3FX+Ge85WZFLY68xCUSPOWPPPl8du7BSsAX2f2JLyBjtt12435qPE2tez
> Xw5BIkghiT7+d1hPLiUyaGrsu9leZUVIozXT3KvgPIsQiIff6gZovj2QEgM6QZT8
> qhEkHjj41RZksNHJ41BxLiZIqclkXlbWdfIBUtzeRYWEZG/FCwLbzH+B1mfj0nJn
> hqGC0J8lZs3d2l/Ws/sNu9xz5qGv/ZcKSynToZXq8Pb/zorjSJGqOS13BTeh0Dz2
> PsDBkcPQ4jymVU/Vt668q3Jm7TI3Ip0cigKxzBhA9cUJebuIv9YI98zBnuPRh5RE
> E62pt8xp0IX25O3M0GxX
> =dWd7
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org

Tony DiLoreto
President & CEO
Migliore Technologies Inc


*The best in the business...period!*

Reply via email to