eclipse - 如何更改eclipse osgi服务超时

标签 eclipse osgi

我需要通过在 Eclipse RCP 应用程序中启动 OSGi 动态服务进行调试,但超时时间太短(或者我的调试速度太慢!)。

!ENTRY org.eclipse.equinox.ds 2 0 2015-02-25 21:46:26.374
!MESSAGE Getting a lock required more than 10000 ms. There might be a synchronization problem in this callstack or just the build/dispose process of some components took too long! 

有没有办法将超时值设置为比默认值 10000 长?

最佳答案

看起来可以在“org.eclipse.equinox.ds”插件的调试“.options”文件中配置:

# Debugging options for the org.eclipse.equinox.ds plugin

# Turns on/off debugging of SCR
org.eclipse.equinox.ds/debug=true
# Specifies that logged entries should be printed to the framework runtime console 
org.eclipse.equinox.ds/print_on_console=false
# Enables generating and printing logs about the time performance of the operations executed by the SCR
org.eclipse.equinox.ds/performance=false
# Makes instance of each component nevertheless components are "immediate" or not
org.eclipse.equinox.ds/instantiate_all=false

#Advanced options 
# Enables caching of the parsed XML documents of the component descriptions
#org.eclipse.equinox.ds/cache_descriptions=false
# Specifies the maximum time in milliseconds, which is allowed to a user component's activate or bind method to take. If the method invocation has not finished, a new dispatcher thread will be launched to process the pending work of SCR 
org.eclipse.equinox.ds/block_timeout=30000

要使用此文件,请指定 -debug <path to options file>在 eclipse 命令上。

关于eclipse - 如何更改eclipse osgi服务超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28722081/

相关文章:

log4j - OSGi 的类加载问题

java - 添加 Maven 依赖项时缺少 Artifact 错误

java - 基于 Eclipse 的 E3 应用程序,切换工作区不起作用

mysql - 发布和开发期间的数据库

java - 与 Axis 和 OSGi 的奇怪交互

osgi - 将 Sling Scheduler 与 Eclipse Equinox 或 OSGI @Reference 规则结合使用

java - 收到错误消息 "Code Recommenders cannot download its model repository index"

java - Eclipse - 是否可以跳转到特定包?

java - Camel ActiveMq 蓝图

java - 在将监听器注册到 Felix 事件管理之前,如何处理 Osgi 模块生成的事件