我刚刚在带有1G内存的V-Server上安装了Java 7和Jenkins
# java -version Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
和Ram
#free -m total used free shared buffers cached Mem: 1548 1506 41 0 0 1096 -/+ buffers/cache: 409 1138 Swap: 200 24 175
jenkinsalocating
#top | grep jenkins 7837 jenkins 20 0 16676 544 372 S 0 0.0 0:00.01 daemon 7841 jenkins 20 0 791m 298m 18m S 0 19.3 1:31.52 java
有没有办法告诉整个Java虚拟机使用至less1GB的RAM? 如何configurationjenkins eq ram max 512的启动参数。谢谢!
尝试运行这个,看看会发生什么:
java -Xmx256m -version