Our partner Motorola reports the following:
mototrola 2003-12-03:
=====================
>Basically, our Cork development team has decided that
>because of the overhead of a single JVM on Solaris they (Cork Development)
>will not be using Java, at this time, to development stand alone client
>applications. We will be going ahead with our piloting of J2EE development
>
>Just so you guys are aware of this, with JDK 1.4.2 on Solaris 8 and 9, a
>simple program that prints the string "Hello World" to the terminal chews up
>8MB of physical memory (according to our tests), and it just gets worse from
>there.. This does not change with either the hotspot or "traditional" JVM.
>There's a big opportunity here for Sun to make improvements here.
>
###@###.### 2003-12-03:
==================================
This issue can be reproduced using the attached zip file and following:
$> cd /tmp
$> unzip prototype.zip
$> rmiregistry &
$> export CLASSPATH=/tmp/prototype.jar
$> java -Djava.rmi.server.codebase=file:///tmp/prototype.jar -Djava.security.policy=server.policy prototype.server.FactoryEngine
in an other window:
$> cd /tmp
$> export CLASSPATH=/tmp/prototype.jar
$> java -Djava.rmi.server.codebase=file:///tmp/prototype.jar -Djava.security.policy=server.policy prototype.client.launcher
The client window of the prototype then shall appear.
Environment:
$> java -version
java version "1.2.2"
Solaris VM (build Solaris_JDK_1.2.2_10, native threads, sunwjit)
Motorola's note:
> I've also run this app on 1.4.2, and have had the same memory problems.
OS Version:
$> uname -a
SunOS somc58 5.8 Generic_108528-13 sun4u sparc SUNW,Netra-T4