Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

Slightly off-topic

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


ptomblin at xcski

Jun 12, 2012, 1:26 PM

Post #1 of 2 (182 views)
Permalink
Slightly off-topic

I have a need to access information in another database simultaneously
to the , so I cloned RT::Handle.pm into my own RTx::FooBar::Handle
that access the other database. Now I'm testing this on my Linux box
and everything is running fine, but I copied it over to my MacBook Pro
in order to demo it to a client, but Postgres is complaining that it's
running out of database handles. So I added a DESTROY method to my
RTx::FooBar::Handle that does a $self->dbh->disconnect. I stuck a
call to $RT::Logger->debug in that DESTROY method just to make sure.
On the Linux box, it's definitely getting called and the debug is
printing out, but I wasn't running out of handles there so I don't
know if that's helping matters. On the Mac, either it's not getting
called or the logger isn't working, and it's running out of handles
still. Any suggestions?

--
http://www.linkedin.com/in/paultomblin
http://careers.stackoverflow.com/ptomblin


rtusers-20090205 at billmail

Jun 13, 2012, 9:15 AM

Post #2 of 2 (156 views)
Permalink
Re: Slightly off-topic [In reply to]

On 12 Jun 2012, at 16:26, Paul Tomblin wrote:

> I have a need to access information in another database simultaneously
> to the , so I cloned RT::Handle.pm into my own RTx::FooBar::Handle
> that access the other database. Now I'm testing this on my Linux box
> and everything is running fine, but I copied it over to my MacBook Pro
> in order to demo it to a client, but Postgres is complaining that it's
> running out of database handles. So I added a DESTROY method to my
> RTx::FooBar::Handle that does a $self->dbh->disconnect. I stuck a
> call to $RT::Logger->debug in that DESTROY method just to make sure.
> On the Linux box, it's definitely getting called and the debug is
> printing out, but I wasn't running out of handles there so I don't
> know if that's helping matters. On the Mac, either it's not getting
> called or the logger isn't working, and it's running out of handles
> still. Any suggestions?


Maybe http://archives.postgresql.org/pgsql-general/ could be helpful?
Maybe not. It isn't clear to me what exactly you mean by "Postgres
complaining that it's running out of database handles" as that doesn't
sound much like any complaint I've seen from Postgres.

It may be relevant that the MacOS Perl environment is rather lame by
default, so if you haven't built an alternative Perl environment you may
be working with some Perl modules that are outdated or have been given
some special Apple touch so that they aren't quite like they should be.

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.