Show Table of Contents
20.12.4. 关于 HornetQ 的日志类型
HornetQ 里有两种日志类型:
- ASYNCIO
- NIO
ASYNCIO 日志类型,也称为 AIO,是 Linux 异步 IO 库(AIO)的一个瘦原生代码 wrapper。使用原生功能可以提供比 NIO 更好的性能。这个日志类型只被 Red Hat 企业版 Linux 支持且需要在 JBoss EAP 6 运行的位置安装
libaio 和 Native Components 软件包。关于安装 Native Components 软件包的说明,请参考《安装指南》。
重要
请在 JBoss EAP 6 启动后检查服务器日志,以确保成功加载原生库且使用 ASYNCIO 日志类型。如果原生库加载失败,HornetQ 将使用 NIO 日志类型并在服务器日志里注明。
NIO 日志类型使用标准的 Java NIO 与文件系统交互。这提供了极佳的性能且可以运行在所有支持的平台上。
要指定 HornetQ 日志类型,请在
Messaging 子系统里设置 <journal-type> 参数。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.