4

According to the documentation, NServiceBus persists messages via the Management Service in a RavenDB stored in C:\ProgramData\Particular\ServiceBus.Management\Data. See Working with Error and Audit queues.

Ayende has confirmed that the database can only increase in size, never return the allocated disk space.

My problem is that the Data-file is now exceeding 20GB with +3 million messages.

Note that these messages are in the management DB, not in any of the message queue databases, which are stored in C:\Program Files\NServiceBus.Persistence.v4\Database\Databases.

The three million messages can be viewed in ServiceInsight, but I cannot delete them. All MSMQ queues are empty, and the queue-databases are around 1MB in size.

Question: How can I purge the Management Service / Particular Management database?

Sub-question: How can I prevent this form happening again? Is there a setting I'm missing?

4

2 回答 2

3

旧版本的 ServiceControl 曾经被称为特定管理服务,您提到的数据文件就是为此。如果您卸载了旧版本(用于安装此 Windows 服务的 NServiceBus 安装程序),则不再需要。你可以删除它。

更多关于 ServiceControl 数据文件的最新版本在这里:http ://docs.particular.net/ServiceControl/configure-ravenb-location

此外,使用最新版本的 ServiceControl,以下是设置过期策略的方法:http: //docs.particular.net/ServiceControl/how-purge-expired-data

在此处获取最新信息:http: //particular.net/downloads

于 2014-04-18T16:36:45.910 回答
0

您可以强制对数据库进行压缩。

http://localhost:8080/admin/compact?database=YOUR_DB_NAME

于 2014-04-17T16:14:54.883 回答