more spectre tweaks, but no permanent solution to memory leak

This commit is contained in:
JT Smith 2006-07-04 19:02:22 +00:00
parent 1804ac8c6e
commit ea5108f952
3 changed files with 12 additions and 3 deletions

View file

@ -7,6 +7,15 @@ upgrading from one version to the next, or even between multiple
versions. Be sure to heed the warnings contained herein as they will versions. Be sure to heed the warnings contained herein as they will
save you many hours of grief. save you many hours of grief.
7.0.0
--------------------------------------------------------------------
* There is a memory leak in Spectre. We're working on a solution to
this problem, but in the mean time you will need to restart spectre
every so often to clear out the memory. We recommend setting up a
cron job to restart it once per day.
6.99.5 6.99.5
-------------------------------------------------------------------- --------------------------------------------------------------------

View file

@ -152,8 +152,8 @@ sub new {
object_states => [ $self => {_start=>"_start", _stop=>"_stop", "shutdown"=>"_stop", "ping"=>"ping"} ], object_states => [ $self => {_start=>"_start", _stop=>"_stop", "shutdown"=>"_stop", "ping"=>"ping"} ],
args=>[["shutdown","ping"]] args=>[["shutdown","ping"]]
); );
$self->{_workflow} = Spectre::Workflow->new($config, $logger, $debug); Spectre::Workflow->new($config, $logger, $debug);
$self->{_cron} = Spectre::Cron->new($config, $logger, $debug); Spectre::Cron->new($config, $logger, $debug);
POE::Kernel->run(); POE::Kernel->run();
} }

View file

@ -295,7 +295,7 @@ sub new {
my $config = shift; my $config = shift;
my $logger = shift; my $logger = shift;
my $debug = shift; my $debug = shift;
my $self = {_debug=>$debug, _config=>$config, _logger=>$logger}; my $self = {_priority1=>[], _priority2=>[], _priority3=>[], _debug=>$debug, _config=>$config, _logger=>$logger};
bless $self, $class; bless $self, $class;
my @publicEvents = qw(addInstance deleteInstance); my @publicEvents = qw(addInstance deleteInstance);
POE::Session->create( POE::Session->create(