ASF Bugzilla – Attachment 21083 Details for
Bug 43791
JMeter will use 100%CPU if message broker is stopped
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Diff file (Receiver.java)
43791.txt (text/plain), 1.45 KB, created by
Alessio Tomasino
on 2007-11-03 10:21:12 UTC
(
hide
)
Description:
Diff file (Receiver.java)
Filename:
MIME Type:
Creator:
Alessio Tomasino
Created:
2007-11-03 10:21:12 UTC
Size:
1.45 KB
patch
obsolete
>Index: C:/ASF/Eclipse_WS_JMeter/JMeter/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/Receiver.java >=================================================================== >--- C:/ASF/Eclipse_WS_JMeter/JMeter/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/Receiver.java (revision 591651) >+++ C:/ASF/Eclipse_WS_JMeter/JMeter/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/Receiver.java (working copy) >@@ -75,13 +75,16 @@ > if (reply != null) { > > if (log.isDebugEnabled()) { >- log.debug("Received message, correlation id:" + reply.getJMSCorrelationID()); >+ log.debug("Received message, correlation id:" >+ + reply.getJMSCorrelationID()); > } > > if (reply.getJMSCorrelationID() == null) { >- log.warn("Received message with correlation id null. Discarding message ..."); >+ log >+ .warn("Received message with correlation id null. Discarding message ..."); > } else { >- MessageAdmin.getAdmin().putReply(reply.getJMSCorrelationID(), reply); >+ MessageAdmin.getAdmin().putReply( >+ reply.getJMSCorrelationID(), reply); > } > } > >@@ -90,9 +93,12 @@ > } > } > // not active anymore >- if (session != null) { >+ // close consumer, session & connection >+ if (consumer != null) { > try { >- session.close(); >+ consumer.close(); >+ if (session != null) >+ session.close(); > if (conn != null) > conn.close(); > } catch (JMSException e) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43791
: 21083