WSO2 API Manager启动耗时太长

时间:2013-12-18 13:34:37

标签: wso2

在WSO2-AM 1.5.0上运行,日志文件显示了大量消息。我们第一次运行WSO2(干净的repo数据库),这是有效的(!)。但是下次我们启动WSO2-AM时它没有出现:

WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items:
WARN - CarbonServerManager Waiting for required OSGiAxis2Service: org.wso2.carbon.mediation.configadmin-4.2.0
WARN - CarbonServerManager Waiting for required OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-1.2.0
WARN - CarbonServerManager Waiting for required OSGiAxis2Service: org.wso2.carbon.localentry-4.2.0

这是什么意思?

2 个答案:

答案 0 :(得分:0)

看起来这个问题已经解决了。我们在VMWare上运行WSO2 Api Manager,在双节点集群上使用Suse EE 64bit。每个节点有4个核心。我们已将核心数量设置为1,问题就消失了。

因此,如果您遇到100%CPU,并且strace显示此信息,请减少虚拟核心:

% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 99.68    1.297481         389      3333      1057 futex
  0.31    0.004000         571         7         7 restart_syscall
  0.01    0.000082           0       895           read
  0.00    0.000061           0       366           mprotect

...

[pid  5185] futex(0x817b54, 0x189 /* FUTEX_??? */, 1, {1392218925, 111990000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  5185] futex(0x817b28, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  5185] futex(0x817b54, 0x189 /* FUTEX_??? */, 1, {1392218925, 162159000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  5185] futex(0x817b28, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  5185] futex(0x817b54, 0x189 /* FUTEX_??? */, 1, {1392218925, 212338000}, ffffffff <unfinished ...>
[pid  5499] <... futex resumed> )       = -1 ETIMEDOUT (Connection timed out)
[pid  5499] futex(0x7f45e04d5728, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  5499] futex(0x7f45e04d5754, 0x189 /* FUTEX_??? */, 1, {1392218930, 203367000}, 

答案 1 :(得分:0)

问题解决了。这是碳层中的一个错误。 WSO2答案:

  

启动wso2apim-1.6.0时,OSGi接线出现问题   捆绑。原因是,在&#34; Import-Package:&#34;部分,   &#34; javax.xml.soap中;版本&#34;被指定为&#34; 0.0.0&#34;。由于这个原因   发生以下问题等待服务启动。该   通过将soap版本指定为,修复了问题   &#34; javax.xml.soap中;版本= 1.0.0&#34;

如果您有子信息,可以从WSO2获得补丁(WSO2-CARBON-PATCH-4.2.0-0156.zip)