So 114MB appears to be the minimum RAM footprint for J2SE5, at least with everything else I have running in the Trinux build. Since 64MB is the default max for the initrams I had to create another ramdisk for the JRE.
trinux# PATH=$JAVA:/java/bin
trinux# java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
trinux# mountBTW, if ramfs is in /proc/filesystems you can create ramdisks with
rootfs on / type rootfs (rw)
none on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
/dev/ram0 on /java type ramfs (rw)
mount -t ramfs /dev/ram0 /mount
I can't remember if I managed to run any Java apps (I remember looking at Kaffe) running under Trinux, but tonight I managed to get the Java Modbus/TCP Simulator I wrote for the the Digital Bond Scada Honeynet. I didn't actually see if it works, but netstat shows the socket open, so I guess it works.
35 of the 80 megs are the runtime (rt.jar) which theoretically could be stripped, but not sure it is worth the effort.
trinux# pwd
/java
trinux# du . | sort -rn | head
80684 .
79132 ./lib
28080 ./lib/i386
16592 ./lib/i386/client
7268 ./lib/i386/server
1764 ./lib/zi
1156 ./bin
1120 ./lib/ext
544 ./lib/oblique-fonts
516 ./lib/zi/America
Why the sudden issue in Java on UbuntuTrinux?
We'll I've been looking at some of the P2P APIs out there such as JXTA, P2PS, and Pastry.
If anyone knows of any C P2P APIs (and I no I'm not talking about filesharing stuff, I'm looking for APIs that handle routing, registration, rendezvous, and all that stuff) that are comparable, let me know. The only thing remotely I interesting I dug up is pitsaw but I haven't got it running, although it did build, which is more than I can say for the C JXTA implementation.
No comments:
Post a Comment