On Saturday, November 8, 2003, at 03:23 AM, Frank Barknecht wrote:


Hallo,
Hi!

Randall Randall hat gesagt: // Randall Randall wrote:
Note that daemontools will restart the appserver if it quits
for *any* reason, so the restart on changes thing works
normally even though you're not running the shell code that
checks the return code of the Launch.py script.

Thank you very much for your explanations. I've set it up that way now (still need to fix logging though, but that may be a too old daemontools version).

Oh? What happens with logging?


I still have one problem: Somewhere in my current application's code I
can, for whatever reasons, crash my AppServer brutally. I think it has
do do with the MySQL connection not keeping up under heavy load, but
whatever:

*IF* this happens, the daemontools do not correctly restart the
AppServer: I still have stale threads running that also occupy the
8086 port, so supervise goes into an endless loop.

The obvious (but not necessarily best) solution would be another script that periodically checks to see if the AppServer logs have the error message in question near the end. I haven't had this problem since I stopped managing my own database pool and went to SQLObject/psycopg, so I stopped thinking about it. :( Perhaps the AppServer should have a configuration option to try to kill the other process, if that happens. This would only work in cases where the AppServer was running as the user that ran the other AppServer, but that seems like a good thing.

Actually a problem like this seems to be unhandled in the webkit
script, too.

Yes, I think it's a more general problem.


--
Randall Randall
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to