Hi Steve,

I'm using the JDBC repository and I've looked in the queue. There's usually between 0 and 2 messages in it. However, that shouldn't create 95% CPU usage because if it's queued it should wait a while and then try sending again.

Thanks for the response, I appreciate the ability to talk the problem out!
Kenny

Steve Short wrote:
Kenny,

Quick thought - RemoteDelivery has it's own queue in var/mail/outgoing.
See if there are any messages in there.

Steve


-----Original Message-----
From: Kenny Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 4:33 PM
To: James Developers List
Subject: High CPU Load Followup



Hi all,


Thanks to a pointer from Steve Brewin I was able to get some thread dumps while James is running above 90% CPU. I took 4 thread dumps: 3 within a minute and 1 an hour later. It looks like there are 4 threads that are runnable. 3 that are waiting for socket connections (I assume that's SMTP, POP, and the Admin Manager), the last 1 is doing DNS for remote delivery. Here's the stack:

"Remote delivery thread (1)" prio=1 tid=0x0x8133590 nid=0x2f8d runnable [4da1e000..4da1f830]
at org.xbill.DNS.RRset.first(RRset.java:165)
at org.xbill.DNS.RRset.getType(RRset.java:126)
at org.xbill.DNS.Cache.addRRset(Cache.java:247)
at org.xbill.DNS.Cache.addMessage(Cache.java:609)
at org.apache.james.dnsserver.DNSServer.rawDNSLookup(DNSServer.java:322)
at org.apache.james.dnsserver.DNSServer.lookup(DNSServer.java:267)
at org.apache.james.dnsserver.DNSServer.findMXRecords(DNSServer.java:211)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
orImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
odAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.avalon.phoenix.components.application.BlockInvocati
onHandler.invoke(BlockInvocationHandler.java:92)
at $Proxy0.findMXRecords(Unknown Source)
at org.apache.james.James.getMailServers(James.java:618)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
orImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
odAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.avalon.phoenix.components.application.BlockInvocati
onHandler.invoke(BlockInvocationHandler.java:92)
at $Proxy9.getMailServers(Unknown Source)
at org.apache.james.transport.mailets.RemoteDelivery.deliver(Remo
teDelivery.java:288)
at org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDe
livery.java:797)
at java.lang.Thread.run(Thread.java:536)



There isn't anything in the spool (or at least not in the spool long enough for me to catch it in a snap shot. The server is barely receiving any email, so its not under load due to too much email.. I'm at my wits end, its negatively impacting the rest of my website. I'm starting to get Internal Server Errors because Apache can't get the CPU long enough to respond to a request.


Any help at all will be really appreciated.

Kenny Smith
JournalScape.com


--------------------------------------------------------------------- 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]




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



Reply via email to