简体   繁体   English

FiWare CEP (Proton) 不通过 REST 响应

[英]FiWare CEP (Proton) doesn't response via REST

I have some problems with CEP and I hope someone can help.我在使用 CEP 时遇到了一些问题,希望有人可以提供帮助。 I have a CEP instance in the FiWare Cloud, with the default setup.我在 FiWare Cloud 中有一个 CEP 实例,使用默认设置。 I have an event with 3 parameters, a temporal context which defines that starts at startup and never ends and nothing else special.我有一个带有 3 个参数的事件,一个时间上下文,它定义在启动时开始并且永不结束,没有其他特别之处。 If this event come in, CEP should response with a REST output.如果此事件发生,CEP 应使用 REST 输出进行响应。 Everything worked fine for a few hours, but the next day it stopped working.一切正常运行了几个小时,但第二天它就停止工作了。 Tried restart the server, and the definition as well.尝试重新启动服务器,并且定义也是如此。

Any ideas?有任何想法吗?

We need yo know your environment and the json description of your rules.我们需要你知道你的环境和你的规则的 json 描述。 My hunch is that the server crashed due to memory overflow since contexts that do not end can exhaust the machine resources.我的预感是服务器由于内存溢出而崩溃,因为未结束的上下文会耗尽机器资源。 Also, depending on the rate of events.此外,取决于事件的发生率。 You can read more on the rules in the users guide: http://proactive-technology-online.readthedocs.org/en/latest/ProtonUserGuide_FI_WAREv4_4_1/index.html - Uri您可以在用户指南中阅读有关规则的更多信息: http : //proactive-technology-online.readthedocs.org/en/latest/ProtonUserGuide_FI_WAREv4_4_1/index.html - Uri

The problem might be with the server itself or with the publishing of your input event as output to the RESTful service.问题可能与服务器本身有关,也可能与将输入事件发布为 RESTful 服务的输出有关。 I suggest the following : Proton publishes console output while initializing.我建议如下: Proton 在初始化时发布控制台输出。 The Tomcat's log file (catalina.log) should contain information re the initialization of Proton web application. Tomcat 的日志文件 (catalina.log) 应包含有关 Proton Web 应用程序初始化的信息。 It will also contain any kind of error messages.它还将包含任何类型的错误消息。 You should also see there if Proton receives any input events at all - they are printed out to the log as well.您还应该在那里查看 Proton 是否收到任何输入事件 - 它们也会打印到日志中。 Please share this log file.请共享此日志文件。 Additionally you can try something out- you can add a file consumer (example of how to do that can be found in Proton documentation), and see if the DiscountReport event gets published to that file.此外,您可以尝试一些东西——您可以添加一个文件使用者(可以在 Proton 文档中找到如何执行此操作的示例),并查看 DiscountReport 事件是否已发布到该文件。 This will help determine if the problem might be with your RESTful consumer这将有助于确定问题是否与您的 RESTful 消费者有关

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM