Why not convert your app to an applet? Applets are designed to have multiple
applets run in a single VM. Lotus' InfoBus takes advantage of this, in fact, to
allow for data sharing between separate "programs" (actually, applets). This
also encourages a more modular design--when a given applet (say, the spell
checker) is finished with the data, the applet can exit & free up memory
required by the applet.
You'd also have the implicit advantage that your code would also run inside a
browser, if you choose.
-dan
Maksim Lin wrote:
> To get away from the torrent of 1.2 questions, here is one about
> jdk1.1.7:
>
> I have a quick question about the jvm's memory usage in linux. For
> instance if I have 3 jvm's running (all same version) will there be any
> sharing of memory resources between the jvms? As I understand it, the
> jdk is built using shared libs so should all of the running jvms be
> sharing only 1 copy of these libs in memory ?
>
> Why I ask is that I have tried the above scenario and have found that
> having 3 jvm's running uses up almost 3x the memory of having 1 runnning
> - leading me to think there is no sharing and wondering how much memory
> I'm going to need if I want to have a large number of small
> (co-operating) java apps running similtaneously (I know an alternative
> would be to use something like echidna which will let multiple apps run
> inside 1 vm, but will this is a nice solution it still has a problem
> since apps in the same vm are vulnerable to each other, ie. if one of
> the apps dies it can take the whole vm and all the other apps in it with
> it).
>
> TIA,
> Maksim.
> --
> Remember Darwin; building a better mousetrap merely results in smarter
> mice.
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]