Consultor Eletrônico



Kbase P17113: WA for SonicMQ connections on Linux not releasedbecause of JVM bug
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Unverified

FACT(s) (Environment):

Linux Intel
SonicMQ 4.x

SYMPTOM(s):

Number of connections increases

CAUSE:

Sun VM problem on Linux. See - Javasoft Bug Parade, Bug Id: 4344135.
Synopsis: Linux: close is not preemptive.

As a result of this bug, ClientListener threads are not being released
from socket read operations when socket close() is called by the client
PingThread when ping timeout occurs. ClientListener threads are
subsequently released from read operations when cable reconnection is
done. Unfortunately this interferes with new connection attempts.

FIX:

Bug Id: 4344135 does have a documented workaround for the Linux platform

Java version which Sonic supports: release: 1.3.1_01:

% java -version
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

The workaround requires that the following environment variable be set
to 1 before running the VM:

e.g. for /bin/sh

J2SE_PREEMPTCLOSE=1
export J2SE_PREEMPTCLOSE