High Memory Use

I’m curious what a normal system’s memory use might be…

We are running an IBM x3650 Quad Core Xeon 2.5GHz with 4GB RAM and RAID1 SAS 300GB

We have about 40 extensions, and on average less than 3 in use at any one time

When I look at the Admin - System Status it shows

25% CPU and 70% App Server Memory

Is that High? Should I be worried? I mean, what if 10 or 12 users were active at the same time?

That seems high as I have about the same setup. But many things can effect cpu. Trancoding, MOH, recording, any meet me’s going on, etc.

If this is the same system that has that stuck extension that could also be effecting things.

Yes… same system with stuck extension.

We do record about 10 extensions every call… but then as I indicated earlier, I’ve never seen more than
3 extension active at any one time. As for MOH, it’s not working correctly yet (I’m trying to use MP3’s and I don’t have mpg123
installed yet) but that isn’t that important… to us anyway at this point. No Meet-Me’s are even setup.

Another thing I just noticed is in the “top” display, the asterisk command is always using 100% CPU and one of the cores
is always at 100% use… so, I’m guessing that asterisk is using 100% of one core? Can asterisk multi-thread?
Also, of note, the asterisk process only shows 0.7% Memory, so not sure where the 70% is being used? I do see
a daemon/java process show up occasionally that’s using 50+% Memory and less than 10% CPU.

I’ll just wait until the stuck extension is resolved and see if this clears up.

The system has been up now for about 1 week, and the memory usage is very high again…
it appears that java (openfire) is using most of the memory… any idea why?

Elastix System Info indicates 93% used
FreePBX System Status indicates 75% used

top shows

top - 09:59:20 up 6 days, 11:53, 1 user, load average: 0.38, 0.30, 0.28
Tasks: 150 total, 1 running, 149 sleeping, 0 stopped, 0 zombie
Cpu(s): 25.4%us, 0.2%sy, 0.0%ni, 73.5%id, 0.0%wa, 0.9%hi, 0.0%si, 0.0%st
Mem: 3107556k total, 2980224k used, 127332k free, 61072k buffers
Swap: 779144k total, 192k used, 778952k free, 573904k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3498 daemon 24 0 2121m 1.9g 6592 S 97 64.7 1262:33 java
3362 uucp 17 0 51552 48m 728 S 0 1.6 0:00.04 iaxmodem
3363 uucp 20 0 51560 48m 728 S 0 1.6 0:00.04 iaxmodem

ps -ef
daemon 3498 1 13 Oct23 ? 21:03:02 /opt/openfire/jre/bin/java -server -DopenfireHome=/opt/openfire -Dopenfire.lib.dir=/opt/openfire/lib -classpath /opt/openfire/lib/startup.jar -jar /opt/openfire/lib/startup.jar

openfire is not a component or requirement of FreePBX, but one provided by Elastix. They might know better.

I will tell you that something doesn’t look right.

We have a copy of openfire running for IM popup notification on a monoring server for the last month with many people connected to it and this is what I have for stats:

daemon 17090 1 0 Sep18 ? 00:00:20 /opt/openfire/jre/bin/java -server -DopenfireHome=/opt/openfire -Dopenfire.lib.dir=/opt/openfire/lib -classpath /opt/openfire/lib/startup.jar -jar /opt/openfire/lib/startup.jar

Note the huge different in CPU usage.