Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- QueueDepth dropping to 0, Message Cach

- QueueDepth dropping to 0, Message Cach

2007-07-15       - By syedtaj

 Back
Hi,

We are having a production issue at the moment while submitting messages into a
queue. Using Jboss 4.0.4GA

When a message is submitted in the queue, it is consumed successfully. We have
about 40 consumers. However when the messages grow in number, we start facing a
lot of problem.

The queue depth of the queue drops to 0. Imaging that we have about 3000
messages in the queue. 40 consumers looking in the same queue, as soon as the
consumers are up, the messages in the queue (watch from jmx-console) drop to 0,
even though the messages are still present in the table. The consumers process
the first batch of messages and since the queue is 0, they wait and only pick
up any new message that come in.

The code of the consumer is pretty simple, picks up a message, that would
delete it from the queue, process it and return it back.

On tracing the logs, i found the following messages. I hope someone can throw
light on the messages.

anonymous wrote :
 | 2007-07-15 20:34:10,967 34037114 TRACE [org.jboss.mq.il.uil2
.ServerSocketManagerHandler] (UIL2(SocketManager.MsgPool@(protected) client=10.0.10
.76:1057)#44:) Begin handleMsg, msgType: 17
 | 2007-07-15 20:34:10,967 34037114 TRACE [org.jboss.mq.server
.TracingInterceptor] (UIL2(SocketManager.MsgPool@(protected) client=10.0.10.76:1057)
#44:) CALLED : transact
 | 2007-07-15 20:34:10,967 34037114 TRACE [org.jboss.mq.server
.TracingInterceptor] (UIL2(SocketManager.MsgPool@(protected) client=10.0.10.76:1057)
#44:) ARG    : org.jboss.mq.TransactionRequest@(protected)
 | 2007-07-15 20:34:10,967 34037114 TRACE [org.jboss.mq.server.BasicQueue]
(UIL2(SocketManager.MsgPool@(protected) client=10.0.10.76:1057)#44:) acknowledge
AcknowledgementRequest:NACK,QUEUE.dispatchToNodeQueue,ID:80-11845251473901932
40564 org.jboss.mq.server.PersistentQueue@(protected){id=QUEUE.dispatchToNodeQ
 | ueue}
 | 2007-07-15 20:34:10,967 34037114 TRACE [org.jboss.mq.server.BasicQueue]
(UIL2(SocketManager.MsgPool@(protected) client=10.0.10.76:1057)#44:) acknowledge
AcknowledgementRequest:NACK,QUEUE.dispatchToNodeQueue,ID:80-11845252759362864
40564 org.jboss.mq.server.PersistentQueue@(protected){id=QUEUE.dispatchToNodeQ
 | ueue}
 | 2007-07-15 20:34:10,967 34037114 TRACE [org.jboss.mq.server.BasicQueue]
(UIL2(SocketManager.MsgPool@(protected) client=10.0.10.76:1057)#44:) acknowledge
AcknowledgementRequest:NACK,QUEUE.dispatchToNodeQueue,ID:80-11845305688096079
40564 org.jboss.mq.server.PersistentQueue@(protected){id=QUEUE.dispatchToNodeQ
 | ueue}
 | 2007-07-15 20:34:10,968 34037115 TRACE [org.jboss.mq.server.BasicQueue]
(UIL2(SocketManager.MsgPool@(protected) client=10.0.10.76:1057)#44:) acknowledge
AcknowledgementRequest:NACK,QUEUE.dispatchToNodeQueue,ID:80-11845305690466087
40564 org.jboss.mq.server.PersistentQueue@(protected){id=QUEUE.dispatchToNodeQ
 | ueue}
 | ....................
 |

followed by

anonymous wrote :
 | 2007-07-15 20:34:10,976 34037123 TRACE [org.jboss.mq.server.BasicQueue]
(UIL2(SocketManager.MsgPool@(protected) client=10.0.10.76:1057)#44:) Restoring
message: 4911 msg=4523 hard STORED PERSISTENT queue=QUEUE.dispatchToNodeQueue
priority=4 lateClone=false hashCode=16957640
 | 2007-07-15 20:34:10,976 34037123 TRACE [org.jboss.mq.pm.jdbc2
.PersistenceManager] (UIL2(SocketManager.MsgPool@(protected) client=10.0.10.76:1057)
#44:) Updating message 4911 msg=4523 hard STORED PERSISTENT queue=QUEUE
.dispatchToNodeQueue priority=4 lateClone=false hashCode=16957640 transaction
=null
 | 2007-07-15 20:34:10,980 34037127 TRACE [org.jboss.mq.pm.jdbc2
.PersistenceManager] (UIL2(SocketManager.MsgPool@(protected) client=10.0.10.76:1057)
#44:) Updated message 4911 msg=4523 hard STORED PERSISTENT queue=QUEUE
.dispatchToNodeQueue priority=4 lateClone=false hashCode=16957640 transaction
=null
 | 2007-07-15 20:34:10,982 34037129 TRACE [org.jboss.mq.server.BasicQueue]
(UIL2(SocketManager.MsgPool@(protected) client=10.0.10.76:1057)#44:)
internalAddMessage  4911 msg=4523 hard STORED PERSISTENT queue=QUEUE
.dispatchToNodeQueue priority=4 lateClone=false hashCode=16957640 org.jboss.mq
.server.Persistent
 | Queue@(protected){id=QUEUE.dispatchToNodeQueue}
 | 2007-07-15 20:34:10,982 34037129 TRACE [org.jboss.mq.server.BasicQueue]
(UIL2(SocketManager.MsgPool@(protected) client=10.0.10.76:1057)#44:)
queueMessageForSending  Subscription[subId=-2147483648connection
=ConnectionToken:ID:6970/48f674041eb704d4535a29e854646d8f destination=QUEUE
.dispatchToNodeQueue mess
 | ageSelector=null Local Create] 4911 msg=4523 hard STORED PERSISTENT queue
=QUEUE.dispatchToNodeQueue priority=4 lateClone=false hashCode=16957640 org
.jboss.mq.server.PersistentQueue@(protected){id=QUEUE.dispatchToNodeQueue}
 |

and so on.

At this point, the queue depth rises but drops steadily again.

However this does not happen all the time, I believe it is triggrered by a
message Begin handleMsg, msgType: 17 . I am unable to understand what is
invoking the same.

Hope some one can throw light on the same.

I have caught something else as well, the message cache softens all the
messages even if enough memory is available and these messages are lost and are
not loaded again.

anonymous wrote : 2007-07-15 14:18:17,740 TRACE [org.jboss.mq.server
.MessageCache] Memory usage serverity=0.22467656
 | 2007-07-15 14:18:17,740 TRACE [org.jboss.mq.server.MessageCache] Need to
soften 242 messages
 | 2007-07-15 14:18:17,740 TRACE [org.jboss.mq.server.MessageCache] Memory
usage serverity=0.22526875
 | 2007-07-15 14:18:17,740 TRACE [org.jboss.mq.server.MessageCache] Need to
soften 242 messages
 | 2007-07-15 14:18:17,740 TRACE [org.jboss.mq.server.MessageCache] Memory
usage serverity=0.22586171
 | 2007-07-15 14:18:17,740 TRACE [org.jboss.mq.server.MessageCache] Need to
soften 241 messages
 | 2007-07-15 14:18:17,740 TRACE [org.jboss.mq.server.MessageCache] Memory
usage serverity=0.22621797
 | 2007-07-15 14:18:17,740 TRACE [org.jboss.mq.server.MessageCache] Need to
soften 241 messages
 | 2007-07-15 14:18:17,740 TRACE [org.jboss.mq.server.MessageCache] Memory
usage serverity=0.2265625
 | 2007-07-15 14:18:17,740 TRACE [org.jboss.mq.server.MessageCache] Need to
soften 240 messages
 | 2007-07-15 14:18:17,740 TRACE [org.jboss.mq.server.MessageCache] Memory
usage serverity=0.22694063
 | 2007-07-15 14:18:17,741 TRACE [org.jboss.mq.server.MessageCache] Need to
soften 240 messages
 |

And after the above gets over - the queue depth is 0.

One more observation:-

anonymous wrote :
 | 2007-07-15 11:43:03,179 TRACE [org.jboss.mq.il.uil2
.ServerSocketManagerHandler] Begin handleMsg, msgType: 13
 | 2007-07-15 11:43:03,179 TRACE [org.jboss.mq.server.TracingInterceptor]
CALLED : receive
 | 2007-07-15 11:43:03,179 TRACE [org.jboss.mq.server.TracingInterceptor] ARG
  : -2147483648
 | 2007-07-15 11:43:03,179 TRACE [org.jboss.mq.server.TracingInterceptor] ARG
  : 60000
 | 2007-07-15 11:43:03,179 TRACE [org.jboss.mq.security
.ServerSecurityInterceptor] Checking receive authorize on ConnectionToken:ID:12
/407a40114e31809c640bd2cb2f6f5021 subId=-2147483648
 | 2007-07-15 11:43:03,179 TRACE [org.jboss.mq.security.SecurityManager]
Checking authorize on subjectInfo: SubjectInfo {subject=Subject:
 |   Principal: guest
 |   Principal: Roles(members:j2ee,guest,john)
 | ;principal=null;roles=Roles(members:j2ee,guest,john) for rolePrincipals
[guest]
 | 2007-07-15 11:43:03,180 TRACE [org.jboss.mq.server.BasicQueue] receive
Subscription[subId=-2147483648connection=ConnectionToken:ID:12
/407a40114e31809c640bd2cb2f6f5021 destination=QUEUE.dispatchToNodeQueue
messageSelector=null Local Create] wait=true org.jboss.mq.server
.PersistentQueue@(protected){id=QUEUE.dispatchToNodeQueue}
 | 2007-07-15 11:43:03,180 TRACE [org.jboss.mq.server.TracingInterceptor]
RETURN : receive
 | 2007-07-15 11:43:03,180 TRACE [org.jboss.mq.il.uil2.SocketManager] Begin
internalSendMessage, one-way msg=org.jboss.mq.il.uil2.msgs.ReceiveMsg33018671
[msgType: m_receive, msgID: 30, error: null]
 | 2007-07-15 11:43:03,180 TRACE [org.jboss.mq.il.uil2.SocketManager] End
internalSendMessage, msg=org.jboss.mq.il.uil2.msgs.ReceiveMsg33018671[msgType:
m_receive, msgID: 30, error: null]
 | 2007-07-15 11:43:03,180 TRACE [org.jboss.mq.il.uil2
.ServerSocketManagerHandler] End handleMsg, msgType: 13
 |

I wonder what msgType:13 stands for. When the above happens the messages drop.

I am at lost what to do. The production system cannot be brought down or
experimented upon. Also we are unable to reproduce the same at a lesser load.

If anyone could provide some suggestions or throw light upon the above events
it would be a great help.

Thanks.

Taj

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4064396#4064396

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4064396
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.