out-of-memory

Delphi - Check if memory is being released “on time”

两盒软妹~` 提交于 2019-12-22 05:06:40
问题 I have a GUI application that doesn't have a memory leak. I have confirmed this with FastMM over numerous test cycles. On one particular client's server, I get random crashes. The server specs are well in line with that of our other clients (and we have actually tried on various hardware), and so are the files used by the program (as far as I can tell, There is some super-sensitive material that I can't get access to, but there doesn't seem to be anything out of the ordinary there). I have

OutOfMemoryError calling XmlSerializer.Deserialize() - not related to XML size!

折月煮酒 提交于 2019-12-22 04:36:09
问题 This is a really crazy bug. The following is throwing an OutOfMemoryException , for XML snippits that are very short and simple (e.g., <ABC def='123'/> ): public static T DeserializeXmlNode<T>(XmlNode node) { try { return (T)new XmlSerializer(typeof(T)) .Deserialize(new XmlNodeReader(node)); } catch (Exception ex) { throw; // just for catching a breakpoint. } } I read in this MSDN article that if I were using XmlSerializer with additional parameters in the constructor, I'd end up generating

OutOfMemoryError calling XmlSerializer.Deserialize() - not related to XML size!

孤者浪人 提交于 2019-12-22 04:36:08
问题 This is a really crazy bug. The following is throwing an OutOfMemoryException , for XML snippits that are very short and simple (e.g., <ABC def='123'/> ): public static T DeserializeXmlNode<T>(XmlNode node) { try { return (T)new XmlSerializer(typeof(T)) .Deserialize(new XmlNodeReader(node)); } catch (Exception ex) { throw; // just for catching a breakpoint. } } I read in this MSDN article that if I were using XmlSerializer with additional parameters in the constructor, I'd end up generating

Can't set memory settings for `sbt start`

余生颓废 提交于 2019-12-22 04:12:28
问题 I'm trying to run sbt start in a Play Framework application written in Scala, on a machine that is an ec2 t2.micro instance on AWS. But i can't because There is insufficient memory for the Java Runtime Environment to continue. The machine has 1GB of memory, but in practice 930MB of free memory to use while running the remaining of OS processes. It is Ubuntu Server 14.04 LTS. The app is small, cute. Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000d5550000,

How to increase heap size on Android 2.3 (Gingerbread)?

北城余情 提交于 2019-12-21 23:01:04
问题 I am getting an OutOfMemoryError when I try to create a String larger than 4MB using StringBuilder.append() . As far as I know, StringBuilder doesn't have any limitations regarding size and so doesn't String . So I searched for "how to increase Android heap size" and as far as I could conclude from this answer and this answer, Gingerbread is the only version in which you have no way of dealing with the heap size, since for earlier versions you use the VMRuntime class and for newer versions

Why does this Pig UDF Result in an “Error: Java heap space” Given that I am Spilling the DataBag to Disk?

…衆ロ難τιáo~ 提交于 2019-12-21 22:52:46
问题 Here is my UDF: public DataBag exec(Tuple input) throws IOException { Aggregate aggregatedOutput = null; int spillCount = 0; DataBag outputBag = BagFactory.newDefaultBag(); DataBag values = (DataBag)input.get(0); for (Iterator<Tuple> iterator = values.iterator(); iterator.hasNext();) { Tuple tuple = iterator.next(); //spillCount++; ... if (some condition regarding current input tuple){ //do something to aggregatedOutput with information from input tuple } else { //Because input tuple does not

Why am I getting an Out of Memory Error doing ASP .NET Excel Interop?

我的梦境 提交于 2019-12-21 21:26:33
问题 This was working..and I moved the disposal code to the finally block, and now it fails every time. I have a test spreadsheet with 4 records, 6 columns long. Here is the code I'm using to bring it in. This is ASP .Net 3.5 on IIS 5 (my pc) and on IIS 6 (web server). It blows up on the line right before the catch: "values = (object[,])range.Value2;" with the following error: 11/2/2009 8:47:43 AM :: Not enough storage is available to complete this operation. (Exception from HRESULT: 0x8007000E (E

android createBitmap OOM when ((freeMemory > bitmapSize) && (nativeFreeHeap < bitmap size))

一世执手 提交于 2019-12-21 19:58:25
问题 On Android 2.2, the following program produces an OOM. In summary, the program does the following: Allocates a big array that requires native heap to grow close to its maximum size. Garbage collects the array. Attempts to create a bitmap of size larger than the remaining native free heap. Why does this fail with an OOM? It's as if the native heap will only allocate memory for bitmaps in memory previously unallocated. The output appears below the program. Thanks in advance. public class

android - Out of memory Exception

南笙酒味 提交于 2019-12-21 19:44:07
问题 I develop one android app for book read. The Book pages and audios are download from Amazon Bucket. After downloading it stores on SD Card. I place to two button for next and previous pages. When I display pages It gives me Out of Memory Exception. 11-03 10:59:39.199: E/AndroidRuntime(13566): FATAL EXCEPTION: main 11-03 10:59:39.199: E/AndroidRuntime(13566): java.lang.OutOfMemoryError 11-03 10:59:39.199: E/AndroidRuntime(13566): at android.graphics.BitmapFactory.nativeDecodeStream(Native

Memory optimized OrderBy and Take?

走远了吗. 提交于 2019-12-21 17:12:14
问题 I have 9 GB of data, and I want only 10 rows. When I do: data.OrderBy(datum => datum.Column1) .Take(10) .ToArray(); I get an OutOfMemoryException . I would like to use an OrderByAndTake method, optimized for lower memory consumption. It's easy to write, but I guess someone already did. Where can I find it. Edit : It's Linq-to-objects. The data comes from a file. Each row can be discarded if its value for Column1 is smaller than the current list of 10 biggest values. 回答1: I'm assuming you're