Jonathan,
I''m adding the "puts" to the code, but seems like ami_server
has a memory leak.
Some condition happens (I don''t know which one) and the memory used by
the process increase, and the cpu usage too
For now, I''m restarting the ami_server process when the memory use
exceeds 60 MB
I''ll run the application with the "puts" and share the log
Thanks
On 9/24/07, Jonathan Palley <jpalley at gmail.com>
wrote:> Hi Carlos -
> Are you running the latest ami_server.rb code? There was a
> significant bug fixes a few weeks ago that should help this.
>
> If so, it would be great to get your help debugging this. If your
> traffic isn''t too great (or you can replicate the problem on a
> development machine) stick a "puts" statement in the read_line
and
> write_line methods in ami_server.rb. This will output what is
> getting sent back and forth. It may help us identify where the
> ami_server is getting stuck.
>
> I''ll work in a patch that does this automatically if you are
running
> in a development environment soon.
> JP
> On Sep 24, 2007, at 8:34 AM, Carlos Garcia Mujica wrote:
>
> > Hi,
> >
> > I helped on the developing of an application using Telegraph as
> > plugin in a Rails project, that connects to a Asterisk server.
> > I?m sending and getting packages throw AMI of petitions and
> > consults, but my AMI Server takes 100% of my CPU.
> >
> > This happened to anyone before?
> >
> > Best Regards,
> > Carlos
> >
> > --
> > ----------------------------------------------------------------------
> > ---------------
> > Universidad Central de Venezuela
> > Facultad de Ciencias
> > Escuela de Computaci?n
> > Carlos Garcia
> > ----------------------------------------------------------------------
> > ---------------
> > "Everything should be made as simple as possible, but not
simpler."
> > Albert Einstein
> > _______________________________________________
> > Telegraph-users mailing list
> > Telegraph-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/telegraph-users
>
> _______________________________________________
> Telegraph-users mailing list
> Telegraph-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/telegraph-users
>
--
Edgar Gonz?lez Gonz?lez
E-mail: edgargonzalez at gmail.com
http://edgar.gonzalez.net.ve
http://www.hasmanydevelopers.com
http://www.rubycorner.com
http://www.to2blogs.com
http://www.lacaraoscura.com
--