My Oracle Support Banner

When Using SFTP Poller Gateway Leaks Threads and Crashes With OutOfMemory (Doc ID 1585989.1)

Last updated on FEBRUARY 25, 2019

Applies to:

Oracle API Gateway - Version 11.1.1.6.1 to 11.1.2.1.0 [Release 11gR1]
Information in this document applies to any platform.

Symptoms

OEG 11.1.2.1.0 or earlier.

When using an FTP poller to poll via SFTP, threads are leaked, ultimately leading to exhaustion of resources
(process address space, number of open file descriptors, etc.)

You get an ever growing number of threads like this:

"Connect thread localhost.com session" daemon prio=10 tid=<TID> nid=<NID> runnable [0x00007f1c7aceb000]
 java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at com.jcraft.jsch.IO.getByte(IO.java:82)
at com.jcraft.jsch.Session.read(Session.java:821)
at com.jcraft.jsch.Session.run(Session.java:1241)
at java.lang.Thread.run(Thread.java:662)

"Connect thread localhost.com session" daemon prio=10 tid=<TID> nid=<NID> runnable [0x00007f1c7adec000]
 java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at com.jcraft.jsch.IO.getByte(IO.java:82)
at com.jcraft.jsch.Session.read(Session.java:821)
at com.jcraft.jsch.Session.run(Session.java:1241)
at java.lang.Thread.run(Thread.java:662)

"Connect thread localhost.com session" daemon prio=10 tid=<TID> nid=<NID> runnable [0x00007f1c7aeed000]
 java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at com.jcraft.jsch.IO.getByte(IO.java:82)
at com.jcraft.jsch.Session.read(Session.java:821)
at com.jcraft.jsch.Session.run(Session.java:1241)
at java.lang.Thread.run(Thread.java:662)

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
References


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