Memory error

Respected Collegues,
I am a project trainee in Bioinformatics.
For storing the details of 8000 sequences,i declared a two dimensional array as
double[][] seqArray=new double[8000][8000];
But while running the program i encountered with a run time error as
java.lang.OutOfMemoryError
I searched the NET and got the information that
the default memory space which JVM takes is 16MB and we can make the JVM to take more space by giving as
java -mx64M <application_name> ,
since somewhat 40MB of RAM space is always left unused.
But by giving this also I encountered the same problem
So is there any way of overcoming this run-time error?
If any ,please sent the reply to [email protected]
Thank you

Let's see how much memory you need to store a doubles[8000][8000]...
Storing one double requires 8 bytes so for the numbers alone the virtual machine should allocate 8*8000*8000 = 512000000 bytes of memory, that is over 488 MB (*way* more than I have in my computer) so no wonder 64 wasn't enough.
To solve the you should consider if you really need to hold all those values in memory at the same time. Can a part of the data be written on a temporary file on disk and be loaded when you need it? Do you really need double precision floating point numbers?

Similar Messages

  • A FIX for error message: When I try to open Snood (it's a game) I get this message.  Not enough memory {Error # :: 0, in sound.cp@line 101  Can you help?

    After years of playing Snood, w/o problems, I started getting this error message, on my iMac, OS 10.5.8,
    with 4 GB of memory when opening Snood:  Not enough memory {Error # :: 0, in sound.cp@line 101
    My MacBook Pro w. Mac OS 10.6.8 did not have this problem.
    Initially I thought that Snood raised its minimum requirement to Mac OS 10.6.
    I had several correspondences with Snood. Their tech support is great. Quick and thorough responses.
    They thought the issue was in Mac's system preferences/ Sound. It was.
    I didn't realize that my sound input and output devices were gone.
    The fix was resetting the PRAM. I found this advice on MacFixIt.com.
    MacFixIt help with volume:   http://reviews.cnet.com/8301-13727_7-10415659-263.html
    Resetting the PRAM is on Apple support:   http://support.apple.com/kb/HT1379
    My sound (music!) is back, along with Snood. So glad I reset the PRAM before reinstalling the OS software!
    Thank you to Snood, MacFixIt and Apple.
    Happy new year all!

    Good work, nice post/tip, thanks!

  • Acrobat XI Pro "Out of Memory" Error.

    We just received a new Dell T7600 workstation (Win7, 64-bit, 64GB RAM, 8TB disk storage, and more processors than you can shake a stick at). We installed the Adobe CS6 Master Collection which had Acrobat Pro X. Each time we open a PDF of size greater than roughly 4MB, the program returns an "out of memory" error. After running updates, uninstalling and reinstalling (several times), I bought a copy of Acrobat XI Pro hoping this would solve the problem. Same problem still exists upon opening the larger PDFs. Our business depends on opening very large PDF files and we've paid for the Master Collection, so I'd rather not use an freeware PDF reader. Any help, thoughts, and/or suggestions are greatly appreciated.
    Regards,
    Chris

    As mentioned, the TEMP folder is typically the problem. MS limits the size of this folder and you have 2 choices: 1. empty it or 2. increase the size limit. I am not positive this is the issue, but it does crop up at times. It does not matter how big your harddrive is, it is a matter of the amount of space that MS has allocated for virtual memory. I am surprised that there is an issue with 64GB of RAM, but MS is real good at letting you know you can't have it all for use because you might want to open up something else. That is why a lot of big packages turn off some of the limits of Windows or use Linux.

  • Acrobat XI Pro "Out of Memory" error after Office 2010 install

    Good Afternoon,
    We recently pushed Office 2010 to our users and are now getting reports of previous installs of Adobe Acrobat XI Pro no longer working but throwing "Out of Memory" errors.
    We are in a Windows XP environment. All machines are HP 8440p/6930p/6910 with the same Service pack level (3) and all up to date on security patches.
    All machines are running Office 2010 SP1.
    All machines have 2GB or 4GB of RAM (Only 3.25GB recognized as we are a 32bit OS environment).
    All machines have adequate free space (ranging from 50gb to 200gb of free space).
    All machines are set to 4096mb initial page file size with 8192mb maximum page file size.
    All machines with Acrobat XI Pro *DO NOT* have Reader XI installed alongside. If Reader is installed, it is Reader 10.1 or higher.
    The following troubleshooting steps have been taken:
    Verify page file size (4096mb - 8192mb).
    Deleted local user and Windows temp files (%temp% and c:\WINDOWS\Temp both emptied).
    Repair on Adobe Acrobat XI Pro install. No change.
    Uninstall Acrobat Pro XI, reboot, re-install. No change.
    Uninstall Acrobat Pro XI Pro along with *ALL* other Adobe applications presently installed (Flash Player, Air), delete all Adobe folders and files found in a full search of the C drive, delete all orphaned Registry entries for all Adobe products, re-empty all temp folders, reboot.
    Re-install Adobe Acrobat XI Pro. No change.
    Disable enhanced security in Acrobat XI Pro. No change.
    Renamed Acrobat XI's plug_ins folder to plug_ins.old.
    You *can* get Acrobat to open once this is done but when you attempt to edit a file or enter data into a form, you get the message, "The "Updater" plug-in has been removed. Please re-install Acrobat to continue viewing the current file."
    A repair on the Office 2010 install and re-installing Office 2010 also had no effect.
    At this point, short of re-imaging the machines (which is *not* an option), we are stumped.
    We have not yet tried rolling back a user to Office 2007 as the upgrade initiative is enterprise-wide and rolling back would not be considered a solution.
    Anyone have any ideas beyond what has been tried so far?

    As mentioned, the TEMP folder is typically the problem. MS limits the size of this folder and you have 2 choices: 1. empty it or 2. increase the size limit. I am not positive this is the issue, but it does crop up at times. It does not matter how big your harddrive is, it is a matter of the amount of space that MS has allocated for virtual memory. I am surprised that there is an issue with 64GB of RAM, but MS is real good at letting you know you can't have it all for use because you might want to open up something else. That is why a lot of big packages turn off some of the limits of Windows or use Linux.

  • Memory Error Neo2 Pt 4*512 DDR 400 or even 333

    Ok, this board has started giving me a lot of problems. 1 week ago all was fine, and suddenly I started getting BSODs. Last friday the computer shut off after a BSOD, while I was just browsing the internet.
    Affter that it failed to start and gave a BSOD on every boot.
    Then it started automatically again. And woked well.
    On sat the system wont start and gave long beeps, indiicating memory error.
    4*512 Ballistix default spd.
    so I reset my BIOS, upgraded bios to 1.A ballistix edition, as syar suggested.
    Computer ran well / rebooted well.
    but when I did a cold start sunday morning I got long beeps again. Even resetting the BIOS did help. Got long beeps.
    I took 1 module out and the system started well. went into the bios and manually set bus to 333 rather than 400, default spd timings.
    Computer started well. I put the 4th module back in, and all worked well till I did a cold boot today, and back to continuos beeps.
    Now the only way the computer works if I just use 2 memory modules.
    I tried manual voltage, manual timings, spd timings, timings on crucial's site, voltage on crucials site. No luck.
    currently i am on 2*512 dimm 1-2, default spd and voltage and system seems to work.
    whats the prob ? Is my memory bad, which I am not too sure off, bcos I tried running 2 modules at a time from the 4 matched pair, and tey seem to work.
    Only the all 4 wont work, and 3 in also gives problem.
    is this motherboard messed up ?
    bcos I am really thinking of switching to a diff platform as since day 1, less than 1 month ago, this mobo is giving me probs with X2 dual core.

    https://mywebspace.wisc.edu/phora/web/cpuz.htm
    Alright, I updated the BIOS to the latest beta, modded by side effect.
    put back the 4 modules in, and they are running now
    2-2-2-7 DDR 400 2.8V
    though the HT is 3x unlike all previos times when it was 5x...anything to do with the probs ?
    anyways, I still dont know how long this config will last, for I have has successful bootups in the past, but they end up failing later.

  • RoboHelp 9 gives an out of memory error and crashes when I try to import or link a Frame 10 file or

    I have Tech Suite 3. If I start a new RoboHelp project and try to import or link Frame files, RoboHelp tries for a while, then I get an Out of Memory error and the program crashes.
    I opened one of the sample projects and was able to link to one of my frame files without any problem, so it seems to be an issue with creating something new.
    Any suggestions?

    It happens when I create a new project and then try to import or link frame docs to make up the content. It starts scanning, then crashes. I did get it to the conversion setting page once, but no further.
    It does not happen if I open one of the supplied example projects and link a file. But then it doesn't let me choose, during import, any style mapping. And I can't delete the sample project fold
    Twice now it has told me when I tried to import (not link, but import) that my .fm file could not be opened, and told me to verify that Frame is installed (it is) and that the file is a valid frame file (it is).
    The docs and project are in separate folders on my C: drive.

  • Low memory errors.

    When I ty to play Destination Treasure Island I get a low memory error message. Is this bad? Could my iPad be bad? If I reboot the iPad it starts and lays but I haven't played for hours at a stretch yet either.
    Should I be concerned?
    Thanks.

    Multi-tasking happens in 4.2, it's not something that can be switched on/off (which not everyone likes). The only thing that you can do is go into the task bar (double-click the home button) and close other apps manually (press and hold one of them until they start to shake, then press the '-' in their top left corenr; press home, or touch the non-taskbar part of the screen when finished closing them). The task bar shows recently used apps as well as those that are running, so even if an app appears there it doesn't necessarily mean that it is active.

  • Low memory error message - shut down app

    Last 2 days, I keep getting low memory error message and asking me to close CS Suite application, or it closes on me.

    Details, OS, RAM, free disk space, scrach disk space, etc.

  • Memory Error in Bridge while running a script with multiple moveTo()'s.

    I have written a script to create folders based on the names of assets in the parent folder, then move the assets with matching names into the appropriate folders. The script runs perfectly up to somewhere between 1,000 to 1,500 images moved and then I receive a memory error from Bridge.
    I have been running this on folders with an excess of 25,000 assets in them. My work around was to put a simple counter in the script to let me know when 1,000 assets had been moved, throw up an alert, and then I would view the Task Manager to let me know when the CPU usage had dropped below 50% and would ok the alert, then it would run the next 1000 assets.
    My question, is it possible in scripting to monitor your memory usage to allow a pause in the script so Bridge processing can catch up?

    Don't do that!
    $.sleep() doesn't "sleep". ExtendScript is not multi-threaded. $.sleep just waits on the $.sleep() command to execute. It actually blocks all processing rather than free up the processor to do things like garbage collection.
    First try the $.gc() command. To my knowledge there is no way to track ES' memory usage.
    If that doesn't work, try scheduling a task...
    Let's say that you find that after 1000 moves, it takes 60 seconds for the processor to cool off:
    doAThousandMoves = function() {
    // execute 1000 moves
    app.scheduleTask( "doAThousandMoves()", 60000, true );
    The way I would actually code this is to scan the folder tree and create a global array that contained all of the files to be moved.
    I would then move them 1 at a time, shifting them off the array. Something like this:
    var mover = {}; // global object declaration
    mover.init = function() {
    mover.files = new Array();
    // fill mover files with the file objects to be moved.
    app.scheduleTask( "mover.move()", 10 );
    mover.move = function() {
    var i = 0;
    while ( i++ < 1000 ) {
    file = mover.files.shift();
    // move file
    if ( mover.files.length > 0 ) {
    app.scheduleTask( "mover.move()", 60000 );
    In fact, you should probably break this into chunks of about 10 or so at a time (you can reduce the gap between calls). Doing so will make the operation appear to be running as a background process.
    Regards
    Bob

  • Memory error when executing package through SQL Server Agent.

    Hi!!
    I have a problem with a package (SSIS) when run on SQL Server Agent.
    The job is configured
    with the proxy and the account has the
    required privileges. Runs perfectly
    if the job runs manually, but if I let it
    run on schedule I get a memory error.
    Also if I run the
    package through DTExec.exe or VS2008,
    everything runs smoothly.
    I am using SQL2008R2.
    If someone has something similar happened
    and have found how to fix it please i need
    to know how.
    Thank you.

    This is most likely your issue:
    http://support.microsoft.com/kb/824422

  • Out of Memory Error While deploying as EAR file

    Hai,
    I was trying to deploy an EAR file of size 63 MB which inturn containing about 60 EJB.jars. No WARs. application.xml has all the entries for the JARs. While I am deploying it is giving Out of Memory Error. Is there any way to tweak this problem. I am using my own hand written java application which uses the SunONE deployment APIs for deployment. Can u please tell how to tackle this problem. I am running my application through a batch file which uses jdk1.4.
    Please help me regarding this issue.

    You can set the initial heap size and maximum heap size for the JVM, either in the app-server admin console, or maybe in one of your scripts. You look-up the syntax!...
    I had this error yesterday. I too had run out of memory (150Mb). You simply need to allocate more to the app-server.

  • Memory error when trying to fetch events by data range

    I keep getting the following memory error when trying to fetch events from my calendar server: CAPI_STAT_SERVICE_MEM_ALLOC
    I have checked the forum and found only one entry that talks about adjusting the -mx -oss settings for my JVM. However it is unclear if this change needs to be done to the server or the client where I am running the JVM. I have made these adjustments in my JDeveloper project and I still recive the error. I have checked the eng.log, cws.log and snc.log. The only entries found are:
    DATE = Thu Jun 2 16:53:24 2005
    PID = 12647; TID = 3076395840
    Trying to connect: Host = houoas2.us.oracle.com (127.0.0.1)
    Service = unidas
    DATE = Thu Jun 2 16:53:29 2005
    PID = 12647; TID = 3076395840
    Connection established: Host = houoas2.us.oracle.com (127.0.0.1)
    Service = unidas
    This is being done on a 10g calendar server. Any help would be appricated.

    Now that 10g and its associated CSDK are out and the 9.0.4.x CSDK is presumably frozen, would it be possible to make the 9.0.4.10 CSDKs - for each platform - available for downloading, unbundled from the massive server suite?

  • Memory error after C042 errors on users database

    Hi,
    We recently have memory error messages on the POA and on the Client.
    The error seemed to follow several C042 errors:
    The database function 53 reported error [C042] on user4mn.db
    Error: Memory error. Memory function failure [8101] User:
    I cannot find any process that is accessing the user database at that time (GWcheck, Backup)
    The user also gets a memory error and has to restart the client.
    any ideas?

    On 9/7/2011 2:16 AM, pdjongh wrote:
    >
    > Hi,
    >
    > We recently have memory error messages on the POA and on the Client.
    > The error seemed to follow several C042 errors:
    > -The database function 53 reported error [C042] on user4mn.db
    > Error: Memory error. Memory function failure [8101] User:-
    >
    > I cannot find any process that is accessing the user database at that
    > time (GWcheck, Backup)
    > The user also gets a memory error and has to restart the client.
    >
    > any ideas?
    >
    >
    Have you run a full contents and structure check on the user?

  • "There was not enough memory" error message when saving DNG and Jpeg

    PC/Windows XP Pro. Pentium 4/2Gb RAM.
    I am constantly getting memory errors when trying to save batches of images from ACR4 either as Jpegs or DNGs.
    A couple of images in to the batch a small window appears with a list of the files and next to each of them is the line: "There was not enough memory."
    These are 220Mb TIFF files that are processed in Hasselblad's Flexcolor on the same computer. I can process an entire folder full (sometimes 50 images) without a hitch in Flexcolor, but Bridge/ACR4 and CS3 can't handle any reasonable number of images.
    Could it be something in my settings? For the record, they are:
    In Bridge, under Edit/Preferences/Camera RAW preferences, Camera Raw Cache is set to 10Gb. Jpeg and Tiff handling boxes are both ticked.
    Under Edit/Preferences/Cache, Cache Size slider is slightly over half way to the right.
    In addition, I have CS3 pointed to a formatted 500GB scratch disk all to itself.
    And CS3's RAM is set to 80%.
    Finally, this computer is used for nothing else except image editing.
    Any ideas?
    Thanks.
    D.

    Thomas,
    Thanks for the reply.
    If you mean by "Public Beta", did I download the 10.4Mb plug-in (as per John Cornicello's link above) and install it at Program Files\Common Files\Adobe\Plug-Ins\CS3\File Formats in place of the old plug-in, then yes.
    I always run ACR4 via Bridge, never via CS3. CS3 always comes after conversion in my workflow. Also, I like to give Bridge/ACR a free run of available resources. Nothing else is ever open when I'm running them.
    In CS3 under Edit/Preferences/File Handling, under Image Previews I selected 'Never Save'. Not sure if this affects ACR though.
    Also, as per the suggestion in the article referred to in my last post, I removed the tilde ~ to activate the Bigger Tiles plug-in. CS3's memory % is now set @ 90%.
    The only thing I haven't done is to activate the Microsoft 3Gb switch. I can't find instructions that are clear enough. Also, it may be that it makes no difference when running Vista 64bit, as I am.
    For what it's worth, with these fine tunings, CS3 now executes the Retouch Artist's Speedtest in 20 seconds, a shade faster than before. This is extremely fast, so my setup should not be the problem here. I hope! ;-)
    Finally, is there any point in trying LR? Or is its file saving/cache setup the same as ACR's?
    Thanks for taking an interest in my case. I'm very happy to be a guinea pig since I will constantly have to process large numbers of files and I'd like to overcome this problem
    Many thanks.
    D.

  • No memory error message on my mac mini what do i need to do?

    No memory error message on my mac mini when i try to update. What do need to do?

    Please post the entire and exact message.

  • How to i determine what a 10.10.00 memory error means on a laserjet 3600

    Printer: HP 3600n
    Error message: 10.10.00 memory error
    What is this error and what can be done to resolve it.

    The minimum point in time is the time when the last backup piece for datafiles in that backup was completed.
    Your alert.log should show the redo log sequence number at that time.
    You can query V$ARCHIVED_LOG and get the FIRST_CHANGE# of the first archivedlog generated after that backup piece completed.
    A
    LIST BACKUP;in RMAN should also show you the SCNs at the time of the backups.
    You can also query SCN_TO_TIMESTAMP -- eg
    select timestamp_to_scn(to_timestamp('15-MAR-09 09:24:01','DD-MON-RR HH24:MI:SS')) from dual;will return an approximation of the SCN.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com
    Edited by: Hemant K Chitale on Mar 17, 2009 9:41 AM
    added the LIST BACKUP command from RMAN.

Maybe you are looking for

  • Taking too much time using BufferedWriter to write to a file

    Hi, I'm using the method extractItems() which is given below to write data to a file. This method is taking too much time to execute when the number of records in the enumeration is 10000 and above. To be precise it takes around 70 minutes. The writi

  • Help Viewer no longer works!

    Not sure when this started, but now when I choose the help menu (at least from Finder and iChat), it takes a while for the viewer to bring up the proper library and then the links in the window are dead. In addition, the search feature just results i

  • OfficeWebApps Excel edit

    Hi , I've installed and set  officewebapps. word (view and edit)  working great. But I'm having problems also excel. http://.../_layouts/15/WopiFrame.aspx?sourcedoc=/...xlsx&action=edit    or  http://.../_layouts/15/WopiFrame.aspx?sourcedoc=/...xlsx&

  • Web Template: Show full user name

    I want to show the full name of the current user rather than just the logon id. SYUSER as a text element gives me the id but not the name. Another alternative is to turn on the user name option in the Role Menu (we are using that on this particular t

  • Premiere Pro CC 14 Crashing When Importing, Exporting

    I am running Premiere Pro CC 2014.0 on Windows 7 Pro Processor: Intel(R) Core i7-4770 GPU @3.40GHZ RAM: 24GB GFX Card: Intel HD Graphics 4600 Mercury Playback - No No 3rd party extensions, just Premiere The program was running fine up until yesterday