Not enough space exception

hi
i am trying to insert 150000 records into berkeley db xml 2.1.8 using .net api. but after inserting 19000 records it throws an exception not enough space exception.
but when i increase cache size it throws database recover exception .
plz help , how can i solve this problem
Regards.............
Shailendra Yadav

thanks john
i m able to insert 150000 records using txn.SynCommit() , but the performence is very low . now when i m retriving the same records again it is throwing the same Dbc::get: Not enough space, exception code = DATABASE_ERROR error
plz suggest me how can i increase my performence and recover this error while retriving.
my code is..........
using Sleepycat.Db;
using Sleepycat.DbXml;
using System;
using System.Data;
using System.IO;
namespace BDataBase
     public class SimpleAdd
          private static string theContainer = "simpleExampleData.dbxml";
          public static void Main(string[] args)
               string [] asa = {"-h",@"d:\BDBData"};
               args=asa;
               string envdir = parseArguments(args);
               try
                    // Open an environment and manager
                    using(Manager mgr = CreateManager(envdir))
                         // Open a transactional container
                         ContainerConfig containerconfig = new ContainerConfig();
                         containerconfig.Transactional = true;
                         Transaction txn1 = mgr.CreateTransaction();
                         mgr.CreateContainer(null,@"D:\BDBData\simpleExampleData.dbxml", containerconfig);
                         using(Container container = mgr.OpenContainer(null, theContainer, containerconfig))
                              // Start a transaction
                              using(Transaction txn = mgr.CreateTransaction())
                                   // Create an update context
                                   using(UpdateContext uc = mgr.CreateUpdateContext())
                                        try
                                             string word = reader.GetString(0);
                                             // Create string contents for documents
                                             string document1 = "<word>शैलेन्द्र</word>";
                                             string document2 = "<word>2308</word>";
                                             // Put the document, asking DB XML to generate a name
                                             DocumentConfig docconfig = new DocumentConfig();
                                             docconfig.GenerateName = true;
                                             container.PutDocument(txn, "", document1, uc, docconfig);
                                             container.PutDocument(txn, "", document2, uc, docconfig);
                                        catch(Exception dataExp)
                                             System.Console.WriteLine(""+dataExp);
                                        // Commit the writes. This causes the container write operations
                                        // to be saved to the container.
                                        txn.Commit();
                              //Find all the Vendor documents in the database
                              doQuery(mgr, "collection(\"" + theContainer + "\")/word");
               catch(DbXmlException e)
                    System.Console.WriteLine("Error performing document add against " + theContainer);
                    System.Console.WriteLine(e.Message .ToString());
          private static void doQuery(Manager mgr, string query)
               // Perform a single query against the referenced container.
               System.Console.WriteLine("Exercising query: '" + query + "'.");
               System.Console.WriteLine("Return to continue: ");
               //System.Console.ReadLine();
               // Perform the query
               using(QueryContext context = mgr.CreateQueryContext())
                    Results results = mgr.Query(null, query, context, new DocumentConfig());
                    // Iterate over the results
                    while(results.MoveNext())
                         System.Console.WriteLine(results.Current);
                    System.Console.WriteLine(results.Size + " results returned for query '" + query + "'.");
          public static Manager CreateManager(string envdir)
               EnvironmentConfig envconf = new EnvironmentConfig();
               envconf.CacheSize = 50 * 1024 * 1024;
               envconf.Create = true;
               envconf.InitializeCache = true;
               envconf.Transactional = true;
               envconf.InitializeLocking = true;
               envconf.InitializeLogging = true;
               envconf.Recover = true;
               ManagerConfig mgrconfig = new ManagerConfig();
               mgrconfig.AdoptEnvironment = true;
               Sleepycat.Db.Environment env = new Sleepycat.Db.Environment(envdir, envconf);
               try
                    return new Manager(env, mgrconfig);
               catch(System.Exception e)
                    env.Dispose();
                    throw e;
          private static void Usage()
               System.Console.WriteLine("This program adds a few simple XML documents to a specified container.");
               System.Console.WriteLine("You should run exampleLoadContainer before running this example.");
               System.Console.WriteLine("You are only required to pass this command the path location of the database");
               System.Console.WriteLine("environment that you specified when you loaded the examples data:");
               System.Console.WriteLine();
               System.Console.WriteLine("\t-h <dbenv directory>");
               System.Console.WriteLine("For example:");
               System.Console.WriteLine("\tsimpleAdd.exe -h examplesEnvironment");
               System.Environment.Exit(-1);
          private static string parseArguments(string[] args)
               string envdir = null;
               for(int i = 0; i < args.Length; ++i)
                    string arg = args;
                    if((arg.StartsWith("-")
#if WIN32
                    || arg.StartsWith("/")
#endif
                         ) && arg.Length > 1)
                         switch(arg[1])
                              case 'h':
                                   ++i;
                                   if(i >= args.Length)
                                        System.Console.WriteLine("Invalid option: " + arg);
                                        Usage();
                                   envdir = args[i];
                                   break;
                              default:
                                   System.Console.WriteLine("Unknown option: " + arg);
                                   Usage();
                                   break;
                    else
                         System.Console.WriteLine("Too many arguments: " + arg);
                         Usage();
               if(envdir == null)
                    System.Console.WriteLine("Environment directory not found.");
                    Usage();
               return envdir;
Shailendra.........

Similar Messages

  • MESSAGE:::Not enough space

    We run OBI, DAC, INFOMATICA PC on SunSolairs and
    we are having hundreds of "Not enough space" messages with "EXCEPTION CLASS::: java.io.IOException
    " message . But it's not disk or SWAP or memory as far as it looks like. What might be the reason ?
    1399 SEVERE Tue Aug 12 10:31:32 MEST 2008 Request to start workflow : 'CSW_SDE_PSFT_90_Adaptor:CSW_SDE_PSFT_PS_ACTION_TBL' has co
    mpleted with error code 0
    1400 SEVERE Tue Aug 12 10:31:38 MEST 2008 Request to start workflow : 'SDE_PSFT_90_Adaptor:SDE_PSFT_UserDimension_JobInformation'
    has completed with error code 0
    1401 SEVERE Tue Aug 12 10:31:51 MEST 2008 MESSAGE:::Not enough space
    EXCEPTION CLASS::: java.io.IOException
    java.lang.UNIXProcess.forkAndExec(Native Method)
    java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
    java.lang.ProcessImpl.start(ProcessImpl.java:65)
    java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
    java.lang.Runtime.exec(Runtime.java:591)
    java.lang.Runtime.exec(Runtime.java:429)
    java.lang.Runtime.exec(Runtime.java:326)
    com.siebel.etl.functional.ExternalProcessExecutor.fire(ExternalProcessExecutor.java:142)
    com.siebel.etl.functional.ExternalProcessExecutor.execute(ExternalProcessExecutor.java:111)
    com.siebel.etl.engine.core.AttachToInformaticaProcess.getStatusFromPmCmd(AttachToInformaticaProcess.java:825)
    com.siebel.etl.engine.core.AttachToInformaticaProcess.attachToWorkFlowWithPmCmd(AttachToInformaticaProcess.java:927)
    com.siebel.etl.engine.core.AttachToInformaticaProcess.executeWorkFlow(AttachToInformaticaProcess.java:445)
    com.siebel.etl.engine.core.Session$Task.executeThisSession(Session.java:1062)
    com.siebel.etl.engine.core.Session$Task.execute(Session.java:459)
    com.siebel.etl.engine.core.Session.executeTasks(Session.java:2458)
    com.siebel.etl.engine.core.Session.run(Session.java:2975)
    java.lang.Thread.run(Thread.java:595)

    Problem was fixed after alocating some more memory on UNIX box

  • I had a repair done at the apple store where the replaced my hard drive and copied my other hard drive over to the new one.  Everything is fine except the time machine wont reconnect to my old file and is trying create a new file but not enough space?

    I had a repair done at the apple store where the replaced my hard drive and copied my other hard drive over to the new one.  Everything is fine except the time machine wont reconnect to my old file and is trying create a new file but not there is not enough space for both files files? Do I need to do something to have it continue to update my old file instead of recreating a new one?

    Depending on what version of OSX you're running, and how the data was transferred, you may be out of luck.
    If you're running Lion, and your backups were made to a directly-connected external HD (ie, not a Time Capsule or other network location), you may be able to get Time Machine to "associate" the new disk with the old backups.  See #B6 in Time Machine - Troubleshooting, especially the pink box there.
    If you're running Snow Leopard, you might be able to do a full system restore of your backups to the new HD.  See Time Machine - Frequently Asked Question #14 for detailed instructions.  That should leave a "trail" that Time Machine can follow to "associate" the new drive with the old backups.  Unfortunately, that doesn't always work, and there's no way to do it manually, as there is with Lion.

  • How to deal with IO Exception: Not  Enough Space

    I always get the error message like IO Exception: Not Enough Space, following is the information on my desk , is not suppose have this happy is that right ?
    why ? and how to deal with ?? I use solars 10 with NetBean 6.9
    # df -k
    Filesystem kbytes used avail capacity Mounted on
    rpool/ROOT/s10x_u8wos_08a
    239468544 7338765 229954672 4% /
    /devices 0 0 0 0% /devices
    ctfs 0 0 0 0% /system/contract
    proc 0 0 0 0% /proc
    mnttab 0 0 0 0% /etc/mnttab
    swap 610684 348 610336 1% /etc/svc/volatile
    objfs 0 0 0 0% /system/object
    sharefs 0 0 0 0% /etc/dfs/sharetab
    /usr/lib/libc/libc_hwcap1.so.1
    237293437 7338765 229954672 4% /lib/libc.so.1
    fd 0 0 0 0% /dev/fd
    swap 610484 148 610336 1% /tmp
    swap 610360 24 610336 1% /var/run
    rpool/export 239468544 23 229954672 1% /export
    rpool/export/home 239468544 63960 229954672 1% /export/home
    rpool 239468544 34 229954672 1% /rpool
    #

    Thank you for all the replies.
    Just have time come to this forum:
    think you are running out of swap space.Google surge this too,
    at first I install solaria I give 512M out of totally 2G in memory,
    then I run
    # zfs create -V 512M rpool/additionalswap
    # swap -a /dev/zvol/dsk/rpool/additionalswap
    on meantime
    swapfile dev swaplo blocks free
    /dev/zvol/dsk/rpool/swap 181,3 8 1048568 1048568
    # df -k
    Filesystem kbytes used avail capacity Mounted on
    rpool/ROOT/s10x_u8wos_08a
    239468544 7280779 230012901 4% /
    /devices 0 0 0 0% /devices
    ctfs 0 0 0 0% /system/contract
    proc 0 0 0 0% /proc
    mnttab 0 0 0 0% /etc/mnttab
    swap 392944 352 392592 1% /etc/svc/volatile
    objfs 0 0 0 0% /system/object
    sharefs 0 0 0 0% /etc/dfs/sharetab
    /usr/lib/libc/libc_hwcap1.so.1
    237293680 7280779 230012901 4% /lib/libc.so.1
    fd 0 0 0 0% /dev/fd
    swap                  392760     168  392592     1%    /tmp
    swap                  392616      24  392592     1%    /var/run
    rpool/export 239468544 23 230012901 1% /export
    rpool/export/home 239468544 63989 230012901 1% /export/home
    rpool 239468544 34 230012901 1% /rpool
    /vol/dev/dsk/c7t0d0/unnamed_rmdisk:c
    15618080 1985728 13632352 13% /rmdisk/unnamed_rmdisk
    Edited by: Hjava on Nov 25, 2010 8:40 PM
    Edited by: Hjava on Dec 9, 2010 2:09 AM
    this link is useful
    http://docs.sun.com/app/docs/doc/817-5093/gizet?l=zh_TW&a=view

  • I have 'not enough space' cursed Pages; even though I have plenty of room it refuses to let me download and install it.

    Common problem, except all trouble shooting leads to the suicide of the question asker because it yields only claims that no matter what you say, you need to make MORE space. It's a 30 meg file, I have 500 meg free. I have deleted and redownloaded and rebooted about thirty times, in various combinations.
    Previously I have cursed many apps this way, always free apps, so I just accepted they were 'dead' to my phone, even after iOS updates and ever since the iPhone 3 this problem has existed (ie: if you didn't have enough space when you START downloading the first time, kiss that app goodbye for life, it just WILL NOT download EVER.) and will either sit at 'Waiting' for a while then claim there's not enough space, or just sit at 'Waiting' indefinitely and progress no further.
    The only thing I haven't tried is formatting the entire thing as a fresh phone and retrying, but that's pretty extreme. Has Apple acknowledged this bugs existance yet? Every support thread I see gets replies of "Make more space." no matter what the asker states and eventually the guy just stops coming back and asking, so they're all pretty much unresolved.
    Just for the record, I have extensive experience with technology, and am not mentally disabled, so please feel free to talk to me at the level at which your inner voice talks to you, I assure you I will get it. So, can has halp plz? 8(
    (PS: I cannot update to the lates iOS 7 as I do not have the insane size required for it to decompress and install, etc, and to do so would require deleting things I cannot lose or having to back it all up manually because there's no convenient way to do it otherwise. Although I can assure you that this problem has been present since the iPhone 3 first came out which was my first iPhone and has been present in every iOS update since, so I have no reason to believe out of the dozens of updates that iOS 7 has addressed this.)

    When you don't have enough storage to perform an operation, then you don't have enough storage.  have you got the 16GB iphone?

  • Java.io.IOException: Not enough space  - Weblogic 8.1 on Solaris 8

    Hi,
    We get "java.io.Exception: Not enough space" sometimes when trying to access
    JSPs hosted on Weblogic 8.1 on Solaris 8. It looks like a problem because of
    increased swap space usage. What should we do to get rid of this issue
    Compilation of '.......java' failed:_____
    (Failed to parse compiler output. See full output below). ____
    Full compiler error(s):
    java.io.IOException: Not enough space
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:491)
    at java.lang.Runtime.exec(Runtime.java:457)
    at weblogic.utils.Executable.exec(Executable.java:227)
    at weblogic.utils.Executable.exec(Executable.java:156)
    at weblogic.utils.Executable.exec(Executable.java:142)
    at
    weblogic.utils.compiler.CompilerInvoker.execCompiler(CompilerInvoker.java:249)
    at
    weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:427)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:321)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:443)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:238)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:188)
    at
    weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
    at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    Thanks,
    Abhijeet Dev

    Hello,
    I had the same problem and I eradicated it by changing used % of /tmp dir from 97% to 81% by removing unwanted files in /tmp folder.
    Try it out......
    df -k
    Now u will see that ur swap space is not sufficient.Check the corresponding mounting directory.Remove unwanted files from this dir. Restart ur server.Your problem should be solved.Note: Restarting server is not needed but for safe side restart ur server.
    In mine case, my dir was /tmp.I removed all unwanted files and then the problem was solved.
    Thanks
    Chandra

  • Java.io.IOException: Not enough space  when running external command

    Hi All,
              I am trying to call gzip utility from my servlet.
              The code line is as below :
              Runtime runtime = Runtime.getRuntime();
              Process process = runtime.exec("gzip -f -9 " +fileName);
              I got the following error :
              java.io.IOException: Not enough space
              I even tried to use the actual path of gzip in the code :
              Runtime runtime = Runtime.getRuntime();
              Process process = runtime.exec("/usr/bin/gzip -f -9 "
              +fileName);
              But still I got the same error.
              Can anyone tell me what I am missing out.....
              Thanks.
              Peter Vennel
              

    We just ran into this problem yesterday. For us, it seemed to be a disk
              space problem. If you run "df -k" you'll see how full your file systems
              are. We cleared out some of the /var/log (capacity was 80%) files reducing
              capacity to 50% and the problem went away, for now.
              Jim Clark
              Idea Integration
              http://www.idea.com
              "Joseph Weinstein" <[email protected]> wrote in message
              news:[email protected]...
              > Hi Pete,
              > It seems to me that your JVM is just running out of space. The JVM has
              default
              > limits on the amount of memory (java or native) that it will take from the
              OS,
              > and you're hitting one of those limits. How are you starting the WebLogic
              > server? If it's by the startWebLogic script, or other such, try adding, or
              altering
              > the arguments to the invocation of java, to allow more memory.
              >
              > Joe Weinstein at BEA, the home of Weblogic
              >
              > Peter Vennel wrote:
              >
              > > This is the exception I got at the server side. Does anyone know what
              this
              > > mean ....
              > >
              > > java.io.IOException: Not enough space
              > > at java.lang.UNIXProcess.<init>(Compiled Code)
              > > at java.lang.Runtime.exec(Compiled Code)
              > > at java.lang.Runtime.exec(Compiled Code)
              > > at JSOliDocument.service(Compiled Code)
              > > at javax.servlet.http.HttpServlet.service(Compiled Code)
              > > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled
              Code)
              > > at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              > > Code)
              > > at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              > > Code)
              > > at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
              > > at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
              > > at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
              > >
              > > Peter Vennel <[email protected]> wrote in message
              > > news:[email protected]...
              > > > Hi All,
              > > >
              > > > I am trying to call gzip utility from my servlet.
              > > >
              > > > The code line is as below :
              > > >
              > > > Runtime runtime = Runtime.getRuntime();
              > > > Process process = runtime.exec("gzip -f -9 " +fileName);
              > > >
              > > > I got the following error :
              > > >
              > > > java.io.IOException: Not enough space
              > > >
              > > > I even tried to use the actual path of gzip in the code :
              > > >
              > > > Runtime runtime = Runtime.getRuntime();
              > > > Process process = runtime.exec("/usr/bin/gzip -f -9 "
              > > > +fileName);
              > > >
              > > > But still I got the same error.
              > > >
              > > > Can anyone tell me what I am missing out.....
              > > >
              > > >
              > > > Thanks.
              > > >
              > > >
              > > > Peter Vennel
              > > >
              > > >
              > > >
              >
              > --
              >
              > PS: Folks: BEA WebLogic is in S.F., and now has some entry-level positions
              for
              > people who want to work with Java and E-Commerce infrastructure products.
              Send
              > resumes to [email protected]
              > --------------------------------------------------------------------------
              > The Weblogic Application Server from BEA
              > JavaWorld Editor's Choice Award: Best Web Application Server
              > Java Developer's Journal Editor's Choice Award: Best Web Application
              Server
              > Crossroads A-List Award: Rapid Application Development Tools for Java
              > Intelligent Enterprise RealWare: Best Application Using a Component
              Architecture
              > http://weblogic.beasys.com/press/awards/index.htm
              >
              >
              

  • Java.io.IOException : Not enough space  when I use Runtime.getRuntime().exe

    Hi All,
    I am calling a shell script from the java using the Runtime class, the job of the shell script is to zip some content which is huge in size(max 500MB) while invoking the shell script i will give the arguments source & destination. I am using the waitFor() so that my java program will wait untill the shell script execution is over. Everything is working as expected but some times it's giving Exception java.io.IOException : Not enough space
    What could be the reason for getting this kind of error ? Your suggestions are more appreciated.
    Thanks,
    Krishna Rajendra A.

    I don't know what the problem is but make sure you follow the advice for stdout and stderr in http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html because I bet the output from stdout or stderr will tell you what your problem is.

  • "Not enough space" DatabaseException while using DatabaseEnvironment

    I want to create some database in a DatabaseEnvironment which will be store a large data, such as 10TB. But I always get an DatabaseException with message "Not enough space",  of course there are enough space to store these data in the driver. It throws a database exception while put data and the database size reach a size(or 125% size) specified by CacheInfo, even though I close and then reopen the database environment and database. In addition,  it will throw an exception when I give the param "gbytes" a value larger than 1 in CacheInfo,  such as  "new CacheInfo(2, 0, 1)". The OS is windows 8. Why?
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.IO;
    using System.Diagnostics;
    using BerkeleyDB;
    namespace TestDatabaseEnvironment
        class Program
            static void Main(string[] args)
                string Dir = @"D:\Temp2\";
                string Name = "TestEnv";
                if (Directory.Exists(Dir))
                    Directory.Delete(Dir, true);
                DatabaseEnvironmentConfig envConfig = new DatabaseEnvironmentConfig();
                envConfig.Create = true;
                envConfig.DataDirs.Add(Dir);
                envConfig.CreationDir = Dir;
                envConfig.MPoolSystemCfg = new MPoolConfig();
                //envConfig.MPoolSystemCfg.CacheSize = new CacheInfo(2, 0, 1);
                envConfig.MPoolSystemCfg.CacheSize = new CacheInfo((uint)0, (uint)64 * 1024 * 1024, 1);
                Console.WriteLine("CacheSize:" +
                    envConfig.MPoolSystemCfg.CacheSize.Gigabytes.ToString() + "GB and " +
                    envConfig.MPoolSystemCfg.CacheSize.Bytes.ToString() + "Bytes");
                envConfig.UseMPool = true;
                envConfig.ErrorPrefix = Name;
                if (!Directory.Exists(Dir))
                    Directory.CreateDirectory(Dir);
                DatabaseEnvironment Env = DatabaseEnvironment.Open(Dir, envConfig);
                HashDatabaseConfig cfg = new HashDatabaseConfig();
                cfg.Env = Env;
                cfg.Creation = CreatePolicy.IF_NEEDED;
                HashDatabase database1 = HashDatabase.Open(null, "db1", cfg);
                HashDatabase database2 = HashDatabase.Open(null, "db2", cfg);
                Stopwatch sw = new Stopwatch();
                sw.Start();
                for (int i = 0; i < 100000000; i++)
                    DatabaseEntry dbKey = new DatabaseEntry(BitConverter.GetBytes(i));
                    DatabaseEntry dbValue = new DatabaseEntry(Encoding.UTF8.GetBytes(new string('A', 10 * 1024) + i.ToString()));
                    database1.Put(dbKey, dbValue);
                    database2.Put(dbKey, dbValue);
                    if (i % 100 == 0)
                        Console.WriteLine(i.ToString() + ":" + sw.Elapsed.TotalSeconds.ToString());
                Console.WriteLine("TimeSpan:" + sw.Elapsed.TotalSeconds.ToString());
                database1.Close();
                database2.Close();
                Env.Close();

    Hi,
    I have run your program on both 32 and 64 bit Windows, but there is no error of "Not enough space". The program is able to inserts the records until it fills up the disk. I have tried running it with CacheInfo(0, 64 * 1024 * 1024, 1) and CacheInfo(1, 64 * 1024 * 1024, 1).
    For the cachesize problem, I can reproduce the failure when the program requests a single 2GB cache. But this is normal.
    32-bit Windows hardly ever has a 2GB contiguous free region in its address map. There are .DLLs and data segments mapped scattered all over the address space, include just below 2GB. Since the most data that a 32-bit application can possibly have is 3 GB (and even that is unusual), there is no single 2GB space for a mapping.
    This is not a BDB bug. If you really need 2GB cache, you could try several smaller regions to get closer to 2GB.
    Moreover, if you pass the null db file name to HashDatabase.Open(). The database will be created in-memory. That means the database stays inside the environment cache only. So if the database grows bigger than the cache, it will return the "Not enough space" error.
    If there is any question, please let me know.
    Regards,
    Cindy Zeng

  • Time Machine does not recognize my iMac backup. Reports: not enough space; can't back up. How do I get it to recognize the backup?

    Time Machine does not recognize my 430 GB iMac backup on 1 terabyte Time Capsule. Reports: not enough space; can’t back up. How do I get it to recognize the old backup and continue backups?

    Thanks for the Time Machine Troubleshooting link. Apparently things have changed since 10.7.0. Backups.backupdb doesn’t exist. Path now is: Time Capsule/Data/Daru’s iMac.sparsebundle. So I did Terminal (I usually avoid Terminal) using the instruction in B6. It does not appear to be working. It went through looking for backup, preparing backup, and is now stopping backup, and the TMBackup has disappeared from the sidebar.
    Well, just now Time Machine progressed to preparing backup again; the Tiime Machine Backups appeared in sidebar, and with it Backups.backupdb/Daru’s iMac/2012-04-21-112939.inProgress. So it does exist... I’ll let it run, see what happens... But that is a strange date. Today is 28.
    I’ll let you know the outcome.
    Oops. Just ended! Real time report: “Backup too large for disk...“ So it is not recognizing the old backup. I’ll look at those instructions again, see if I can do the Terminal thing with the backup running. I doubt I can damage anything except the existing baackup which I'll lose anywy if I can’t achieve recognition.
    Daru

  • Not enough space to compile JSP!

    Hi,
    I've installed WLS 7.0 on a Sun e250 (256MB RAM, 8GB HD). The server runs ok,
    console runs, web services run...
    But when I try to access the JSP of a given web app, the JSP can't compile. I
    get an IO.Exception: Not enough space.
    I've turned down the amount of memory being allocated to the JVM - initially it
    was ms32 mx200, now it's 32 and 64 respectively. This doesn't cure the problem
    however. Also, I've no other memory-hogging processes running.
    Surely my box is able enough to 7.0?
    Any ideas?

    Hi Roy.
    I found:
    If you receive the following error message received when compiling JSP files on
    a UNIX machine:
    failed: java.io.IOException: Not enough space
    try any or all of the following:
    Add more RAM if you have only 256M.
    Raise the file descriptor limit, for example:
    set rlim_fd_max = 4096
    set rlim_fd_cur = 1024
    Use the -native flag to use native threads when starting the JVM.
    from http://e-docs.bea.com/wls/docs61/notes/issues.html#1029041.
    Could you give a try?
    Thanks.
    Ji Zhang
    Developer Relations Engineer
    BEA WebLogic Support
    "Roy Martin" <[email protected]> wrote:
    >
    Hi,
    I've installed WLS 7.0 on a Sun e250 (256MB RAM, 8GB HD). The server
    runs ok,
    console runs, web services run...
    But when I try to access the JSP of a given web app, the JSP can't compile.
    I
    get an IO.Exception: Not enough space.
    I've turned down the amount of memory being allocated to the JVM - initially
    it
    was ms32 mx200, now it's 32 and 64 respectively. This doesn't cure the
    problem
    however. Also, I've no other memory-hogging processes running.
    Surely my box is able enough to 7.0?
    Any ideas?

  • Time machine stopped backing up due to not enough space.  What to do?

    On my MacBook time machine stopped backing up and the message said not enough space .  What can I do?

    Broadly speaking you can supply more space.. or delete the old backups to regain existing space.
    You have posted in the TIme Capsule area.. but I am not sure if that is what you are using as people mix up Time Capsule (TC) and Time Machine (TM) on a regular basis. TC  is hardware router with a disk in it for backups to be stored.. TM is the software on the Mac that does backups.
    So TC is not exactly flexible.. but you can add a USB hard disk to it.
    This is not always a great idea.. but can work for people using wireless which is slower even than USB.
    The internal disk of the TC can be upgraded.. only do this if you accept the risk and most likely it is no longer under warranty.
    You can buy a TC with a bigger hard disk and sell off the old one.. except you might already have 3TB one in which case you will need to run two.
    You can use a local drive instead of a network drive.
    So buy a USB drive and plug it into your computer.. this is a good solution for desktops.. less great for laptops which are carried around as you forget to backup.
    OR
    Wipe the current backups and start anew.. You can also archive the old backups wipe the existing disk and start over.
    Tell us which you prefer and if it is more difficult than go and buy a new disk and plug it in tell us.

  • DataOutput produces IOException because of "not enough space left"

    This is the exception:
    java.io.IOException: Can't write 32000 bytes, not enough space left.
    java.lang.NullPointerException
    at org.netbeans.modules.kjava.antext.StackTraceTranslator.getMethodCall(StackTraceTranslator.java:159)
    at org.netbeans.modules.kjava.antext.StackTraceTranslator.checkMethod(StackTraceTranslator.java:129)
    at org.netbeans.modules.kjava.antext.StackTraceTranslator.findMethod(StackTraceTranslator.java:121)
    at org.netbeans.modules.kjava.antext.StackTraceTranslator.translate(StackTraceTranslator.java:68)
    at org.netbeans.modules.kjava.antext.RunTask$StackTraceTranslatorHandler$1.flush(RunTask.java:603)
    at org.netbeans.modules.kjava.antext.RunTask$StackTraceTranslatorHandler$1.run(RunTask.java:636)
    at java.lang.Thread.run(Thread.java:619)
    Occurs when trying to write data ( out.write(bytes) ) to a DataOutput. Is there any way to know the available space in the data output? Or any other method to avoid this exception?
    Thanks for your attention! :)

    I'm not sure because the code that I'm testing is not written by me and it's very large. I suppose that must write into cache. Anyway, I've erased 3 lines and now the problem is moved to another line. In that line, the solution seems to be easier.
    Thanks!
    PS: this is the code (where the DataOutputStream doesn't make any useful thing :s):
         private void keep(MapTile mt) {
              // Move it to the top of the pile
              cache.putLast(mt.xyz, mt);
              if (mt.bytes != null && mt.rmsID == -1 && rms != null) {
                   // Freshly downloaded. Put it into the RMS cache.
                   byte[] buffer = (byte[])app.sharedBuffers.claimResourceIgnoreInterrupt();
                   try {
                                    if (rms.getSizeAvailable()>buffer.length) {
                                        FixedByteArrayOutputStream baos = new FixedByteArrayOutputStream(buffer);
    //                                    DataOutputStream dos = new DataOutputStream(baos);
    //                                    mt.writeTo(dos, MapTile.WITH_BYTES);
    //                                    dos.close();
                                        baos.close();
                                        mt.rmsID = rms.addRecord(buffer, 0, baos.count());
                                        mt.rmsBytesUsed = mt.bytes.length;
                   catch (Exception e) {
                        app.exception("An error occured while caching a map tile to RMS.", e);
                   finally {
                        app.sharedBuffers.releaseResource(buffer);
         }

  • Installation fails with "not enough space" message ...

    Installing Application Server 8.1 on Solaris Sparc on network with lots of space but get this message in the log file of the failed installation:
    ERROR - exception while updating command line utilities
    Not enough space
    ERROR - default domain creation returned following exception: /home/lm71165/SUNWappserver/bin/asadmin: not found
    INFO - End core server configuration.
    Any ideas on why this occurs?
    Thanks.

    "Not enough space" message is issued by J2SE due to lack of swap space and not disk space per se in this case.
    To resolve this, first uninstall partial installation using provided uninstall utility (available in installation directory). Then, make sure that you free some additional swap space: delete all unnecessary content from /tmp partition and shut down all unnecessary processes running on the system. Once you do this, you can restart the installation.

  • My Lacie external hard drive will not back up on Time Machine. Says there's not enough space. This has happened with every single external I've purchased. Thought TM was supposed to delete old backups??

    My Lacie External backed up on Time Machine after the first back up but now says there's not enough room. I thought TM deleted old back ups to save new versions. What am I doing wrong. This happens to me constantly. Every single external hard drive I've purchased for the MacBook Pro (5 of them) has not worked either initially or at the second back up. It either isn't formatted properly so I have to go to Genius bar to help me set up for the first back up, or after the first back up, it says there's not enough space and I have to go back to Genius Bar. Is there a way I can fix this on my own?

    I just purchased 2 external hardrives. a LaCie Minimus and a G Drive. Each 1 TB. The guy at Apple told me that would provide 2 good TM backups for me. My internal HD has 750 GB capacity, of which I'm using 700 GB. Perhaps the ratio is not great enough. I do wish they would have told me this before I purchased the two Bummmmer! I even had them format and get the first back-ups going because of issues I've had in the past. I also just bought a 750 GB for photos.
    So, I won't be able to buy another bigger external since I've just purchased 3. Ugh. Well, I'll just exclude some files and divide things up. Eventually, I just want my 20,000 iphotos on one of the 1TB externals, and a TM back-up on another so that iphoto will function once more. It really hates how many photos I have and is brutally punishing me for it.I seriously need to do some housecleaning!
    Thanks for the advice. Just moved from US to Australia last week and was hoping to upload a few photos and the domino effect has lead me to this. Just went to Genius Bar in Perth today and they told me how to reformat drive to transfer iphoto library over, but I got stuck at trying to back-up my TM.

Maybe you are looking for