Re: ArrayIndexOutOfBoundsException in ActiveMQ v5.11.1

2016-08-17 Thread Tim Bain
RuralHunter had what appears to be the same issue not long ago: http://activemq.2283324.n4.nabble.com/nio-buffer-memory-problem-td4712706.html AMQ-6184 appears to fix the problem (rather than just work around it like the suggestions in the mailing l

Re: Ack,Redelivery,sessionTransacted--- Consumer Slowly!!!

2016-08-17 Thread Tim Bain
I'm still not clear what question you're asking. I sympathize with you for having to ask questions in a language that's not your native one, and I'm happy to work through the language challenges, but I'll probably need you to use more words (a lot more words) to describe your question. If you ove

Re: activemq 3000 messages can not be received

2016-08-17 Thread Tim Bain
The fact that your number of dispatched messages is an exact multiple of your prefetch size tells me that some of your threads (which sound like they're each acting as a JMS consumer, for a total of 8 consumers; you can confirm that via the brokers' web consoles) are probably slow or blocked, so I'

Re: Aysnc ActiveMQ MDB unable to consume messages

2016-08-17 Thread Tim Bain
Are messages being delivered to your MDB, just not consumed? That would indicate that you're failing to ack the messages, perhaps because you're using INDIVIDUAL_ACK mode and not explicitly acking your messages. Or are they never being delivered to your MDB at all? The fact that you see them in

Re: What is the proper way to configure multiple brokers on the same machine in regard to jmx

2016-08-17 Thread Tim Bain
Why is your connectorPort in your second management context 1099? Shouldn't that be 12099? On Wed, Aug 17, 2016 at 12:22 PM, mlange wrote: > I should note the following few things: > - Java version is 1.7.0 (openJDK) > - ActiveMQ is version 5.14.0 > > > > > > -- > View this message in context: h

Re: Network of brokers setup error

2016-08-17 Thread Tim Bain
The static:failover: transport pair only works for networkConnectors when you specify the maxReconnectAttempts=0 option on the failover transport. This is not needed for client connections, only for broker-to-broker networkConnectors. Or you could just use the masterslave: transport, which is synt

Re: Using Trusted Cert with ActiveMQ SSL

2016-08-17 Thread Tim Bain
I can add or update content to the ActiveMQ wiki if you're willing to create it. But I can't put anything into the RedHat Fuse documentation to which you originally linked... Tim On Wed, Aug 17, 2016 at 10:46 AM, KenHall wrote: > Hi Tim > > The key was 'the key' and I have resolved the issue n

Re: Dead lock in 5.13.3

2016-08-17 Thread RuralHunter
I have the We don't use ws protocol, only use openwire and nio. Is AMQ-6275 still related? I upgraded to 5.13.4 anyway. Let's see if it happens again. -- View this message in context: http://activemq.2283324.n4.nabble.com/Dead-lock-in-5-13-3-tp4715561p4715605.html Sent from the ActiveMQ - Use

Re: Network of brokers setup error

2016-08-17 Thread mtod
Additional info I left out. This is running ActiveMQ 5.14 in a SQL lock / Kahadb configuration on Windows 2012 core servers. -- View this message in context: http://activemq.2283324.n4.nabble.com/Network-of-brokers-setup-error-tp4715603p4715604.html Sent from the ActiveMQ - User mailing lis

Network of brokers setup error

2016-08-17 Thread mtod
I have some issues with the network of brokers configuration I keep getting a failure to connect. The setup for the network of brokers is as follows: Broker1 Master/Slave Node 1 (Master) Node 2 (Slave) Broker 2 Master/Slave Node 1 (Master) Node 2 (Slave)

Aysnc ActiveMQ MDB unable to consume messages

2016-08-17 Thread Poonam Bhatia
Hi, I am working on one of the projects where I am facing an issue with messages getting stuck in pending queue and not getting dequeued with Async consumer. My JMS producer is running on one Websphere instance where as my consumer is running on another Websphere instance. I am publishing the mes

Re: Replicated LevelDB uses Apache ZooKeeper problem

2016-08-17 Thread ppusar
Hi I am also facing the same issue.Kindly suggest the solution.I have restarted zookeeper one after other in three servers.2. after starting the slave server activemq i am getting above issue reported. -- View this message in context: http://activemq.2283324.n4.nabble.com/Replicated-LevelDB-use

Re: Replicated LevelDB uses Apache ZooKeeper problem

2016-08-17 Thread mlange
I think your ZooKeeper elects a master, look at the slave log: 2016-03-08 02:08:05,307 | INFO | Promoted to master | org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread However, something goes wrong, and I think it is the hostname in your persistenceAdapter: hostname="192.16

Re: What is the proper way to configure multiple brokers on the same machine in regard to jmx

2016-08-17 Thread mlange
I should note the following few things: - Java version is 1.7.0 (openJDK) - ActiveMQ is version 5.14.0 -- View this message in context: http://activemq.2283324.n4.nabble.com/What-is-the-proper-way-to-configure-multiple-brokers-on-the-same-machine-in-regard-to-jmx-tp4715589p4715590.html Sent

What is the proper way to configure multiple brokers on the same machine in regard to jmx

2016-08-17 Thread mlange
For various purposes, I wish to define various brokers on the same machine. For example: some queues require ordering of data, and thus use the replicatedLevelDb as persistence adapter, others don't even need persistence or ordering and can use only memory in order to provide faster throughput, etc

Re: Using Trusted Cert with ActiveMQ SSL

2016-08-17 Thread KenHall
Hi Tim The key was 'the key' and I have resolved the issue now - thanks for your help. I have documented the process for our internal use and I would like to save someone else the pain - is there someone in the community that I can submit documentation to so that it can be made part of the Active

Re: Using Trusted Cert with ActiveMQ SSL

2016-08-17 Thread Tim Bain
I personally don't know of a guide that's better than the rest, though I've always been able to just use keytool from our OpenSSH installs and I've never had trouble finding tutorials online with a few minutes of Google searching. But the process for importing keys into a keystore is pretty far ou

Re: Dead lock in 5.13.3

2016-08-17 Thread Christopher Shannon
Yep, AMQ-6275 does look like it might be the fix for this particular issue. If the issue occurs again after upgrading to 5.13.4 or 5.14.0 it can be looked at more closely. I said earlier that it could be tricky because there could be things such as destination interceptors, various optional plugi

Re: Using Trusted Cert with ActiveMQ SSL

2016-08-17 Thread KenHall
OK - I Have found the key - when I created the Signing Request I ended up with two files : 111_222_111_222.csr 111_222_111_222.key (although this was on ourmq.ourco.com the files seemed to take the IP address - I assume this won't matter) So from what you say 111_222_111_22.key and this should b

Re: Dead lock in 5.13.3

2016-08-17 Thread Tim Bain
If so, an upgrade to 5.13.4 or 5.14.0 would be all that's needed. On Aug 17, 2016 7:08 AM, "Timothy Bish" wrote: > > Could be this. > https://issues.apache.org/jira/browse/AMQ-6275 > > On 08/17/2016 09:03 AM, Tim Bain wrote: > >> The stack trace tells us one of the locks, so there should be a pr

Re: Using Trusted Cert with ActiveMQ SSL

2016-08-17 Thread Tim Bain
A cert is a wrapper around the public key from a public-private key pair. Either you created your own keypair and asked the CA to create the cert using the public key (in which case you just need to go find the private key) or you asked the CA to generate a new keypair for you and create a cert fro

Re: Using Trusted Cert with ActiveMQ SSL

2016-08-17 Thread KenHall
Hi Tim, I assumed that a key was created in the key store when a cert was added. If that's not the case - how do I create a key? and how do I install it? Is this key related to the Certificate Signing request that I used to get a Certificate from the CA? Ken -- View this message in context:

Re: Dead lock in 5.13.3

2016-08-17 Thread Timothy Bish
Could be this. https://issues.apache.org/jira/browse/AMQ-6275 On 08/17/2016 09:03 AM, Tim Bain wrote: The stack trace tells us one of the locks, so there should be a pretty limited number of other locks that the thread in question acquires, so the search space shouldn't be too large. It's not

Re: Dead lock in 5.13.3

2016-08-17 Thread Tim Bain
The stack trace tells us one of the locks, so there should be a pretty limited number of other locks that the thread in question acquires, so the search space shouldn't be too large. It's not guaranteed that someone will be able to figure it out, but I think the odds are good. On Aug 17, 2016 6:5

Re: Using Trusted Cert with ActiveMQ SSL

2016-08-17 Thread Tim Bain
I want to highlight a phrase you quoted from the documentation you referenced: "The broker is configured to have its own certificate and private key." I see where you installed the broker's cert (the ourco one), but i don't see in your description where you installed the private key. Did that happ

Re: Dead lock in 5.13.3

2016-08-17 Thread Christopher Shannon
This will be kind of tricky to figure out because your jstack only printed out the stack trace for one of the threads. Without the other thread is will be hard to know exactly what caused the deadlock. On Wed, Aug 17, 2016 at 8:48 AM, Tim Bain wrote: > Please submit a bug in JIRA; it should be

Re: Dead lock in 5.13.3

2016-08-17 Thread Tim Bain
Please submit a bug in JIRA; it should be possible for someone to figure out the root cause based on the one stack trace you did get. Tim On Aug 16, 2016 9:45 PM, "RuralHunter" wrote: > I got a dead lock in 5.13.3. But the jstack failed to get the stack of the > locking threads: > Deadlock Dete

Re: Artemis JVM shutdown

2016-08-17 Thread Tim Bain
One of the answers to http://stackoverflow.com/questions/191215/how-to-stop-java-process-gracefully shows a way to do it using JMX after modifying the JVM's command line options. On Aug 17, 2016 2:45 AM, "Ulf Lilleengen" wrote: > Hi, > > I'm looking for a way to shutdown artemis and the JVM remo

Artemis JVM shutdown

2016-08-17 Thread Ulf Lilleengen
Hi, I'm looking for a way to shutdown artemis and the JVM remotely. As of now, I'm able to send the forceFailover operation, but it doesn't shut down the JVM, which is what I am after. If this is not already supported, does it make sense to support it in some way? Is there an approach that I