2016-04-01 125 views
-1

我在運行wso2身份服務器作爲我的wso2 api管理器的密鑰管理器時遇到了outOfMemoryError。我使用wso2身份服務器5.1.0和wso2 api管理器1.10.0。我得到了一些日誌:wso2身份服務器java.lang.OutOfMemoryError:Java堆空間

TID: [-1] [] [2016-04-01 03:40:28,196] ERROR {org.apache.tomcat.util.net.NioEndpoint$Poller} - 
java.lang.OutOfMemoryError: Java heap space 

TID: [-1234] [] [2016-04-01 04:23:05,784] ERROR {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} - Error while running deployment scheduler.. 
java.lang.OutOfMemoryError: Java heap space 

TID: [-1] [] [2016-03-30 08:57:46,404] ERROR {org.apache.directory.server.ldap.handlers.LdapRequestHandler} - ERR_732 Cannot process a Request while binding 

TID: [-1] [] [2016-04-01 09:26:25,208] WARN {org.apache.directory.shared.asn1.ber.Asn1Decoder} - The PDU has been fully decoded but there are still bytes in the buffer. 

我試圖強行殺死wso2is,並開始了,但有時重啓後,問題又出現了。

我該如何解決這個問題?

+0

您是否檢查過堆轉儲? –

+0

@ruccive,你分配了多少堆大小?我們需要至少512 MB。檢查[安裝先決條件](https://docs.wso2.com/display/IS510/Installation+Prerequisites) –

+0

@AbimaranKugathasan:我沒有修改默認設置,所以我想-Xms 256 -Xmx 1024(從我什麼讀入wso2server.sh)。我應該把它提高到更高的價值嗎? – rucciva

回答

0

請在wso2server.sh中用-Xmx 2048嘗試

+0

我已經改變了Xmx選項,它現在可以工作。但是這個問題有時會在未來再次升高嗎?例如,當我已經改變了高峯負荷 – rucciva

+0

,問題仍然存在 – rucciva