You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by bu...@apache.org on 2011/10/17 21:17:02 UTC

DO NOT REPLY [Bug 52044] New: Stop TP by menu does not stop Jmeter properly when JMS Subscriber is being used

https://issues.apache.org/bugzilla/show_bug.cgi?id=52044

             Bug #: 52044
           Summary: Stop TP by menu does not stop Jmeter properly when JMS
                    Subscriber is being used
           Product: JMeter
           Version: Nightly (Please specify date)
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: notifications@jakarta.apache.org
        ReportedBy: slavko_h@yahoo.com
    Classification: Unclassified


Created attachment 27800
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27800
screenshot with strange error

r1183374

See attached TP.

Run AMQ web admin monitor and open Queues tab - the queue displays "0" (zero)
Number of consumers.

Run the TP and stop it in few seconds:

1) Jmeter is not stopping - "Shutting does all test treads. Please be patient"
message is staying forever;
2) Check AMQ web-console - there are all initiated threads have not been closed
its connections;
3) stramge error for "JMS Subscriber - 001" - Response message:
javax.naming.NamingException: Something already bound at Elite_To_MorphoTrak;

ER:
1) Jmeter stops successfully; 
2) AMQ displays "0" consumers against the queue;
3) error for "JMS Subscriber - 001" has to be "0 message(s) received
successfully";

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 52044] JMS Subscriber used with many threads leads to javax.naming.NamingException: Something already bound with ActiveMQ

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52044

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> 2011-10-18 20:58:52 UTC ---
Date: Tue Oct 18 20:58:08 2011
New Revision: 1185853

URL: http://svn.apache.org/viewvc?rev=1185853&view=rev
Log:
Bug 52044 - JMS Subscriber used with many threads leads to
javax.naming.NamingException: Something already bound with ActiveMQ

Performances impact of No Caching of InitialContext are low.

Modified:
  
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/Utils.java
  
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/InitialContextFactory.java
  
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/Publisher.java
  
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/ReceiveSubscriber.java
  
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java
  
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/SubscriberSampler.java
   jakarta/jmeter/trunk/xdocs/changes.xml

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 52044] Stop TP by menu does not stop Jmeter properly when JMS Subscriber is being used

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52044

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

--- Comment #3 from Philippe Mouawad <p....@ubik-ingenierie.com> 2011-10-18 06:43:37 UTC ---
(In reply to comment #0)
> Created attachment 27800 [details]
> screenshot with strange error
> 
> r1183374
> 
> See attached TP.
> 
> Run AMQ web admin monitor and open Queues tab - the queue displays "0" (zero)
> Number of consumers.
> 
> Run the TP and stop it in few seconds:
> 
> 1) Jmeter is not stopping - "Shutting does all test treads. Please be patient"
> message is staying forever;
JMeter cannot "shutdown" unless it receives a message because you set timeout
to 0
(means no timeout) so JMeter is waiting on receive until it receives a
message(I don't see any solution to
this unless interrupt is fixed in AMQ so stop will work)

My test with Stop works.


> 2) Check AMQ web-console - there are all initiated threads have not been closed
> its connections;
Yes duplicate of bug 51997

> 3) stramge error for "JMS Subscriber - 001" - Response message:
> javax.naming.NamingException: Something already bound at Elite_To_MorphoTrak;
> 
This issue is mentionned by many AMQ client and not reproductible with OpenJMS.
It is related to ReadOnlyContext and LazyCreateContext in AMQ, maybe you should
check AMQ issues.
I think it's a concurrency issue in AMQ JNDI layer.
Maybe you should submit an issue to AMQ.
Test with OpenJMS is OK.

> ER:
> 1) Jmeter stops successfully; 
> 2) AMQ displays "0" consumers against the queue;
> 3) error for "JMS Subscriber - 001" has to be "0 message(s) received
> successfully";

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 52044] JMS Subscriber used with many threads leads to javax.naming.NamingException: Something already bound with ActiveMQ

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52044

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|PC                          |All
            Summary|Stop TP by menu does not    |JMS Subscriber used with
                   |stop Jmeter properly when   |many threads leads to
                   |JMS Subscriber is being     |javax.naming.NamingExceptio
                   |used                        |n: Something already bound
                   |                            |with ActiveMQ

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 52044] Stop TP by menu does not stop Jmeter properly when JMS Subscriber is being used

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52044

Yaroslav <sl...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|                            |All

--- Comment #2 from Yaroslav <sl...@yahoo.com> 2011-10-17 20:41:58 UTC ---
Using "Shutdown" from menu also does not work (same behave as by Stop).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 52044] JMS Subscriber used with many threads leads to javax.naming.NamingException: Something already bound with ActiveMQ

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52044

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Philippe Mouawad <p....@ubik-ingenierie.com> 2011-10-19 20:53:29 UTC ---
Date: Wed Oct 19 20:51:36 2011
New Revision: 1186482

URL: http://svn.apache.org/viewvc?rev=1186482&view=rev
Log:
Bug 52044 - JMS Subscriber used with many threads leads to
javax.naming.NamingException: Something already bound with ActiveMQ

Added ThreadId in cache key

Modified:
  
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/InitialContextFactory.java
   jakarta/jmeter/trunk/xdocs/changes.xml

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 52044] JMS Subscriber used with many threads leads to javax.naming.NamingException: Something already bound with ActiveMQ

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52044

Bug 52044 depends on bug 51997, which changed state.

Bug 51997 Summary: Calling Stop when running a Test with JMS Subscriber leaves connection to JMS servers open
https://issues.apache.org/bugzilla/show_bug.cgi?id=51997

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 52044] Stop TP by menu does not stop Jmeter properly when JMS Subscriber is being used

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52044

--- Comment #1 from Yaroslav <sl...@yahoo.com> 2011-10-17 19:17:35 UTC ---
Created attachment 27801
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27801
JMeter TP

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 52044] JMS Subscriber used with many threads leads to javax.naming.NamingException: Something already bound with ActiveMQ

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52044

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #6 from Philippe Mouawad <p....@ubik-ingenierie.com> 2011-10-19 19:46:15 UTC ---
Date: Wed Oct 19 19:44:57 2011
New Revision: 1186430

URL: http://svn.apache.org/viewvc?rev=1186430&view=rev
Log:
Bug 52044 - JMS Subscriber used with many threads leads to
javax.naming.NamingException: Something already bound with ActiveMQ

Revert of modifications

Modified:
  
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/Utils.java
  
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/InitialContextFactory.java
  
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/Publisher.java
  
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/ReceiveSubscriber.java
  
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java
  
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/SubscriberSampler.java
   jakarta/jmeter/trunk/xdocs/changes.xml

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 52044] JMS Subscriber used with many threads leads to javax.naming.NamingException: Something already bound with ActiveMQ

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52044

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
         Depends on|                            |51997

--- Comment #4 from Philippe Mouawad <p....@ubik-ingenierie.com> 2011-10-18 20:42:27 UTC ---
>From this issue, the only one I reproduce is:
stramge error for "JMS Subscriber - 001" - Response message:
> javax.naming.NamingException: Something already bound at Elite_To_MorphoTrak;

The other one is duplicate of bug 51997.
The first one (Shutdown blocking is regular) and works when Stop  is used.


I investigated this issue "javax.naming.NamingException: Something already
bound".

I created a simple test case and tried not to cache Context and it works fine.
and in fact it is due to the fact that we cache Context and use it by many
threads.
>From this:
http://download.oracle.com/javase/jndi/tutorial/beyond/misc/sync.html

I conclude we should not do caching as it is not mandatory that context is
Thread Safe (and it's not the case for AMQ one).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org