Skip to main content

"share" a VM among applications?

1 reply [Last post]
Joined: 2003-06-17

I have a large Swing application that uses 40-among when starting it on Windows
This isn't a problem on the stand alone PCs but when running on ie. Citrix 200 clients each using 40M is a problem (says my customer)
I have tried to start my client several times using the same VM (just instantiated the class a number of times in a test class) and the first uses the normal 40 and the additional instances only uses about 8M
So is there a way to tell javaw.exe that it shall "attach" itself to a running VM if one is available so I can get the above described benefit when running on systems like Citrix?
I think I heard something about this from someone at Sun at JavaOne, but I could be wrong.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-13

I created a way of doing exactly that which works quite nicely except for little problems like it not working from WebStart and it does not always shutdown when the last app quits. It seems you wont have problems so I suggest to take a look at it and see if it helps you.

Its open source; so you are free to fix problems your applications brings to the table.

Its in CVS at (click Download, click CVS and follow the directions there) but has never been released; so just get the quickstart part and read the javedoc in the classes.

Hope you like it :-)