FreePBX web interface and api not responding


(Mike) #1

We have been using FreePBX for years and besides phones also have 2 small programs that use the api to monitor queues/calls and one to route calls.

not sure exactly what happened as i wasnt involved but now we are running into an issue with the web interface and api becoming unresponsive after a few hours. Also you cannot change queues from the phones any longer either

calls are still processed normally without any issue

any ideas what i can look for that could cause this?


(Matt Brooks) #2

I would probably start by running the top command from the cli to see if any processes are consuming too much resources. Other than that, it sounds like apache is hanging on a bunch of processes for some reason. You can possibly look at netstat -anp to see if there are several connections to port 80 from your monitoring app.


(Mike) #3

thanks for the response. top shows the following

`
[root@pbx ~]# top
top - 14:50:21 up 1:07, 2 users, load average: 0.82, 1.18, 1.00
Tasks: 140 total, 4 running, 136 sleeping, 0 stopped, 0 zombie
%Cpu(s): 7.4 us, 4.9 sy, 0.0 ni, 60.7 id, 26.0 wa, 0.0 hi, 1.0 si, 0.0 st
KiB Mem : 7972604 total, 5331972 free, 1293336 used, 1347296 buff/cache
KiB Swap: 8257532 total, 8257532 free, 0 used. 6328004 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
8830 asterisk 20 0 2478568 383596 21432 S 21.3 4.8 17:06.73 asterisk
1362 mysql 20 0 1634676 155732 8988 S 4.3 2.0 0:54.74 mysqld
20962 asterisk 20 0 730684 25764 14732 S 2.7 0.3 0:00.72 httpd
992 mongodb 20 0 477828 54344 20604 R 0.7 0.7 0:28.73 mongod
9 root 20 0 0 0 0 S 0.3 0.0 0:08.64 rcu_sched
913 redis 20 0 143056 7220 1532 S 0.3 0.1 0:09.88 redis-server
8720 root 20 0 1230912 14064 2428 S 0.3 0.2 1:27.04 fail2ban-server
9606 asterisk 20 0 919388 37540 11948 S 0.3 0.5 0:08.61 PM2 v2.10.7: Go
10253 asterisk 20 0 978620 25396 11816 S 0.3 0.3 0:07.86 node /var/www/h

`

as far as netstat i see a bunch of connections on 5038 which are the api connections, about 10 port 80 which are probably just my and another persons admin pages and a whole bunch of other connections i am not sure what they are