Hi Daniel,
not using UIMA-AS myself but if the OS is killing a process because of
lack of resources it normally does so with a hard kill which does not
allow the Java VM process to do any shutdown work.
One would need a separate process controlling the Java one and react if
the Java VM is killed - however this won't help in getting the CAS
released (or the controlling process has specific UIMA knowledge). I
don't known if the UIMA-AS uses such a 2-process model per node but
assume it does not.
Regards,
Timo Boehme
Am 25.08.22 um 17:28 schrieb Daniel Cosio:
Yes, this is uima-as-jms.. the pipeline gets a signal from the os and
shutdown.. but we loose the CAS. Is there any api I can use to tell the
collection reader to invalidate. I know the AE has
A temp queue connection that communicates the CAS releases..I was wonder if
there was any way of getting the temp queue connection and sending the message
back to return the CAS.. Possible in a shutdown hook.
Daniel Cosio
[email protected]
On Aug 25, 2022, at 9:20 AM, Eddie Epstein <[email protected]> wrote:
Daniel, is this again a uima-as deployment? If so, since the OS kills
processes, is it some remote AE being killed?
Eddie
On Wed, Aug 24, 2022 at 10:04 AM Daniel Cosio <[email protected]> wrote:
Hi, I have some instances where the OS has killed a pipeline to recover
resources.. When this happens the pipeline never returns the CAS to the
reader so the reader now has 1 less CASes
Available.. Is there a was to either
1. Add a shutdown hook on the pipeline to return the CAS if it gets a
shutdown signal
or
2. Set an expiration on the collection reader to expire a CAS that is not
returns and issue a new one into the CAS pool
Thanks
Daniel Cosio
[email protected]
--
OntoChem GmbH
Blücherstraße 24
06120 Halle (Saale)
Germany
email: [email protected] | web: www.ontochem.com
HRB 215461 Amtsgericht Stendal | USt-IdNr.: DE246232735
managing directors: Dr. Lutz Weber (CEO), Dr. Felix Berthelmann (COO)