out-of-memory

Out of Memory exception in SQL 2008

限于喜欢 提交于 2019-12-21 16:56:14
问题 Regarding the Out of Memory exception in SQL Server 2008: When I execute large query which inserts thousands of rows into a table, The exception which occurs when executing this is "System.OutOfMemoryException". 回答1: According to a really pretty good Microsoft knowledge base article (linked here) this caused by a query which requires more RAM allocated than is available. In other words, you need more RAM, or you need to redesign the query to break up the process into smaller chunks. This is a

Objects not being finalized and Finalizer thread not doing anything

大憨熊 提交于 2019-12-21 12:11:23
问题 On our server, we started to have problems with OutOfMemoryError . We analyzed the heap dumps using Eclipse Memory Analysis, and found, that many objects were held to do finalization (about 2/3 of the heap): We found, that it could be some finalize() method blocking. I found several bug reports of this problem (here or here), and it always manifested itself in the Finalizer thread stack, that it was blocked somewhere. But in our case, this thread was WAITING: "Finalizer" daemon prio=10 tid

Memory issues in fragments showing images

喜欢而已 提交于 2019-12-21 09:05:11
问题 I am using fragments to show images/pages.I have one Activity(Main) which contains all the fragments. package com.example.hscroll.demo; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; import android.support.v4.app.ListFragment; import android.support.v4.view.ViewPager; import

ViewPager with ImageView gives “java.lang.OutOfMemoryError: bitmap size exceeds VM budget”

自闭症网瘾萝莉.ら 提交于 2019-12-21 06:45:17
问题 I made a ViewPager to display images. When I advance some pages I get an java.lang.OutOfMemoryError: bitmap size exceeds VM budget error. There are more questions about this issue but I did not find the solution ( BitMap.Recycle , System.gc() etc). If you have a suggestion or solution please let me know! The PNG's are 628KB, 478KB, 587KB, 132KB, 139KB, 149KB, 585KB (crash). If you have an other solution (scroll images like pages) for me let met know! My code: package nl.ipear.vngmagazine;

OutOfMemory while using AsyncTask and a large image

China☆狼群 提交于 2019-12-21 06:39:31
问题 The class below parses an rss feed and draws images/text on the screen using AsyncTask. I was using a nasa rss feed. Last night I switched to the same feed but with a larger image. Now when I try to press the refresh button it runs out of memory. How can I handle this? I know it's just because the image is so large (roughly 6mb, compared to 36kb of the other image) and I've read that it being static doesn't help either. I don't see any way around it being static though as I need to retrieve

Android JAVA - Service return OutOfMemoryError exception after some while

扶醉桌前 提交于 2019-12-21 06:27:25
问题 I am developing my first android app. I have been created a Service class which role is to check if any new information on an external webpage. The HTTP request and service work as i should, but after a while I get these OutOfMemoryError . Are someone able to see where the Service gather all that memory? Error message 1. java.lang.OutOfMemoryError: pthread_create (stack size 16384 bytes) failed: Try again at java.lang.VMThread.create(Native Method) at java.lang.Thread.start(Thread.java:1029)

Android JAVA - Service return OutOfMemoryError exception after some while

丶灬走出姿态 提交于 2019-12-21 06:26:23
问题 I am developing my first android app. I have been created a Service class which role is to check if any new information on an external webpage. The HTTP request and service work as i should, but after a while I get these OutOfMemoryError . Are someone able to see where the Service gather all that memory? Error message 1. java.lang.OutOfMemoryError: pthread_create (stack size 16384 bytes) failed: Try again at java.lang.VMThread.create(Native Method) at java.lang.Thread.start(Thread.java:1029)

How to serialize big objects in .NET? (OutOfMemory Exceptions)

非 Y 不嫁゛ 提交于 2019-12-21 06:20:48
问题 I'm using serialization for "save" feature in my application. But when the data is too big (15+ MB) I'm starting to get OutOfMemory exceptions. I've got so many objects and they are connected with other little objects, I think this is causing too much processing power and data held in the memory. My code is based on this, almost same: http://www.codeproject.com/KB/vb/TreeViewDataAccess.aspx Edit : I don't use custom serialization, it's all done by [Serialization] attributes. Excluding some

Loading 26MB text data from database consume JVM heap of 258MB

二次信任 提交于 2019-12-21 05:22:08
问题 An app (Spring, JPA Hibernate, Sybase 12, Webapp) when run locally on startup consumes 40MB of the 256MB heap space based on VisualVM. When I trigger a search that returns 70,000+ rows (text data no blobs) the heap space graph shoots up to 256MB and throws out of memory. I have resolved this by using setMaxResults(limit). However, when I queried the same data, copy-pasted to a text file and saved to the filesystem, I can see that the size is only 26MB worth of text. So in effect, 216MB(from

Solr Filter Cache (FastLRUCache) takes too much memory and results in out of memory?

一曲冷凌霜 提交于 2019-12-21 04:55:23
问题 I have a Solr setup. One master and two slaves for replication. We have about 70 Millions documents in index. The slaves have 16 GBs of RAM. 10GBs for the OS and HD, 6GBs for Solr. But from time to time, the slaves are out of memory. When we downloaded the dump file just before it was out of memory, we could see that the class : org.apache.solr.util.ConcurrentLRUCache$Stats @ 0x6eac8fb88 is using up to 5Gb of memory. We are using filter caches extensively, it has a 93% hit ratio. And here's