令人惊讶的是,一个简单的helloworld程序只占用大约400MB的内存(我的总内存只有1GB ......)
所以我可以配置这个hello world jetty的任何方法:运行以使用最小内存大小吗?
[mirror@home soft]$ pgrep java
9421
[mirror@home soft]$ pgrep java -lf
9421 /home/mirror/soft/monica/gov/tools/jdk1.6.0_35/bin/java -classpath /home/mirror/soft/monica/gov/tools/bike/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar -Dclassworlds.conf=/home/mirror/soft/monica/gov/tools/bike/apache-maven-3.0.4/bin/m2.conf -Dmaven.home=/home/mirror/soft/monica/gov/tools/bike/apache-maven-3.0.4 org.codehaus.plexus.classworlds.launcher.Launcher jetty:run
[root@home pastebinhz.tk]# pmap 9421
b7fc4000 4K r-xs- /home/mirror/soft/monica/gov/tools/bike/apache-maven-3.0.4/lib/aether-spi-1.13.1.jar
b7fc5000 8K r-xs- /home/mirror/soft/monica/gov/tools/bike/apache-maven-3.0.4/lib/aether-connector-wagon-1.13.1.jar
b7fc7000 4K r-xs- /home/mirror/soft/monica/gov/tools/bike/apache-maven-3.0.4/lib/maven-embedder-3.0.4.jar
b7fc8000 8K r-xs- /home/mirror/soft/monica/gov/tools/bike/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar
b7fca000 4K rwx-- [ anon ]
b7fcb000 4K r-x-- [ anon ]
b7fcc000 4K rwx-- [ anon ]
b7fcd000 108K r-x-- /lib/ld-2.5.so
b7fe8000 4K r-x-- /lib/ld-2.5.so
b7fe9000 4K rwx-- /lib/ld-2.5.so
bfc7c000 84K rwx-- [ stack ]
total 405160K