I've installed FreeRADIUS, MySQL and FreeRADIUS management (a web-based app) on the same machine, with both FreeRADIUS and FreeRADIUS management using same user to connect MySQL. My problem is when I make a report from FreeRADIUS managment, it makes MySQL busy and FreeRADIUS can not respond to the request (out of service) until my report query has finished. My question is: How both applications (FreeRADIUS & FreeRADIUS management) run queries on MySQL at same time.
I'm using MyISAM and below is the result of SHOW PROCESSLIST;

These are the queries run during SHOW PROCESSLIST;
SELECT count( DISTINCT (username) ) , `nasipaddress` FROM `radacct`
WHERE (
acctstarttime < 'First period'
AND acctstoptime > 'First period'
AND acctstoptime <'Second period'
)
OR (
acctstarttime > 'First period'
AND acctstoptime < 'Second period'
)
OR (
acctstarttime < 'First period'
AND acctstoptime > 'Second period'
)
OR (
acctstarttime > 'First period'
AND acctstarttime < 'Second period'
AND acctstoptime > 'Second period'
)
OR (
acctstarttime < 'First period'
AND acctstoptime IS NULL
)
OR (
acctstarttime > 'First period'
AND acctstarttime <'Second period'
AND acctstoptime IS NULL
)
GROUP BY `nasipaddress`
-----------------------------------------
SELECT SUM(AcctSessionTime), SUM(AcctOutputOctets), SUM(AcctInputOctets)
FROM radacct
WHERE username='xxx'
-----------------------------------------
UPDATE radacct
SET
nasipaddress = '192.168.1.2',
framedipaddress = '10.10.10.2',
acctsessiontime = '200',
acctinputoctets = '8263'
acctoutputoctets = '310'
WHERE acctsessionid = 'FD324A12'
AND username = 'yyy'
AND nasipaddress = '192.168.1.2'"