Cannot allocate memory - Concept Explanation Please

Hello all,
Just wanted to confirm something.
I compile a helloword class and the javac does it job.
Now when I am preparing a larger program from ant like so: /usr/local/ant/bin/ant prepareI get:Buildfile: build.xml
[property] java.io.IOException: java.io.IOException: Cannot allocate memory
[property]     at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
[property]     at java.lang.ProcessImpl.start(ProcessImpl.java:65)So more memory is required for different compilations of programs, right?
Is there a way, I can allocate all (most) memory to the javac compiler?
If I have some of my theory and terminology mixed please correct me.
Thanks all
---------Key Info-----------
java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode)
OS: Fedora 7

Thanks Peter will look into this now.
Before I find the tut/HOWTO is there any chance of the swap file damaging my server? I mean worst case scenario would be...?
Just had a look at "top" and it says "swap" on there, is that referring to something eles: (sucks to be a noob!)
top - 12:32:34 up 14 min,  1 user,  load average: 0.00, 0.00, 0.00
Tasks:  35 total,   2 running,  33 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0% us,  0.1% sy,  0.0% ni, 99.9% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:   8140596k total,  8087960k used,    52636k free,    73708k buffers
Swap: 12578884k total,    28956k used, 12549928k free,  1705984k cachedEdited by: abshirf2 on Oct 2, 2008 7:32 PM
Edited by: abshirf2 on Oct 2, 2008 7:33 PM

Similar Messages

  • I can no longer access Safari on my ipad. I get the error:the operation couldn't be completed. Cannot allocate memory. Help please!

    I am not able to access Safari on my ipad. I get the error message: The operation couldn't be completed. Cannot allocate memory. Can anyone help please??

    Try this first.
    Go to Settings>Safari>Clear History, Cookies and Data. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    If that doesn't work, reboot the iPad - or quit all apps and restart.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Quit all apps completely and restart the iPad. Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar. Restart the iPad.

  • Error "ROW-00001 cannot allocate memory"

    I am using oracle 10g and i got this error "ROW-00001 cannot allocate memory" when accessing dataset. What is the solution of this and concept behind it. Please help.

    I have had a similar error with SQL Server 2005 (running on WINXP SP3) connected to Oracle 9i through a Linked Server.
    I was originally using MSDAORA and was upgrading to OraOLEDB. There was a lot going on with my machine involving repeated installs/un-installs of the 9i and 10g clients so it's hard to pin-point the exact cause of this being broken.
    Eventually I had the original linked server using MSDAORA and the new Linked served using OraOLEDB existing happily side by side. Then I started having problems selecting data.
    I could still connect and select sysdate from dual through each linked server. Sometimes I could select data and then shortly after I could not. A reboot helped briefly but then the problems re-appeared.
    The errors I got were:
    - Using the original Linked server with MSDAORA
    Msg 7399, Level 16, State 1, Line 1 The OLE DB provider "MSDAORA" for linked server "LNK_KADM01P" reported an error. The provider ran out of memory.
    Msg 7330, Level 16, State 2, Line 1 Cannot fetch a row from OLE DB provider "MSDAORA" for linked server "LNK_KADM01P".- Using the new Linked server with OraOLEDB.
    OLE DB provider "OraOLEDB.Oracle" for linked server "OLE_LNK_KADM01P" returned message "".
    OLE DB provider "OraOLEDB.Oracle" for linked server "OLE_LNK_KADM01P" returned message "ROW-00001: Cannot allocate memory".
    Msg 7320, Level 16, State 2, Line 1 Cannot execute the query "SELECT * FROM XYZ " against OLE DB provider "OraOLEDB.Oracle" for linked server "OLE_LNK_KADM01P". In the end I reinstalled the 9i ODAC/OLE client. When you run the installer it shows 5 ODAC/OLE subcomponents. I think when I had been installing earlier I had not been selecting each subcomponent, and so it was only installing the first one (which is for MS MTS).
    I went through the install and specifically selected each one of the components. I'm pretty sure my problem was caused by only having the old 9.2.0.1 OLE client objects installed instead of 9.2.0.7. After the re-install and reboot it's been running fine, and coincidently data throughput has doubled.
    I hope this is help to others. (Because I know how frustrating and painful this has been for me!!!)
    Edited by: user468179 on 9/10/2008 22:27

  • Can't restore iPod classic 60GB video.  Cannot Allocate Memory - Disk Utility

    Sorry if this has been asked before but I've been searching the boards and am yet to find a result.
    I have an old iPod classic 60GB (video) which has a dodgy HDD.  It was clicking and in a constant sad face/charging loop.  I've managed to get it display "Please restore iPod" message and it is now being recognised by my macbook.  I've tried to restore it via iTunes but when I try that I get an error message tht says "The iPod could not be restores because it is busy".
    I've tried toformat the iPod using Disk Utility too but i get an error:
    Disk Erase failed with the error:
    POSIX reports: The operation couldn’t be completed. Cannot allocate memory
    The oddest thing is that under disk utility my iPod drive is showing up as a 2TB drive:
    All I'm realy trying to do is restore the iPod so I can try to recover some of the tracks using Disk Drill.  Can anybody help?

    See if you can find a window based PC and try to do a Restore there.

  • Using Disc Utility to copy my hard drive to a brand new external drive and am having the error "Unable to create...(Cannot allocate memory)".

    I'm not very tech savvy but am trying my best to use Disc Utility to copy my hard drive to a brand new external drive and am having the error "Unable to create...(Cannot allocate memory)".
    Last night no problems, woke this morning and it was freezing so I forced a restart and got the grey screen with the folder and question mark. Ran off to best buy to get an external drive... Please help! Thank you!

    I have done both. When I hold down the "C" key it pauses for a few seconds while the cd spins and then the flashing folder icon appears.
    Could be you have the wrong cd/dvd.  The mac will only boot a supported cd/dvd for your machine. The flashing question mark indicdates your machine could not find a valid os.
    When I hold down the "option" key for the startup manager the cursor comes up and moves but the actually manager doesn't come up no matter how long I leave the laptop on.
    Not sure.  Could be your machine does not support the startup manager. You would think the machine would ignore the key.
    Where did you get the dvd?  What is the number on the DVD?
    What machine do you have anyway?
    This site provides more information, but lacks security.
    "A serial number is a unique, identifying number or group of numbers and letters assigned to an individual piece of hardware or software. It's used for various things depending on the product / brand but what is your Mac's serial number for and more importantly... what is it hiding and what can it do for you ?"
    http://www.appleserialnumberinfo.com/Desktop/index.php
    or
    This site provides more information, but lacks security too.
    "A serial number is a unique, identifying number or group of numbers and letters assigned to an individual piece of hardware or software. It's used for various things depending on the product / brand but what is your Mac's serial number for and more importantly... what is it hiding and what can it do for you ?"
    http://www.appleserialnumberinfo.com/Desktop/index.php
    http://www.chipmunk.nl/klantenservice/applemodel.html
        ( hint by K Shaffer  )

  • POSIX reports: The operation couldn't be completed. Cannot allocate memory

    Hi all.
    Please forgive my naivety. I'm a newbie here.
    I have searched endlessly to find a solution to my problem, but cannot seem to find one.
    I have just replaced a hard drive on a 13" Macbook pro (purchased end of 2009). It developed a fault, and would not boot. When turned on, would only produce a blank screen with a flashing folder featuring a question mark.
    When going through disk utility, the system could not detect any internal hard drive, which made me believe it was faulty.
    I ordered a 500GB Toshiba Hard Drive, and installed it as it should be. In Disk Utility, the system detects the Toshiba hard drive (it comes up in the list you'd expect it to). Whenever I go to 'Erase' or 'Partition', however, I get the following error message.
    "Disk Erase/Partition failed
    Disk Erase/Partition failed with the error:
    POSIX reports: The operation couldn't be completed. Cannot allocate memory"
    Is anybody able to offer this novice any suggestions as to what I might do? I have tried some "Terminal" entries, but they don't seem to help in the slightest.
    Thanks in advance,
    L.
    P.S. The Macbook is using Snow Leopard.

    Hi again OGELTHORPE.
    I've already run two hardware tests. One quick one and one extended one. It was unable to pick anything up.
    It's like everything is running perfectly, but when I go to erase the HDD or partition it, it pops up with the error message. Even when I try to erase and partition using "Terminal", I received the same error message.
    It's beginning to do my head in, but will see if replacing the SATA cable will make any difference. If it doesn't, I'll hazard a guess it could be the Logic Board.
    Thanks again for your suggestions!
    L.

  • Itouch safari says "POSIX error 12-Cannot allocate memory"???

    My wireless says full signal but whenever I try to connect to Safari the window pops up and says "Operation could not be completed-POSIX error 12-Cannot allocate memory"??? Anybody have any ideas for me...please??????

    Follow both the solutions in [this thread|http://discussions.apple.com/thread.jspa?messageID=6637319] of first restarting the ipod, if that doesn't help, then reset network settings.

  • Error Sending Zend_Mail - Cannot allocate memory

    Hi,
    I really am trying to solve my own problems, but still in Chapter 8 of Adobe Dreamweaver CS5 with PHP by David Powers ...
    I have functioning pages that perform the SUBMIT and validate it, but the ZEND $mail->send() line returns the error "Cannot allocate memory"
    Please can anyone help?
    Mike

    The problem was caused by Norton / Symantec firewall.
    Sorry all.
    Mike

  • Cannot allocate memory

    Hi,
    my application page showing
    OraOLEDB(0x80040E14)
    ROW-00001
    Cannot allocate memory
    error
    please suggest
    Oracle 9i
    Oledb 9i
    windows 2003

    https://www.dba-village.com/village/dvp_forum.OpenThread?ThreadIdA=5094
    does it helpful ?
    Sriram

  • Java.lang.OutOfMemoryError: Cannot allocate memory in tsStartJavaThread

    Running Java Application on Web logic managed server fails with following error:
    java.lang.OutOfMemoryError: Cannot allocate memory in tsStartJavaThread (lifecycle.c:1096).
    Java heap 1G reserved, 741076K committed
    Paged memory=26548K/3145712K.
    Your Java heap size might be set too high.
    Try to reduce the Java heap size using -Xmx:<size> (e.g. "-Xmx128m").
    at java.lang.Thread.start0(Native Method)
    at java.lang.Thread.start(Thread.java:640)
    at java.util.concurrent.ThreadPoolExecutor.addIfUnderCorePoolSize(ThreadPoolExecutor.java:703)
    at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:652)
    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:92)
    Memory doesn't seem to be an issue, because -Xmx = 1GB is specified in VM args.
    This application needs only 200MB to run (Obtained by running the application in eclipse and
    checking the heap memory usage).
    Not sure whats causing this error? Application runs as single (main) thread
    and towards the end of the program multiple threads(they do JDBC tasks) are
    are spawned. In this particular case, 3 threads were about to be launched, when
    this error occured. Please help in pointing out what the issue is and how this
    can be resolved.
    Here are further details on Jrockit version and VM arguments:
    Following JRockit is used on the Weblogic machine.
    $java -version
    java version "1.6.0_22"
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
    Oracle JRockit(R) (build R28.1.1-14-139783-1.6.0_22-20101206-0241-linux-ia32, compiled mode)
    Following are the JVM arguments:
    java -jrockit -Xms512m -Xmx1024m -Xss10240k
    Thanks in advance.

    Noting that you are using a IBM vm and a rather old one at that...
    Threads take java memory. Normally the solution is to increase the maximum java heap. Doing that depends on the memory that the system supports and the maximum that the VM allows and the default that it uses.
    You might want to verify the command line options you are using. You might want to also find out what happens if you use a larger number or smaller one.
    And if all else fails you can use a thread pool rather than trying to create seperate threads.

  • Safari won't open web pgs, says cannot allocate memory - HELP?

    Just got iPod Touch, connected to WiFi, but any web page I try to open with Safari gives me the same message: *POSIX error 12, Cannot allocate memory. NSPOSSIXErrorDomain.* What on earth does this mean, and why can't I open any websites??? Grateful for any assistance! Thanks - lizmo

    I've never succeeded in opening a page yet! This is my first attempt. I get the same error message every time. Thanks for any help.

  • Db_load error: Cannot allocate memory

    Hi
    when I try to import an dump file, i always get this error:
    db_load: BDB2055 Lock table is out of available lock entries
    db_load: Cannot allocate memory
    I executed "db_load -f outdb/outdb2 -h env xass.db"
    and i have set max locks by:
    dbenv->set_lk_max_locks(dbenv,1000);
    but it doesn't work.
    What should I do to prevent this problem?
    Thanks for your help in advance
    Mark
    Update:
    I have doing some tests, and i found that if I increase the number of locks by "set_lk_max_locks" in DB_CONFIG file,  the operation of db_load will success.
    The point is that the larger db file may need a very big value of locks, so why "db_load" doesn't release the locks during the running procedure? Is this a bug for bdb?
    becuase I can't increase the number of locks infinity!
    if not, How can i cause "db_load" release the locks of transaction?
    Does anybody can help me?
    Mark

    Hi Mark,
    If you are importing a dump file into an existing environment and opened with the flags of(can have more) DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN, then it is true you may see the error about "lock table is out of available lock entries" when the dump file is very big. The db_load process will not release the locks since it needs to provent other process from accessing the database being built to provide data consistency in the transactional environment.
    The usually way for loading a database from a dump file is to specify an empty directory as the home directory. By this, the database will be created in a private non-transactional environment, and you can copy the database into your running environment after the db_load process finishes.
    Regards,
    Winter, Oracle Berkeley DB.

  • Unable to copy hard drive on to external device from Disk Utility. Getting error message "cannot allocate memory".

    I am trying to retrieve the information on my hard drive after I spilled liquid on my keyboard . I can get to Disk Utility by using the boot up disk but when I try and copy the hard drive to an external device using "New Image" it tells me it is unable to create a copy because it "cannot allocate memory".

    Were you able to get any help with this problem? My MacBook Pro out of the blue wouldn't boot up all the way and now I'm trying to get a copy of everything onto the new external drive using disc utility but am having the same errors as you! Thank you for sharing any tips!! -Norah

  • Cannot allocate memory error in Oracle 10.2.0.2

    I am using Oracle 10.2.0.2. When will I get the below error. What to do to resolve this issue. Can somebody help me on this
    ROW-00001: Cannot allocate memory||SQLSTATE0=03/18/08 14:27:19
    ROW-00001: Cannot allocate memory||SQLSTATE0=03/18/08 14:27:19
    ROW-00001: Cannot allocate memory||SQLSTATE0=03/18/08 14:27:19
    ROW-00001: Cannot allocate memory||SQLSTATE0=03/18/08 14:28:17Thanks in advance

    ROW-00001 Cannot allocate memory
    Cause: There is not enough memory to run the application.
    Action: Close unneeded applications or increase the virtual memory.
    Or
    Note:387818.1 - did this metalink note help you?

  • Oracle 8i listener issue:  TNS-01168: Cannot allocate memory

    We have a loader application coded in perl/c which connects to DB to load data from flat files. Whenever we have multiple such loader programs running, the listener dies and loading stops. The listener.log is around 2GB. I opened the loag and got following details:
    Listener Log file (2GB file):
    -- File begining ---
    ECHO is on.
    17-FEB-2005 20:40:20 * service_update * scanview * 0
    17-FEB-2005 20:50:20 * service_update * scanview * 0
    17-FEB-2005 21:00:10 * (CONNECT_DATA=(SERVICE_NAME=scanview)(CID=(PROGRAM=C:\Perl\bin\perl.exe)(HOST=AZSACTAPP107)(USER=grp_scanview))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.2.164.17)(PORT=2659)) * establish * scanview * 0
    19-FEB-2005 03:14:26 * service_update * scanview * 0
    19-FEB-2005 04:00:09 * (CONNECT_DATA=(SERVICE_NAME=scanview)(CID=(PROGRAM=C:\Perl\bin\perl.exe)(HOST=AZSACTAPP107)(USER=grp_scanview))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.2.164.17)(PORT=2486)) * establish * scanview * 0
    19-FEB-2005 04:04:27 * service_update * scanview * 0
    19-FEB-2005 04:07:07 * (CONNECT_DATA=(SERVICE_NAME=scanview)(CID=(PROGRAM=C:\Perl\bin\perl.exe)(HOST=AZSACTAPP107)(USER=grp_scanview))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.2.164.17)(PORT=2644)) * establish * scanview * 0
    19-FEB-2005 04:18:21 * 51
    Error Started at Line #: 2096
    19-FEB-2005 04:18:21 * 51
    NL-00051: internal error code, arguments: [302], [1], [], [], [], [], []
    Above error continued till Line #: 913372
    19-FEB-2005 04:21:15 * 1168
    TNS-01168: Cannot allocate memory
    19-FEB-2005 06:05:30 * 1168
    TNS-01168: Cannot allocate memory
    TNSLSNR for 32-bit Windows: Version 8.1.7.4.0 - Production on 19-FEB-2005 11:13:49
    -- File ended ---
    Is there a known bug and if so what is the resolution? Will upgrading to Net 9i help?
    Let me know if anyone has faced such issue and the resolution.
    Thanks
    Satish

    alll listeners show the TNS-12531 cannot allocate memory message in the listener.log.Only a single listener is required.
    How many listeners run on this system & why more than 1?
    oerr tns 12531
    12531, 00000, "TNS:cannot allocate memory"
    // *Cause:  Sufficient memory could not be allocated to perform the desired
    // activity.
    // *Action:  Either free some resource for TNS, or add more memory to the
    // machine. For further details, turn on tracing and reexecute the operation.

Maybe you are looking for