Good news and bad news.
I turned on debugging and watched the log. I saw it was trying to deliver a message from the outgoing spool. I decided I want to clear the spool out, regardless of what was in it because I wanted to remove any variables. There was only one message in it, so I deleted it.
I restarted James and the CPU utilization spiked in the beginning (during start up) and then quickly dropped down below 1% like it should!
I was dumbfounded, so I clicked back in my browser (I have a simple web interface to deal with the spools and whatnot) and saw that the message that was in the spool had been in the spool for over a month.
That message had to be reason why RemoteDelivery was spinning, but why was it causing RemoteDelivery to spin? I have no idea, and the bad news is that I already deleted it, so I don't have a copy to look at. I know it was going to someone at wesfin.com, but that's about it.
So, I did some "dig"ing and it looks like the MX record for wesfin.com points to www.wesfin.com and www.wesfin.com only has a CNAME that points at www.wesfin.com. So the org.xbill.DNS code was spinning recursively trying to resolve the mail exchanger for wesfin.com.
Thank you for your help, Noel. You are always my savior.
I'm going to try to go find the code in org.xbill.DNS that is doing this so I can try to submit a patch.
Kenny Smith Pastor of the First Church of Noel
Noel J. Bergman wrote:
Kenny,
64% of the time is spent in java.net.PlainSocketImpl.socketAccept()
15% of the time is spent in org.xbill.DNS.Cache.addRRset() 14% of the time is spent in org.xbill.DNS.Cache.addMessage() 10% of the time is spent in org.xbill.DNS.RRset.getTTL() 9% of the time is spent in java.util.AbstractList.Iterator 6% of the time is spent in org.apache.james.dnsserver.DNSServer.rawDNSLookup
It sounds as if you are stuck in RemoteDelivery.deliver(). Turn on debugging for that mailet:
<debug>true</debug>
If you are stuck in a run() loop, you should immediately see lots of output from the log() calls in run() and deliver().
--- Noel
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]