System Out Of Memory

I was able to create my virtual application but when I go to use the zenworks option to create a bundle in ZCM I get an error "An error occored while publishing the bundle: Exception of type 'System.OUtOfMemoryException' was thrown." I restarted the ZCM server but it did not fix the issue. Anyone else have this problem.

Ok here is the mess I got out of zcc.log. The app I am trying to make is 1.07 G. It only seems to happen on applications that are large.
Mar 2009 13:28:47 FrameworkAuthentica..64 :------------Index.java : session attributes removed---------
16 Mar 2009 13:28:47 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/31694_795740433dff4bdc699391d98724ee78.png]
16 Mar 2009 13:28:47 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/97731_81d558599eb33007ecfb12cf2f5b97cd.png]
16 Mar 2009 13:28:47 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/12269_3f98d873571678b642ff3b79f7cdd2f0.png]
16 Mar 2009 13:28:47 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/64471_8b54de4cbcaab169fef8e92fdcd3cdc6.png]
16 Mar 2009 13:51:44 MessageUtil..........99 :Note: Make sure that you increment the version of this bundle in the Summary page or in the common tasks to ensure its delivery to assigned devices that already have this bundle.
16 Mar 2009 13:52:23 MessageUtil..........99 :Note: Make sure that you increment the version of this bundle in the Summary page or in the common tasks to ensure its delivery to assigned devices that already have this bundle.
16 Mar 2009 14:22:55 FrameworkAuthentica..59 :>>> Cleaning up session
16 Mar 2009 14:22:55 FrameworkAuthentica..64 :------------Index.java : session attributes removed---------
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/41406_.png]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/84836_e3d764a886a1e3c9faf4986a55cc24f6.png]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/4bd85f93eb18f0e44f5fa603bed74d44.ico]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/48914_046aaee55dd8be24d2388fed2c5075d0.png]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/41406_.ico]
16 Mar 2009 14:22:55 UploadedFileManage..503 :UploadedFileManager: Deleting directory [/var/tmp/0ffaa180f70341d4a7d9d83e68341f70]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/50695_046aaee55dd8be24d2388fed2c5075d0.png]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/43127_046aaee55dd8be24d2388fed2c5075d0.png]
16 Mar 2009 14:22:55 FrameworkAuthentica..59 :>>> Cleaning up session
16 Mar 2009 14:22:55 FrameworkAuthentica..64 :------------Index.java : session attributes removed---------
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/03251_730c0676e359b664457536741fbef398.png]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/58781_81d558599eb33007ecfb12cf2f5b97cd.png]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/04795_e3d764a886a1e3c9faf4986a55cc24f6.png]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/11242_8b54de4cbcaab169fef8e92fdcd3cdc6.png]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/77281_736005f4ba6c0a02f78510bde7dcdad4.png]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/23962_730c0676e359b664457536741fbef398.png]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/13694_f30c24bd81f4a05cad65a3797b2b84d9.png]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/69431_0d7e165fdadd122d5fefa71a93945e74.png]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/60539_736005f4ba6c0a02f78510bde7dcdad4.png]
16 Mar 2009 14:22:55 UploadedFileManage..509 :UploadedFileManager: Deleting file [/opt/novell/zenworks/share/tomcat/webapps/zenworks/images/appIcons/73857_3f98d873571678b642ff3b79f7cdd2f0.png]
16 Mar 2009 14:24:55 FrameworkAuthentica..59 :>>> Cleaning up session
16 Mar 2009 14:24:55 FrameworkAuthentica..64 :------------Index.java : session attributes removed---------
16 Mar 2009 14:49:32 RemoteControlDialo..982 :Entered the function addDropdownListElements
16 Mar 2009 14:49:32 RemoteControlDialo..338 :initialize controls called
16 Mar 2009 14:49:36 RemoteControlDialo..446 :Entered RightsValidator
16 Mar 2009 14:49:36 RemoteControlDialo..472 :Rights authentication allowed
16 Mar 2009 14:49:36 RemoteMgmtExtensio..343 :Inside rmPopup_close
16 Mar 2009 14:49:36 Vncobject...........312 :VNCDEBUG : render method on zenvnc object invoked
16 Mar 2009 14:49:36 Vncobject...........329 :VNCDEBUG : renderContents CALLED op:1
16 Mar 2009 14:49:36 Vncobject...........353 :VNCDEBUG: Browser user agent :Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2)
16 Mar 2009 14:49:36 Vncobject...........362 :VNCDEBUG: Browser is a supported browser
16 Mar 2009 14:49:37 Vncobject...........658 :Locale of the zenworks system is English
16 Mar 2009 14:49:37 Vncobject...........553 :VNCOBJECT:: cmd is : -pipe -zenrights -locale English -enabledbo -enablecaching
16 Mar 2009 14:49:37 Vncobject...........564 :VNCOBJECT:: completeCMDLine = <PARAM NAME="cmdline" VALUE=' -pipe -zenrights -locale English -enabledbo -enablecaching 172.20.147.102~~5950
16 Mar 2009 15:12:02 FrameworkAuthentica..59 :>>> Cleaning up session
16 Mar 2009 15:12:02 FrameworkAuthentica..64 :------------Index.java : session attributes removed---------

Similar Messages

  • BPC 5.0.502  BPC Web Error Message: Exxception of Type System out of memory

    In the process of updating a web page in the content library, page crashed received an error message of "Exception of type System out of memory.  Exception was throw".  What does this mean?  We are now unable to open this sheet without receiving the prior message.  Any remadies would be appreciated.

    Hello,
        Did you receive this specific error message only managing that web page or for all pages?
        Did you try to stop all COM+ components on the application servers(on each if you are using more). It looks to be related to some memory problems.
        If the problem is related to a specific web page, the problem can be related to the content of that web page.
    Best regards,
    Mihaela

  • System.out of memory exception

    I am running a TestStand sequence, using the .NET adaptor I am creating a class, and calling methods of a Class Library I created in VB.NET. I tested my class library in VB.NET and everything works in that environment. The sequence I call is pretty simple,
    create an instance of my class, then
    call a method that setups and initializes a camera
    call a method that runs through the tests of a test sequence
    The first pass of the sequence, it runs, the second pass of the sequence, whether in a For loop or the entire TestStand Sequence started again, it initializes the camera, but the second sequence, TestStand reports a system.out of memory exception in an underlying assembly/dll of my dll. But, when I call my dll from a .exe I made to test my dll, it works fine.
    Thanks

    Thanks for you reply.
    I am calling the setup and initialization of the camera once; it is the calling the method that runs a sequence of tests that I am repeating calls to and subsequently failing on the second call. The interesting thing is if I close out of TestStand completely after the first run. Then run my TestStand sequence again, it reportsd the same error. It seems something is not being released, or cleared, or something. Keep in mind, I am only getting this with TestStand, I do not get it when I run a test .exe that calls my dll. I since have tested calling my .exe in TestStand that calls my DLL and that works. The problem is clearly in using TestStand to create the class and call the methods.
    Thanks

  • System out of memory when exporting/migrating Solution Manager

    Dear all,
    since we decided to migrate our Solution Manager (win2003/sql server 2005) system to a more appropriate server, we started an export using the NW70sr2 installation master CD, the one we used to install this solution manager instance.
    Everything went ok up to the Java export phase, here we caught an out of memory issue, here's the relevant part of the sapinst.dev.log file:
    May 24, 2008 1:49:46 PM com.sap.inst.jload.Jload dbExport
    SEVERE: DB Error during export of BC_SLD_CHANGELOG
    May 24, 2008 1:49:46 PM com.sap.inst.jload.Jload printSQLException
    SEVERE: Message: The system is out of memory. Use server side cursors for large result sets:null. Result set size:262,182,182. JVM total memory size:518,979,584.
    May 24, 2008 1:49:46 PM com.sap.inst.jload.Jload printSQLException
    SEVERE: SQLState: null
    May 24, 2008 1:49:46 PM com.sap.inst.jload.Jload printSQLException
    SEVERE: ErrorCode: 0
    May 24, 2008 1:49:46 PM com.sap.inst.jload.db.DBConnection disconnect
    INFO: disconnected
    TRACE      [iaxxejsexp.cpp:199]
               EJS_Installer::writeTraceToLogBook()
    2008-05-24 13:49:49.755 JavaApplication execution finished
    TRACE      [iaxxejsexp.cpp:199]
               EJS_Installer::writeTraceToLogBook()
    2008-05-24 13:49:49.755 NWDB._callJLoad(export) done: throwing
    TRACE      [iaxxejsexp.cpp:199]
               EJS_Installer::writeTraceToLogBook()
    NWException thrown: nw.syscopy.jloadRunFailed:
    <html>Execution of JLoad tool 'C:\j2sdk1.4.2_14-x64\bin\java.exe -classpath F:\usr\sap\SMD\SYS\global\sltools\sharedlib\launcher.jar -showversion -Xmx512m com.sap.engine.offline.OfflineToolStart com.sap.inst.jload.Jload
    SMDCA/sapmnt/SMD/SYS/global/security/lib/tools/iaik_jce.jar;
    SMDCA/sapmnt/SMD/SYS/global/security/lib/tools/iaik_jsse.jar;
    SMDCA/sapmnt/SMD/SYS/global/security/lib/tools/iaik_smime.jar;
    SMDCA/sapmnt/SMD/SYS/global/security/lib/tools/iaik_ssl.jar;
    SMDCA/sapmnt/SMD/SYS/global/security/lib/tools/w3c_http.jar;F:/usr/sap/SMD/SYS/global/sltools/sharedlib/jload.jar;F:/usr/sap/SMD/SYS/global/sltools/sharedlib/antlr.jar;F:/usr/sap/SMD/SYS/global/sltools/sharedlib/exception.jar;F:/usr/sap/SMD/SYS/global/sltools/sharedlib/jddi.jar;F:/usr/sap/SMD/SYS/global/sltools/sharedlib/logging.jar;F:/usr/sap/SMD/SYS/global/sltools/sharedlib/offlineconfiguration.jar;F:/usr/sap/SMD/SYS/global/sltools/sharedlib/opensqlsta.jar;F:/usr/sap/SMD/SYS/global/sltools/sharedlib/tc_sec_secstorefs.jar;F:\usr\sap\SMD\DVEBMGS00\exe\mssjdbc\sqljdbc.jar -sec SMD,jdbc/pool/SMD,
    SMDCA/sapmnt/SMD/SYS/global/security/data/SecStore.properties,
    SMDCA/sapmnt/SMD/SYS/global/security/data/SecStore.key -dataDir E:/EXPORT/JAVA/JDMP -remove_trailing_blanks "C:/Documents and Settings/administrator.ATRSAP/removeTrailingBlanks.txt" -convert_empty_LOBs "C:/Documents and Settings/administrator.ATRSAP/convertEmptyLobs.txt" -convert_empty_strings "C:/Documents and Settings/administrator.ATRSAP/convertEmptyStrings.txt" -convert_empty_binary "C:/Documents and Settings/administrator.ATRSAP/convertEmptyBinary.txt"' aborts with return code 1.<br>SOLUTION: Check 'jload.log' and 'C:/Documents and Settings/administrator.ATRSAP/jload.java.log' for more information.</html>
    Actually we used a workaroud to complete the phase, ie we menually re-issued the command and changed the heap value from -Xmx512m to -Xmx1024m
    Is there a way to defalut the sapinst to pass to the java export command an higher java heap value, ie -Xmx1024m ?
    Thanks in advance and cheers.
    Franco.

    It sounds like you may have a corrupt render file in your 7th episode.  You can set in and out points in 5 minute increments and export those segments to narrow down which clip is the offending clip. Then re-render the offending clip.
    I hope this helps.

  • Cannot Upload Resources to P6 v7 - System out of Memory

    Hello,
    When I import resource assignments to P6 v7, I get an the following error message:
    "Your system is out of memory. Please close other running applications and try this operation again."
    I also noticed that the PM.exe file in Task Manager was consuming a huge amount of system memory, over 1 GB.
    After this error message, when I go back to my P6 schedule, I find that several activity durations have been zeroed out. I've never experienced this with earlier versions of P6. Has anyone encountered any of this before?
    Here's some more info about the schedule - It has 8600 activities, and 7000+ resource assignments.
    Thanks for your help!

    Ashish777 wrote:
    Jason,
    Thanks for your reply. I would have thought that 2GB of memory would me more than sufficient. Would increasing the memory to say 3GB or 4GB help? Incidentally, I did break down the spreadsheet into 7 "chunks" of about 1000 entries, and was able to successfully import the spreadsheet that way.
    Also what do you mean by API?
    Thanks again!It certainly won't hurt, but I doubt that 3/4gb even is going to allow you to import that many assignments in one shot with the method you are using; since P6 is a 32bit application, it cannot address that much memory.
    The api is the programmers interface. It would require knowledge of Java programming, however, if you are going to be doing this sort of thing a lot, it would pay for itself many times over in speed, ease of use, and avoiding any potential issues.

  • Decompressing LZMA .zip files always gives "System out of Memory" on AIR.

    AIR is supposed to support LZMA compression in addition to Deflate, but it has an error every time I try to use it. ZIPs using the Deflate method decompress just fine.
    aByteArray.uncompress("lzma");
    Should decompress the LZMA compressed data, but always just has a #1000 System is Out of Memory error.
    I have tried skipping the standard header in the zip that should be 2 bytes version info, extra properties length (n) and a filed of the length of n;
    Even when I do that, the same thing happens. I have tried deducting the LZMA header length from the general compressed data size in the ZIP header as well and that makes no difference. I am also above AIR 3.3 so that should not be the issue. I also tried setting a small 'library size' when compressing. LZMA is supposed to be "suited for embedded applications" so mobile devices should surly be able to handle it.
    The header with the 13 byte header i believe is only for certain stand alone LZMA formats, so that should not apply.
    What am I doing wrong? How do I make it work?

    No. I try and avoid cluttering my apps with extra libraries if at all possible. It may have a sizeable footprint when I only need a few things, and it might contain encryption stuff if it supports the whole zip specification, which makes your app banned from export to some countries apparently.
    I already have my app doing what I need it to do with the most common deflate method, but it simply would be a shame to not have LZMA support when it is built right into AIR. I would like to know what I'm doing wrong when I call uncompress with "lzma".

  • How to overcome a "System out of memory exception"?

    Hi,
    As i am running my program , I get (sometimes) an out of memory exception.
    I don't know exactly why because I am always doing the same thing so if I get this exception once It should always be so... (of course, as I am trying , no other program is running on my computer! ).
    anyway.
    I have 3 questions:
    1) Do you know how to eliminate this error ?
    (I don't mind if the time of execution is longer)
    2) I have Win XP, do you think that using a software to build ".exe" files can change the problem ? If so, have you heard about a simple 'one' (I downloaded JET Excelsior, but it seems rather complicated to parametrize)
    3) (last but not least) Can someone explain to me WHY there is this type of exception ( I would have thought that when "memory is full", then there is a swap, and the program doesn't stop !
    I know there is a lot of questions in one ! ( altough I tried to be short)
    Thanks

    In answer to your third question, the error occurs when
    the JVM runs out of memory, not the OS. Since the OS
    controls swapping the fact that the memory space
    assigned to the JVM is running low won't cause
    swapping to take place. The solution is either a) use
    less space by reducing what you have loaded at any
    given time or b) increase the amount of memory
    available to the JVM. You can user the -Xms, -Xmx and
    -Xss switches to increase the amount of memory
    available.
    Mark

  • System out of memory during deployment

    Hello everybody,
    I have a J2EE project and a respective EAR-project to deploy my application on the WebAS 6.40 (SP13).
    Since yesterday I have the problem that when I add a new entity bean to my J2EE project I got the following error during deployment.
    If I remove the entity bean there is no problem to deploy the project.
    I tried a lot of things, e.g. changing the heap size of the developing workspace or of the sdm, but no results. Has someone an idea?
    Is there probably a limit for beans in a J2EE project?
    ===========================================================================
    Deployment started Wed Aug 17 11:58:00 CEST 2005
    ===========================================================================
    Starting Deployment of HPMisEAR
    Aborted: development component 'HPMisEAR'/'com.hp'/'localhost'/'2005.08.17.11.51.27':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application com.hp/HPMisEAR.. Reason: Errors while compiling:
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError
    ; nested exception is:      com.sap.engine.services.ejb.exceptions.deployment.EJBFileGenerationException: Errors while compiling:
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment of HPMisEAR finished with Error (Duration 51252 ms)
    Thanks for help,
    Paulo
    Message was edited by: Paulo Calado

    Hi,
    thank you very much, it works now.
    Best regards,
    Paulo

  • System out of memory load ing large project

    Folks:
    I am opening a large solution in SSDT.  (Visual Studio 2013 - with Update 4 - 12.0.41025.0.)  The project contains a rather large OLTP solution.  In addition - we run focused data marts off of this common solution.  So - the solution
    contains 148 projects.
    When I attempt to open the solution - I get the below.  When I close the dialog, Visual Studio crashes.  I can never do anything productive.
    In Task manager - I see less the 50% memory used.  I have 16GB installed, < 8GB is being used when Visual Studio crashes.  So there must be an artificial limit some where.
    How do I get around this?
    Microsoft.Data.Tools.Schema.Sql.Build.SqlPackageException
    Exception of type 'System.OutOfMemoryException' was thrown.
       at Microsoft.Data.Tools.Schema.Sql.Build.SqlPackageContent.GetStream()
       at Microsoft.Data.Tools.Schema.SchemaModel.DataSchemaModel.ReadDataSchemaModelHeaderFromPackage(SqlPackage package, Boolean readCustomData)
       at Microsoft.VisualStudio.Data.Tools.Package.Internal.DatabaseProjectOrSqlSchemaFileReferenceNodeExtender.ReadHeaderData()
       at Microsoft.VisualStudio.Data.Tools.Package.Internal.DatabaseProjectOrSqlSchemaFileReferenceNodeExtender.TryReadHeaderData(Exception& ex)
       at Microsoft.VisualStudio.Data.Tools.Package.Project.Features.ProjectReferenceController.IsValidReferenceVerifySqlServerVersions(IDatabaseReferenceNode refNode, Boolean& canShowDefault, String& reason)
       at Microsoft.VisualStudio.Data.Tools.Package.Project.Features.ProjectReferenceController.IsValidReference(IDatabaseFileReferenceNode refNode, Boolean& canShowDefault, String& reason)
       at Microsoft.VisualStudio.Data.Tools.Package.Project.Features.ProjectReferenceController.IsValidReference(IDatabaseReferenceNode refNode, String& reason)
       at Microsoft.VisualStudio.Data.Tools.Package.Project.Features.ProjectReferenceController.GetReferenceData(IDatabaseReferenceNode referenceNode, CustomSchemaData& schemaData)
       at Microsoft.VisualStudio.Data.Tools.Package.Project.Features.FileManagerFeature.ProcessReferencesInQueue()
       at Microsoft.VisualStudio.Data.Tools.Package.Project.Features.FileManagerFeature.OnIdle()
       at Microsoft.VisualStudio.Data.Tools.Package.Project.DatabaseProjectNode.OnIdle()
       at Microsoft.VisualStudio.Data.Tools.Package.Project.SqlProjectIdleProcessingComponent.FDoIdle(UInt32 grfidlef)
    John

    Visual Studio is a 32 bit process so the most it could possibly use is 2GB.
    Honestly I have used visual studio for a while (since VB6/VC6 to VS .Net 2002 all the way to 2015) and it is a memory hog as it is, I really can't imagine what it is like to have 148 projects in the solution - it must be really slow. I guess you are using
    build configs to limit what you build each time or your build times alone will be painful!
    I really would look at splitting the solution down into smaller parts, I don't think you will have much luck until you do that.

  • -17500 System Our of Memory Exception

    Hello,
    I am seeing strange behavior when I first start TestStand. I am getting an error -17500 'System Out Of Memory Exception was thrown' when executing the 'Create plug-in cache' step in the sequence 'Initialize Model Plugins' in the ModelSupport.seq. Here's the kicker: I only see this error when I try to run TestStand through a LabWindows/CVI GUI. I do not see this error when running TestStand from the Sequence Editor or a LabVIEW GUI I am using TS 2012 and CVI 2012. I am rnning the Parallel model. When I look at the Windows Task Manager Performance I do not see any memory issues. I have uninstalled and reinstalled TS and CVI to no avail. I am hoping someone else may have experienced this problem o rhave an idea of what the possible culprit is. I am running out of options.
    I have attached a screen shot of the Run-Time Error window.
    Thank you in advance for your help,
    Jim
    Solved!
    Go to Solution.
    Attachments:
    TestStand Out of Memory.jpg ‏44 KB

    See the following(Why do I Get an Out of Memory Exception (Error Code -17500; Operation Failed) when Using LabWindows/CVI Built TestStand User Interface with .NET 4.5?):
    http://digital.ni.com/public.nsf/allkb/0136A53F98D​69B7286257AD70069A735?OpenDocument
    -Doug

  • Large DataTable causes out of memory exception

    Hello Support 
    We have a datatable that returns 112970 records and have 51 columns.
    When we try generate an xls file or display data result in grid view than "System Out of memory exception" is thrown.
    OS : Windows 2003 Enterprise 32 Bit
    HP DL380 G4
    CPU 2x3.6GHZ
    6 GB RAM
    Can you help us to find a resolution to this issue?
    Thank you
    Shrenik
    Maurice

    Thanks for reply.
    1> .XLXS format allows us >= 133000 records in spread sheet some times and some times it throws Exception of type 'System.OutOfMemoryException'.
    2> We are using asp.net gridview.
    Exception:
     ExceptionObject : Message : Exception of type 'System.OutOfMemoryException' was thrown.
    Data : System.Collections.ListDictionaryInternal
    InnerException : Nothing
    TargetSite : System.String ToBase64String(Byte[], Int32, Int32, System.Base64FormattingOptions)
    StackTrace :    at System.Convert.ToBase64String(Byte[] inArray, Int32 offset, Int32 length, Base64FormattingOptions options)
       at System.Web.UI.ObjectStateFormatter.Serialize(Object stateGraph, Purpose purpose)
       at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter2.Serialize(Object state, Purpose purpose)
       at System.Web.UI.Util.SerializeWithAssert(IStateFormatter2 formatter, Object stateGraph, Purpose purpose)
       at System.Web.UI.HiddenFieldPageStatePersister.Save()
       at System.Web.UI.Page.SavePageStateToPersistenceMedium(Object state)
       at System.Web.UI.Page.SaveAllState()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) HelpLink : Nothing Source : mscorlib HResult : -2147024882
    Please see below code for more information.
        protected void Button1_Click(object sender, EventArgs e)
            try
                DataTable _dt = GetDataFromDB();
                ViewState["dtQueryResults"] = _dt;
                BindgvQueryResults();
                messageLabel.Text = "";
            catch (Exception ex)
                messageLabel.Text = "Query execute error: " + ex.Message;
        private void BindgvQueryResults()
            if (ViewState["dtQueryResults"] != null)
                DataView _dv = ((DataTable)ViewState["dtQueryResults"]).DefaultView;
                if (ViewState["gvQRSortExpression"] != null && ViewState["gvQRSortDirection"] != null)
                    _dv.Sort = ViewState["gvQRSortExpression"].ToString() + ViewState["gvQRSortDirection"].ToString();
                gvQueryResults.DataSource = _dv;
                gvQueryResults.DataBind();
    private DataTable GetDataFromDB()
            SqlCommand _Cmd = null;
            SqlConnection _Con = null;
            try
                _Con = DBInteraction.InstantiateConnection();
                _Cmd = new SqlCommand();
                _Cmd.Connection = _Con;
                _Cmd.CommandTimeout = 300;
                if (_Con.State != ConnectionState.Open)
                    _Con.Open();
                try
                    _Cmd.CommandText = CriteriaBuilder1.QueryTransformer.Sql;
                catch(NullReferenceException)
                    throw new ApplicationException("Error message.");
                if(string.IsNullOrEmpty(CriteriaBuilder1.QueryTransformer.Sql))
                    throw new ApplicationException("This query does not have any text. Please add views in the query and try again.");
                _Cmd.CommandType = CommandType.Text;
                DataTable _dt = new DataTable();
                SqlDataAdapter adaPTer = new SqlDataAdapter(_Cmd);
                adaPTer.AcceptChangesDuringFill = false;
                adaPTer.Fill(_dt);
                if (_dt.Rows.Count == 0)
                    throw new ApplicationException("Your request did not return any results.");
                return _dt;
            catch (Exception ex)
                throw ex;
            finally
                if (_Con.State == ConnectionState.Open)
                    _Con.Close();
    Maurice

  • I run out of memory when trying to run a query

    I need help with a query. I am trying to extract Total Qty Sold ( and eventually get this data by month), but when I would run the query asking for QTY I get "System Out Of Memory". I removed that party of the query asking for Qty and posted what I came up with below. Any Help is greatly appreciated.
    SELECT T0.[ItemCode], T0.[ItemName], T1.[FirmName], T0.[CardCode], T0.[SuppCatNum], T2.[ItmsGrpNam], T0.[U_U_CMG_PROGRAM], T0.[U_U_CMG_CATEG], T0.[U_CMG_STATUS], T0.[U_CMG_STORES], T0.[U_CMG_COLOR], T0.[U_CMG_LOCAT], T0.[MinLevel], T0.[MinOrdrQty]
    FROM OITM T0  INNER JOIN OMRC T1 ON T0.FirmCode = T1.FirmCode INNER JOIN OITB T2 ON T0.ItmsGrpCod = T2.ItmsGrpCod

    Hi,
    Welcome you post on the forum.
    Try this fist:
    SELECT T0.ItemCode, T0.ItemName, T1.FirmName, T0.CardCode, T0.SuppCatNum, T2.ItmsGrpNam, T0.MinLevel, T0.MinOrdrQty
    FROM OITM T0
    INNER JOIN OMRC T1 ON T0.FirmCode = T1.FirmCode
    INNER JOIN OITB T2 ON T0.ItmsGrpCod = T2.ItmsGrpCod
    WHERE T0.ItemCode Like '[%0\]%'
    Thanks,
    Gordon

  • Out of memory error when creating an array

    I'm trying to create 3D array of Bytes.
    Byte[][][] disk = disk = new Byte[11][9][25344];
    This is where I get an OutofMemory error.
    Please help!!!

    It is not as ballubadshah asserts a matter of how much memory you have but rather how much is allocated by default to the JVM heap.
    This number according to http://java.sun.com/docs/hotspot/ism.html is 64megabytes.
    When I run the following code, I get the number 64618496 which is just shy of 67108864, 64 meg. If I increase the array size I get the same error as you.
    To get past this, you can increase the heap size at runtime with the option -Xmx###m where ### is the number of megabytes to use for heap.
    ex
    c:/test>java -Xmx128m Memorypublic class Memory
       public static void main(String[] args)
          Runtime.getRuntime().gc();
          long start = Runtime.getRuntime().totalMemory();
          Byte[][][] bytes = new Byte[11][9][25344];
          for(int i = 0; i < 11; i++)
             for(int j = 0; j < 9; j++)
                for(int k = 0; k < 45344; k++)
                   bytes[i][j][k] =
                      new Byte(new Double(Math.random() * 256).byteValue());
          Runtime.getRuntime().gc();
          long end = Runtime.getRuntime().totalMemory();
          System.out.println("memory usage  = " + Long.toString(end - start));
    }

  • Can't open vcf file. "The file may not exist ... Out of memory or system resources"

    Trying to open a vcf file (vCard) from a user.  After double-clicking file, get message:
    Cannot open file: C:\folder\filename.vcf. The file may not exist, you may not have permission to open it, or it may be open in another program. Right-click the folder that contains
    the file, and then click Properties to check your permissions for the folder. Out of memory or system resources. Close some windows or programs and try again.
    I have Outlook 2010 with SP2.
    Similar error, different problem.  Has workaround:
    http://community.office365.com/en-us/f/172/t/198029.aspx
    I turn OFF cached exchange mode.  I double-click the vcf file, it opens fine.
    I turn ON cached exchange mode.  I double-click the vcf file, I get the erorr message again.
    We have hosted Exchange, so we can't turn off cached exchange mode in Outlook.
    Is this a bug?  Anybody know of a fix?
    By the way, if I save one of my contact as a vcf file
    and double-click it, it opens fine.

    Hi,
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Crashing and 'out of memory' issues on new system

    having 'out of memory' errors and crashing while rendering on new FCP system. Here are system specs:
    Two ATI Radeon HD 5770 video cards
    Processor Name: Quad-Core Intel Xeon
    Processor Speed: 2.4 GHz
    Number Of Processors: 2
    Total Number Of Cores: 8
    L2 Cache (per core): 256 KB
    L3 Cache (per processor): 12 MB
    Memory: 16 GB

    Pull one of the video cards.
    FCP hates dual card systems.
    x

Maybe you are looking for

  • SAP NW CE 7.1 EHP1 NWDS Preview Version Installation issue

    I am running into follow error message when trying to install NWDS of SAP NW CE 7.1 EHP1 Preview Version Error Message: Unable to complete action for feature "SAP NetWeaver Developer Studio Java EE" due to errors Error Details: Unable to complete act

  • How do i recover ipod touch screen with usb cable and arrow to itunes

    ipod touch 3 has usb cable and w pointing to iTunes.  Can't get it to recovery or restore

  • Using setForwardURL, is there any way to open the page in a new window?

    I am using a submitButton which has NO Target Frame property. I am programmtically gathering parameters and forwarding to the next page using setForwardURL. This seems like it should be simple but combing through the threads on this, I am rather conf

  • User equivalence check failed in solaris 10

    Hi, i am trying to install oracle clusterware on solaris10. when i executed clusture varification utility , user equivalence test is failed. each node have same username,userid,group id and i configured SSH also using exec /user/bin/ssh-agent /usr/bi

  • F110 clearing

    Hi, I have some vendors of which master data have a customer number and for these vendors customer clearing is acitve. In the F110 prorposal display I need to see the vendor account and customer account balances separately in the first screen without