out-of-memory

Recycle ImageViews to avoid OutOfMemoryError

喜欢而已 提交于 2019-12-24 06:00:31
问题 In some phones (especially Samsungs), the application gives an error of OutOfMemory. I use a ViewFlipper with 4 ImageViews which they are shown in a tutorial. I have found no way to remedy the error or recycle imageviews. This is the method that manages the ViewFlipper: private void changeBackground(int position) { switch (position) { case 1: mViewFlipper.setDisplayedChild(1); mViewFlipper.setInAnimation(getActivity(), R.anim.anim_clockwise_onboarding); mViewFlipper.setOutAnimation

Asp.net Mvc site running out of memory

可紊 提交于 2019-12-24 04:47:06
问题 I have a weird scenario in which the website seems to randomly run out of memory from time to time: it works for weeks then suddenly everything throws an out of memory exception, and it stays so until the server is rebooted. It may happen after weeks or after days. We weren't able to identify a regular pattern. Here a list of tech stuff used for this site: Net framework 3.5 Mvc 2.0 with C# IIS 6.0 on a dedicated server (no policy restrictions, etc) 3 layer architecture (ui - bll - dal)

Disadvantages of calling realloc in a loop

雨燕双飞 提交于 2019-12-24 04:02:32
问题 I'm trying to implement some math algorithms in C on Windows 7, and I need to repeatedly increase size of my array. Sometimes it fails because realloc can't allocate memory. But if I allocate a lot of memory at once in the beginning it works fine. Is it a problem with the memory manager? Can anyone explain me this please? 回答1: When you allocate/deallocate memory many times, it may create fragmentation in the memory and you may not get big contiguous chunk of the memory. When you do a realloc,

Redshift Querying: error xx000 disk full redshift

拟墨画扇 提交于 2019-12-24 03:20:35
问题 I executed the below query select employee_name, max(employee_dept) as dept from employeeDB where employee_name is not null and employee_name != '' group by employee_name order by employee_name asc limit 1000 and received the error ERROR: XX000: Disk Full . upon investigation by executing the below query i found that i have 941 GB free space and 5000 GB used space. select sum(capacity)/1024 as capacity_gbytes, sum(used)/1024 as used_gbytes, (sum(capacity) - sum(used))/1024 as free_gbytes from

How to add more than 50,000,000 records in arraylist from mysql database [closed]

≡放荡痞女 提交于 2019-12-24 03:06:34
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . Add into array list more than 50,000,000 records from data base. I am adding 30,000,000 records it showing out of heap memory error . 回答1: Have a look here: Increase heap size in Java You can set a flag on the JVM to increase the heap size. Use whatever you want but be sure you have the RAM

every time creating new thread is being added to main ThreadGroup

让人想犯罪 __ 提交于 2019-12-24 02:26:09
问题 I am creating many surface view instances to view some objects but one instance is created at a time and then surfaceDestroyed is called. but the thread I am creating every time on surfacecreated is being added to main ThreadGroup. Although I am interrupting and nullifying it but it still resides in main ThreadGroup and creating low memory exception. Code Snippets: constructor public class MsurfaceView extends SurfaceView implements SurfaceHolder.Callback { _thread = new mThread(this);

android - out of memory

一世执手 提交于 2019-12-24 02:24:05
问题 In my application i am downloading images from the web. i got the out memory exception. somebody suggests that clear heap using the following code. But still i am facing the out of memory exception.can anybody help me. The following method is called when the activity is started. Here I refer to this link public void onStart() { super.onStart(); //Handling the out of memory exception logHeap(this.getClass()); } public static void logHeap(Class clazz) { Double allocated = new Double(Debug

c# Out of Memory Exception with System.Drawing.Image

戏子无情 提交于 2019-12-24 01:47:12
问题 I wanna create a pdf with 2 images. One of the image is a text and the other is a watermark to draw on top of the first one. Well when I load the first image everything is ok but then I try to load the watermark image and get the "Out of Memory" exception. I've got memory (printed the memory usage was like 20MB) and can open the image in my computer (I'm using one I took from google just to test until I don't get the real one). The code where I get the exception is this one: using (System

Is there a limit on the number of members in a Javascript Set()? Or is this a bug in V8

≡放荡痞女 提交于 2019-12-24 01:19:45
问题 Here's some simple Javascript code that repeatedly adds integers into a Set: var i; var limit = 1 << 24; var s = new Set(); for (i = 0; i < limit + 10; i++) { s.add(i); if (i >= limit - 10) console.log ("Set size is now " + s.size) } When the set size grows to 2^24 exactly (which I've called "limit"), there is a FATAL ERROR: invalid table size Allocation failed - process out of memory The process isn't anywhere near running into an actual memory limit, and it's really suspicious that this

Why does my relational tables throw OutOfMemoryError?

纵饮孤独 提交于 2019-12-23 19:00:34
问题 I am using iReport to build jaspersoft reports and I am using Fishbowl as my DBMS. I built my tables and in iReport is shows that my tables are relational but for some reason it is throwing me errors and will not run. It should be very simple. I am taking in a zipcode, date range or State Name and outputing the productName, total quantity fulfilled, zip and state abbreviation. When I do upload the report to Fishbowl it runs but eventually crashes with an error saying it's out of memory. I do