vps安装SSL vpnC出错 OpenVPN-ALS

Linux VPS 支持
回复
twisters
帖子: 79
注册时间: 2006-01-05 17:10

vps安装SSL vpnC出错 OpenVPN-ALS

#1

帖子 twisters » 2010-09-24 15:22

root@localhost:/opt/adito# ant -v install
Picked up _JAVA_OPTIONS: -Xms256m -Xmx256m
Apache Ant version 1.7.1 compiled on September 8 2010
Buildfile: build.xml
Detected Java version: 1.6 in: /usr/lib/jvm/java-6-openjdk/jre
Detected OS: Linux
parsing buildfile /opt/adito/build.xml with URI = file:/opt/adito/build.xml
Project base dir set to: /opt/adito
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
Build sequence for target(s) `install' is [set-tools, check-tools, check-permissions, install]
Complete build sequence is [set-tools, check-tools, check-permissions, install, start-using-java, create-wrapper-conf, start, console, uninstall-service, install-service, stop, restart, , stop-using-signal]

set-tools:

check-tools:
[available] Found: lib/tools.jar

check-permissions:
[chmod] Current OS is Linux
[chmod] Executing 'chmod' with arguments:
[chmod] 'a+x'
[chmod] '/opt/adito/install/platforms/linux/adito'
[chmod]
[chmod] The ' characters around the executable and arguments are
[chmod] not part of the command.

BUILD FAILED
/opt/adito/build.xml:349: Execute failed: java.io.IOException: Cannot run program "chmod": java.io.IOException: error=12, Cannot allocate memory
看报错貌似是out of menory,调大JVM大小就不行了。
root@localhost:/opt/adito# export _JAVA_OPTIONS="-Xms378m -Xmx378m"
root@localhost:/opt/adito# ant -v install
Picked up _JAVA_OPTIONS: -Xms378m -Xmx378m
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
不知道OpenVPN-ALS要多大内存的VPS才能跑得动呢?
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

Re: vps安装SSL vpnC出错 OpenVPN-ALS

#2

帖子 oneleaf » 2010-09-26 8:58

内存不够,一般跑java应用,至少需要1G的内存。
回复