Docker-images: Enable Java Remote Debugging

Created on 21 Nov 2016  路  8Comments  路  Source: oracle/docker-images

Is there any (standard) way to enable Java Remote Debugging for the managed server container? Setting

  managedserver:
    environment:
    - PRODUCTION_MODE=false
    - DEBUG_FLAG=true

works for the Admin server only but not for the managed server. Passing something like -Xrunjdwp:transport=dt_socket,address=7777,server=y,suspend=n in JAVA_OPTIONS or USER_MEM_ARGS causes the managed server container to fail startup because options will be applied to both, Node Manager and Managed Server, which results in port conflicts.

question weblogic

All 8 comments

Ping @mriccell for review.

@stephan2012 what version of WLS containers are you running?

@mriccell Not sure which version you mean. I've pulled the templates from GitHub by mid of December. WebLogic is version 12.2.1.2, developer build.

@brunoborges: Why did you close this issue? Has it been resolved?

Triage.. :-)

Reopening...

hi @mriccell, do you know if there is a documented way to enable Remote Jva Debug on managed servers?

@stephan2012
under OracleWebLogic/samples/12213-domain under the container-scripts createAndStartWLSDomain.sh
before

${DOMAIN_HOME}/startWebLogic.sh

and in createServer.sh
before

echo "Starting NodeManager in background..."
nohup $NM_DIR/startNodeManager.sh > /u01/oracle/log_$MS_NAME.nm 2>&1 &
echo "NodeManager started."

add

export JAVA_OPTIONS="-Doptions=value"

I will close this issue as it is unrelated to Docker images, but to WebLogic. Conversation may continue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deusaquilus picture deusaquilus  路  30Comments

karan-kapoor90 picture karan-kapoor90  路  32Comments

Deepak-Vohra picture Deepak-Vohra  路  45Comments

alagna picture alagna  路  16Comments

x97mdr picture x97mdr  路  17Comments