Oracle MVA

Tales from a Jack of all trades

Starting multiple managed servers in Fusion Middleware 11.1.1.3

leave a comment »

Today I wasted some of my time debug an issue with multiple managed servers on 1 host. After starting the Administration Server every other server I started gave me the same error message:


ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
[ERROR] aborted
JRockit aborted: Unknown error (50)

The error message itself is rather clear, but I couldn’t find any port in the domain configuration that could actually invoke this conflict. Some extensive debugging showed me this error is caused by the setDomainEnv.sh script. To be more exact, this exact part of the setDomainEnv.sh script:

if [ "${DEBUG_PORT}" = "" ] ; then
DEBUG_PORT="8453"
export DEBUG_PORT
fi

Now obviously assigning a static debugging port is not really useful. Since I didn’t figure out yet how to pass the port from console, I changed the setDomainEnv.sh script:

if [ "${DEBUG_PORT}" = "" ] ; then
DEBUG_PORT=8453
while [ `netstat -na |grep ${DEBUG_PORT} | wc -l` != 0 ]
do
let DEBUG_PORT=${DEBUG_PORT}+1
done
export DEBUG_PORT
fi

Now the port is assigned dynamically. Only drawback is that for debugging I need to find the port by checking the processlist on Linux, but I can live with that.

Advertisements

Written by Jacco H. Landlust

April 29, 2010 at 9:55 pm

Posted in Installing, Weblogic

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: