Need lots of RAM

My jvm really plays nice with other programs. How can I tell it to be piggish and take lots of RAM?

dminter:
Thanks again. You were exactly right. Piping the results of this slightly less trivial program shows that the jvm grabs a minimal initial heap, and then expands, up to the stated max, as needed. This one dies with .25G in the heap and 3MB left free if called with -Xmx256M.
public class test {
    public static void main( String[] args ) {
     int K = 1024;
     byte[][] buffers = new byte[ K ][];
     for ( int i = 0; i < K; i++ ) {
         buffers[i] = new byte[ K * K ];
         System.out.println
             ( "free: " + Runtime.getRuntime().freeMemory() +
             " total:" + Runtime.getRuntime().totalMemory() );
        System.exit( 0 );
    } // end of main()
} // end of test

Similar Messages

  • Early 2013 13" MacBook Pro runs slow and uses a lot of RAM, why and what can be done?

    Problem description:
    My computer is using a lot of RAM. Wondering if there’s a hardware issue, or a software issue, or something else. I currently have no programs open in the Doc, besides EntreCheck. and the RAM is showing about 75% used. I’m looking for suggestions on what I can do to speed it up and make it more functional, and efficient for doing design work. I recently upgraded from the original 4GB RAM (2x2GB), and from the original HD to a 512 GB SSD drive, and upgraded to Yosemite. Perhaps that was too much for this machine? Please help with anything that I can do to make it better! Thanks in advance!
    I have a recent back-up, I'm open to saving user files and starting from scratch with the current hardware, etc... but would need some direction on how to do this. I did upgrade myself using Apple provided instructions.
    Here are the EntreCheck results:
    EtreCheck version: 2.0.11 (98)
    Report generated December 2, 2014 at 12:45:57 PM EST
    Hardware Information: ℹ️
        MacBook Pro (13-inch, Early 2011) (Verified)
        MacBook Pro - model: MacBookPro8,1
        1 2.3 GHz Intel Core i5 CPU: 2-core
        8 GB RAM Upgradeable
            BANK 0/DIMM0
                4 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                4 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        Intel HD Graphics 3000 - VRAM: 512 MB
            Color LCD 1280 x 800
    System Software: ℹ️
        OS X 10.10.1 (14B25) - Uptime: 2 days 0:17:23
    Disk Information: ℹ️
        Crucial_CT512MX100SSD1 disk0 : (512.11 GB)
        S.M.A.R.T. Status: Verified
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            SuperCool (disk1) /  [Startup]: 510.88 GB (320.22 GB free)
                Core Storage: disk0s2 511.25 GB Online
        MATSHITADVD-R   UJ-898 
    USB Information: ℹ️
        Microsoft Microsoft® Nano Transceiver v2.0
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. FaceTime HD Camera (Built-in)
        Western Digital My Passport 070B 319.37 GB
            S.M.A.R.T. Status: Verified
            EFI (disk2s1) <not mounted> : 210 MB
            NATURE2020 (disk2s2) /Volumes/NATURE2020 : 319.03 GB (169.27 GB free)
        Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Problem System Launch Agents: ℹ️
        [failed]    com.apple.security.cloudkeychainproxy.plist
    Problem System Launch Daemons: ℹ️
        [failed]    com.apple.ctkd.plist
        [failed]    com.apple.icloud.findmydeviced.plist
        [failed]    com.apple.nehelper.plist
        [failed]    com.apple.nsurlsessiond.plist
        [failed]    com.apple.wdhelper.plist
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist Support
        [running]    com.adobe.AdobeCreativeCloud.plist Support
        [loaded]    com.adobe.CS5ServiceManager.plist Support
        [running]    com.hp.productresearch.plist Support
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist Support
        [invalid?]    com.adobe.SwitchBoard.plist Support
        [loaded]    com.microsoft.office.licensing.helper.plist Support
        [running]    com.surteesstudios.hddfancontroldaemon.plist Support
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist Support
        [loaded]    com.adobe.ARM.[...].plist Support
        [loaded]    com.adobe.ARM.[...].plist Support
        [invalid?]    com.citrixonline.GoToMeeting.G2MUpdate.plist Support
        [loaded]    com.google.keystone.agent.plist Support
    User Login Items: ℹ️
        GrowlHelperApp    Application (/Library/PreferencePanes/Growl.prefPane/Contents/Resources/GrowlHelperApp.app)
        iTunesHelper    UNKNOWN (missing value)
        EvernoteHelper    Application (/Applications/Evernote.app/Contents/Library/LoginItems/EvernoteHelper.app)
        Google Drive    ApplicationHidden (/Applications/Google Drive.app)
        Dropbox    ApplicationHidden (/Applications/Dropbox.app)
    Internet Plug-ins: ℹ️
        Default Browser: Version: 600 - SDK 10.10
        AdobeAAMDetect: Version: AdobeAAMDetect 2.0.0.0 - SDK 10.7 Support
        FlashPlayer-10.6: Version: 15.0.0.239 - SDK 10.6 Support
        AdobePDFViewerNPAPI: Version: 11.0.09 - SDK 10.6 Support
        Silverlight: Version: 5.1.10411.0 - SDK 10.6 Support
        Flash Player: Version: 15.0.0.239 - SDK 10.6 Support
        QuickTime Plugin: Version: 7.7.3
        iPhotoPhotocast: Version: 7.0 - SDK 10.8
        SharePointBrowserPlugin: Version: 14.4.6 - SDK 10.6 Support
        AdobePDFViewer: Version: 11.0.09 - SDK 10.6 Support
        CouponPrinter-FireFox_v2: Version: Version 1.1.6
        JavaAppletPlugin: Version: 15.0.0 - SDK 10.10 Check version
    User Internet Plug-ins: ℹ️
        CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 Support
    Safari Extensions: ℹ️
        AllMyTube
    3rd Party Preference Panes: ℹ️
        Flash Player  Support
        Growl  Support
        HDD Fan Control  Support
    Time Machine: ℹ️
        Skip System Files: NO
        Auto backup: YES
        Volumes being backed up:
            SuperCool: Disk size: 510.88 GB Disk used: 190.66 GB
        Destinations:
            NATURE2020 [Local]
            Total size: 319.03 GB
            Total number of backups: 4
            Oldest backup: 2014-09-10 17:52:44 +0000
            Last backup: 2014-11-19 21:23:34 +0000
            Size of backup disk: Too small
                Backup size 319.03 GB < (Disk used 190.66 GB X 3)
    Top Processes by CPU: ℹ️
            22%    mds
             6%    WindowServer
             4%    Creative Cloud
             3%    Dropbox
             0%    Google Drive
    Top Processes by Memory: ℹ️
        223 MB    Finder
        137 MB    mds_stores
        120 MB    Dropbox
        86 MB    Creative Cloud
        86 MB    WindowServer
    Virtual Memory Information: ℹ️
        2.08 GB    Free RAM
        2.82 GB    Active RAM
        1.64 GB    Inactive RAM
        1.59 GB    Wired RAM
        14.83 GB    Page-ins
        2.06 GB    Page-outs

    Lex...
    Here's the new EtreCheck that I just ran. At a glance, it seems I may have missed deleting some things or they are stored in an additional location? I haven't jumped into anything yet to really test if there's a difference in performance for me. Once I do I will post that information.
    EtreCheck version: 2.0.11 (98)
    Report generated December 3, 2014 at 8:46:56 AM EST
    Hardware Information: ℹ️
        MacBook Pro (13-inch, Early 2011) (Verified)
        MacBook Pro - model: MacBookPro8,1
        1 2.3 GHz Intel Core i5 CPU: 2-core
        8 GB RAM Upgradeable
            BANK 0/DIMM0
                4 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                4 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        Intel HD Graphics 3000 - VRAM: 512 MB
            Color LCD 1280 x 800
    System Software: ℹ️
        OS X 10.10.1 (14B25) - Uptime: 12:43:15
    Disk Information: ℹ️
        Crucial_CT512MX100SSD1 disk0 : (512.11 GB)
        S.M.A.R.T. Status: Verified
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            SuperCool (disk1) /  [Startup]: 510.88 GB (322.45 GB free)
                Core Storage: disk0s2 511.25 GB Online
        MATSHITADVD-R   UJ-898 
    USB Information: ℹ️
        Apple Inc. FaceTime HD Camera (Built-in)
        Microsoft Microsoft® Nano Transceiver v2.0
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Launch Agents: ℹ️
        [running]    com.adobe.AdobeCreativeCloud.plist Support
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist Support
        [loaded]    com.microsoft.office.licensing.helper.plist Support
    User Launch Agents: ℹ️
        [loaded]    com.adobe.ARM.[...].plist Support
        [loaded]    com.google.keystone.agent.plist Support
    User Login Items: ℹ️
        None
    Internet Plug-ins: ℹ️
        FlashPlayer-10.6: Version: 15.0.0.239 - SDK 10.6 Support
        QuickTime Plugin: Version: 7.7.3
        Flash Player: Version: 15.0.0.239 - SDK 10.6 Support
        Default Browser: Version: 600 - SDK 10.10
        SharePointBrowserPlugin: Version: 14.4.6 - SDK 10.6 Support
        Silverlight: Version: 5.1.10411.0 - SDK 10.6 Support
        iPhotoPhotocast: Version: 7.0 - SDK 10.8
    User Internet Plug-ins: ℹ️
        CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 Support
    3rd Party Preference Panes: ℹ️
        Flash Player  Support
    Time Machine: ℹ️
        Skip System Files: NO
        Auto backup: YES
        Volumes being backed up:
            SuperCool: Disk size: 510.88 GB Disk used: 188.43 GB
        Destinations:
            NATURE2020 [Local]
            Total size: 319.03 GB
            Total number of backups: 4
            Oldest backup: 2014-09-10 17:52:44 +0000
            Last backup: 2014-11-19 21:23:34 +0000
            Size of backup disk: Too small
                Backup size 319.03 GB < (Disk used 188.43 GB X 3)
    Top Processes by CPU: ℹ️
             7%    WindowServer
             1%    launchservicesd
             0%    launchd
             0%    fontd
             0%    Core Sync
    Top Processes by Memory: ℹ️
        103 MB    mds_stores
        86 MB    Creative Cloud
        86 MB    Finder
        77 MB    WindowServer
        60 MB    systemstatsd
    Virtual Memory Information: ℹ️
        3.93 GB    Free RAM
        2.28 GB    Active RAM
        900 MB    Inactive RAM
        1.48 GB    Wired RAM
        2.25 GB    Page-ins
        0 B    Page-outs

  • Need help on rams to be compatible with my Spec

    Hi I need to replaced my rams. Appreciate some advice here. Currently I am using DDR PC3200/400Mhz rams. As it's no longer economical/ value-for-money for me to get PC3200/400Mhz rams, below are the alternatives I am looking into since their prices are more cost effective than 400Mhz rams. According to my Spec, Intel 2.8Ghz Pentium 4, MSI motherboard 865PE Neo 2 PLS, 478 socket. Will I be able to use PC4200 533Mhz, PC5300 667 DDR2 rams?
    Kingston DDR2 533Mhz 1GB
    Kingston/Corsair DDR2 533 Mhz PC4200 1GB
    Patriot DDR2 PC4200 533Mhz 1GB
    kingston DDR2 PC5300/667Mhz 1GB
    Compatibility and stability is more impt to me. I do not intend to overclocking. Appreciate anyone if you could help advice me on the timing as well for these suggested Rams w/o overclocking.
    Thanks a lot.
    Intel Pentium Prescott 4 CPU 2.8Mhz
    MSI 865PE Neo2 PLS
    1.5GB Ram (2x512MB, 2 X 256MB), 3-3-3-8 clocks at 2.6V
    1 80GB SATA 7200rpm HDD
    1 LG DVD writer
    1 floopy disk
    1 ATI graphic card 9550SE
    PSU +5.5V 24A, +3.3V 15A, 12V1 12A, 12V2 15A

    Quote from: Exo on 21-May-07, 18:23:34
    You can't use DDR2 ram with that board. You need DDR1 PC3200 ram. Best thing to do is sell the ram you currently have and get a new dual channel kit as your slots are already full and further mixing will lead to problems.
    Hi thanks for replying.
    I don't intend to mix the existing rams that I have with a new replace rams. I will just install 2 x 1GB rams. So I need to know if my motherboard will be able to use 1 GB DDR2 533mhz or DDR2 667Mhz rams before I go and buy.
    Really can't use DDR2 rams?

  • WhatsApp on E72 consuming a lot of RAM

    I have observed that WhatsApp consumes a lot of RAM on my E72. So much so that I can't even use Maps or browse heavy pages. To free up the RAM, I need to switch it off but even though I exit the program, it still is running in back ground and consuming the RAM.
    Is there any way that I can close this program ? Currently I am using NetQin to close it but its a very lengthy process.
    Also if any of you are using an equally good program kindly inform so that I can switch over.
    Using Nokia Lumia 1320.
    Also have Nokia E72 & Nokia N8.

    anyone with appropriate response?!!
    Using Nokia Lumia 1320.
    Also have Nokia E72 & Nokia N8.

  • Macbook pro 13' late 2011 4GB RAM...using lot of RAM

    macbook pro 13' late 2011 4GB RAM...using lot of RAM
    I have attatched screenshot...please help...sometime free memory is only 15 or 20 mb and i have to restart...after restart it works fine for 10 to 20 minuts

    its very easy to do, here are step by step instructions with photos

  • Need to upgrage Ram to HP laptop HP G62-361TX

    Hi Friends, i need to upgrade Ram in HP Laptop Model:G62-361TX -  I am 4 GB Ram ( 4GB 1RX8 - PC3L-12800S-11-12-84)
    it possible to upgrade in laptop

    Hi RAMKUTTI,
    Thank you for your inquiry, I am happy to  help!
    I grasp you would like to upgrade the memory on your G62-361TX notebook.  Here is a link to the Compaq Presario CQ62 Notebook PC HP G62 Notebook PC Maintenance and Service Guide. Please note page 1-1 under memory.  It states it support up to 8GB of ram.
    Therefore you should be able to install 2 -4GB cards for total of 8.
    I hope this has answered your question.
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • I need lots of USB ports with New Mac Pro, now what?

    because I'm in the audio business I needs lot of USB ports with my Mac Pro. On my current 2008 machine, that's not really an issue, with 5 ports on teh MP itself and I installed some USB hubs over PCIe that give me a total of 13 port. I'm not really sure what is the best way to get that amount on the new MP.
    Oh, and I really like the stability of my current set up. Before I went with an external USB Hub that always gave me headaches with ports not being recognized.

    The only two things I found so far are:
    a/ going back to the external USB hubs, which I find very frustrating to work with, because instable with connection and I would need to add some interface to go from USB to TB (which are also rather expensive at the moment)
    b/ use some external PCIe enclosures that are really expensive.
    So I havent really found the right solution for my situation. Which makes me hesitant to migrate to new MP at the moment.

  • Yosemite is using a lot of RAM (about 5GB) in my MAC, why?

    Yosemite is using a lot of RAM (about 5GB) in my MAC, why?

    The article below, although written for Mavericks, applies to Yosemite as well.
    http://www.switchingtomac.com/tutorials/osx/understanding-memory-pressure-in-os- x-mavericks/

  • Xorg.bin use a lot of ram Catalyst

    Hello! After installing catalyst from Violo's repo i have noticed that Xorg.bin use a lot of ram(when i start the laptop it is 25mb but it keep rising till it get to 1.5gb in about 2h and I restart to free memory) This is on X-server 1.7 and now i downgrade to 1.16.4 but no effect. Can someone help me please. Thank you!

    elll wrote:Do you know how to downgrade catalyst? Should i use pacman -U catalyst? [link]https://wiki.archlinux.org/index.php/Do … s#Warnings[/link] And if yes do i have to downgrade Xorg too because i allready do that?
    The nicer way to do this is to use the [catalyst-stable-14.X] repository databases in this manner (where you replace X with the corresponding number):
    [catalyst-stable-14.X]
    Server = http://catalyst.wirephire.com/repo/catalyst/$arch
    elll wrote:Does someone know how to fix this issue or if there will be released fix for this?
    No idea. Ask the AMD Developers upstream.
    Last edited by clfarron4 (2015-02-18 11:08:30)

  • Macbook Pro late 2012 model with intel processor and 4G of RAM.  I upgraded to Yosemite and now my system is so slow.   I do not have a backup to revert to because of insufficient space.  Do I need to upgrade RAM or do I have to reinstall Mtn Lion?

    I have a Macbook Pro late 2012 model with intel processor and 4G of RAM.  I upgraded to Yosemite and now my system is so slow.   I do not have a backup to revert to because of insufficient space. I have ordered a 1T external drive to do a backup now.  What can I do to improve my system performance?   Do I need to upgrade RAM or do I have to reinstall Mtn Lion?

    I have a Macbook Pro late 2012 model with intel processor and 4G of RAM.  I upgraded to Yosemite and now my system is so slow.   I do not have a backup to revert to because of insufficient space. I have ordered a 1T external drive to do a backup now.  What can I do to improve my system performance?   Do I need to upgrade RAM or do I have to reinstall Mtn Lion?

  • Macbook pro late 2011 is on Mac OS X v10.7 Lion and it is using lot of RAM

    Macbook pro late 2011 is on Mac OS X v10.7 Lion and it is using lot of RAM...when I turn on after 2minutes it freezes and do not repond and system prefrences also not working...plz help me....I don,t have mac os disc
    I have tried safe mode boot, NVRAM and PRAM reset but no luck...

    First, try a Safe Mode boot.
    Startup your Mac in Safe Mode
    A Safe Mode boot takes a longer than a normal boot so be patient.
    Once you are in Safe Mode, click Restart from your Apple () menu.
    If that didn't help, reintall OS X..
    Restart your Mac while holding down the Command + R keys so you can access the built-in utilities in OS X Recovery
    message edited by: cs

  • I need help choosing RAM for MSI PM8PM-V 7222 VER. 2.0 MB

    hey everyone as you know my MB is in the subject and i need help buying ram for it. on the MSI website it says it can surpport max. 2GB so 1GB in each slot? it only has 2 slots also what DDR and MHZ clock, DRAM fequency etc does the ram have to be and both single sided or double sided or 1 single and 1 double?
    thanks

    Quote
    also what DDR and MHZ clock, DRAM fequency etc does the ram have to be
    http://global.msi.eu/index.php?func=proddesc&maincat_no=1&prod_no=1039
    Quote
    • Supports DDR2 533/400 memory interface.
    Check the memory support list for best compatibility:
    http://global.msi.eu/uploads/test_report/TR10_1039.pdf

  • Ok i need lots of help here... i have a WRT54G router and...

    ok i need lots of help here... i have a WRT54G router and trying to hard wire a computer to it and wirelessly connect to a laptop... i have dsl internet connection... the power light is blinking constintly and when i try to setup the router the default password doesnt work already tried to reset the router and that didnt help... any thoughts> thanks

    the power led blinking all the time can be caused by a corrupt firmware, or a defective power adapter,  try doing a hard reset, you may need to do it a couple of times, and then power down both the modem and router.
    after a couple minutes, power up the modem, wait for the link led lights up, then power up the router and look for it to link up with the modem, at this time the power led on the router should be on solid if all is ok.
    if it still don't light solid, you may need to do a firmware update, or the router is defective.

  • Textures need to much ram!

    Hi guys, i'm quite new to java3D;
    At the moment I try to create a rotating menu. It consists of a circle, and depending on the rotation angle of the circle, different actions are startet. It's a bit like one of these very old telephones. I think you know what i mean.
    I create a cylinder with the height of zero, then i rotate it around the X-Axis so that I can see its top. Now i have created a flat "disc". Then i add an image with the menu text as texture to the disc.
    The problem is now that the picture needs a very high resolution (about 2500x2500 pixel), otherwise the text gets grainy; when the picture is loaded, this simple application needs about 130mb ram. Without the picture it takes about 20mb... I think this is very strange, the picture itself has only about 200kb.
    Here is the code where i add the texture:
          ZylinderAppearance.setTexture(new TextureLoader("sample.jpg", null).getTexture());
          ZylinderAppearance.setTextureAttributes(new TextureAttributes(TextureAttributes.MODULATE,new Transform3D(),new Color4f(), TextureAttributes.FASTEST));
          ZylinderAppearance.setCapability(Appearance.ALLOW_TEXTURE_WRITE);  
          Cylinder Zylinder = new Cylinder(0.8f, 0.0f , Primitive.GENERATE_NORMALS | Primitive.GENERATE_TEXTURE_COORDS, 100, 10, ZylinderAppearance);Is there a better way to load / add the texture? I also tried writing the text of the menu directly with Text2D(), but this text always looks ugly.
    Another possibility might be to create single pictures for every text-block and add them one by one, but I dont really know how to create the tex-coordinates of round shapes..
    here you can see a sample texture for the disc: http://www.bwiebertha.de/sample.jpg
    thx in advance!

    from looking online it looks as though your model can take 8Gb maximum.
    I have recently been using a site called Mr Memory, they have your model listed on their site - elitebook 2740p

  • How can i make firefox more fast firefox take's a lot of ram !! why and how can i fix it ?

    firefox take's a lot of ram !! why and how can i fix it ?

    Okk dnt remv history bt othr should be remov !! This is beczz catch memory doesnt let FF to work well so u have to do !! N if u wont remov these junk files from any browsers you using , one day they will get struck ....

Maybe you are looking for

  • How would I set this small program to activate every 120 seconds?

    I have this small program that writes the value 0 to a file, but I want it to only activate every 120 seconds, so it doesn't take up a bunch of system resources by constantly running. Can I make it pause for 120 seconds, or set a timer for it, in suc

  • How To Stop "Ploarization" on the HPZ3100 44inch Printer

    I am experiecing a sense of "ploariztion" thats what everyone keeps saying on some printed detail on my printer has anyone got any ideas on how to fix this problem   Cheers Red

  • Connectivity 5.1 to ddts-100

    Can ne one help me? I got the decoder since last 20 days. Not getting the sound effects the way i wanted it. I m haivng philips 5.1 sonic edge sound card (psc605), and 5.1 inspire 5200 creative speakers and got new ddts-100. When i connect ddts-100 t

  • Dynamic Media Server not available?

    I'm trying to create a GIF image, and in the past I had no pronlems with 'Importing video frames inoto layers' but now an error pops up about the Media Link not being available. Please help. x

  • Won't boot Hardware Test

    I an using the Apple install disk 1 which contains OS X 10.4 even though I am running OS X 10.5. That is what is says to do. I have tried holding the "D" key before the computer makes the bong. During the Bong and after the Bong. No matter what I do