[ic] The Interchange server goes down every 2-3 days

Joachim Leidinger interchange-users@icdevgroup.org
Mon Aug 19 03:33:00 2002


Mike Heins wrote:
> Quoting verbalex (verbalex@verbalextracts.com):
> 
>>Every 2-3 days my interchange server will go down making the site
>>unavailable to viewers. Once I restart, it's up and running fine again. What
>>I'd like to know is if there is any way that the Interchange sever could
>>stay up and running for longer periods of time than this and I'm also
>>curious if anyone knows why this is happening so often.
> 
> 
> It should not happen. I routinely run Interchange for months on
> end.
> 
> In addition, there is about zero way anyone could help you from the
> information you have given. You have said nothing in description
> of your system.
> 
> Interchange is as stable as the environment you provide for it.
> It should never go down in normal operation.
> 
> Then there is FreeBSD.....if you are running on that who the heck
> knows what is going on, but I could believe it dies every couple
> of days on that. Of course no one can know.....

If your OS is FreeBSD, use the Bugfix like

   diff -u Config.pm.orig Config.pm
--- Config.pm.orig      Thu Jan 24 07:44:28 2002
+++ Config.pm   Thu Aug  1 16:53:17 2002
@@ -1707,7 +1707,7 @@
                                  and $eval = 1;
                  $eval and ! $safe and $safe = new Safe;
                  if(! defined $store->{$name} and $item eq 'Locale') {
-                       if(POSIX::setlocale(POSIX::LC_ALL, $settings) ) {
+                       if(POSIX::setlocale(POSIX::LC_ALL, $name) ) {
                                  $store->{$name} = POSIX::localeconv();
                          }
                  }

because, FreeBSD has a bug in the setlocale part. Without the bugfix 
above, you will get a buffer overflow sometimes. After my experiences 
with some older FreeBSD and MV a long time ago, the MV server always 
dies under high traffic and I've gotten some error message about 
recursive call in malloc and perl and sometimes not enough memory messages.

Hope that helps!

Joachim

-- 
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[leidinger@bpanet.de]
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de