DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10601>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10601

debug message make many reverse DNS-lookup

           Summary: debug message make many reverse DNS-lookup
           Product: Avalon
           Version: unspecified
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Cornerstone
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I create many Socket per secend. Therefore the debug code 
    getLogger().debug( "Starting 
connection on " + m_socket );
in class 
org.apache.avalon.cornerstone.blocks.connection.Connection make many DNS 
lookups. This 
DNS-lookups need many resources.

I recommend to change the line

    getLogger().debug( 
"Starting connection on " + m_socket );
         respectively
    getLogger().debug( "Ending 
connection on " + m_socket );

to 

if (getLogger().isDebugEnabled())
    
getLogger().debug( "Starting connection on " + m_socket );

or 

if 
(getLogger().isDebugEnabled())
    getLogger().debug( "Starting connection on " + 
                       
m_socket.getInetAddress().getHostAddress() );

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to