tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject Re: OpenEJB Server - reverse lookup for logging causes poor performance
Date Tue, 12 Jan 2010 17:00:08 GMT

On Dec 25, 2009, at 5:44 PM, David Blevins wrote:

>
> On Dec 24, 2009, at 9:26 PM, bitz wrote:
>
>>
>> My environment:
>>
>> Geronimo 2.1.4 (OpenEJB 3.0.1) on Windows.  Using OpenEJB Client in  
>> a java
>> app to make remote calls to stateless EJBs.
>>
>> This issue still exists in OpenEJB 3.1.2.
>>
>> Problem:
>>
>> If the server is unable to reverse lookup the ip address of a  
>> connecting
>> client, every remote EJB method call incurs a delay of multiple  
>> seconds
>> (while the lookup times out).
>>
>> Findings:
>>
>> I tracked the problem down to ServiceLogger.java, line 68, where  
>> 'client' is
>> an InetAddress object,
>>
>> org.apache.log4j.MDC.put("HOST", client.getHostName());
>>
>> If I change this line to,
>>
>> org.apache.log4j.MDC.put("HOST", client.getHostAddress());
>
> We can definitely use that instead.  Thanks for posting it.

FYI, got this one buttoned up last week.  Thanks for the heads up!

   https://issues.apache.org/jira/browse/OPENEJB-1129

-David


Mime
View raw message