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

Last updated on MARCH 08, 2017

Applies to:

Oracle API Gateway - Version 11.1.1.6.1 to 11.1.2 [Release 11gR1 to 11gR2]
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 labhost.oracle.com session" daemon prio=10 tid=0x00007f1cec046000 nid=0x19d8 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 labhost.oracle.com session" daemon prio=10 tid=0x00007f1cec043800 nid=0x19d7 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 labhost.oracle.com session" daemon prio=10 tid=0x00007f1cec042000 nid=0x19d6 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)

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