AppDomain was unloaded - out of memory happened

Hi,
Please help me to resolve this SQL server error - Im getting below error occasionally and sometimes it gets resolved
by itself.
Error:
AppDomain mydatabase.public[runtime].44 was unloaded by escalation policy to ensure the consistency of your application. Out of memory happened while accessing a critical resource. 
System.Threading.ThreadAbortException: Thread was being aborted. System.Threading.ThreadAbortException:     at System.Data.SqlClient.SqlConnection..ctor(String connectionString)    at MsSqlSpatial.DatabaseHelper.get_Connection()   
at TableValuedFunctions.SpatialQuery.Execute(SqlString table_name, SqlString column_name, SqlBytes ewkbMBR, SqlBytes ewkb, SqlString condition, Arguments args, ReaderHandler handler)    at TableValuedFunctions.FilterQuery(SqlString table_name,
SqlString column_name, SqlBytes ewkb)
Server version: SQL Server 2008 R2 SP1 standard  edition - 32 bit
OS: SQL Server 2003 enterprice SP2
Please guide me how to resolve this.
Thank you
Sathish

Hello,
First upgrade your SQL Server to SP2 ASAP.
This cannot be necessarily a issue.If you see this message few times in errorlog you can ignore it.If this message comes very frequently it can be issue.But in your case since you got OOM error .Its seems CLR hit VAS limitation.
Now First thing I would ask are you using CLR .You can check CLR enabled value in sp_configure.In 32 bit system CLR takes memory otside form buffer pool and since VAS region is limited to 2 G( unless you use /3 G switch) this can cause issue.
Permanent solution to this is migrating your server to 64 bit to make VAS 8 TB.Temporary solution would be to look at queries fetching data sets using CLR.Datasets utilizes heavy memory.
Unfortunately I have not worked on CLR.
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

Similar Messages

  • Out of memory prblem with threads

    class B implements Runnable
    If in class A I do
    while(true)
    B b = new B();
    b.run()
    It can create 10000 instances of B, with no problem. Since b is in the scope of the while, the old instance is cleaned up by the garbage collector every loop.
    But if I do:
    while(true)
    B b = new B();
    Thread t = new Thread(b);
    t.start();
    after around 400 loops I get out of memory.
    If I add a finalize() method to B , I see it never called until the out of memory happens. This means the instances of the thread are not cleaned by the garbage collector.
    Does anyone know why this is happening and what I can do to solve it?

    An object is collectable if no path extists to it. One set of path is from the stack frames of all live threads. As each thread effectively holds a reference to itself, it is not suprising that the Thread instances aren't collected until the threads all end. Your rapid loop is obviously creating threads faster than they can complete (you don't show us what they are doing) so running out of memory is guaranteed.

  • Out of memory error when writing large file

    I have the piece of code below which works fine for writing small files, but when it encounters much larger files (>80M), the jvm throws an out of memory error.
    I believe it has something to do with the Stream classes. If I were to replace my PrintStream reference with the System.out object (which is commented out below), then it runs fine.
    Anyone else encountered this before?
         print = new PrintStream(new FileOutputStream(new File(a_persistDir, getCacheFilename()),
                                                                false));
    //      print = System.out;
              for(Iterator strings = m_lookupTable.keySet().iterator(); strings.hasNext(); ) {
                   StringBuffer sb = new StringBuffer();
                   String string = (String) strings.next();
                   String id = string;
                   sb.append(string).append(KEY_VALUE_SEPARATOR);
                   Collection ids = (Collection) m_lookupTable.get(id);
                   for(Iterator idsIter = ids.iterator(); idsIter.hasNext();) {
                        IBlockingResult blockingResult = (IBlockingResult) idsIter.next();
                        sb.append(blockingResult.getId()).append(VALUE_SEPARATOR);
                   print.println(sb.toString());
                   print.flush();
    } catch (IOException e) {
    } finally {
         if( print != null )
              print.close();
    }

    Yes, my first code would just print the strings as I got them. But it was running out of memory then as well. I thought of constructing a StringBuffer first because I was afraid that the PrintStream wasn't allocating the memory correctly.
    I've also tried flushing the PrintStream after every line is written but I still run into trouble.

  • XSOMParser throwing out of memory error

    Hello,
    Currently we are using XSOM parser with DomAnnotationParserFactory to parse XSD file. For small files it is working fine. However is was throwing out of memory error while parsing 9MB file. We could understood reason behind this. Is there any way to resolve this issue?
    Code :
         XSOMParser parser = new XSOMParser();
    parser.setAnnotationParser(new DomAnnotationParserFactory());
    XSSchemaSet schemaSet = null;
    XSSchema xsSchema = null;
    parser.parse(configFilePath);
    Here we are getting error on parser.parse() method. (using 128 MB heap memory using -Xrs -Xmx128m).
    Stack Trace :
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
         at oracle.xml.parser.v2.XMLDocument.xdkIncCurrentId(XMLDocument.java:3020)
         at oracle.xml.parser.v2.XMLNode.xdkInit(XMLNode.java:2758)
         at oracle.xml.parser.v2.XMLNode.<init>(XMLNode.java:423)
         at oracle.xml.parser.v2.XMLNSNode.<init>(XMLNSNode.java:144)
         at oracle.xml.parser.v2.XMLElement.<init>(XMLElement.java:373)
         at oracle.xml.parser.v2.XMLDocument.createNodeFromType(XMLDocument.java:2865)
         at oracle.xml.parser.v2.XMLDocument.createElement(XMLDocument.java:1896)
         at oracle.xml.parser.v2.DocumentBuilder.startElement(DocumentBuilder.java:224)
         at oracle.xml.parser.v2.XMLElement.reportStartElement(XMLElement.java:3188)
         at oracle.xml.parser.v2.XMLElement.reportSAXEvents(XMLElement.java:2164)
         at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:337)
         at oracle.xml.jaxp.JXTransformerHandler.endDocument(JXTransformerHandler.java:141)
         at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:267)
         at org.xml.sax.helpers.XMLFilterImpl.endElement(Unknown Source)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1257)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:314)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)
         at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
         at com.sun.xml.xsom.parser.JAXPParser.parse(JAXPParser.java:79)
         at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:298)
         at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:87)
         at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:147)
         at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:136)
         at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:129)
         at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:122)
    Please let me know if anyone has comment on this.
    Also let me know if there any other parser which handles large input files efficiently.

    Hello,
    Currently we are using XSOM parser with DomAnnotationParserFactory to parse XSD file. For small files it is working fine. However is was throwing out of memory error while parsing 9MB file. We could understood reason behind this. Is there any way to resolve this issue?
    Code :
         XSOMParser parser = new XSOMParser();
    parser.setAnnotationParser(new DomAnnotationParserFactory());
    XSSchemaSet schemaSet = null;
    XSSchema xsSchema = null;
    parser.parse(configFilePath);
    Here we are getting error on parser.parse() method. (using 128 MB heap memory using -Xrs -Xmx128m).
    Stack Trace :
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
         at oracle.xml.parser.v2.XMLDocument.xdkIncCurrentId(XMLDocument.java:3020)
         at oracle.xml.parser.v2.XMLNode.xdkInit(XMLNode.java:2758)
         at oracle.xml.parser.v2.XMLNode.<init>(XMLNode.java:423)
         at oracle.xml.parser.v2.XMLNSNode.<init>(XMLNSNode.java:144)
         at oracle.xml.parser.v2.XMLElement.<init>(XMLElement.java:373)
         at oracle.xml.parser.v2.XMLDocument.createNodeFromType(XMLDocument.java:2865)
         at oracle.xml.parser.v2.XMLDocument.createElement(XMLDocument.java:1896)
         at oracle.xml.parser.v2.DocumentBuilder.startElement(DocumentBuilder.java:224)
         at oracle.xml.parser.v2.XMLElement.reportStartElement(XMLElement.java:3188)
         at oracle.xml.parser.v2.XMLElement.reportSAXEvents(XMLElement.java:2164)
         at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:337)
         at oracle.xml.jaxp.JXTransformerHandler.endDocument(JXTransformerHandler.java:141)
         at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:267)
         at org.xml.sax.helpers.XMLFilterImpl.endElement(Unknown Source)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1257)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:314)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)
         at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
         at com.sun.xml.xsom.parser.JAXPParser.parse(JAXPParser.java:79)
         at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:298)
         at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:87)
         at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:147)
         at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:136)
         at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:129)
         at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:122)
    Please let me know if anyone has comment on this.
    Also let me know if there any other parser which handles large input files efficiently.

  • My pictures went blank (out of memory?)

    I was gettinginto a project and was told by an ae message that I was running out of memory. Now most of my imported imeges are white. thank goodness the properties and animations I set are still there (I can see the frames). How do I get the images back without getting more memory. Can I proxy them all? I tried using half and third resolution but that didnt work. I am guessing the answer will be to cut up th eproject in pieces but any suggestions that will help me avoid that would be great!

    dansch37 wrote:
    it was a blessing in disguise because I cleaned up the document very well to troubleshoot.
    Hehe, yes, sometimes we all have to be reminded "to bring out the garbage" Glad it worked out and was in fact so simple to fix.
    Mylenium

  • Displaying images - out of memory  (was Loading imagens - out of memory")

    Well guys,
    this is REALLY an intriguing issue. Ok, the subject of the post was not precise; I do not want to load the images. I just want to display them, in batches, one batch at a time. My applet loads the last batch of images available and displays them like a "mosaic". After a cycle (a batch of images) I set the image descriptors (an array of them) to null and explicitly call the garbage collector.
    I made some tests varying the number of times I call System.gc() with no effective results: "Out of memory" in java console always happens, sooner or later.
    I've also tried to limit cache size in control panel "java plug-in". This seems to be a nonsense recommendation I�ve seen in the Internet. The memory growing process is IE, not JVM.
    Also tried to disable caching with <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> clause in the page that contains the applet. No results at all.
    Despite of all my efforts trying to limit my "memory voracious" applet, task manager reports an unlimited growing memory for IE and, after some time, the applet locks, with java console reporting "out of memory".
    I have found no effective recommendations/solutions in the Internet.. Only speculations.
    The question is simple (I do not expect a simple answer :-)) : how do I limit IE memory consumption?
    Any help will be appreciated.
    l.a.

    Actually, i have the same problem...
    Im using an applet that generates me a Chart.
    Each time i generate a Chart, IE's memory goes up like 10mb and the applets fails running when it reaches about 130MB
    the odd thing is, is that even when i RELOAD the page, the memory does not go down... its as if the applet was never unloading no matter what you do, except reseting IE...

  • I was kicked out of my email (rcn) and can't get back in. It happened when I blocked all permissions on an ad in the inbox page. rcn said it's a mozilla issue.

    I had removed a pop up ad from my email inbox page and tried to do the same to another one on the opposite side of the page. I think this ad was not a pop up but part of the inbox page. As I did to the pop up ad, I right clicked on it, and then clicked on 'View Page Info'. I then went to the 'Permissions' window where there were 7 categories, all with the 'use default' option checked. I unchecked all of them and checked 'Blocked' for all 7.
    As soon as I closed the window, I was thrown out of my inbox and was sent back to the log-in page for my email. When I went to log back in, I was unable to. I am stuck on the log-in page and it won't let me access my inbox. I called RCN, my provider, who was able to get in right away. I then used my Internet Explorer browser and was able to get into my email inbox perfectly fine. The 'tech' at rcn said it has something to do with Mozilla and tried to get me to reset it but warned me that I will lose all settings. I am hesitant to do that and I would so appreciate you fine folks at Mozilla to tell me what happened and how to fix it.
    Thank you.

    You can undo your permission changes. Probably the most relevant one is cookies. Try one or both of these methods:
    (1) Page Info > Permissions tab
    While viewing a page on the site:
    * right-click and choose View Page Info > Permissions
    * Alt+t (open the classic Tools menu) > Page Info > Permissions
    (2) about:permissions
    In a new tab, type or paste '''about:permissions''' and press Enter. Allow a few moments for the list on the left to populate, as this information needs to be extracted from a database.
    Then type or paste ''rcn''' in the search box above the list to filter it to the most relevant domains. When you highlight a domain, you can adjust its permissions in the right pane.
    Any luck?

  • "There was an error processing a page. Out of memory." Adobe Acrobat 9 Pro-Please Help!

    "There was an error processing a page. Out of memory." Adobe Acrobat 9 Pro I had this problem with my last computer over two years ago which was obviously an older version of windows and acrobat and had found a way to solve it but like I said it was an older version and was 2 years ago so I don’t remember how to fix it. I’ve looked through many forums and emptied my temp folder I’ve uninstalled and reinstalled the software I’ve turned off my anti-virus I don't have adobe reader because I know this causes comflicts also and have tried so much more and I’m still having issues with about half my pdf files I cannot figure it out. I use pdf files many times a day and this is really hindering my work so please please please if anyone else has experienced this or knows how to fix it that would be great thank you!!! I’m somewhat computer savvy but not completely so if you cloud please explain to me in slightly less tech terms that would be great too.

    Assuming your disk is not too full, and your virtual memory settings are normal, this is not caused by software clashes, TEMP folders nor fixed by reinstalls. It is Acrobat _actually_ running out of memory, or running out of something else it has a fixed supply of.
    1. Are you using any plug-ins to process files?
    2. After you get this error on a particular file, restart Acrobat. Does the file now open OK?

  • HT1933 I make a purhase on March 6 at 11:33 Order number MHOXX3TK9J for $1.99 and my credit card was charged $20.00 can you please help me find out why this happened

    I made a purchase on itunes on March 6 at 11:33 order umber MHOXX3TK9J for 1.99 and my credit card was charged $20.00 please help me find out why this happened.

    Contact iTunes support at the link below.
    https://ssl.apple.com/emea/support/itunes/contact.html

  • I've a few issues, my old computer was out of memory and i changed to a new one which was already on another itunes account.  When i upgraded to os5 my library has gone it has synced with the new computer - how do i restore the old ipad information?  ple

    I've a few issues, my old computer was out of memory.  I changed to a new one which already had another itunes account (for my business)  when i upgraded to os5 my library has dissappeared as it has syncd with the new computer.  Is there any way i can restore the information previously from my ipad?  really appreciate any advice thanx in advance

    Lynda-
    If you still have the old computer, you should be able to connect the iPad, run iTunes and restore from a backup from a previous sync.  Now that you have it updated, you will not need to do that again.
    Fred

  • Bridge: when I want to export from .psd to .jpeg the export window opens but the target (Ziel) window is empty, thus no target can be selected. This happens since a brigde shut down after "out of memory"

    Bridge: when I want to export from .psd to .jpeg the export window opens but the target (Ziel) window is empty, thus no target can be selected. This happens since a brigde shut down after "out of memory"
    Felix

    Not quite following your terminology.
    Möchten Sie es vielleicht mal auf Deutsch versuchen?

  • We updated our phones and now we are running out of memory.  Never happened before the update and we have not added anything new.  We have hardly anything on our phones.

    We updated our phones and now we are running out of memory.  Never happened before the update and we have not added anything new.  We have hardly anything on our phones.  Why am I having to remove stuff that has always been on my phone. 

    Thanks for the reply TJBUSMC1973. 
    I guess that means back to the shop.  Ridiculous to sell a phone that can't handle the new iOS more efficiently (or vice versa).  I can't imagine anyone going near a 5C now (I have a feeling mine had already been used and taken back once and sold as new at O2).
    Charlie

  • HT203164 I used to be able to print labels for burned CDs with the cover being the playlist name and the other side the song titles...now the titles print out compacted, overlapping each other and illegible. I thought it was the printer but it happened w/

    I used to be able to print labels for burned CDs with the cover being the playlist name and the other side the song titles...now the titles print out compacted, overlapping each other and illegible. I thought it was the printer but it happened w/1 other printer as well,  which I used before for this exact thing w/no problem.

    Try cleaning the print head with rubbing alcohol wipe, then replace your print head. Keep pushing the Ok. 
    Go to this link and HP shows you how.
    support.hp.com/us-en/document/c01643079
    Lucky for me it worked!

  • I was almost done my project. I hadn't published it anywhere. Then, the next day, the clips from my timeline went all grey and there was an "out of date" icon. My project was lost. What happened? It's not the first time it's done that!

    I was almost done my project. I hadn't published it anywhere. Then, the next day, the clips from my timeline went all grey and there was an "out of date" icon. My project was lost. What happened? It's not the first time it's done that!

    You can undo your permission changes. Probably the most relevant one is cookies. Try one or both of these methods:
    (1) Page Info > Permissions tab
    While viewing a page on the site:
    * right-click and choose View Page Info > Permissions
    * Alt+t (open the classic Tools menu) > Page Info > Permissions
    (2) about:permissions
    In a new tab, type or paste '''about:permissions''' and press Enter. Allow a few moments for the list on the left to populate, as this information needs to be extracted from a database.
    Then type or paste ''rcn''' in the search box above the list to filter it to the most relevant domains. When you highlight a domain, you can adjust its permissions in the right pane.
    Any luck?

  • I lost an online application I was filling out, should I restore to before that time? what happens

    I was filling out an online applicatioln and I lost it by closing my laptop.  Should I restore back to before I did that or did I lose it forever?

    Only if like a few online applications it saved itself, often to let people pause, stop, and go back later to finish such as when they need to gather more information, lengthy applications.
    And if there is ability to save current state of the application.
    It may even be in your web history and cache but will have timed-out.

Maybe you are looking for

  • Configuring Servlets in JavaWebServer2.0

    I have installed JavaWebServer2.0 on Windows2000 Professional. I am putting my servlet class files in servlets dir. of JWS. But I am not able to access my servlets from browser. It is giving 404 error.file not found. Initially I have done the same th

  • Reminders linked to yahoo! email account:  Why?

    Why did my Reminders app link to my YMail account automatically?  How do I change this?  Is this an issue for all iOS5 iPhone users?  The iPhone Reminders and the pull down menu are so beautiful, I'm just trying to make them perfect, so thanks for an

  • RoboHelp 7 TOC

    How do I set up the Table of contents so the << and >> buttons are available and also the Back button on all inquiries?

  • ITunes unable to import music CD's

    I am having a lot of trouble with iTunes 7.0.2 importing songs from CD's. I am not sure if this is an iTunes problem or a disk reader problem, but I suspect iTunes because: 1- it never happened with earlier versions of iTunes 2- I can read data CD's

  • When is an Alias created?

    While helping a friend I found a folder full of aliases of jpgs. She thought they were the real images but in fact the real images were not on her hard drive. I know an alias is created when you drag a file to a CD to burn but these were in a folder