如何将EclipseOSGi服务更改为超时
我需要在EclipseRCP应用程序中启动OSGi动态服务进行调试,但超时时间太短(或者调试速度太慢!)如何将EclipseOSGi服务更改为超时,eclipse,osgi,Eclipse,Osgi,我需要在EclipseRCP应用程序中启动OSGi动态服务进行调试,但超时时间太短(或者调试速度太慢!) 是否有办法将超时值设置为大于默认值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=t
是否有办法将超时值设置为大于默认值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
要使用此文件,请在eclipse命令上指定-debug
如果使用运行配置启动eclipse实例,还可以设置VM参数
要增加时间,请查看Equinox/RuntimeOptions: 例如: -Dequinox.scr.waitTimeOnBloc=15000
# 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
-Dequinox.ds.block_timeout=300000000