Question

I'm using ActiveMQ with the C# client library. I created 10,000 topics with random names as part of a test for evaluation purposes and now I can't get rid of the topics. ActiveMQ grinds to a halt with this number of topics so I need them out of the system. Here is what I have tried so far, and none of it has worked. I'm running ActiveMQ as a Windows service.

  • Delete all of the files and folders in ACTIVEMQ_HOME\Data
  • Turn off all persistence
  • Delete all of the files and folders in the persistence folder
  • Delete the entire ACTIVEMQ_HOME directory and reinstall it in a different folder

I've traced the file activity and cannot find any file that is written to when a topic is created or deleted.

I realize that the .NET client library is a little light on functionality, so I can't even get a list of all the topics programmatically.

Was it helpful?

Solution

Go to your broker configuration file, open the file for editing on the broker element, add the following attribute:

deleteAllMessagesOnStartup="true"

This will cause all previous topics & queues, and their pending messages to be deleted from your kaha store when you restart your broker.

Have Fun!

OTHER TIPS

If you upgrade your activemq version to 5.8.0, you can use REST API to manage the broker. But in 5.7.0 or earlier, the management interface only can be accessed by JMX in java environment.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top