2014-11-05 64 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