out-of-memory

Why is my android app using so much memory at startup

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-03 20:28:14
问题 I have been looking into a memory leak issue for a while. I found a cover flow on the internet from http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html Now I was under the impression this app was causing my outofmemory issues, and its still possible that it has something to do with it. However, I have deleted everything from my application except the splash screen. There are no other activities. and it does Nothing...... The initial intent loads the Splash Screen activity. My

.NET out of memory troubleshooting

落爺英雄遲暮 提交于 2020-01-03 18:53:07
问题 After reading a few enlightening articles about memory in the .NET technology, Out of Memory does not refer to physical memory, 597499. I thought I understood why a C# app would throw an out of memory exception -- until I started experimenting with two servers-- both are having 2.5 gigs of ram, windows server 2003 and identical programs running. The only significant difference between the two being one has 7% hard drive storage left and the other more than 50%. The server with 7% storage

OutOfMemoryException - is this a false alarm

。_饼干妹妹 提交于 2020-01-03 16:46:14
问题 My dump file contains OutOfMemoryException but all the object fields seem to be null. Is it just a false alarm or is there someway to know about this exception? 0:052> !do 000000027fff10e8 The version of SOS does not match the version of CLR you are debugging. Please load the matching version of SOS for the version of CLR you are debugging. CLR Version: 4.0.30319.18449 SOS Version: 4.0.30319.34011 Name: System.OutOfMemoryException MethodTable: 000007fcb5476920 EEClass: 000007fcb4f3cd88 Size:

java.lang.OutOfMemoryError: Java heap space while downloading a large file from an URL

橙三吉。 提交于 2020-01-03 04:51:10
问题 I want to download a file from an URL. The file size is 564.31MB. I have no clue what error is going on here. Also, I'm wondering if my code is the correct way to download a file from an URL. If there is a better way, please tell me in detail why it is better than this. Thanks. import org.apache.commons.io.FilenameUtils; import java.io.*; import java.net.MalformedURLException; import java.net.URL; /** * Created by lukas on 6/30/16. */ public class Main { public static void main(String[] args)

asp.net uploading big files: throws System.OutOfMemoryException

醉酒当歌 提交于 2020-01-03 04:19:05
问题 I'd like to upload big files via ASP.NET to WCF service. Until 100 MB is not a problem, my configuration works perfectly, but above 100 MB it throws System.OutOfMemoryException. The uploading method works with FileStream, but before that, I save the file to a temporary folder. Not sure if this is the problem, or something else. I add the code of my controller, which takes care of calling the wcf service. [HttpPost] public ActionResult Upload() { if (Request.Files.Count > 0) { var file =

Spark: Incremental collect() to a partition causes OutOfMemory in Heap

岁酱吖の 提交于 2020-01-03 02:10:55
问题 I have a following code. Essentially I need to print RDD to a console, so I am collecting large RDD in smaller chunks by collecting it per partition. This is to avoid collecting entire RDD at once. When monitoring the heap and GC log, it seems like nothing is ever being GC'd. Heap keeps on growing until it hits OutOfMemory error. If my understanding is correct, in below once println statement is executed for collected RDDs, they won't be needed so it is safe to GC, but that's not what I see

Dealing with large bitmap onPictureTaken android

女生的网名这么多〃 提交于 2020-01-02 23:50:34
问题 My app is an OCR app base on Tesseract. It will do OCR task from camera picture. Users can take many pictures and put them into an OCR queue. To get more accuracy, I want to keep high quality image (I choose min size is 1024 x 768 (maybe larger in future), JPEG, 100% quality). When users take many pictures, there are three things to do: Save the image data byte[] to file and correct EXIF. Correct the image orientation base on device's orientation. I know there are some answers that said the

Python Pandas Merge Causing Memory Overflow

末鹿安然 提交于 2020-01-02 01:12:10
问题 I'm new to Pandas and am trying to merge a few subsets of data. I'm giving a specific case where this happens, but the question is general: How/why is it happening and how can I work around it? The data I load is around 85 Megs or so but I often watch my python session run up close to 10 gigs of memory usage then give a memory error. I have no idea why this happens, but it's killing me as I can't even get started looking at the data the way I want to. Here's what I've done: Importing the Main

Safe maximum amount of nodes in the DOM? [closed]

巧了我就是萌 提交于 2020-01-02 01:09:13
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . For a web application, given the available memory in a target mobile device 1 running a target mobile browser 2 , how can one estimate the maximum number of DOM nodes, including text nodes, that can be generated via HTML or DHTML? How can one calculate the estimate before Failure

OutOfMemoryError: Java Heap Space. How can I fix this error that happens in a recursive method?

牧云@^-^@ 提交于 2020-01-01 19:02:47
问题 I have a Java application that parses pdf files in a directory and its subdirectories and creates a database using the information found in the files. Everything was fine when I was using the program on around 900 files or so (which create a SQLite database with multiple tables, some of wihch contain 150k rows). Now I'm trying to run my program on a larger set of data (around 2000 files) and at some point I get "OutOfMemoryError: Java Heap space". I changed the following line in my jdev.conf