[
http://jira.jboss.com/jira/browse/JBAS-4155?page=comments#action_12361056 ]
Fernando Nasser commented on JBAS-4155:
---------------------------------------
I am not sure if we can just not source run.conf. Perhaps we will need to still source it
but make sure JAVA_OPTS are properly overriden in shutdown.sh and twiddle.sh. Dimitris,
what do you think?
run.conf used from other scripts than run.sh
--------------------------------------------
Key: JBAS-4155
URL:
http://jira.jboss.com/jira/browse/JBAS-4155
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Other
Affects Versions: JBossAS-4.0.5.GA
Environment: Linux/Unix
Reporter: Tobias Frech
Assigned To: Fernando Nasser
Original Estimate: 1 day
Remaining Estimate: 1 day
Configuration in run.conf is used from other scripts than run.sh. For example shutdown.sh
or twiddle.sh include it. They should not because that leads to undesireable or even
dangeous effects.
Details:
Editing run.conf an including
JAVA_OPTS="$JAVA_OPTS -Xdebug
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"
to enable remote debugging
Starting the server:
sh run.sh -c minimal
Stopping the server produces:
sh shutdown.sh -S
ERROR: transport error 202: bind failed: Address already in use
["transport.c",L41]
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
["debugInit.c",L497]
JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initializedFATAL ERROR in native
method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113)
This may get worse if someone uses a -Xms3000m setting on a server that only has 4GB of
memory. Potentially leading to a swap out of a production system to disk.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira