Oracle Service Bus Will Get Stuck Threads When SMTP Server Doesn't Respond

(Doc ID 1066638.1)

Last updated on APRIL 30, 2018

Applies to:

Oracle Service Bus - Version 3.0 to 12.2.1.3.0
Information in this document applies to any platform.

Symptoms

OSB threads can get stuck when SMTP Server does not respond for any reason. Threads will stay in a stuck state for long time. Below is an example of the sort of thread that will be seen.

 

####<[ACTIVE] ExecuteThread: '43' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1265792508557> <[STUCK] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "688" seconds working on the request "weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl@a1b53ec", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
Thread-152 "[STUCK] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'" {
jrockit.net.SocketNativeIO.readBytesPinned(SocketNativeIO.java:???)
jrockit.net.SocketNativeIO.socketRead(SocketNativeIO.java:31)
java.net.SocketInputStream.socketRead0(SocketInputStream.java:???)
java.net.SocketInputStream.read(SocketInputStream.java:107)
com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
java.io.BufferedInputStream.fill(BufferedInputStream.java:189)
java.io.BufferedInputStream.read(BufferedInputStream.java:236)
^-- Holding lock: java.io.BufferedInputStream@129488df[thin lock]
com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:65)
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1430)
com.sun.mail.smtp.SMTPTransport.isConnected(SMTPTransport.java:676)
^-- Holding lock: com.sun.mail.smtp.SMTPTransport@1294801a[thin lock]
com.bea.wli.sb.transports.email.util.EmailUtil.cacheTransport(EmailUtil.java:606)
com.bea.wli.sb.transports.email.util.Envelope.send(Envelope.java:97)
com.bea.wli.sb.transports.email.util.EmailUtil.send(EmailUtil.java:218)
com.bea.wli.sb.transports.email.EmailOutboundMessageContext.send(EmailOutboundMessageContext.java:59)
com.bea.wli.sb.transports.email.EmailTransportProvider.sendMessageAsync(EmailTransportProvider.java:111)

 

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