Author Topic: lag upon retrieving call details // verbose logging  (Read 4153 times)

qmax

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 0
  • Asterisk-11.7.0-ubuntu, Queuemetrics-15.10.1-tgz
    • View Profile
    • Email
lag upon retrieving call details // verbose logging
« on: June 24, 2009, 11:36:07 »
On the page with activity reports detalization:
results_calls_ok.jsp
results_calls_ko.jsp

pressing "details" popup button
sometimes lags for very long (more then 10 seconds)
it appears at $Id: LocalFiles.java,v 1.3 2009/02/16 11:40:28 lenz-mobile Exp $ is searching....

the system was not high loaded at the moments.

i'd like to make queuemetrics more verbose in logging
to detect the bottleneck.




QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: lag upon retrieving call details // verbose logging
« Reply #1 on: June 24, 2009, 17:53:04 »
I tell you what it is: you have too many audio recordings, and QM wil scan all them.

You should use a PM like LocalFilesByDay to reduce searching - see here: http://queuemetrics.com/manuals/QM_UserManual-chunked/ar01s17.html#_pms_to_match_recorded_calls

qmax

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 0
  • Asterisk-11.7.0-ubuntu, Queuemetrics-15.10.1-tgz
    • View Profile
    • Email
Re: lag upon retrieving call details // verbose logging
« Reply #2 on: July 07, 2009, 06:04:54 »
I tell you what it is: you have too many audio recordings, and QM wil scan all them.

You should use a PM like LocalFilesByDay to reduce searching - see here: http://queuemetrics.com/manuals/QM_UserManual-chunked/ar01s17.html#_pms_to_match_recorded_calls

we have about 200 000 records, keeping them several month.
is this number large for default record finder ?

all recording configured to form filenames exactly as "q${QUEUEID}-${UNIQUEID}.wav"
this way there's no need to scan all files, but record finder knows exactly what filename is.
we used our own record finder, that utilized this feature.

is there such PM exists or planned ?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: lag upon retrieving call details // verbose logging
« Reply #3 on: July 09, 2009, 09:16:13 »
The best thing would be to split up the directory structure - maybe dividing them simply like /year/month or /year/month/queue - and using the LocalFilesByDay PM.

qmax

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 0
  • Asterisk-11.7.0-ubuntu, Queuemetrics-15.10.1-tgz
    • View Profile
    • Email
Re: lag upon retrieving call details // verbose logging
« Reply #4 on: July 16, 2009, 14:51:20 »
ok.
i've set up it this way:
audio.server=it.loway.app.queuemetrics.callListen.listeners.LocalFilesByDay
default.monitored_calls=/var/spool/asterisk/%QU/
and restarted queuemetrics

now i have:
astra:/var/spool/asterisk/monitor # find -name '*1247745633.22860*'
./6/q6-1247745633.22860.wav

but details popup only shows Call ID, but not link to file.

what's wrong here ?

marcos

  • Loway
  • Full Member
  • *
  • Posts: 138
  • Karma: 3
    • View Profile
Re: lag upon retrieving call details // verbose logging
« Reply #5 on: July 17, 2009, 10:55:32 »
Hi,
What's reported in the catalina log file?

Do you see something like:

"Cerco in dir: ...."

and/or

$Id: LocalFilesByDay.java,v 1.2 2009/02/16 11:40:28 lenz-mobile Exp $ is searching.... found 30 files

Regards,
Marco Signorini

marcos

  • Loway
  • Full Member
  • *
  • Posts: 138
  • Karma: 3
    • View Profile
Re: lag upon retrieving call details // verbose logging
« Reply #6 on: July 17, 2009, 10:57:03 »