Has anybody noticed how much RAM Java uses?

Hi Everyone,
I have been playing around a little with Java programs, and far out the RAM in my computer gets strained!!! I don't know how many times a Java application has completely locked down my 667MHz, 320Mb computer. My brothers 1.2GHz, 256Mb runs Java a little better, but really to play "hard ball" Java style you would need a 2.4GHz Pentium 4 with between 512 and 1024MB of RAM.
Obviously Sun Microsystems have looked to the future with Java. They have played their cards very well by creating a programming language that is a little hard for current computer hardware to run.
In ten years time when we are talking about computer hardware, we will have hard drives with terabytes of space sitting on our home PC, don't worry about clock speeds, there won't be any, the Quantum computer has already taken care of that (for all those novice Quantum Guru's out there - information exchange takes place in no time, that is not faster than the speed of light... the messages simply takes place in no Time.). Technology moves so fast that it is hard to keep pace, unless of course you are addicted to Reading!!
At the moment we obviously do not have the hardware to run massive Java applications. So instead we have garbage collection. How effective is garbage collection, and what can be done to improve it?
I have read a little about garbage collection, but it sounds quite haphazard, possibly unreliable. Obviously object orientated code takes up a lot of memory, by learning garbage collection techniques I hope to improve my coding. If anybody who reads this thread can contribute anything of personal experience related to garbage collection, it will be greatly appreciated. Code is always good, but I am also looking for peoples ideas about improving garbage collection, even if those ideas are not viable in the current version of the JDK.
Thanks for your comments and I hope that you enjoyed reading this thread.
David

Hi,
if it was meant as a joke, I enjoyed it - but if your opinion is really that of java, you have posted, I would suggest to read some of the documentations provided by Sun and you will find out, how java uses memory and you will also find out, that garbage collection is not the point, you have to worry about, because it is automatically done by the JVM. Also javac has parameters, where you can manipulate the memory usage of the JVM. So, please start reading in the case this was not just a joke :)
greetings Marsian

Similar Messages

  • Has anyone noticed how much slower it is to import photos from iphone to iphoto

    has anyone noticed how much slower it is to import photos from iphone to iphoto in Mac OS.?

    How many photos do you have in your iPhoto library? As your library grows, it will take more time to load when the app launches.Personally, I have not noticed any slowdown.
    And my question was meant to find out whether you import process had gotten slower than...a year ago, a month ago, compared to other photo apps? Running Mountain Lion..since you upgraded? In the end..what? Hence, I asked.
    Try being clearer next time. That way we don't have to beat around the bush when trying to help you.

  • HAs anybody noticed how the MAc Book Pro Login button function has changed with OSX 10.9?

    Has anybody noticed how the Mac Book Pro login button function has changed with OSX 10.9?

    No one in this forum will...  this is the Mac Pro forum

  • How much RAM should I upgrade too?

    I recently purchased a 13" MacBook Pro. It is a mid-2012 model. It currently has 4 GB. I connect it to an external monitor which makes it easier for me to use while editing. I always have the application sit and load with the spinning ball icon. I use FCPX, Photoshop, and After Effects on a daily basis. I was wondering if the RAM increase would help me create my videos more efficently. Thanks for all the comments and help ahead of time!

    You should benefit from adding more RAM. How much is hard to say but at least to 8 GBs. You might know more if you observed your memory usage in Activity Monitor.
    About OS X Memory Management and Usage
    Using Activity Monitor to read System Memory & determine how much RAM is used
    Memory Management in Mac OS X
    Performance Guidelines- Memory Management in Mac OS X
    A detailed look at memory usage in OS X
    Understanding top output in the Terminal
    The amount of available RAM for applications is the sum of Free RAM and Inactive RAM. This will change as applications are opened and closed or change from active to inactive status. The Swap figure represents an estimate of the total amount of swap space required for VM if used, but does not necessarily indicate the actual size of the existing swap file. If you are really in need of more RAM that would be indicated by how frequently the system uses VM. If you open the Terminal and run the top command at the prompt you will find information reported on Pageins () and Pageouts (). Pageouts () is the important figure. If the value in the parentheses is 0 (zero) then OS X is not making instantaneous use of VM which means you have adequate physical RAM for the system with the applications you have loaded. If the figure in parentheses is running positive and your hard drive is constantly being used (thrashing) then you need more physical RAM.
    Adding RAM only makes it possible to run more programs concurrently.  It doesn't speed up the computer nor make games run faster.  What it can do is prevent the system from having to use disk-based VM when it runs out of RAM because you are trying to run too many applications concurrently or using applications that are extremely RAM dependent.  It will improve the performance of applications that run mostly in RAM or when loading programs.

  • How much RAM does the iPad OS take up

    If I buy an iPad, how much RAM is used by the OS, or how much RAM do I have to use?

    Are you actually asking about RAM, or do you actually mean "storage capacity"?
    Do you actually want to know how much free space a 16GB or 32GB iPad has "out-of-the-box"?

  • To anybody that can answer this my iMac has 4gb memory how much faster would it be if i installed 16gb???

    to anybody that can answer this my iMac has 4gb memory how much faster would it be if i installed 16gb???

    Use activity moinot to view your typical usage, using this article as a guide:
    Using Activity Monitor to read System Memory and determine how much RAM is being used
    How much Green is in the pie chart?
    How much green plus Blue is in the pie chart?
    How much PageOuts since last Restart?
    How much current PageOuts in bytes/sec (number in parentheses)?

  • How much RAM should be in use while not running anything?

    Just for the heck of it, I checked the Activity Monitor with nothing else open to see how much RAM was being used. Much to my surprise, nearly 900MB of my 2GB was being used with literally every application closed except for Activity Monitor. This can't be normal...

    My Macbook Pro is also using about 1.3GB RAM with virtually everything shut down (mail, safari, ical, itunes, etc). Yet, my husbands uses only about 400-500MB with the nearly identical applications left running.
    I have 4GB, he has 2GB.
    We compared the running applications one-by-one, and mine uses nearly double his for the exact same application.
    Does a laptop use more memory if it has more memory to use?
    This really bothers me. There does not seem to be any reason for mine to be consuming more RAM when running the same small applications as his does yet I can't figure out why?
    Ahhhhh!

  • OK, So How Much RAM Does Photoshop CS5 Use?

    ANSWER: All you give it, lol!
    I posted this for those buying or building a PC and are deciding "how much RAM do I need?"
    I built a fairly powerful rig for Photoshop and editing in Premiere Pro, and without all the tech specs, I have 24GB of ram, mostly for encoding HiDef video. Surely Photoshop wouldn't eat THAT much, right? Dead wrong. I have Photoshop set to utilize 75% of my available ram which would be near 19GB. I just worked on a fairly large image, where I took 23 vertical shots with my 5D Mark II (5616x3744 resolution files, pretty big) and did a large photomerge which ended up at about 60,000 x 5,500 after the crop. Granted, large image, nearly 3½GB .PSB file. So while the merging and aligning was taking place, I watched my Ram Gadget soar, right up to 19GB within 4 minutes of processing:
    Yowza. I expected that from Media Encoder processing 1080p HD video into a Blu-Ray disc format, but not a Photoshop file. So, the point of all this: ram is lower in cost than it's been in many months, a 12GB Mushkin kit (3x4GB) is down to $169 on Newegg. Don't skimp in that arena, fill 'er up as best as you can. Future versions aren't going to use less ram, let's face it, the software has to process a lot of pixels! Try to go a minimum of 6GB, but definitely 8-12GB if you can. Of course this means bye-bye FINALLY to 32-bit operating systems, but once you have a large playground of memory, you and Photoshop will be happy campers.

    I purposely waited to respond so I wouldn't write things I'd regret later:
    "Nice system."
    Huh? I didn't list my system on purpose. The point wasn't showing off gear, it was PS's use of RAM.
    "With regard to RAM and Photoshop, people often say more is better without qualification, and you have just confirmed that advice."
    You actually have no evidence of my qualifications. I'll send you a link to my Microsoft transcript if you'd like, there are 16 certifications you can peruse.
    "Personally, with 24 GB of RAM I'd suggest settting Photoshop's limit even higher - e.g., to 95% (which is what I use for 8 GB) ...  The OS doesn't need much on that scale."
    24GB x 95% = 22.,8GB... that leaves 1.2GB of RAM for everything else including Windows 7 64 bit. I'm sorry, that's an extremely unwise choice. Noel, maybe you need to remove the "unqualified" beam from your own eye before you point it out in others.
    If anyone is reading this please PLEASE don't set your Photoshop limit to 95% of your available ram. Your system will mostly likely crash within minutes of starting Photoshop. The proven setting is 75%, set it there and move on. Thanks.

  • How much Ram can my Macbook use?  What Hard drive should I upgrade to?

    Hi Everyone.
    I have a 2008 ish macBook with 4gb of Ram.  I use vmware Fusion to run Windows every day and I also use Aperture on a regular basis.
    I'm looking to breath some life into this old machine and want to know how much ram the motherboard will support.  Here are the machine's specs.
    Hardware Overview:
      Model Name:          MacBook
      Model Identifier:          MacBook4,1
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          2.4 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache:          3 MB
      Memory:          4 GB
      Bus Speed:          800 MHz
      Boot ROM Version:          MB41.00C1.B00
    How muck Ram will the machine support? 
    My Hard drive is also nearly full and I would like to upgrade to a 500gb drive.  Any suggestions on which drive to choose?
    Thanks!!

    You can install up to 6 GBs of RAM. There are any number of good choices for a hard drive replacement. I suggest visiting OWC for information on pricing, makes, and models. They also provide video tutorials on how to replace a drive in MacBooks.
    To prepare for the upcoming release of Lion I also suggest spending $29 to buy a Snow Leopard DVD and upgrade your OS.

  • How much RAM do tab groups use (on average)? Do I need to watch out for how many groups I create?

    I may have gone overboard in the creation of Tab Groups. I say this because now my system is beginning to act a bit sluggish. I created 7 groups, two of which have 9 or 10 tabs. Should I pull back on the number of groups I create (as well as how many tab are located within each group). That is: How much RAM do tab groups use. How can I calibrate or understand the trade off between these markers and the amount of RAM they use?

    You can see the memory usage on the about:memory page.
    You can open about: pages via the location bar like you open a website.

  • *Noob* Which of these would I use for a scratch disk? How much Ram?

    Hello, I am fairly new to Photoshop as I have used Lightroom ever since I've been a photographer. I recently got into Photoshop with the cloud as well as layering multiple exposures together. I never KNEW anything about scratch disk, until yesterday.
    First let me stress, please answer my questions in layman's terms. I search the net before I start a topic on a forum and I read a lot of answers that seem to be responding to people who have a general idea of what is already going on. Remember, I DO NOT. Here are my questions:
    A:If the scratch disk acts like RAM, do I need to allow it to use any of my ram at all? If so, how much? I have two Macbook Pro's, they are the highest model Apple makes, both have SSD drives, Quad Core i7's, etc. I unchecked my Macbook hard drive and told it to use an external SSD drive that is plugged in via USB 3.0. Would it be better to use an HDD instead of SDD? I have lots of hard drives to choose from due to being a music producer.
    B:When I exit the program does it delete all the data it created? This question is two fold, does it delete it regardless if I saved the project or not? If I save the project does it stay there? What if I delete the original photo, was the photo imported into photoshop upon camera raw?
    C: Like question A, how much ram do I choose? I have 16GB of Ram in each of my MacBooks.

    OK, I have now copied your hillbilly text and pasted it into a text editor to change the typeface so I can read it.
    I'll try to address the lose ends here.
    A:…I have two Macbook Pro's, they are the highest model Apple makes…
    Please forgive me for not being impressed.  I just happen to consider any laptop a sub-optimal choice for Photoshop photography work.  My personal opinion.  (Please don't ask me why.)
    , both have SSD drives,… I unchecked my Macbook hard drive and told it to use an external SSD drive that is plugged in via USB 3.0. Would it be better to use an HDD instead of SDD?…
    I assume you are talking about using the external drive as your primary scratch disk, not as your boot disk.  That is the appropriate thing to do.  HD or SSD will both do the job fine, as long as they're physically separate, dedicated Photoshop scratch disks.
    Obviously the internal drive will be your boot disk.  Adobe applications really like to reside on the boot disk, the drive where the OS resides.
    B:When I exit the program does it delete all the data it created?
    This question is two fold, does it delete it regardless if I saved the project or not?
    If I save the project does it stay there? What if I delete the original photo, was the photo imported into photoshop upon camera raw?
    NOTHING is ever imported into Photoshop, ever.  You use Photoshop to open your files exactly where you put them in the Apple Finder. And you save them wherever you wish, in the Finder as well. Your images will always reside in the Finder.
    You don't import files into Adobe Camera Raw either.  You open them in or with ACR.
    Of course you need to save your data, not only when you quit the application, but at frequent intervals while you're working on it.  Nothing you saved will be deleted by Photoshop.  How can you even conceive and ask such a question? ?? ! 
    If you ever try to close a file or the application when you have open, unsaved files, the application will ask you for confirmation in an unmistakable way.
    Your images will always reside in the Finder, wherever you put them.
    Photoshop does not have the abominable "Libraries" scheme that made me detest Lightroom when I tried it.  Nor does Photoshop hide your image files in "packages" like the even more abominable iPhoto does.
    Please forget anything you may be accustomed to in Lightroom and/or iPhoto, and approach Photoshop with a fresh mind, respecting it like the granddaddy of image editors it is.
    C: Like question A, how much ram do I choose? I have 16GB of Ram in each of my MacBooks.
    Again, you don't "choose RAM", instead you select a percentage of dynamically changing Available Memory (not RAM; see above) to allow Photoshop to use.  Leave at around 70%.
    Please see the following post for an important tip.

  • How do I find out how much ram my macbook has?

    I clicked on hardrive and clicked info but it only says my hardrive space, I want to know my processor size and how much ram I have so I can add some more if I can
    Thanks

    or you could use the scan my system tool from Crucial:
    http://www.crucial.com/uk/?click=true
    I was being an idiot when I said the limit was 2GB. I wrote that on a macbook with 4GB!! Sorry, the stupid is burning brightly tonight.
    make sure you buy good quality memory.

  • How do you see how much ram you are using!

    how do you see how much ram you are using

    I think Nick is saying that there are only a couple of applications in the Utilities folder, not the number of running processes in the Activity Monitor itself. If that is the case, then an Archive & Install of Mac OS X might be the best option. It would be possible to use an application like Pacifist to extract the individual applications, but that might be quite a bit more complicated in the end. I have 30 items in my Utilities folder.
    -Doug

  • How much RAM can PS CS4e use in Mac OS 10.5.x?

    I've tried to track this down from a number of places, but can't get an answer. I'm assuming the same as CS3e, which is a little over 3 GB.
    I'm getting ready to build a new MacPro and I need to decide how much RAM to add initially. I'm a Mac tech, so pretty good at building kick-but systems, but I don't have CS4e yet, so can't figure this one out for myself. I usually max out my systems, but I don't think I can really utilize a full 32 GB of RAM with CS4 suite, but perhaps CS5. No sense in getting more RAM at this point in time, when I could use those dollars for good glass to take more pictures with! ;-)
    And FYI, real PS performance comes from using 10K rpm drives for startup/apps and a second one for Scratch.

    Jerry,
    That's a very important Tech Note. Thank you for pointing it out.
    EXCERPT:
    Allocating Memory with 64-bit Processors
    Photoshop can directly access 3.5 GB of RAM when run on Mac OS (10.4.11 or later). If you have additional RAM on your computer, the RAM above 4 GB is used by the operating system as a cache for the Photoshop scratch disk data. Data that previously was written directly to the hard disk by Photoshop is now cached in this high RAM before being written to the hard disk by the operating system. If you are working with files large enough to take advantage of these extra 2 GB of RAM, the RAM cache can increase performance of Photoshop.
    When you run Photoshop CS4 on a 64-bit operating system Photoshop can access up to 8 GB of RAM. You can see the actual amount of RAM Photoshop can use in the Let Photoshop Use number when you set the Let Photoshop Use slider in the Performance preference to 100%. The RAM above the 100% used by Photoshop, which is from approximately 3 GB to 3.7 GB, can be used directly by Photoshop plug-ins (some plug-ins need large chunks of contiguous RAM), filters, and actions. If you have more than 4 GB (to 8 GB), the RAM above 4 GB is used by the operating system as a cache for the Photoshop scratch disk data. Data that previously was written directly to the hard disk by Photoshop is now cached in this high RAM before being written to the hard disk by the operating system. If you are working with files large enough to take advantage of that extra RAM, the RAM cache can increase performance of Photoshop.

  • How much ram are You using ?

    Dear Logic Users, simply question :
    How much ram are You using on your logic-mac system ?
    Thank you

    Does anyone know how much RAM you can whack in one of these new quad machines? And if and when Logic goes 64-bit to catch up with it all, will it be able to use 8GB of RAM? Just wondering, cos as mthinking of getting one of these critters fairly soon.. Best, Fred

Maybe you are looking for

  • HT1386 I can't sync music purchased with an iTunes gift card to my iTunes on my PC?

    I received an iTunes gift card for Christmas and bought a few albums with it but unfortunately after authorising my PC and syncing my music these albums aren't appearing in my iTunes, yet, my other albums that I purchased with money are? Can anyone h

  • No signal on samsung tv

    Hi, I am trying to connect my apple tv for the first time on a samsung tv bought 6 month ago with hdmi cable but it says "no signals". I am on the correct channel and have tried to unplug but no luck. Any idea ? Thanks

  • Re: SHUTTLE ISSUE

    Hi, I have had a similar issue, the problem occurs on the left side of the shuttle. Its hard to replicate as it never occurs frequently. Here is a screenshot : http://postimg.org/image/erhc52n5v/ Thank you, Chris

  • Xchat can't find fonts?

    about a week ago I seriously foobared my box so rather than spending all that time tracking things down (yes I'm lazy) I just wiped and reinstalled.  I had my 0.4 iso laying around so I threw that in and then just used pacman to grab all the packages

  • TS3694 i have an error 3014 on my iphone how do i fix this error

    i have an error 3014 on my i phone 4s, how do i fix this?