out-of-memory

Google API MapView OutOfMemory after setting the MapView to specific width and height

冷暖自知 提交于 2019-12-08 02:01:36
问题 i searched for this Problem, and i found some stackoverflow Questions about the same but without any idea how to resolve the problem. I created an activity and i want to add a really small mapview (like 140w X 70h). It is only to show a small preview of where the place is. When you click this little mapview you get a new inflate to a new activity with the hole map. MapView: <com.google.android.maps.MapView android:id="@+id/mapview" android:layout_width="140dip" android:layout_height="80dip"

OutOfMemoryError when parsing incorrect input in ANTLR

故事扮演 提交于 2019-12-08 01:54:33
问题 Actually this issue is related with my previous question Catching ANTLR's NoViableAltException in Java and ANTLRWorks Debugger, but I decided to split them because of different symptoms. The issue is about feeding to ANTLR input text, which contains unknown tokens. Consider for example, that our grammar doesn't known anything about tokens which start with @ symbol. If we will try to feed such text to ANTLRWorks interpreter, we will receive NoViableAltException in result graph. But if we will

Visual Studio diagnostic tools not displaying process memory

你说的曾经没有我的故事 提交于 2019-12-08 01:49:38
问题 I have a VB.NET app (with C# libraries) which is consuming large amounts of memory over time. Ultimately the application runs out of memory. I am cautious about using the term leaking because the GC shouldn't allow a memory leak, but perhaps there is a large .NET object somewhere. If so I need to identify it. However I do have a reference to a 3rd party ActiveX control library (.ocx) of which I use some controls and make numerous calls retrieving laser beam profile data. Memory usage

Best way to avoid out of memory exception in application

安稳与你 提交于 2019-12-08 01:49:13
问题 We are designing a Stress Test Application which will send mass HTTP requests of size "1 MB" to a particular Web Service. To achieve stress, we are using multiple threads in the application. Structure is something like we have X EnqueueThreads which will create the HTTPRequest data and they will add it them to the queue. And the Y WorkerThreads will dequeue the requests and they will submit to web service. All requests are aysnchronous. Now the problem here is, Enqueue threads are working

Virtual and Physical Memory / OutOfMemoryException

痴心易碎 提交于 2019-12-07 23:38:47
问题 I am working on a 64-bit .Net Windows Service application that essentially loads up a bunch of data for processing. While performing data volume testing, we were able to overwhelm the process and it threw an OutOfMemoryException (I do not have any performance statistics on the process when it failed.) I have a hard time believing that the process requested a chunk of memory that would have exceeded the allowable address space for the process since its running on a 64-bit machine. I do know

Best way to handle huge fields with GSON JsonReader

喜欢而已 提交于 2019-12-07 23:12:05
问题 I'm getting a java.lang.OutOfMemoryError: Java heap space even with GSON Streaming. {"result":"OK","base64":"JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC...."} base64 can be up to 200Mb long. GSON is taking much more memory than that, (3GB) When I try to store the base64 in a variable I get a: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2367) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130) at java.lang

OutOfMemoryException while trying to send large json data to server in android?

喜夏-厌秋 提交于 2019-12-07 19:54:59
问题 I am trying to send multiple Json string[each 1 MB] at a time to PHP Server. When i tried to send 10 records its working fine. But if it exceeds 20 records it says OutOfMemoryException . I seen that android memory size limit t0 15MB - 16MB. But haven't got any clue how to resolve this, I am using the below code to send multiple records at a time. /** Upload Data*/ private void submitUploadData(String url, Map<String, String> param) throws IOException { URL siteUrl; try { siteUrl = new URL(url

Android Bitmap OutOfMemoryError [duplicate]

泄露秘密 提交于 2019-12-07 19:25:45
This question already has answers here : Android: BitmapFactory.decodeStream() out of memory with a 400KB file with 2MB free heap (7 answers) Closed 6 years ago . I'm having an OutOfMemoryError in my VSD220 (It's a 22" Android based All in one) for (ImageView img : listImages) { System.gc(); Bitmap myBitmap = BitmapFactory.decodeFile(path); img.setImageBitmap(myBitmap); img.setOnClickListener(this); } I really don't know what to do, because this image is below the maximum resolution. The image size is something about (1000x1000), and the display it's 1920x1080. Any help? (That foreach cycle is

Best way of writing Big JSON files avoiding OutOfMemory issues

允我心安 提交于 2019-12-07 18:59:36
问题 First, please note today is my first day with GSON . I am trying to write a Json file using GSON library. I have thousands of JsonObjects inside an ArrayList . When the Json file is written, it should look like similar to this. [ { "hash_index": "00102x05h06l0aj0dw", "body": "Who's signing up for Obamacare?", "_type": "ArticleItem", "title": "Who's signing up for Obamacare? - Jan. 13, 2014", "source": "money.cnn.com", "primary_key": 0, "last_crawl_date": "2014-01-14", "url": "http://money.cnn

C# OutOfMemoryException - How to track down the culprit

烂漫一生 提交于 2019-12-07 18:20:06
问题 I have a C#/WPF application that is meant to run on a small panel PC with 512 MB of memory. If it is left to run, an OutOfMemoryException is eventually thrown. This can take 12+ hours up to 2 days to happen. Using both ProcessExplorer and .NET Memory Profiler, I see no evidence that the memory used by my application is growing over time. There is just a typical pattern of a little growth followed by garbage collection. I've added code to print out all running processes and their memory