My Oracle Support Banner

Maximum Thread Constraint WatchManagerEvents Is Reached due to Java Callout to MongoDB (Doc ID 2504109.1)

Last updated on AUGUST 16, 2024

Applies to:

Oracle Service Bus - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.1.3.0.0 version, OSB Transports

Maximum thread constraint WatchManagerEvents is reached

Users encounter problems when they do performance tests of an OSB service in a cluster.
It's a REST Proxy service that executes a Java Callout and returns the result. In the Java Callout it invokes a Jar that accesses a Mongo's server to upload or download information.
In the performance test are sent 250 requests by minute and during two minutes and a half, all works ok. The problem begins after appears the following message in the OSB server's log file:
<Info> <WorkManager> <LGAUSWT00> <GAUSUT01> <[ACTIVE] ExecuteThread: '26' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <7ada75a2-dd23-4eef-8d3c-ef05909e553f-0000fe09> <1549013440002> <WL-002936> <maximum thread constraint WatchManagerEvents is reached>
Users have verified that during this time, 757 requests have been received in the OSB and the corresponding responses have been returned, so users understand that there should not be open threads because the OSB service responds to all requests.
From that moment, in both OSB servers logs the following error appears:
 [WARNING] [] [org.mongodb.driver.cluster] [tid: cluster-ClusterId{value='5c541232f05f9569c1a0c353', description='null'}-lgaudut00:27111] [userId: anonymous>] [ecid: b06bd51e-8ef0-40e1-a343-1203c9e0daee-00011466,0:3] [FlowId: 0000MYcPk7LFO9R5qZ^AyY1SKkuh0000cH] Exception in monitor thread during notification of server description state change[[java.lang.OutOfMemoryError: unable to create new native thread
Users can run without problems the rest of the services deployed in the OSB, but the OSB service that we are testing returns an error.

ERROR
-----------------------
WL-002936

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.