Hi Markus,
It looks like there are remote control REST routines for JavaMonitor. I have never used them, but then, I didn't know they existed!
Do you see any memory errors in the logs? Years ago we had an application that would very occasionally hang and report "no instance available". The WOMonitor would intermittently show that it was running, but it would not respond to stop. At the time we would need to kill the process (finding it with lsof filtering for the specific port) and then launch it again. Kind of awful, and certainly not good practice.
I look forward to hearing what you end up doing!
ttyl,
Asa
No one? Is there documentation for REST calls to wotaskd and/or JavaMonitor? I haven’t found anything, might have been looking in the wrong place 🙃 ---markus--- On 15 Nov 2022, at 16:20, Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch> wrote:
This is a weird one.
We have a WOApp deployed on Ubuntu 20.04.5 LTS on a cloud server. App is classically controlled by JavaMonitor and instance (currently only one) is scheduled for restart every day at 5am. Once in a while the first user in the morning is greeted by “no instance found”, but checking with JavaMonitor everything looks good and there are not deaths reported! Manually restarting the instance clears things up. It seems that sometimes the instance does not come up fully or the connection with WOAdaptor to Apache breaks. Anyone having had similar issues? We are running a fairly up-to-date Apache (Server version: Apache/2.4.41 (Ubuntu) Server built: 2022-06-14T13:30:55). WOAdaptor is the one built by Maik (thanks a lot for this).
Another weird thing is that we have various other applications running on the same and on other similarly set up servers, none of them having any issues. Any idea on that?
Is there a way to externally trigger Monitor or WOtaskd to restart an instance? Does the REST interface support this and how would I call it with e.g. curl? I could then create my own heartbeat script testing and restarting instances through Apache.
Thanks for any help ---markus---
|