Re: [Asterisk-java-users] How to get the number of active calls?
Brought to you by:
srt
From: Patrick B. <bre...@go...> - 2008-02-29 14:01:35
|
Hi, on review your topic, maybe the Live API helps you? AsteriskServer.getChannels() gives you all active channels. Regards, Patrick Noel R. Morais schrieb: > So, isn't there an easy way to know how many threads in the threadpool > (witch handle AGI request) are in use and not in idle? > I need to know it using java language, inside the software that handle > AGI requests. > I need it to externalize such information for use in a monitoring > software (nagios). > > I was thinking to make a static variable and use it as a counter, > synchronizing and all, but I think that maybe there is a better way to > do that. > > sorry about the poor English. > > regards, > > Noel > > > On Feb 18, 2008 3:54 AM, Breucking Patrick <bre...@go...> wrote: >> Hi, >> >> additional the tool jconsole (in Java/bin Dir) visualize threads. >> >> Regards >> Patrick >> >> >> Am 18.02.2008 um 05:02 schrieb Stefan Reuter: >> >> >> Noel R. Morais wrote: >> On Feb 15, 2008 2:45 PM, Stefan Reuter <ste...@re...> wrote: >> >> For AGI or the Manager API? >> Acctualy I need to know the number of active threads in the thread >> pool of asterisk-java. >> >> Sorry, this is not enough information. There is no "the threadpool" of >> Asterisk-Java. Asterisk-Java uses threads and threadpools in different >> ways in different places. >> >> There is no way to ask Asterisk-Java "how many threads do you use?" >> Of course you can get the list of active Threads from the JVM with >> something like http://www.exampledepot.com/egs/java.lang/ListThreads.html >> >> =Stefan >> >> -- >> reuter network consulting >> Neusser Str. 110 >> 50760 Koeln >> Germany >> Telefon: +49 221 1305699-0 >> Telefax: +49 221 1305699-90 >> E-Mail: ste...@re... >> Jabber: ste...@re... >> WWW: http://www.reucon.com >> >> Steuernummern 215/5140/1791 USt-IdNr. DE220701760 >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> >> >> >> Patrick Breucking <bre...@GO...> (System Engineer) >> * GONICUS GmbH * NL Arnsberg * Moehnestrasse 11-17 * D-59755 Arnsberg >> * Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 278 >> * http://www.GONICUS.de >> >> *Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg >> *Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder >> *Vorsitzender des Beirats: Juergen Michels >> *Amtsgericht Arnsberg * HRB 1968 >> >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > -- Patrick Breucking <bre...@GO...> (System Engineer) * GONICUS GmbH * NL Arnsberg * Moehnestrasse 11-17 * D-59755 Arnsberg * Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 278 * http://www.GONICUS.de *Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg *Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder *Vorsitzender des Beirats: Juergen Michels *Amtsgericht Arnsberg * HRB 1968 |