2014-11-05 77 views
0

我有一個個人服務器Ubuntu 14和1GB內存。我想在此服務器中配置Liferay運行在Glassfish中。Liferay + Ubuntu 14 + Glassfish - 1GB內存

我很努力,但在初始化過程中給予我這個消息:

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c8bd7000, 84496384, 0) failed; error='Cannot allocate memory' (errno=12) 
# 
# There is insufficient memory for the Java Runtime Environment to continue. 
# Native memory allocation (malloc) failed to allocate 84496384 bytes for committing reserved memory. 
# An error report file with more information is saved as: 
# /opt/liferay-portal-6.2-ce-ga2/glassfish-3.1.2.2/domains/domain1/config/hs_err_pid6797.log 
Command start-domain failed. 
The DAS was stopped 

有人能提出一些配置,我可以不用改變使用服務器的物理內存?

感謝

回答

1

與Liferay門戶推出了GlassFish 時,您可能會遇到了內存不足的錯誤。要避免這些錯誤,請在管理控制檯上使用-Xms和-Xmx選項設置較大的初始內存堆大小和 最大內存堆大小。

如果你不能增加內存,你可以試試「Liferay with Glassfish Bundle」。這是已安裝Liferay Portal的預配置Glassfish服務器。它可在http://www.liferay.com/downloads/liferay-portal/available-releases

根據它有如下要求wiki docs

  • 內存:1 GB RAM磁盤空間:500MB
  • 系統架構:X86/SPARC
  • 操作系統:Solaris/Linux操作系統/ MacOS X的/在Windows/AIX
  • JDK 1.6.x版/ 1.5.x版本(僅在Mac 1.5.x版)
+1

維基頁面最後更新2008年的內存要求有在過去的6年中有所提高。虛擬內存可能會以低性能爲代價提供幫助 – 2014-11-09 14:49:40