Re: [asterisk-users] agi with java?

2007-06-11 Thread Lee Jenkins

Lenz wrote:

Hi Lee,
we are a Java shop and our experience with Java has been much the one 
you say - it  does scale pretty well and it is very solid. What I was 
trying to say is that Java is not very well suited to the classic, 
Unix-style, fire-up-process-and-let-it-die that goes for CGI/AGI 
programming. On the other side, I have no doubt that with an application 
server and FastAGI you can get quite a lot of bang for the buck. :)

l.


On Fri, 08 Jun 2007 18:07:50 +0200, Lee Jenkins [EMAIL PROTECTED] 
wrote:


We have found that generally speaking, running the FastAGI server on 
the same machine as Asterisk yields better performance than launching 
separate exe processes through the dial plan.


Completely anecdotal of course. This is careful research conducted 
over our entire 5 customer base...




I get what you are saying, I was agreeing with you. :)

We *were* writing all of our AGI as binary executables and even then, 
the FastAGI server that we eventually built still gets better 
performance vs. when we launched separate AGI per call from the 
dialplan.  My guess is that it is easier on the system for an existing 
executable (FastAGI Server) to spawn threads of execution for short 
periods of time to handle (Fasg)AGI requests than it is to run separate 
executable AGI's instead.  We're hoping that performance will be 
improved even more when we introduce pooling of common objects (db 
access for example).



--

Warm Regards,

Lee



___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] agi with java?

2007-06-10 Thread Lenz

Hi Lee,
we are a Java shop and our experience with Java has been much the one you  
say - it  does scale pretty well and it is very solid. What I was trying  
to say is that Java is not very well suited to the classic, Unix-style,  
fire-up-process-and-let-it-die that goes for CGI/AGI programming. On the  
other side, I have no doubt that with an application server and FastAGI  
you can get quite a lot of bang for the buck. :)

l.


On Fri, 08 Jun 2007 18:07:50 +0200, Lee Jenkins [EMAIL PROTECTED]  
wrote:


We have found that generally speaking, running the FastAGI server on the  
same machine as Asterisk yields better performance than launching  
separate exe processes through the dial plan.


Completely anecdotal of course. This is careful research conducted over  
our entire 5 customer base...






--
Loway Research - Home of QueueMetrics
http://queuemetrics.com
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] agi with java?

2007-06-10 Thread Tim Panton


On 10 Jun 2007, at 13:29, Lenz wrote:


Hi Lee,
we are a Java shop and our experience with Java has been much the  
one you say - it  does scale pretty well and it is very solid. What  
I was trying to say is that Java is not very well suited to the  
classic, Unix-style, fire-up-process-and-let-it-die that goes for  
CGI/AGI programming. On the other side, I have no doubt that with  
an application server and FastAGI you can get quite a lot of bang  
for the buck. :)

l.


Just to encourage folks who run a mile from the whole J2EE bloated  
mess..


You can write a very simple FastAGI server using asterisk-java in  
J2SE, and run it

in just about any JVM. We have been very happy with it.

Tim.
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] agi with java?

2007-06-08 Thread Lenz


Hello Matthew,
Java is not a great solution for AGIs because they are script you should  
fire up and terminate very fast, while the overhead of launching a JVM,  
loading all classes, etc, is pretty large. Also, you don't want multiple  
JVMs in parallel loading everything multiple times.


This is not to say AGI is not feasible: you should look for FastAGI, where  
* connects to an external server with resident proceses, and that suits  
the Java model much better. Of course, if all you want to do is lookup the  
callerid on mysql or something just as trivial, go for a 20-line Perl  
script.


Just my two eurocents,
l.



On Thu, 07 Jun 2007 23:32:12 +0200, Matthew Pease [EMAIL PROTECTED]  
wrote:



Hi all -
  Searching for java agi in the mailing list archives turns up ancient  
posts.


  Anyone else using java for their AGI?   How well is it working 
what are you using?

  My script is pretty simple, and I could write it with perl easy
enough, but I just would feel better if I can keep most programming
code for our system in java.

Thank you-
Matt



--
Loway Research - Home of QueueMetrics
http://queuemetrics.com
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] agi with java?

2007-06-08 Thread Lee Jenkins

Lenz wrote:


Hello Matthew,
Java is not a great solution for AGIs because they are script you should 
fire up and terminate very fast, while the overhead of launching a JVM, 
loading all classes, etc, is pretty large. Also, you don't want multiple 
JVMs in parallel loading everything multiple times.


This is not to say AGI is not feasible: you should look for FastAGI, 
where * connects to an external server with resident proceses, and that 
suits the Java model much better. Of course, if all you want to do is 
lookup the callerid on mysql or something just as trivial, go for a 
20-line Perl script.





We have found that generally speaking, running the FastAGI server on the 
same machine as Asterisk yields better performance than launching 
separate exe processes through the dial plan.


Completely anecdotal of course. This is careful research conducted over 
our entire 5 customer base...


--

Warm Regards,

Lee



___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [asterisk-users] agi with java?

2007-06-08 Thread Chris Bagnall
 Java is not a great solution for AGIs because they are script you should
 fire up and terminate very fast, while the overhead of launching a JVM,
 loading all classes, etc, is pretty large. Also, you don't want multiple
 JVMs in parallel loading everything multiple times.

How about writing your AGIs in JSP? In that case, you could leave a VM 
(+Tomcat) running, and the AGIs would simply use the existing in-memory VM.

Java does actually scale much better than many other environments once you take 
away the cost of instantiating the VM for each execution.

Regards,

Chris
-- 
C.M. Bagnall, Director, Minotaur I.T. Limited
For full contact details visit http://www.minotaur.it/chris.html
This email is made from 100% recycled electrons


___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] agi with java?

2007-06-07 Thread Matthew Pease

Hi all -
 Searching for java agi in the mailing list archives turns up ancient posts.

 Anyone else using java for their AGI?   How well is it working 
what are you using?

 My script is pretty simple, and I could write it with perl easy
enough, but I just would feel better if I can keep most programming
code for our system in java.

Thank you-
Matt
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] agi with java?

2007-06-07 Thread Stefan Reuter
Matthew Pease wrote:
 Hi all -
  Searching for java agi in the mailing list archives turns up ancient
 posts.

Have a look at http://asterisk-java.org and the tutorial at
http://asterisk-java.org/development/tutorial.html - it include a hello
world AGI script in Java.

=Stefan



signature.asc
Description: OpenPGP digital signature
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users