Some advice please on running with children etc...
Hi All, I'm running a Dancer2 app on a Windows 7 32bit machine in Cygwin (don't ask). The first thing I hope will be easy to give me advice on. The app is oddly crashing and I can't find the source of the issue but the app will be doing stuff and then suddenly just hang on the console and not go anywhere. Can I run Starman or Twiggy in such a way that there will be child processes so if the app hangs, there will be a child process to take over and serve the next request? I'm aware that MongoDB through Windows 32bit/Cygwin, isn't the most stable start to a web apps life, we are unfortunately stuck with this for the next week or two. It might last a few hours or an hour and then the app will hang. It doesn't totally crash. I'm guessing it may be something to do with the MongoDB driver but there is no error returned, the whole thing will just hang. I thought of something like Starman with --workers=10 might help? I'm currently running under Twiggy. Thanks in advance for your advice. nb. My versions of relevant stuff is: Dancer2: 0.161 MongoDB: v0.798.3.0 Twiggy: 0.1025 David
2015-08-06 5:24 GMT+03:00 David H <untg99@gmail.com>:
Thanks in advance for your advice.
My advice: run some Linux virtual machine on Win 7 for that. More stable platform to test your app. -- Wbr, Kõike hääd, Gunnar
On Aug 5, 2015, at 10:24 PM, David H <untg99@gmail.com> wrote:
Hi All,
I'm running a Dancer2 app on a Windows 7 32bit machine in Cygwin (don't ask).
The first thing I hope will be easy to give me advice on. The app is oddly crashing and I can't find the source of the issue but the app will be doing stuff and then suddenly just hang on the console and not go anywhere.
Can I run Starman or Twiggy in such a way that there will be child processes so if the app hangs, there will be a child process to take over and serve the next request?
I'm aware that MongoDB through Windows 32bit/Cygwin, isn't the most stable start to a web apps life, we are unfortunately stuck with this for the next week or two.
It might last a few hours or an hour and then the app will hang. It doesn't totally crash. I'm guessing it may be something to do with the MongoDB driver but there is no error returned, the whole thing will just hang.
I thought of something like Starman with --workers=10 might help? I'm currently running under Twiggy.
Thanks in advance for your advice.
I have had success using Thrall in a 32bit env perhaps it’s worth taking a look at.
Thanks a lot, I've installed and I'm now running it under Thrall and from what I can see this is what I'm looking for, something which will gracefully continue if a thread dies, so much appreciated. David
On 6 Aug 2015, at 11:01 pm, Sam Batschelet <sbatschelet@mac.com> wrote:
On Aug 5, 2015, at 10:24 PM, David H <untg99@gmail.com> wrote:
Hi All,
I'm running a Dancer2 app on a Windows 7 32bit machine in Cygwin (don't ask).
The first thing I hope will be easy to give me advice on. The app is oddly crashing and I can't find the source of the issue but the app will be doing stuff and then suddenly just hang on the console and not go anywhere.
Can I run Starman or Twiggy in such a way that there will be child processes so if the app hangs, there will be a child process to take over and serve the next request?
I'm aware that MongoDB through Windows 32bit/Cygwin, isn't the most stable start to a web apps life, we are unfortunately stuck with this for the next week or two.
It might last a few hours or an hour and then the app will hang. It doesn't totally crash. I'm guessing it may be something to do with the MongoDB driver but there is no error returned, the whole thing will just hang.
I thought of something like Starman with --workers=10 might help? I'm currently running under Twiggy.
Thanks in advance for your advice.
I have had success using Thrall in a 32bit env perhaps it’s worth taking a look at.
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
participants (3)
-
David H -
Sam Batschelet -
WK