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才能跑得动呢?