Applet or web-start? How can I package a memory intensive app?

Dear All,
I'm new here - I'm learning about Java with a particular project in mind, and looking for advice from people with more experience before I start coding! Your opinions would be very useful.
I would like to write a small scientific application, to be distributed by the web, easy to run as a normal user (without administrator rights), with a good GUI. So Java sounds very good for this. However, the application will be very memory intensive (and quite CPU intensive) with several large arrays. It may require ~1 to 2 Gb of memory at times. I have three simple questions:
1) If I write it as an applet, will my users hit memory 'heap size' limits when they try and run it if it tries to use ~1 Gb memory? Can I control this?
2) If I write it using JNLP (e.g. Sun's Java Web-Start), will my users get memory limit errors if my application tries to use ~1 Gb memory? Can I control this?
3) If more and more people start using the Java browser plugin, will they get Web-Start installed at the same time? Or will Web-start become less common?
Any other advice about this choice, problems with web-start or resource hungry applets would also be gratefully received.
With thanks and best regards,
andy_g
(PS: I'm not worried about the performance of Java compared to other languages - I'm worried about hitting memory limits imposed by the JVM settings or Java language!)

Hi ChuckBing,
Thanks for your reply - it's given me some valuable information. In light of your post I think I'm going to try a very simple test code which does some simple operations with representative big arrays and see if I can get that working well on a range of machines before I spend time writing the real thing. I hadn't appreciated the need for contiguous memory in the Java heap.
As for comparing JNLP and applet memory control, after another intensive bout of google searching, I found more information about controlling heap size for applets at:
https://jdk6.dev.java.net/plugin2/jnlp/
From my (novice) reading of this page, it seems that from 1.6 you can now control the heap available to an applet in a similar manner to JNLP. I've added this link in case other people stumble across this post with a similar questions about applet memory limits.
Thanks again,
andy_g

Similar Messages

  • I used to have a Yahoo tab shown when yahoo was opened. Now it says "Getting Started" How can I get my Yahoo tab back? Thank you.

    I used to have a Yahoo tab shown when yahoo was opened. Now it says "Getting Started" How can I get my Yahoo tab back? Thank you.

    Set Yahoo as you home page, and set firefox to open the homepage when it starts. (Not to open previous pages).
    * see [[how to set the home page]] for detailed instructions <br/> all you need to do is drag the icon whilst you are on the page you require
    * see also [[options window - General panel]]

  • How can i disable the memory test when i start up photoshop? my computer freezes two minutes en then photoshop starts, i know there is notting wrong whit my memory in my computer

    when i startup PS then i look two minutes to the startup-logo en see that my memory is being checked.
    how can i disable this memory chek in PS?
    this problem started a few days ago en this version off PS is working on my computer ol most a year without problems
    i have checked my hardware very intensive and there is nothing whrong with my installed  ram
    this is my system info, sorry that this is not translated into englis, i am from the netherlands and i can just a litle englisch
    Adobe Photoshop Versie: 13.0.1 (13.0.1.3 20131024.r.34 2013/10/24:21:00:00) x64
    Besturingssysteem: Windows 7 64 bits
    Versie: 6.1 Service Pack 1
    Systeemarchitectuur: Intel CPU-familie:6, Model:10, Stepping:5 met MMX, SSE-integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Aantal fysieke processors: 4
    Aantal logische processors: 8
    Snelheid processor: 3073 MHz
    Ingebouwd geheugen: 16375 MB
    Beschikbaar geheugen: 13944 MB
    Hoeveelheid beschikbaar geheugen voor Photoshop: 14750 MB
    Geheugen in gebruik door Photoshop: 93 %
    Blokgrootte van afbeelding: 128 kB
    Niveaus voor afbeeldingscache: 4
    OpenGL-tekenen: Ingeschakeld.
    OpenGL-tekenmodus: Standaard
    OpenGL-modus Normaal toestaan: Waar.
    OpenGL-modus Geavanceerd toestaan: Waar.
    OpenGL-modus Oude GPU's toestaan: Niet gedetecteerd.
    Leverancier videokaart: NVIDIA Corporation
    Renderer videokaart: GeForce GTX 460/PCIe/SSE2
    Scherm: 2
    Grenzen:= boven: 0, links: -1600, onder: 1200, rechts: 0
    Scherm: 1
    Grenzen:= boven: 0, links: 0, onder: 1200, rechts: 1920
    Nummer videokaart: 1
    Videokaart: NVIDIA GeForce GTX 460
    OpenCL niet beschikbaar
    Versie stuurprogramma: 9.18.13.4475
    Datum stuurprogramma: 20141112000000.000000-000
    Stuurprogramma videokaart: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
    Videomodus: 1920 x 1200 x 4294967296 kleuren
    Bijschrift videokaart: NVIDIA GeForce GTX 460
    Videokaartgeheugen: 1024 MB
    Rechthoekige structuurgrootte video: 16384
    Serienummer: 92298830452574092077
    Toepassingsmap: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\
    Tijdelijk bestandspad: C:\Users\gert\AppData\Local\Temp\
    Werkgeheugen van Photoshop heeft asynchrone I/O ingeschakeld
    Werkvolume(s):
    C:\, 223,5 GB, 112,9 GB vrij
    Map met vereiste plug-ins: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Required\
    Primaire map voor plug-ins: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\
    Map voor extra plug-ins: niet ingesteld

    Photoshop doesn't do a "memory test".
    When Photoshop says "measuring memory" during startup, it is asking the OS how much RAM is available and what hard disks are available for scratch disks.
    If you have network volumes mounted that are unavailable, then the OS may take a while to time out on accessing those drives.
    The same goes if you have a bad USB drive connected.

  • How can I make Adobe Captivate 7 App Packager use 3.3.0 version of PhoneBuild?

    How can I make Adobe Captivate 7 App Packager use 3.3.0 version of PhoneBuild rather than the 2.5.0 version?  I tried following the instructions to upgrade PhoneBuild to version 3.3.0 - seemed to work, but Captivate is still outputting using 2.5.

    I tried that recently but could not find a way out.
    However, I figured out that we can upload the HTML5 zip file directly to the PhoneGap and build the app. This not only makes it a 3.3.0 version by default, it will also allow you to change the default app name, description, and most importantly the icon of the app.
    Sreekanth

  • How can I package the map utility for the cannon 6d for someone to view?

    How can I package the "map utility" program from the canon 6D for someone to view the shot locations and shots?

    I may understand your point wrong but if you turn on GPS on the 6D, your client can view your photo location easily. Site like Flickr supports GPS (if you don't remove it) or software like Picasa, Geotag, Geosetter, Lightroom, etc.
    Weekend Travelers Blog | Eastern Sierra Fall Color Guide

  • MP3 Player Auto Starts, How can I get it to load, but not Auto Start

    MP3 Player Auto Starts, How can I get it to load, but not
    Auto Start
    Jeff
    http://www.point1music.com/test

    How do you code it not to stream?
    stopAllSounds();
    stop();
    playlist = new XML();
    playlist.ignoreWhite = true;
    playlist.onLoad = function(success) {
    if (success) {
    _global.songname = [];
    _global.songband = [];
    _global.songfile = [];
    for (var i = 0; i<playlist.firstChild.childNodes.length;
    i++) {
    _global.songname
    = playlist.firstChild.childNodes.attributes.name;
    _global.songfile
    = playlist.firstChild.childNodes.attributes.file;
    trace(songname
    +" "+songfile);
    _root.createEmptyMovieClip("sound_mc", 1);
    _root.sound_mc.sound_obj = new Sound();
    _global.song_nr = random(songfile.length);
    _root.sound_mc.songStarter(songfile[song_nr],
    songname[song_nr]);
    MovieClip.prototype.songStarter = function(file, name) {
    this.sound_obj.loadSound(file, true);
    this.onEnterFrame = function() {
    if (this.sound_obj.position>0) {
    delete this.onEnterFrame;
    this._parent.display_txt.text = name;
    } else {
    this._parent.display_txt.text = "loading...";
    this.sound_obj.onSoundComplete = function() {
    (song_nr == songfiles.length-1) ? _global.song_nr=0 :
    _global.song_nr++;
    _root.sound_mc.songStarter(songfiles[song_nr],
    songname[song_nr]);
    btn_play.onRelease = function() {
    this._parent.sound_mc.songStarter(songfile[song_nr],
    songname[song_nr]);
    btn_stop.onRelease = function() {
    this._parent.sound_mc.sound_obj.stop();
    btn_fw.onRelease = function() {
    (song_nr == songfile.length-1) ? _global.song_nr=0 :
    _global.song_nr++;
    _root.sound_mc.songStarter(songfile[song_nr],
    songname[song_nr]);
    btn_rev.onRelease = function() {
    (song_nr == 0) ? _global.song_nr=songfile.length-1 :
    _global.song_nr--;
    _root.sound_mc.songStarter(songfile[song_nr],
    songname[song_nr]);
    playlist.load("playlist.xml");

  • Every time I restart my mac air some applications like calendar and Microsoft word automatically starts, how can I stop such applications from starting when ever I restart my mac

    Every time I restart my mac air some applications like calendar and Microsoft word automatically starts, how can I stop such applications from starting when ever I restart my mac?

    One thing to check:  when shutting down or restarting, there is a checkbox in the shutdown/restart dialog which asks whether you want currently open applications to open at startup.
    charlie

  • How can I package my apps

    Hello
              I have "n" applications that uses common classes.
              For example :
              Application 1
              servlet 1
              jsp page 1
              jsp page 2
              bean 1 <----- its common
              bean 2
              ejb 1
              Application 2
              servlet 2
              jsp page 3
              bean 1 <----- its common
              ejb 2
              How can I package this application.
              When I put "bean 1" in each war application, the ClassCastException appears.
              Thanks in advance
              

    java.lang.ClassLoader is the abstract base class.
              WebLogic docs mention ClassLoader issues in several places; I would suggest
              searching on "ClassLoader".
              Cameron Purdy
              [email protected]
              http://www.tangosol.com
              WebLogic Consulting Available
              "Jin Group" <[email protected]> wrote in message
              news:[email protected]...
              > Hi
              > When I said "common definition class" it means that both application
              import
              > the same class for private use.
              > But, these applications don't have relation.
              >
              > Do you know where ca I find more information about loaders ?
              >
              > Thanks
              >
              > Cameron Purdy <[email protected]> escribió en el mensaje de noticias
              > [email protected]...
              > > Your answer did not provide the information I needed to help ;-)
              > >
              > > You need to determine whether the problem is the presence of the class
              due
              > > to its being exported by the EJB class loader. Try running just App 1
              > > (delete App 2 from the WL). Then with just App 2 (delete App 1 from the
              > > WL). Does that work?
              > >
              > > Do any of your EJB home and remote interfaces take or return that class
              > type
              > > as a parameter/return value?
              > >
              > > --
              > >
              > > Cameron Purdy
              > > [email protected]
              > > http://www.tangosol.com
              > > WebLogic Consulting Available
              > >
              > >
              > > "Jin Group" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > Hi
              > > > In my example , "Bean 1" is a common class at definition level.
              > > > There is no relation between applications.
              > > >
              > > >
              > > > Cameron Purdy <[email protected]> escribió en el mensaje de noticias
              > > > [email protected]...
              > > > > Do you pass objects between applications? Are the applications at
              all
              > > > > related? Do your ejbs take as parameters or return objects of that
              > > type?
              > > > > I'm just trying to figure out how the class got "exported".
              > > > >
              > > > > --
              > > > >
              > > > > Cameron Purdy
              > > > > [email protected]
              > > > > http://www.tangosol.com
              > > > > WebLogic Consulting Available
              > > > >
              > > > >
              > > > > "Jin Group" <[email protected]> wrote in message
              > > > > news:[email protected]...
              > > > > > Hello
              > > > > > I have "n" applications that uses common classes.
              > > > > > For example :
              > > > > >
              > > > > > Application 1
              > > > > >
              > > > > > servlet 1
              > > > > > jsp page 1
              > > > > > jsp page 2
              > > > > > bean 1 <----- its common
              > > > > > bean 2
              > > > > > ejb 1
              > > > > >
              > > > > > Application 2
              > > > > > servlet 2
              > > > > > jsp page 3
              > > > > > bean 1 <----- its common
              > > > > > ejb 2
              > > > > >
              > > > > > How can I package this application.
              > > > > > When I put "bean 1" in each war application, the
              ClassCastException
              > > > > appears.
              > > > > >
              > > > > > Thanks in advance
              > > > > >
              > > > > >
              > > > >
              > > > >
              > > >
              > > >
              > >
              > >
              >
              >
              

  • How can I get a list of apps which are supported on ipod touch model ma623zo?

    How can I get a list of apps which are supported on ipod touch model ma623zo?
    It's about 6 years old I think.
    I have put the latest IOS on there (currently 3.1.3 (7E18)).
    I download apps from the app store but they often fail to launch. I assume they're incompatible.
    Is there a way to check which apps will work and which won't before I buy them?
    Thanks!

    I have no idea how my reply could be "misleading". I stated the exact situation: there are millions of apps in the iTunes Store, and providing a comprehensive, accurate list of which apps support which version(s) of iOS would be highly impractical. You can perhaps help with your search by going to AppShopper:
    http://appshopper.com/search/?search=iOS+3
    That will give you at least some starting points, but AppShopper is neither comprehensive nor completely accurate. I've found a number of apps listed there over the time the site has existed that either are no longer offered or which have been updated beyond the iOS version indicated. But it might help.
    Regards.

  • How can I "archive" mails in Mail App to another internal drive/partition to save space but still have it searchable in spotlight (and preferably visible, searchable, draggable in Mail App)?

    How can I "archive" mails in Mail App to another internal drive/partition to save space but still have it searchable in spotlight (and preferably visible, searchable, draggable in Mail App)?
    Background:
    I am using Mountain Lion and Mail App and running out of space on my small primary SSD drive (where I keep OS, apps, key user preferences/data and mail for speed). The mail data is the big variable (many GBs) and I want to "archive"/move some of the old mail to my 2nd drive inside the Mac. But I still want it searchable inside spotlight and preferably even inside Mail too. And I'd like to be able to still drag and drop old mails into this archive folder.
    What I've tried that seems to work:
    This seemed to work:
    1. Move the archive folder/mailbox to the 2nd drive/partition/folder (don't delete anything inside Mail App)
    2. Create a symbolic link from its new location to the original/old location
    This seems to work, it looks as "normal" and as if nothing happened inside Mail App but the folder now resides elsewhere and seems searchable etc. But I'm not sure that once caches refresh or over time with updates etc if stuff will break horribly or corrupt.
    Is that the right way to "archive" mails in Mail App to another internal drive/partition to save space but still have it searchable in spotlight and visible, searchable, draggable in Mail App?
    Thanks in advance!
    Cheers,
    Daniel

    I'm having a similar but slightly different problem. My company just migrated to Gmail, and it's saving mail drafts every 30 seconds into my Trash folder.
    I unchecked the "Show in IMAP" preference in the Gmail settings, but my Drafts folder completely disappeared. I went back and checked it and the folder reappeared (with my drafts still in there).
    I like the idea if starting an email on my laptop and having the option of finishing it on my iPhone or iPad, so only saving Drafts locally would not be ideal.

  • My macbook air has no longer free memory. Now, when i turn it on, all i can see is a blue landskape and can`t see de dock anymore. how can i clean the memory and get free space?

    hi, my macbook air has no longer free memory space. I haven`t done anything since it started to comunicate me that. now when i turn it on all i can see is de apple on the top left corner and the rest of the monitor is blue. how can i get some memory space since i can`t even onpen the finder?/

    Choose Preferences from the Finder menu, click on the General tab, and uncheck the box to open folders in a new tab.
    (117195)

  • When I opened iweb it opened as a file I deleated. I have a published website with godaddy and would like to update. How can I open the existing iWeb app to the site that is already published?

    When I opened iweb it opened as a file I deleated. I have a published website with godaddy and would like to update. How can I open the existing iWeb app to the site that is already published?

    You cannot retrieve the already published site as iWeb CANNOT open it - it has no import facility.
    You need your domain.sites file, which you can find under User/Library/Application Support/iWeb/domain.sites.  You do not need any kind of account for this because it is your domain.sites file that resides on the hard drive of your Mac anyway.  Find this file and you can alter your website.
    Use a spotlight search to try and find it and if this does not work you can download something called Find Any File.  If you really can't find it, then you'll have to start from scratch because iWeb cannot open a site that is already published.

  • How can I male Firefox open YouTube app for youtube pages and videos?

    I tried to watch a video on youtube page, but I got a message saying that video wasn't available for mobile devices. I really wanted to watch that video, so I tried exactly the same page with android's browser... guess what? the browser sent the link to youtube app and I watched the video with no problem.
    So, how can I make Firefox call youtube app instead of lie to me?
    An example: http://m.youtube.com/watch?v=2zI4Hl02898&feature=youtu.be&desktop_uri=%2Fwatch%3Fv%3D2zI4Hl02898%26feature%3Dyoutu.be

    I just realize that it happens to vimeo too, except for the fact that there's no android little icon... and I have no vimeo app installed in my device (and I don't intend to install). And guess what (again)? Android's browser plays vimeo videos with no problem! I don't know if it calls android's video player (since it starts fullscreen right when I touch play button) or whatever, the fact is that Firefox keeps lying to me. it's disappointing... =/

  • How can i hide or lock the apps on ipad

    How can i hide or lock the apps on ipad, i don't want anyone to see some apps when my ipad was used. Without Jailbreak.

    It depends what you mean by 'lock' if you mean keep the iPad on a specific app that's easy to do as long as you are updated to iOS 6 which from your device information I can see your iPad is updated to iOS 6.0.2. All's you have to do is go to Settings > General > Accessability > Guided Access > ON > Set Passcode (Set a passcode to lock an app onto the screen). Go back to the home screen and click the app you would like to lock onto. Press the home button three times quickly. You can then highlight certain parts of the app you would not like them to be able to press, disable touching or motion if thats what you need. Press start. To exit the locked app triple press the home button again and type in the passcode you set earlier. Press end in the top left corner. I hope this helped you but if by 'lock' you meant don't allow on the app this is not possible as of yet with the iOS software although some apps do allow you to lock them with a passcode or you could try restrictions in the settings menu but this only works with built in apps such as; camera, facetime, safari, downloading apps, siri etc.

  • How can I fix a VERY slow App Store on My iMac 10.9.3 ?

    How can I fix a VERY slow App Store on My iMac 10.9.3 ?

    Please answer as many of the following questions as you can. You may already have answered some of them; in that case, there's no need to repeat the answers.
    Restart your router and your broadband device, if they're separate. Any change?
    If possible, connect to your router with an Ethernet cable and turn off Wi-Fi. Any difference?
    Are any other devices on the network, and if so, are they the same?
    If you can connect to more than one network, are they all the same?
    Are all network applications affected, or only some? If only some, which ones?
    Is networking always the same, or is the problem intermittent?
    Disconnect all other devices from the network. Any change?
    Start up in safe mode and test. Any difference?
    Start up in Recovery mode. From the OS X Utilities screen, select Get Help Online. A clean copy of Safari will launch. No plugins, such as Flash, will be available. Any difference?
    If possible, turn off Bluetooth and disconnect any USB 3 devices. Any difference?

Maybe you are looking for

  • TABLES statement in pnp logical database

    I am using PNP logical database in my program. when i check for obselete errors it is showing the statements "TABLES: PERNR. INFOTYPES: 0001,0002." are Obselete But my program is logically correct and also working. can u tell me how to resolve this e

  • How can i prevent my user in one site about financial report in other sites

    Hi we implement our project in 4 sites via Citrix and all of users works on head office database, we used Document Series to divide evey site financial/inventory/procurement transaction . for example one site's JE number  start 1 to 1000000 and other

  • FAGL_YEC_POSTINGS_EHP4 with normal posting

    Hi, I´m running the report FAGL_YEC_POSTINGS_EHP4, but this program is posting new documents only with record type = 5, with this record type, I can´t see these documents in transactions FAGLL03, FAGLB03, FB10N...and others ordinary transacions. In t

  • Cisco WLC 5508 Guest Authentification issue

    Hi .. I have one interface setup to a Cisco 2921 router connected to a Cable modem. DHCP is on the 2921. when I connect to the ssid for my guest i'm redirected to the authentification portal 1.1.1.1 . I'm putting valide credential and when pressing t

  • To call webmethods using RFC(Remote Function Module)

    Hi Sap Group. i have got a situation on how to call the webmethods using Remote Function Module ,i know that there should be rfc destination created in sm59 already,so can i use the  same existing rfc destination which was used to call webmethods wit