首页 \ 问答 \ HornetQ在ubuntu上没有使用AIO(HornetQ not using AIO on ubuntu)

HornetQ在ubuntu上没有使用AIO(HornetQ not using AIO on ubuntu)

我已经在ubuntu上安装了libaio,并运行HornetQ嵌入式,使用程序化配置,我这样做是为了在日志上使用AIO,但我在启动时看到,它没有得到AIO,总是使用NIO。 有什么方法可以确定失败的原因吗?

        Configuration configuration = new ConfigurationImpl();
        boolean supportsAIO = AIOSequentialFileFactory.isSupported();
        if (supportsAIO) {
            configuration.setJournalType(JournalType.ASYNCIO);
            log.info("** using AIO **");
        } else {
            configuration.setJournalType(JournalType.NIO);
            log.info("** using NIO **");
        }

I have installed libaio on ubuntu, and running HornetQ embedded, with programmatic config, I am doing this to use AIO on journal, but I see on startup, it's not getting AIO, always using NIO. Any way to determine why it would be failing?

        Configuration configuration = new ConfigurationImpl();
        boolean supportsAIO = AIOSequentialFileFactory.isSupported();
        if (supportsAIO) {
            configuration.setJournalType(JournalType.ASYNCIO);
            log.info("** using AIO **");
        } else {
            configuration.setJournalType(JournalType.NIO);
            log.info("** using NIO **");
        }

原文:https://stackoverflow.com/questions/22523573
更新时间:2023-05-05 12:05

最满意答案

我遇到了同样的问题。 尝试使用Riddle.escape转义您要查询的字符串。

搜索可能是:

Post.search(Riddle.escape("$foo@bar/something") # no idea why you would search for that

I've run in to this same issue. Try escaping the string you are querying against using Riddle.escape.

So a search might be:

Post.search(Riddle.escape("$foo@bar/something") # no idea why you would search for that

相关问答

更多
  • 如果你使用active_ids作为属性(如果它是整数,当然是合适的),那么它应该是:with选项中的过滤器,而不是:conditions选项。 我不确定这是否相关,但值得注意的是你在查询字符串中拼错了对齐(你有了alignmemt)。 If you're using active_ids as an attribute (which, if it's integers, is certainly appropriate), then it should be a filter in the :with op ...
  • 属性应声明为: has company_id 所以,在你的情况下: Model: define_index do indexes :name has :company_id end Attributes should be declared as: has company_id So, in you case: Model: define_index do indexes :name has :company_id end
  • 终于找到了问题所在: has "CONCAT_WS('/',groups.id,groups.ancestry)", as: :group_ids, type: :integer, multi: true 每组仅返回1个id或祖先,这意味着如果用户具有很少的根组,例如3,5上面的表达式将仅返回1个组: +----+--------+-----------+ | id | groups | group_ids | +----+--------+-----------+ | 39 | 5 | 5/3 ...
  • 你的问题不在于sphinx,而是你的shell。 引用你的意见。 search -c /etc/sphinx/sphinx.conf '100021/hello' search命令也只是一种测试工具。 如果您需要针对sphinx进行编码,则应使用您编写的任何语言的API。 Your issue isn't with sphinx it's with your shell. Quote your input. search -c /etc/sphinx/sphinx.conf '100021/hello' A ...
  • 这里有一些问题需要注意: 首先,你在rake ts:rebuild期间看到的错误rake ts:rebuild指出你没有在ProductType Sphinx索引中设置任何字段 - 没有indexes调用你想要搜索的文本数据。 你真的在搜索ProductType吗? 如果是这样,你期望人们匹配的文字是什么? 如果您没有在该模型上搜索,则无需为其提供Sphinx索引。 其次,您的搜索问题 - 您使用整数过滤product_types ,这是有道理的。 但是,在索引中,您已将product_types定义为字段 ...
  • 问题与权限和Capistrano发布目录结构有关。 该服务由root拥有,从较旧版本运行,并且不会停止使用用户级别的rake ts:stop,它要求我以root身份运行它,然后从当前版本目录启动该服务。 此时,数据正在正确显示。 The problem had to do with permissions and the Capistrano release directory structure. The service was owned by root, was running from an old ...
  • 我遇到了同样的问题。 尝试使用Riddle.escape转义您要查询的字符串。 搜索可能是: Post.search(Riddle.escape("$foo@bar/something") # no idea why you would search for that I've run in to this same issue. Try escaping the string you are querying against using Riddle.escape. So a search might ...
  • 在文档MVA和sql_attr_multi中查看MVA - 多值属性。 我过去曾用这个来搜索“人”的“利益”。 所以我可能喜欢摇滚乐和看橄榄球。 Sphinx可以在数组中对此进行索引,您可以使用OR或AND匹配来搜索它们。 Take a look at MVA - Multi Value Attributes, in the documentation MVA and sql_attr_multi. I have used this in the past to search "interests" aga ...
  • 思维Sphinx没有内置任何东西来为多边形搜索提供一个整洁的界面,但它当然可以使用该功能。 您需要生成您想要的SphinxQL SELECT子句,相应地对其进行过滤,和/或您可以使用AttributesPane访问自定义AttributesPane 。 希望以下代码清楚: search = Model.search("foo", :select => "*, CONTAINS(GEOPOLY2D(...), ...) AS inside", :with => {:inside => true} ...
  • name应作为链接方法传递,而不是作为参数传递 indexes sub_category.category.name , :as => "category_name" 感谢主人帕特帮助我 关注github线程 name should be passed as a chained method, not as an argument indexes sub_category.category.name , :as => "category_name" Thanks to the owner Pat for ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。