Schema Runtime Environment (SRE) Monk Collaboration Fails With 'MONKEXCEPT:0040 ... Too Many Open Files' Error. (Doc ID 1338694.1)

Last updated on NOVEMBER 02, 2016

Applies to:

Sun Schema Runtime Environment (SRE) - Version: 5.0.5u2 and later   [Release: 5.0 and later ]
Information in this document applies to any platform.

Symptoms

A Monk Collaboration initially executes successfully but then fails after processing a number of records with the following error:

09:46:51.830 MNK E 3512 (monklog:406): >>Evaluation Of Dynamically Created Expression.
09:46:51.830 MNK E 3512 (monklog:406):
09:46:51.830 MNK E 3512 (monklog:391): (open-append-file (string-append (getenv "IM_JNL_IN") "CRS_Invalid_MSH_" (strfti
09:46:51.830 MNK E 3512 (monklog:406): me "%Y%m%d" (time)) ".jnl"))
09:46:51.830 MNK E 3512 (monklog:391): >>>>MONKEXCEPT:0040: Mo_create_port: error opening " <filename>
09:46:51.830 MNK E 3512 (monklog:406): CRS_Invalid_MSH_20110620.jnl" [strerror(24)=(Too many open files)].
09:46:51.830 MNK E 3512 (monklog:406): >>Evaluation Of Dynamically Created Expression.
09:46:51.830 MNK E 3512 (monklog:406):
09:46:51.830 MNK E 3512 (monklog:391): (let ((xlate_result "") (HL7_Message "") (Journal1 (open-append-file (string-app
09:46:51.830 MNK E 3512 (monklog:391): end (getenv "IM_JNL_IN") "CRS_ADT_SIU_in_" (strftime "%Y%m%d" (time)) ".jnl")))
09:46:51.830 MNK E 3512 (monklog:391): (Journal2 (open-append-file (string-append (getenv "IM_JNL_IN") "CRS_Invalid_MSH
09:46:51.830 MNK E 3512 (monklog:391): _" (strftime "%Y%m%d" (time)) ".jnl"))) ...


The above 'Too many open files' error occurs when the Monk Collaboration Rule attempts to open a file using the open-append-file expression as follows:


(Journal2 (open-append-file (string-append (getenv "IM_JNL_IN") "CRS_Invalid_MSH_" (strftime "%Y%m%d" (time)) ".jnl")))

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms