FreePBX lasted version eat too much ram

My top memory usage process :frowning: all is httpd, any idea for this situation, pls advice and help me

ID Owner Size Command
1843 asterisk 434828 kB /usr/sbin/httpd
1842 asterisk 433520 kB /usr/sbin/httpd
1840 asterisk 430420 kB /usr/sbin/httpd
1841 asterisk 429884 kB /usr/sbin/httpd
1839 asterisk 429556 kB /usr/sbin/httpd
1838 asterisk 425724 kB /usr/sbin/httpd
1844 asterisk 425716 kB /usr/sbin/httpd
1837 asterisk 424172 kB /usr/sbin/httpd
29762 asterisk 402700 kB /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c
1786 root 361528 kB /usr/sbin/httpd
30175 root 128180 kB lfd - sleeping

Exactly what version of FreePBX are you using? Is this a distro install?

I used Asterisk 1.8.11-cert4 and FreePBX 2.10, not a distro version

I am a little short on RAM, I’m running the distro on an Alix.3d2 with 256 MB of RAM, and I too can see httpd processes eating up nearly 60% of my memory

1953 asterisk 22 0 45916 20m 8960 S 0.7 8.3 0:39.75 asterisk
1920 root 18 0 25880 8244 4448 S 0.0 3.2 0:00.30 httpd
1831 mysql 24 0 135m 19m 4212 S 0.7 7.7 3:09.98 mysqld
1963 asterisk 22 0 38616 17m 3760 S 0.0 7.2 0:44.52 httpd
1974 asterisk 22 0 38872 18m 3748 S 0.0 7.3 0:48.02 httpd
1964 asterisk 22 0 34256 13m 3744 S 0.0 5.5 0:43.09 httpd
1973 asterisk 22 0 39160 18m 3728 S 0.0 7.3 0:40.77 httpd
1965 asterisk 22 0 34248 13m 3700 S 34.6 5.5 0:46.89 httpd
1967 asterisk 16 0 39172 18m 3700 S 0.0 7.3 0:41.26 httpd 1975 asterisk 22 0 38572 17m 3696 S 0.0 7.2 0:47.24 httpd
1966 asterisk 16 0 34512 13m 3672 S 0.0 5.6 0:43.21 httpd

I also have an install that runs on a small memory (only 128k). I found that swapping default apache for lighthttpd has solved all my memory issues.
The only thing you have to change in default config for lighthttpd is to make sure that the user running the web server is asterisk and you should of course make sure your port 80 is only accessible from inside your network for security.

These are not really FreePBX issues. These are issues related to building your own system based on whatever OS, web server and Asterisk version you installed. When you install the FreePBX GUI by hand you take it upon yourself to correctly install all the required prerequisite software that is needed for a LAMPA stack. this is why it is so much easier to just install a distro.

as alan_mousty says.

@francescov

You implicitly chose to start 8 instances of the apache server, you probably only need one (maybe two if your wife is checking her voicemail on line) for your tiny install, (think about it who will use it apart from you?), editing httpd.conf will allow you to change that without too much sweat, even with the standard web server, or as suggested get your feet wet and install lighthttpd or some such and re-configure to suit.

You explicitly chose to deploy Alix, this always required a certain amount of moxie, if you hadn’t read that bit yet, you will need it, my only suggestion is to get that moxie first, then you can get to wear big boy shoes;-) . . .

@all4stores

check your csf settings . . . lfd should not be using that much memory, I think you have a re-entrant problem.