Hi
This is a simple test I did , I just had to stick in start time and end
time in Remote Delivery Mailet between the code that does the lookup.
Its just a simple test but its really showing me what I am failing to
understand. I actually noticed this when I sent mailing list with about
300 emails and it took about one and half days to clear up the mail in
the spool.
Is it because I am using J2sdk1.4.1 on windows 2000 ,
because if doing lookups manually using nslookup (windows 2000) is that
fast, I don't think it is the network.
Could you tell me what Platform you are using eg. Operating system, and
JVM version may it could help.
Here is the code in RemoteDelivery Mailet
private boolean deliver(MailImpl mail, Session session) {
.....
//Lookup the possible targets
startTime=System.currentTimeMillis();
targetServers = getMailetContext().getMailServers(host);
endTime=System.currentTimeMillis();
System.out.println("Time Taken to look up
hostname:"+host+"is=" + (endTime-startTime)/1000);
...............
}
it just prints out the time taken to execute that piece of code ,it's a
clumsy way to find out ,or maybe it's the wrong way !
Thanks
kwiri
-----Original Message-----
From: Serge Knystautas [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 3:17 PM
To: James Developers List
Subject: Re: DNS Lookups taking too long
Kwirirai wrote:
> Hi Guys
> I have recently tested out the time it takes to do DNS lookups for
James
> 2.1 release ,
> what I have released it seems to be taking too long for MX record
> lookups to be done.
> On average estimate, it takes about two minutes to do the lookups .
> Is there a way that these lookups can be tuned so that the lookups can
> take a much shorter time,
> or does this depend on the network one is using to the lookups ,
> or there is some configuration that needs to be done to make it go
fast.
> I have used nslookup from windows 2000 to lookup records on the same
> machine running James and also querying the same Name Server
> and it is fast on giving back the records (just a few seconds).
Can I ask how you were doing the tests? I've never seen James take that
long for lookups, so I have to think it's a problem with your network or
DNS servers.
--
Serge Knystautas
Loki Technologies
http://www.lokitech.com
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>