[jboss-jira] [JBoss JIRA] Created: (JBAS-4155) run.conf used from other scripts than run.sh

Tobias Frech (JIRA) jira-events at lists.jboss.org
Sun Feb 25 04:19:35 EST 2007


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
            Priority: Minor


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

        



More information about the jboss-jira mailing list