Hi!
Grayhat> not lately; at any rate, using ASSP in production on a "windows 7" box Grayhat> isn't exactly a good idea; Win7 has a number of limitations related to Grayhat> sockets and other stuff so I think you'd better consider picking a Grayhat> server class OS instead of a desktop class one. Yes: Win 2008 R2 JA> The version of Perl we are using is version 5.16.3.1603 (32bit). Try 5.16.3.1604 or strawberry_perl_5.20.0__4-assp.zip JA>We have the ASSP service restarting every 4 hours to keep our memory usage low. Best use MemoryUsageCheckSchedule: == 2013-05-28 fixed in assp 2.3.4 build 13148: . . . added: 'MemoryUsageLimit','Memory Limit in MB that ASSP could use' 'The memory limit in megabyte the assp process could use at maximum on your system. Set this to empty or zero to disable the feature. The check is done using the schedule defined in MemoryUsageCheckSchedule . If the assp process uses more memory than the limit at a scheduled time and assp is able to restart it self - a restart will be done within 15 seconds. The user running assp must have read access to /proc on nix systems or must have read access to the WMI provider on windows systems!' 'MemoryUsageCheckSchedule','Schedule(s) to check the ASSP process memory usage s' 'The schedule(s) that is used to check the current memory usage of the assp process compared to the MemoryUsageLimit. Default value is (0-59/10 * * * *), which means every 10 minutes. This requires an installed Schedule::Cron module in PERL.' == JA> When this script runs, it uses netstop & netstart to stop and restart JA> the ASSP service. In the process of the stop and restart, I am also JA> issuing a taskkill for perl.exe because there has been instances where JA> perl was hanging the service from stopping & restarting. JA> . . . , I can go into the server machine and JA> start ASSP manually from the services manager. Use assp-monitor.pl with some modifications: == --- 000\assp-monitor.pl Fri Jun 27 14:52:01 2014 +++ assp-monitor.pl Mon Jun 30 14:27:00 2014 @@ -34,9 +34,12 @@ our $VERSION = '1.10'; my $sep = ($^O ne 'MSWin32') ? "'" : '"'; - my $killcmd = "$^X -e $sep kill -9 ASSPPID $sep"; + my $killcmd = 'cmd.exe /C taskkill /PID ASSPPID /f /t'; my $startcmd = 'cmd.exe /C net start ASSPSMTP'; - my $startwait = 120; + my $startwait = 480; my $msg; my $port; # default = 514 @@ -139,9 +142,15 @@ $pid = <$F>; close $F; $pid =~ s/\r|\n//go; - if ($pid && (kill 0, $pid)) { + if ($pid) { my $cmd = $killcmd; $cmd =~ s/ASSPPID/$pid/og; + # { VVM 2014-06-30 14-23 + print "Call command <$killcmd> to kill assp\n"; + # } system($cmd); } sleep 10; == Best regards, Victor Miasnikov Blog: http://vvm.blog.tut.by/ ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ Assp-user mailing list Assp-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/assp-user