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
-
思考狮身人面像血统搜索(Thinking sphinx ancestry searching)[2024-04-06]
终于找到了问题所在: 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定义为字段 ...
-
思考Sphinx没有将相关数据索引到搜索到的模型(Thinking Sphinx not indexing associated data to model searched by)[2022-05-13]
问题与权限和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 ...