Possible to spin off independant JVM?

I have a program (MyProgram) that displays a bunch of buttons that are associated with other Java programs. When a button is pressed, the classes needed to run that application are loaded (using URLClassLoader) and an invoke() is called on the main class of that application. This executes the selected application on the same JVM that MyProgram is running on.
Same-JVM execution is like one huge memory "leak": when one program on the JVM quits, not all of it's resources are reclaimed.
One proposed solution to this problem was to have MyProgram create a new JVM (different from the one it's running on) for the programs it launches to run on. Every 3rd program it would release the previous JVM (leaving it to run on it's own) and create a new one to run the next 3 launched programs on.
Is this possible? (If I'm not making sense, please let me know). Is there a better way to accomplish this task?

Do you want to run in one VM or not?I want to do exactly what I said in my post.
Originally we wanted everything running on one. Now,
faced with memory problems, we're looking into running
only 3-4 apps on one VM. The memory savings are
reduced, but the potential for leakage is reduced,
too.I have to apologize. Rereading your original post I realize that I kind of skimmed right over the third paragraph.
No matter how
you start another VM you will not save any memory.Running one VM for multiple apps will save memory, and
tests have borne this out: each VM requires an
incredible amount of overhead to run, so if you can
get more than one app onto a VM you've saved the
memory that would have been used to run the VM for
each app.Actually, this goes to the same careless reading. I thought you were imagining that starting one VM from another somehow consumed less resources than starting it from a shell. Guess I was tired.
In the world of Smalltalk that I come from, we did everything on a given machine in one VM, unless we were working on distributed aspects of our apps and we didn't want to use several machines. Every app was developed with that taken for granted, so we never had problems with apps conflicting. schapel's point was pretty good, and not something that would have occurred to me.
Your problems with
unreleased resources are very likely problems with
your own code, as Sun has fixed most of theresource
leaks in Swing.Actually, Sun informs us that they're working on the
same problem we are.Do you have even a rough idea where it is? I'd love to know to avoid it. But I guess if you knew you'd be avoiding it too - as it'd probably be less work than the pain you're going through now!
I recommend that you check out
http://www.ddj.com/documents/s=888/ddj0002l/0002l.htm
Will do!Good luck,
Ian

Similar Messages

  • Is it possible to turn off a channel in DAQ?

    I am using 4*PXI-6070E to acquire 64 channels simultanously. Is it possible to turn off one or several channels during acquisition? Which function or property node should I use? I have tried using property node "disable" in waveform graph but it seems didn't work. That channel is still running and the data is still here. Can anyone help me plz? THX a lot!

    Once a set of channels are configured in a task and being acquired, you cannot reconfigure the task (add/remove channels) without stopping the running task
    What you could do is to: Use array functions ( like index array) to create a subset of channels you require, from the set of channels being acquired

  • Is it possible to turn off a spot colour

    Hello
    Probably a dumb question but I will ask anyway. Is it possible to turn off a spot colour in CS4. I can effectively do it by creating a spot white and merging the spot colour I want to delete to the spot white using the ink aliasing. However, this leaves a spot colour in the high res pdf at th end of the job. This then causes a problem as we use an online proofing system which then fails the flightcheck as there is a spot colour in the pdf.
    Cheers
    Beeefcake

    The spot colour is used so that we can perform a find on any text with a fill of the spot colour and delete it. The spot colour is put in for this purpose when the original artwork is created in the US.
    Kathlene - I can't believe I didn't spot that! This would work! We could just convert the swatch to 0% cmyk as you suggest. The majority of the pages in the catalogue are on a white background so the pricing would simply disappear resulting in no spot place when pdf's are made. There are some pages on a coloured background but these are very few and the pricing could be deleted manually.
    Thanks for the help!
    Beefcake

  • Is there a possibility to switch off in Firefox the functionality of quick launch key (additional key in laptop) that cause to run the homepage

    Dear Support,
    Is there a possibility to switch off in Firefox the functionality of quick launch key (additional key in laptop) that cause to run the homepage. I would like to switch this functionality off, because the key is malfunctioned and always pressed. I was able to switch off the functionality of this key in Windows system by deleting entries in registry Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey. After this change, when somebody works in system the Firefox is not running is not launching all the time. But when I open the Firefox the setting in system is overwritten and when I am using it Firefox returns to the homepage instantly. I think because of this quick launch button. I tried to change settings in about:config like browser.startup.homepage, browser.startup.homepage_override, startup.homepage_override_url,… this is for Firefox version is 10.0.2
    Thank you
    Best Regards

    Hi,
    Thank you for your interesst.
    This internet button key is one of buttons located above the keyboard near the power button. What I have achieved to this moment was to stop it functionality in the system by clearing the entries in the fields Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\17\ShellExecute and entry
    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\7\Association that was http
    After these changes in registry the behavior of the button was suppressed, the Firefox stopped to start unexpectedly all the time – so in system it works. But the problem is still when I have opened Firefox. Every time when you want to surf in internet – the homepage is activated also unexpectedly. I wrote this post with intention to ask if there is a possibility to switch off the functionality of this quick launch button in Firefox. Because I assume Firefox overrides the system setup – this I have made in registry. I tried with some option changes in about:config but without success. And I know that for older versions of firefox was some option in about:config do disable_quick launch button. But in 10.0.2 I couldn't locate it.
    Thank you
    Regards
    Lukasz

  • Camileo S20 - Is it possible to turn off the screen?

    Is it possible to turn off the screen when using Time Lapse or Motion Detection modes so as to save power?

    Hi buddy,
    I have downloaded the user manual off Camileo S20 and searched a little bit but unfortunately I can find no informations about turning off the screen when using Time Lapse or Motion Detection. It seems that the screen is always on.
    But you can connect the AC adaptor while recording movies. So you have always power. :)

  • Is it possible to turn off the Apple dock completely?

    I was wondering if it was possible to turn off the Apple dock completely without causing irreparable damage to my system. I am considering using Drag Thing, but when I am using it the functionality seems redundant with the Apple dock, also using both programs in tandem uses up more precious memory. The Drag Thing website links to the following tutorial as a solution:
    http://www.creativemac.com/2003/02_feb/tutorials/dockdead2030225.htm
    But it was published a long time ago, and I don't want to do anything rash that would damage my system, I mean I don't dislike the Apple dock enough to do that. Thanks in advance for the consideration and suggestions.

    I could only discover an option to hide the dock from within Drag Thing. I am looking to make the dock disappear completely. Drag Thing does not officially support this option, giving this answer in the Q & A section of their website:
    "*It is possible, but I wouldn't recommend it. Since people often ask how to do it anyway, here's a good tutorial I found on how to kill the Dock by Kevin Schmitt. This may have unforseen side effects however, which is why I've not documented the procedure myself, or added an option for this in DragThing. I keep the Dock hidden off the bottom of the screen on my own Mac.*"
    Is the dock so embedded within the Finder's operations that killing it will affect system performance?

  • Is it possible to turn off the passcode?

    I’ve seen a couple postings that say go to Settings --> General --> Passcode Lock, but on my iPhone 4s I don’t see anywhere to turn it off at that point.  In the manual, there is no description of turning off the passcode – at least I didn’t find it.
    Is it possible to turn off the passcode?

    row6 wrote:
    no, once you get to Passcode Lock, there is no option to turn it off - certainly none visible to me.  Have you actually tried to do this?  Do you have an iphone 4s?
    Here is a screen shot of what you get when you press "Passcode Lock".
    You have to ENTER your passcode first, to access the part of the Settings that allows you to disable the passcode lock.
    Enter your passcode.
    Then you can turn the passcode off.

  • Is it possible to turn off the updates that make your iphone need to be activated again?

    Is it possible to turn off the updates that make your iphone need to be activated again? Because you need wifi in order to activate and sometimes I don't have wifi so my iphone becomes unusable untill I get wifi again.

    I'm sorry but it says 8.1.2 on my phone when I check for the info about the software.
    The issue I have is that on random moments it asks me to activate my phone ( I think after an update or some kind ) but sometimes I have no access to wifi to activate it so I was wondering if I could make that stop?
    I'm sorry for the strange explanation, english isn't my mothertongue

  • Is it possible to turn off the fluid grid function in dreamweaver during the process of building your site by mistake? It was working fine and simply stopped and I don't see how to correct what is wrong.

    Is it possible to turn off the fluid grid function in dreamweaver during the process of building your site by mistake? It was working fine and simply stopped and I don't see how to correct what is wrong.

    There is no specific function that turns FGL on or off.
    When you say that it has stopped, do you mean that the handles no longer show?
    If that is the case, then I think you may have modified the CSS to such an extent that Dreamweaver no longer recognises it as belonging to FGL.
    There are a couple of avenues for you
    Redo the site and make sure not to touch the FGL CSS
    paste the code here so that we can see what has gone wrong.

  • My iPhoto often have difficulty in opening without the "repair". Maybe it's because I have almost 2000 pictures! When I initiate repair using Mac for a long time to find and sort faces .... Is it possible to turn off or avoid this feature?

    My iPhoto often have difficulty in opening without the "repair". Maybe it's because I have almost 2000 pictures! When I initiate repair using Mac for a long time to find and sort faces .... Is it possible to turn off or avoid this feature?

    This user has found a "hack" to turn off faces.  Several users have reported success with the method.  I can't comfirm the method as I've not used it.  Use at your own risk.
    lopezio
    Re: Iphoto 11 -How to turn off faces?
    Dec 30, 2013 9:06 AM (in response to mkmichaelmk)
    Start of solution:
    I did some digging in the prefs of iPhoto and found out the following. This is how you can disable (turn off) Face detection, without deleting faces found so far (just in case you want to restart processing at another time):
    1. Quit iPhoto
    2. Open Terminal Application (Applications/Utilities/Terminal.app)
    3. Type the following (exactly as is):
    defaults write com.apple.iPhoto PKFaceDetectionEnabled 0
    (then return)
    4. - Start iPhoto - Faces stops getting on your nerves...
    If you ever need to re-enable faces, just do the same again and replace the 0 with 1.
    OT

  • Is it possible to switch off the sound when typing

    Hello folks. I am new member. I purchased the 64g unit. It's a great piece of kit.
    Question. Is it possible to turn off the annoying 'beep' sounds when using the keyboard? I know I could just turn down the sound on the top but that defeats the obtject. 
    Thank  you
    Ross
    Regards to all (except BB)
    Solved!
    Go to Solution.

    rossjackson01 wrote:
    Hello folks. I am new member. I purchased the 64g unit. It's a great piece of kit.
    Question. Is it possible to turn off the annoying 'beep' sounds when using the keyboard? I know I could just turn down the sound on the top but that defeats the obtject. 
    Thank  you
    Ross
    In the options goto KEYBOARD and just lower the feedback control to what ever level make you confortable
    Using the Playbook and the Z10 and the Z30 and loving them
    Martin

  • Is it possible to turn off selected audio tracks for export?

    Hi,
    I have worked with fcp 5 before on a project with two languages. Beside the footage audio, each language had its own audio track which I could turn off for export. It was nice to have all languages in one project, because changes had effect for all languages at the same time.
    Is it possible to turn off audio tracks in fcpX for export?
    I know that fcpX hasn't tracks anymore, but is there a similar function to serve the same purpose?
    I am not a professional editor.

    I am blissfully unaware of how production companies work .
    The project I am working on is a pretty straight forward instruction video. I will be shooting the video, edit and then have the comments recorded by professionals. In DVDPro I will put them both together.
    The magnetic timeline is kind of irritating. I will have to work on the languages one after the other. So once I have a language done, I will probably create a compound clip to prevent the sliding around. That would also make it easier to enable or disable the clips.

  • Is it possible to turn off iMessage off for one individual during group text?

    Can I turn off iMessage for individuals who use the iPhone and IOS 5 but do not have their iMessage setting on?  I want to group text with two other people.  They both have IOS 5, but one does not use iMessage.  She can't recieve the group text unless I turn my iMessage off for everyone.  Is it possible to turn off iMessage for one individual for a group text?

    Have you set font smoothing in Appearances (System preferences) to match your monitor?

  • Is it possible to delete off the desktop I will be using this phone for business, therefore I will not need itunes, appstore, game centre, weather, newstand, passbook, stocks, maps, camera, music etc. please advise.

    Is it possible to delete off the desktop I will be using this phone for business, therefore I will not need itunes, appstore, game centre, weather, newstand, passbook, stocks, maps, camera, music etc. please advise.

    The App Store has many useful business related apps: Word processors, spreadsheets, presentation apps, CRM apps. Maps is useful for navigating to appointments. Newstand for reading periodicals related to business.

  • Hi, is it possible to turn off wi-fi of my time capsule?

    Hi, I read an article that wifi electro-magnetic emission may be dangerous for children's health. Therefore I would like to use wired connection and turn off the wireless feature of my time capsule. Please let me know if it is possible and how I can do it.
    Still I would like to use the time capsule as a wired router and backup storage facility for my desctop.
    One additional question - if it is not going to be possible to turn off the wi-fi, is there another alternative to turn off the time capsule reather than disconnecting it from the socket? Is there an alternative power cord with turn on/turn off switch? Any ideas?
    Regards,
    aldo7

    Hi, I read an article that wifi electro-magnetic emission may be dangerous for children's health.
    There will always be a silly article about anything... if you read it.
    I can understand your concern, but Pastenague already pretty much summed up most of what I was going to say. BTW, I would not be surprised if that author is the kind of hypocrite who goes out in the sun all day, or hangs out in cigarette smoke filled rooms.
    Electromagnetic waves are everywhere, man-made and environmental. After well over a decade of testing, it's never been proven ... all these 'scare claims' that tend to hit the media. I still remember what started it all, back when someone was diagnosed with cancer after shortly getting a cell phone, and he heard about someone else who had cancer and also had used a cellphone.
    OMG... Therefore, cellphones MUST cause cancer, and the electromagentic waves are carcinogens!
    They're still trying to prove that.
    There are far more things to worry about health wise, than the EMFs.
    BTW, in regards to that author, I have my own article to submit to them. And I can even back mine up with facts:
    A study has shown that given a long-enough time-line, EVERYONE who drinks water in their life, eventually dies.
    Another study has shown, that 100% of people who currently are diagnosed with cancer, have drank at least 1 cup of water in thier life-time.
    Another alarming fact has been raised recently, that the harmful effects of water is not just restricted to humans. For example, a study of deceased adult cows at various farms, has shown that there was water-content in all their carcasses.
    There is a strong lesson to be learned here. Stay way from water or any product bearing H2O at all costs!

Maybe you are looking for

  • Re: Illustrator CS5.5 - Will edit but cannot save .ai files created in CS3

    Hi!  I recently installed Illustrator CS5.5 over CS3 (as part of a CS5.5 CS upgrade). I did not uninstall CS3, as I still sometimes need to use it with collegues who have not upgraded.  I am on a PC with Windows 7 (64 bit). Today I opened an .ai file

  • User authentication error after a successful authentication

    Hi, I have configured OAM 10g (10.1.4.3).It uses AD as the Directory server and OHS 11g (11.1.1.6) as the web server. Created a policy domain with the resouce URL /test.Created an authentication scheme which has the plugins: credential_mapping, valid

  • I downloading the trial version of photoshop on my laptop and it works but not on desktop

    i downloading the trial version of photoshop on to my laptop and it works fine but not on my desktop,it reads your trial has expired but I just started it...

  • Filesystem space filling up

    Hello, I am running a batch job of database select queries and I see the filesystem is filling up quickly although this script is not generating any files in the diretcory it is running. What else could be filling up? I am not able to trace.

  • Running Threads-need HELP ps

    hi all, i really need to submit this assignment and im at the point of banging my head on my PC coz java is making me run nuts. i the code is working fine except that i need to run threads for any number of commands entered at input in the order in w