How to cope with Out of Memory Errors

Hi, I am distributing a desktop application to the general public written in Java 1.4.2. How much memory is required is approximately propertional to how many files they load so Ive tried to pre-emtp OutOfMemoryErrors by checking when memory usage is 95% and preventing the loading of additional files above this level with the following code:
protected static void checkMemory()
        throws LowMemoryException
        if (Runtime.getRuntime().freeMemory() < Runtime.getRuntime().maxMemory() * 0.05)
            Runtime.getRuntime().gc();
            if (Runtime.getRuntime().freeMemory() < Runtime.getRuntime().maxMemory() * 0.05)
                MainWindow.logger.severe("Memory low:" + Runtime.getRuntime().freeMemory() / 1024 / 1024 + "MB");
                throw new LowMemoryException("Running out of memory");
    }but this code is not robust, sometimes users reports LowMemoryException when the user has only loaded a few files.
I tried removing this code, but then user can get an OutOfMemory error whcih can cause problems with whatever code was running at the time and leave the application in an inconsistent state, if I just exit the application immediately it would be very annoying for users that are int he middle of something.
I also have adjusted the -Xms and -Xmx settings but cannot decide on a suitable default.
What I would ideally like the application to do is to extend its heap space as required upto the limits of the users machine, and if it reaches memory limits handle the lack of memory in a releiable manner allowing the user to continue using the application in a safe way

Unfortunately the metadata is stored displayed within a JTable, so even if If I had in in a Database I think it would all have to be loaded into memory for display within the JTbale in a timely fashion.
Anyway I think Ive found the problem with the original code, it was reporting memory low when almost all the allocated memory was being used but had'nt accounted for the fact that maxMemory limit had not been reached so more memory could be allocated.
I think the correct code is:
protected static void checkMemory()
        throws LowMemoryException
        if (Runtime.getRuntime().totalMemory()  -  Runtime.getRuntime().freeMemory() > Runtime.getRuntime().maxMemory() * 0.95)
            Runtime.getRuntime().gc();
            if (Runtime.getRuntime().totalMemory()  -  Runtime.getRuntime().freeMemory() >  Runtime.getRuntime().maxMemory() * 0.95)
                MainWindow.logger.severe("Memory low:" + (Runtime.getRuntime().maxMemory()  - (Runtime.getRuntime().totalMemory()  - Runtime.getRuntime().freeMemory() ))/ 1024 / 1024 + "MB");
                throw new LowMemoryException("Running out of memory");
    }

Similar Messages

  • How can I solve out of memory error on excell file in PL/SQL

    Hi,
    I'm new on PL/SQL. One of the PL/SQL code which is created excell report got out of Memory error. The first reason of this error, excell file not supported more than 65536 data. So I change the excell file separeted sheets. So that the single sheet size cannot exceed 65536 data.
    All the data are held on system cach and if many user want to take the report the they would get an out of memory error.
    So I want to change the code like that; when out of memory exception raises,
    the old excell file save to disk and new excell file is created,
    and go on to write the new file without exiting the program.
    At the end of the data all the excell file append and show only one file to the user.
    I do know how to save the file and create a new file. But I don't know how can PL/SQL program to turn back to loop again when the exception occurs.
    Is anyone help me on this issue?
    Here is my code
    Thank you
    dworkbook:=hssfworkbook.new;
    dCurrentItem := Get_Block_Property(pCurrentBlock, FIRST_ITEM);     
    while not (name_in('system.last_record')='TRUE') loop
    /* The data would be written to the excell file column order. */
    if (dRow=0) then
              /* Create a new sheet */
    elsif (dRow <= dMaxWorksheetNum) then
         /* Data of the report are written here. The data are written in column order */
    if (dRow > dMaxWorksheetNum) then
         /* give dRow and dColumn intial value */
    /* increase worksheet number */
    end if; /* End of if (dRow=1) */
    if (isWritten) and not name_in('system.last_record')='TRUE'then
         /* if not at the end of the record and the previously read record is written to the file
         , then go to next record */
         next_record;
    end if;
    /* save excell report */
    workbookwriter.save(dworkbook,global.gethome||dFileName);
    web.show_document('/users/'||dFileName,'_BLANK');
    /* when exceptions occurs */
    EXCEPTION
    WHEN ORA_JAVA.EXCEPTION_THROWN THEN
    begin
         javaException := ORA_JAVA.LAST_EXCEPTION;
         -- Print out the Exception by using the toString()
         -- Method of the exception Object
         javaException2 := Exception_.new(javaException);
         mess(27002,Exception_.getMessage(javaException2));
         -- and clean up
         ORA_JAVA.CLEAR_EXCEPTION;
    exception
         WHEN ORA_JAVA.JAVA_ERROR THEN
    -- In this case, the error would be
    -- Argument 1 can not be null
    mess(27002,ORA_JAVA.LAST_ERROR);
    --Clean up
    ORA_JAVA.CLEAR_ERROR;
    end;
    WHEN ORA_JAVA.JAVA_ERROR THEN
    -- In this case, the error would be
    -- Argument 1 can not be null
    message(ORA_JAVA.LAST_ERROR);
    --Clean up
    ORA_JAVA.CLEAR_ERROR;

    No need to double-post... most questions are answered pretty quickly...

  • 10.1.2.0.2 install fails with Out of memory error

    Hi All,
    I see the following error when installing BPEL PM 10.1.2.0.2 with OID, the OID configuration fails with OutofMemory error. Running the failed task from the command line also throws the same error. Any suggestions ?
    Thanks,
    Ravikiran.
    ankur.goel (4:59:26 PM): /scratch/ankugoel/softwares/ias/jdk/bin/java -jar /scratch/ankugoel/softwares/ias/integration/orabpel/system/services/lib/bpm-install.jar configureOID -oracle-home "/scratch/ankugoel/softwares/ias" -oid-admin cn=orcladmin welcome1 -oid-location stanc15.us.oracle.com 389 -oid-realm us -oid-seed seedRequiredUsers
    Install Configuration
    Install Type: ConfigureOID
    Oracle Home: /scratch/ankugoel/softwares/ias
    JDK Home: /scratch/ankugoel/softwares/ias/jdk
    Proxy Required: false
    Database Vendor: oracle
    OID Host: stanc15.us.oracle.com
    OID Port: 389
    OID Realm: us
    OID Seed: seedRequiredUsers
    Admin User: orcladmin
    Seeding users/roles in OID realm : us...
    Buildfile: bpminstall.xml
    seed-oid:
    init:
    seed-oid:
    Seeding system users/roles into OID ...
    The subscriber `us' contains multiple values for the attribute `orclCommonGroupSearchBase'
    1. cn=Groups,dc=us,dc=oracle,dc=com
    2. cn=CSGroups,cn=Groups,dc=us,dc=oracle,dc=com
    3. cn=Groups,cn=OracleContext,dc=us,dc=oracle,dc=com
    java.lang.OutOfMemoryError

    Hi
    We also encountered the same problem and resolved it as suggested. However, now we get the following error: (in the oid config assistant step in BPEL installation)
    Output generated from configuration assistant "Oracle BPEL Process Manager OID Configuration Assistant" (attempt 5):
    Install Configuration
    Install Type: ConfigureOID
    Oracle Home: /opt/oraias/oas/bpel
    JDK Home: /opt/oraias/oas/bpel/jdk
    Proxy Required: false
    Database Vendor: oracle
    OID Host: <hostname>
    OID Port: <port>
    OID Realm: <realm>
    OID Seed: seedAllUsers
    Admin User: orcladmin
    Seeding users/roles in OID realm : <realm>...Buildfile: bpminstall.xml
    seed-oid:
    init:
    seed-oid:Seeding system users/roles into OID ...Migration of LDIF data completed. All the entries are successfully migrated
    Seeding demo users/roles into OID ...Migration of LDIF data completed. All the entries are successfully migrated
    BUILD SUCCESSFUL
    Total time: 1 second
    Exit: 0
    Configuring OID as LDAP based JAZN provider ...ERROR: Failed to update /opt/oraias/oas/bpel/j2ee/OC4J_BPEL/application-deployments/hw_services/orion-application.xml
    java.net.ConnectException: Connection timed out
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:452)
         at java.net.Socket.connect(Socket.java:402)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
         at sun.net.www.http.HttpClient.New(HttpClient.java:339)
         at sun.net.www.http.HttpClient.New(HttpClient.java:320)
         at sun.net.www.http.HttpClient.New(HttpClient.java:315)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:521)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:498)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:626)
         at java.net.URL.openStream(URL.java:913)
         at oracle.xml.parser.v2.XMLReader.openURL(XMLReader.java:2292)
         at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:266)
         at oracle.xml.parser.v2.NonValidatingParser.pushExternalDTD(NonValidatingParser.java:540)
         at oracle.xml.parser.v2.NonValidatingParser.parseDoctypeDecl(NonValidatingParser.java:465)
         at oracle.xml.parser.v2.NonValidatingParser.parseProlog(NonValidatingParser.java:298)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:277)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:268)
         at oracle.tip.install.util.XMLUtil.loadDocument(XMLUtil.java:212)
         at oracle.tip.install.tasks.ConfigureOID.configureJaznProvider(ConfigureOID.java:288)
         at oracle.tip.install.tasks.ConfigureOID.install(ConfigureOID.java:130)
         at oracle.tip.install.BPMInstaller.runInstaller(BPMInstaller.java:140)
         at oracle.tip.install.BPMInstaller.main(BPMInstaller.java:77)
    ERROR: Failed while configuring JAZN provider in orion-application.xml.
    Configuration assistant "Oracle BPEL Process Manager OID Configuration Assistant" was canceled.

  • Indesign cs5.5 out of memory error

    Hi,
    I am having constant problems with out of memory errors in indesign cs5.5 (version 7.5.3).  I am on a mac. Everything is up to date, I have preflight off, my display performance is on typical view and have tried restarted my computer multiple times.  I do not have any other programs open and the document I have open is 3 pages (8.5x11) with little content and a couple links to small images.  I do not know what to do!  This is affecting my job and my performance!! Please help!!!  Thank you!

    close the application
    Rename the preferences from the following location
    /Users/[User Name]/Library/Preferences/Adobe InDesign/Version #
    /Users/[User Name]/Library/Caches/Adobe InDesign/Version [#]
    then open a new document and then open the document you are facing an issue with it should clear the memory issue temporally
    Alternate :
    copy and paste the content in a new document and check if the 1st option does not work
    PS : changing the folder name would reset the preferences
    refer to KB : InDesign preferences and support file locations

  • How can I trap Out- of-Memory data with no crash after Crop Tool fails to finish?

    The Photoshop 6 beta program froze while using the crop tool on an image size of 8052x5368. I tried to save a file in another program while waiting for the crop to finish (usually about 1 second) and got an out-of-memory error. I checked the D: driv where the file in the other program was saved. I have a flash C: drive and is not selected in the scratch disk preference. Two scratch disks, E: and G:, are selected with a total of about 800GB free space. After closing PS6Beta, the D: drive recovered about 164GB. The D: drive is not selected in the Scratch Disk list. I work with larger files and anticipate this problem again.How can I trap information for Adobe next time?
    Adobe Photoshop Version: 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00) x32
    Operating System: Windows 7 64-bit
    Version: 6.1 Service Pack 1
    System architecture: Intel CPU Family:6, Model:14, Stepping:5 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Physical processor count: 4
    Logical processor count: 8
    Processor speed: 2664 MHz
    Built-in memory: 16375 MB
    Free memory: 13523 MB
    Memory available to Photoshop: 3255 MB
    Memory used by Photoshop: 60 %
    Image tile size: 128K

    The problem remains for how the c: and d: drives were not selected in the scratch disk list. I tried again with only E: and G: drives and the file completed after 20 minutes with a 27.7G file. It would have been an ovious problem if the "info" diaglog box included the projected file size and/or dimensional units (px or in) because I use the dialog for verifying the size of the image. I wanted to make a 300 x400px image rather than a 300x400inch image( 90000x120000px).
    Thanks for your quick help.

  • Out of memory error - JS Runtime: How many users can one connect?

    Not talking video here.  Talking interactive apps, like chat.  Ours crashes at about 500 connected users.  When I report this I'm told "make sure you're not creating too many objects serverside" or "increase the JSRuntimeSize setting in your application.xml file to the max".
    Have now done both of those things but still get this out of memory error.  Let's say I optomized my app and got 100% more connection capacity.  That would be 1,000 connected users - still nowhere near enough.
    Are my dreams of 6,000 or 10,000 connected users enjoying all of the fruits of the FMS interactivity pipe dreams?  Is it not meant for sessions of that size?  Where does one find documentation or advice or application assistance on this issue?
    How do large social media applications connect so many people concurrently.
    Thoughts appreciated.
    Thanks

    Yes.  I'm using the max.
    <RuntimeSize>51200</RuntimeSize>
    See:
    http://help.adobe.com/en_US/FlashMediaServer/3.5_AdminGuide/WS5b3ccc516d4fbf351e63e3d119f2 926bcf-7ff0.html#WS5b3ccc516d4fbf351e63e3d119f2926bcf-7ed2
    Don't think 100MB or 200MB would be valid settings.

  • Out of memory Error with jdk 1.6

    Hello,
    I have a swing application launched on the client with the help of Java web start. The applications works fine in jre 1.4 and jre 1.5. The heap sizes are :
    initial-heap-size="5m" max-heap-size="24m"
    But when I run this using jre 1.6.0_05-b13, I am getting Out of memory Error, java heap size. And I see the memory usage is growing rapidly which I didn't notice in other jre versions (1.4 and 1.5).
    Does anyone have any idea on this?
    Thanks in advance,
    MR.

    Thanks for your response Peter. During my continuous testing I identified that error happens on jdk 1.5 also. And I have increased the min-heap-size to 24 MB and max-heap-size to 64 MB. But in that case also I noticed the out of memory error. The interesting thing is, the min-heap-size is never increased from 24MB and lot of free memory also.
    Memory: 24,448K Free: 12,714K (52%) ... completed.
    The Outofmemoryerror triggers from the reader thread which does the job of reading the data from the InputStream. One thing is we are continuously pushing more data on the output stream from the other end. Is that any limitation on InputStream which can hold some definite amount of data.
    Please throw some light on this.

  • Can anyone help with an out of memory error on CS2?

    Hello,
    I have been battling with an out of memory error on a dell laptop running 2gb of ram. I have had no prior issues with this laptop running CS2 until last week when I started getting the out of memory errors. I have seen several articles about this occuring on later versions of illustrator. Just prior to this issue appearing I had to delete and rebuild the main user profile on the computer due to it consistently logging into a temporary account.
    Once the new profile was established and all user documents and profile settings were transferred back into it, this problem started showing up. The error occurs when clicking on files listed as Illustrator files, and when opening the illustrator suite. Once I click on the out of memory error it still continues to load illustrator. The files are located on a server and not on the remote computer. I have tried to copy the files to the local hard drive with the same result when I try to open them. I also tried to change the extension to .pdf and got no further. I tried to open a file and recreate the work and all I got was the black outline of the fonts. none of the other artwork appeared. once rebuilt, when trying to save, It gives the out of memory error and does not save the file.
    Illustrator was installed on another dell laptop, same model, etc and works fine. no problem accessing network files. I just attempted to use Illustrator from the admin profile on the machine in question and it works fine and lightening fast. Just not from the new rebuilt profile. I have tried to uninstall and reinstall the software. it has not helped. could there be stray configuration settings that we transfered over to the new profile that should not have been?
    Any insights will be helpful.
    Thank You,
    Brad Yeutter

    Here are some steps that could help you:
    http://kb2.adobe.com/cps/320/320782.html
    http://kb2.adobe.com/cps/401/kb401053.html
    I hope this helps!

  • Out of memory error with 80Kb file?

    Hi, my pc has 2Gb of Ram, a page file that is setup correctly
    and the physical ram is almost non-used (500Mb)
    When I start DW and load a php file of 80Kb approx., it just
    hangs/locks up. When I wait for it, it gives me an "out of memory"
    error, and when you look in windows task manager, it just keeps
    hogging up ram.
    My laptop is a "simple", 1Gb Hp pavillion, and when I open
    the file there, it just works like it's supposed to, using about
    70Mb of ram, instead of the gigabyte(s) it does on my developer
    machine....
    Adjusting virtual memory has absolutely no effect.. It seems,
    after some reading, that people using 2gb of ram, have the most
    problems in this area?
    Adobe, please help here !
    EDIT: i just tested another file, 136Kb large, that loads
    normal!, so it has to do with the files in specific... If you want
    to test the files, just download "Simplemachines Forum" and load
    the "load.php" or the "post.php" files from the source directory,
    to trigger the lockup...

    mmm... just tried using a "workaround" if you still can call
    it that
    Installed a virtual machine (xp) with less than 2gigs, and it
    works... I really hope someone else has got these kind of errors
    yet.... 2500$ + software, wich I can't use for now... Using
    notepad2 for time being...

  • Data merge with football tickets. Printing causes out of memory errors. Can only print 10 at a time!

    Here's the deal. Printing football tickets for the local high school. 10 tickets per 8.5 x 11 sheet. All black and white. I couldn't data merge into one whole document of tickets because it was failing to do that. So, I end up with 3 documents. First two have 50 pages of tickets and the last has 37 pages.
    When I go to print, I can only print 10 pages at a time or InDesign straight up crashes or I get an "Out of Memory" error which is bull because I've got plenty of ram available (unless it's complaining about lack of HD space for some reason)
    Incredibly frustrating.
    Each ticket has 3 images on it. Two of the images are the same. Those two images are about 103kb .ai files. Very very simple. The other image is a TIFF that is about 76kb. So there are 1000 .ai files / document and 500 TIFFs.
    Here's a video I took of it ripping: http://www.youtube.com/watch?v=UCjvdmXuaYs&feature=c4-overview&list=UUf_1UFp80YLZJfCyIxXEg kg
    Also, when printing, I have the Send Data set to Optimized Subsampling instead of "All". That's not seeming to help.
    Any thoughts?
    IDCS 5.5
    OSX 10.8.4

    I just ran a sample on my laptop.
    AI file, duplicated, is 284k. Image is roughly 200k. The CSV has 2054 records, and the merged document with 10 per page is 250 megabytes. PDF is just under 50 megs.
    This laptop has only 4 gigs memory but has a lot of free disk space. It took a good amount of time to do the merge, a bit longer to create the PDF-X1a PDF.
    Mike

  • Report with more than 600 kb image - BO Server getting Out Of memory Error

    Hi,
       We have a report which displays images and size is above 600 KB.We are getting an "Out Of memory" Error while previewing this report in Business Object Server.
    In another situation we tried by giving a dynamic path to the OLE object, but the report is not showing error. We are not able to view the image whose size is more than 600KB
    Notes: 1. Image is stored as a BLOB  in Oracle Database
               2. Connection used inside the report is OLEDB
               3. UNIX Environment
    Regards,
    Sathish

    Please re-post if this is still an issue to the Business Objects Forum or if you have a valid support contract create a case on line.

  • Out of memory error - WLW Schema Project build

    hi
    Wasn't sure which group (workshop vs xmlbeans) but here goes.
    I'm doing a persomal eval of the WLS 8.1.1. platform.
    My current focus is on XML Schema support, XML Beans, transformations etc
    and in particular how it all copes with large schema.
    I'm using Justice XML Data Dictionary (3.0.0.0) as an example of a large
    schema
    (http://it.ojp.gov/jxdd/)
    I am getting an out of memory error when I build this within WLW.
    The build appears to be in the javac phase (and occurs when the memory goes
    over 256M) so I think it's the ANT task.
    WLW doesn't seem to be running out of memory and the build machine is not
    running out of resources.
    Where do I configure this? The <xmlbean> tag ? Is there any doco?
    regards
    Jim Nicolson
    =============== Build trace below ====================
    Build project JXDDSchema started.
    BUILD STARTED
    build:
    check-uptodate:
    build-sub:
    Updating property file:
    C:\data\projects\bea\integration\wlitest\.workshop\.ide\JXDDSchema\build.pro
    perties
    Deleting directory
    C:\DOCUME~1\JIMNIC~1\LOCALS~1\Temp\.wlw-temp\wlw_compile38940\JXDDSchema
    Created dir:
    C:\DOCUME~1\JIMNIC~1\LOCALS~1\Temp\.wlw-temp\wlw_compile38940\JXDDSchema
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\jxdds_3.0.0.0_full-doc.x
    sd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\iso_639-2t_1.0.0.0_full-
    doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\ut_offender-tracking-mis
    c_1.0.0.0_full-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\ncic_2000-gun_1.0.0.0_fu
    ll-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\ncic_2000-other-transact
    ions_1.0.0.0_full-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\ncic_2000-uniform-offens
    e_1.0.0.0_full-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\mn_offense_1.0.0.0_full-
    doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\dod_jcs-pub2.0-misc_1.0.
    0.0_full-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\cap_1.0.0.0_full-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\nibrs_misc_1.0.0.0_full-
    doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\fips_6-4_1.0.0.0_full-do
    c.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\iso_3166_1.0.0.0_full-do
    c.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\dod_misc_1.0.0.0_full-do
    c.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\ncic_2000-misc_1.0.0.0_f
    ull-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\ncic_2000-boat_1.0.0.0_f
    ull-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\ncic_2000-securities_1.0
    .0.0_full-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\ncic_2000-article_1.0.0.
    0_full-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\unece_rec20-misc_1.0.0.0
    _full-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\ncic_2000-state-country_
    1.0.0.0_full-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\iso_4217_1.0.0.0_full-do
    c.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\fips_10-4_1.0.0.0_full-d
    oc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\ansi_d20_1.0.0.0_full-do
    c.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\iso_639-2b_1.0.0.0_full-
    doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\fips_5-2_1.0.0.0_full-do
    c.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\ncic_2000-vehicle_1.0.0.
    0_full-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\dod_exec-12958_1.0.0.0_f
    ull-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\ncic_2000-personal-descr
    iptors_1.0.0.0_full-doc.xsd
    Loading schema file
    C:\data\projects\bea\integration\wlitest\JXDDSchema\usps_states_1.0.0.0_full
    -doc.xsd
    Time to build schema type system: 6.75 seconds
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError
    BUILD FAILED
    BUILD FAILED

    hi Kevin
    Thanks I'll take a look there.
    I think it's a good move to make XMLBeans open source.
    (I've been using Castor for the same purpose for the last two years).
    I was mainly focussed on XMLBeans as they are used in WLW context and my
    testing suggested that I would probably want to know more about the ANT
    build/tasks etc. (Just to be able to deal with unexpected issues)
    It's not urgent - I'm just doing a personal eval to come up to speed with
    WLS 8.1 platform.
    thanks
    Jim Nicolson
    "Kevin Krouse" <[email protected]> wrote in message
    news:[email protected]..
    Sorry, the first URL should have been:
    http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-xmlbeans/v1/xkit/anttask.html?rev=1.2
    >
    --k
    On Tue, 30 Sep 2003 22:35:58 -0700, Kevin Krouse wrote:
    Hi Jim,
    Well, the XMLBean docs are in a process of moving into the Apache
    XMLBeans
    project (http://xml.apache.org/xmlbeans), so I can point you to where
    they
    are in the cvs repository. You can also look at the source if you'dlike!
    >>
    Here's an html doc for the xmlbean task:
    http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-xmlbeans/v1/xkit/anttask.html?rev=1.2http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-xmlbeans/v1/xkit/anttask.html?rev=1.2
    >>
    Here's the code for the xmlbean task:
    http://cvs.apache.org/viewcvs.cgi/xml-xmlbeans/v1/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java?rev=HEAD&content-type=text/vnd.viewcvs-markup
    >>
    >>
    As to your second question about WLW becoming unresponsive, after the
    Schemas.jar is built, the source for the entire project is re-scanned
    which could take several minutes. The performance impact of rescanning
    the project is improved in SP2 and will be addressed even more in future
    releases. Stay tuned.
    --k

  • Out of memory error while starting NWDS

    Hi.
    I have NWDS 7.0.08 installed. I'm developing DC's assigned to a DTR. While working, I had about 10 projects open in the workspace and when I tried opening another one, NWDS crashed giving an "out of memory" error. And when I try to reopen NWDS, I get the error "Problems during startup. Check the .log file in the .metadata directory of your workspace".
    When I look at the log, I see the following lines:
    !ENTRY org.eclipse.core.runtime 4 2 Feb 19, 2007 16:32:18.78
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime".
    !STACK 1
    org.eclipse.core.internal.resources.ResourceException(null)[567]: java.io.EOFException
         at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:400)
         at java.io.DataInputStream.readUTF(DataInputStream.java:633)
         at java.io.DataInputStream.readUTF(DataInputStream.java:610)
         at org.eclipse.core.internal.dtree.DataTreeReader.readNode(DataTreeReader.java:57)
         at org.eclipse.core.internal.resources.WorkspaceTreeReader.readTree(WorkspaceTreeReader.java:44)
         at org.eclipse.core.internal.resources.SaveManager.restoreTree(SaveManager.java:776)
         at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:488)
         at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1033)
         at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1734)
         at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1537)
         at org.eclipse.core.resources.ResourcesPlugin.startup(ResourcesPlugin.java:268)
         at org.eclipse.core.internal.plugins.PluginDescriptor$1.run(PluginDescriptor.java:736)
         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
         at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:748)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    !ENTRY org.eclipse.core.resources 4 567 Feb 19, 2007 16:32:18.78
    !MESSAGE Problems reading workspace tree.
    !STACK 0
    java.io.EOFException
         at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:400)
         at java.io.DataInputStream.readUTF(DataInputStream.java:633)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    !ENTRY org.eclipse.core.runtime 4 2 Feb 19, 2007 16:32:18.93
    !MESSAGE Plug-in com.tssap.util was unable to load class com.tssap.util.startup.WBLauncher.
    !STACK 0
    org.eclipse.core.internal.boot.DelegatingLoaderException: org.eclipse.core.runtime.CoreException: Problems encountered starting up plug-in: "org.eclipse.core.resources".
         at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:754)
         at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
         at org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLoader.java:112)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    !ENTRY org.eclipse.core.runtime 4 2 Feb 19, 2007 16:32:18.93
    !MESSAGE Plug-in com.tssap.util was unable to load class com.tssap.util.startup.WBLauncher.
    !STACK 0
    org.eclipse.core.internal.boot.DelegatingLoaderException: org.eclipse.core.runtime.CoreException: Problems encountered starting up plug-in: "org.eclipse.core.resources".
         at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:754)
         at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
         at org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLoader.java:112)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    !SESSION -
    !ENTRY org.eclipse.core.launcher 4 0 Feb 19, 2007 16:32:18.109
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    Caused by: java.lang.IllegalArgumentException: Application not found: com.tssap.util.WBLauncher.
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:856)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         ... 7 more
    I cut off some parts as they are too long and seem to be useless.
    I guess NWDS is trying to reopen the projects I was working on while it crashed. So, how can I prevent it?
    I can't change my workspace because I have open activites in DTR, so I shouldn't loose my DCs.
    Help? Anybody?
    Thanks in advance..

    Hi guys.
    I've solved my problem. I deleted the project navigator tree structure files from workspace, and NWDS opened up with a clean workspace . But the projects themselves were there though. So I recreated my DC projects, but didn't download the sources, modified local copies are used instead.
    I deleted the these files:
    <workspace>\.metadata\.plugins\org.eclipse.core.resources\.safetable\org.eclipse.core.resources
    <workspace>\.metadata\.plugins\org.eclipse.core.resources\.root\###.tree
    Then I opened NWDS and it was clean. I opened the Development Configurations perspective, in the Local DCs view, right-clicked on each DC and choosed "Create Project". This looks like a safe method, it worked for me.

  • 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.

Maybe you are looking for

  • Enhance BOL with Z-fields for Web Service

    Hello, I need to create Web Service for quotation. I want to add some Z-fields to this WS. I think I need to enhance BTAdminH BOL. I already append structure with Z-fields to BTAdminH BOL, however I don't know where I should write ABAP code for filli

  • HT1665 when will apple be selling accessories for the IPhone 5

    When will Apple start selling accesories for the New Iphone 5, such as cases and or screen protectors ?

  • Alpha mask artifacts

    this may be a very simple question. Here it is: All is done with AS. I am applying a gradient mask to a movie I am animating. When it changes property line alpha x or y there are white outlines that appear. Is there a way to prevent that from happeni

  • Dialog Participant Step

    Hi Guys,             Reaching out to you for help and guidance. I have been working on workflows and as a part of that effort I have to provide an interface to the Participant to enter some inputs (JIRA ID and Comment). The idea is to take these inpu

  • Reloading data causes lost position in Paged View

    Say you have a paged view data set that lets a user page through four pages of five items (20 items total). Say also you have loadInterval on the underlying dataset set to 10 seconds. Now, say the user has paged to page three in their page view. With