out-of-memory

Azure function host dies with OutOfMemoryException, without triggering

Deadly 提交于 2019-12-11 06:06:45
问题 Quick version: Why does my function host kill it self after 5 minutes without doing anything? I have an Azure function which uses nClam to scan blob files for viruses. It seems to work just fine, but suddenly it will kill it self even before triggering on any blob! It will just shutdown after 5 minutes with an OutOfMemoryException: [18/9/2019 10:33:33] Host initialized (405ms) [18/9/2019 10:33:33] Host started (812ms) [18/9/2019 10:33:33] Job host started Hosting environment: Production

Problem with big images ( java.lang.OutOfMemoryError: bitmap size exceeds VM budget )

℡╲_俬逩灬. 提交于 2019-12-11 05:48:41
问题 as a many people i have a problem with big images too. ok,here my code. I found on stackoverflow how to fix this using BitmapFactory.Options. But in my situations i get image not from file. Can anyone tell me how to do this with Bitmap which already created in memory ( i get this picture from camera on phone) public void getImageAndSend( ) { Bitmap newbmp ; newbmp= Bitmap.createBitmap(oBmp.getWidth(), oBmp.getHeight(),oBmp.getConfig());////<----------error here log("widt oBmp = "+oBmp

Memory profiling with Visual Studio 2010

谁说我不能喝 提交于 2019-12-11 05:48:16
问题 I have a solution with two applications. One is Windows Service project, another one is launcher (installs and starts the windows service). I want to attach memory profiler to the installed windows service to collect information about memory usage and object sizes to investigate the OutOfMemory exception. Here is the approach I used. First I ran the "VSPerfCLREnv.cmd /samplegclife". This should init the profiling environment variables to enable memory profiling. Then I start my launcher,

64bit Console app / ThreadPool out of memory

匆匆过客 提交于 2019-12-11 05:35:44
问题 I have an ASP.NET web app and it's using 5GB memory running on 64bit Windows 7 machine with 8GB memory without any problem. However, when I create a new C# console application on the same machine and reuse the same components the web app uses, the console app runs out of memory at about 1.6GB (by looking at System.Environment.WorkingSet and System.Diagnostics.Process.GetCurrentProcess().WorkingSet64). There are still plenty of physical memory left. It repros on 2 different machines. Both web

MemoryError from sklearn.metrics.silhouette_samples

陌路散爱 提交于 2019-12-11 05:35:40
问题 I get a memory error when trying to call sklearn.metrics.silhouette_samples. My use case is identical to this tutorial. I am using scikit-learn 0.18.1 in Python 3.5. For the related function, silhouette_score , this post suggests the use of the sample_size parameter which reduces the sample size before calling silhouette_samples. I am not sure that the down-sampling would still produce reliable results so I hesitate to do that. My input, X, is a [107545 rows x 12 columns] dataframe which I

Getting GL_OUT_OF_MEMORY error at random after drawing

ⅰ亾dé卋堺 提交于 2019-12-11 05:05:01
问题 I am drawing a ton of billboards to the screen, and 'randomly' i get a glerror 1285 either after the drawing, or right before starting the next draw cycle, i can't tell. The whole data is 1.3M~ that i upload to the videocard as vertex and index buffers. There are 20 vertex buffers, 19 of them tells me the position and size of the billboard at 19 different times, and the 20th tells me the vertex index (so i can calculate texture coords in the vertex shader). Every second i change which two

Getting Out Of Memory: Java heap space, but while viewing heap space it max uses 50 MB

狂风中的少年 提交于 2019-12-11 04:54:39
问题 I'm using ASANT to run a xml file which points to a NARS.jar file. (i do not have the project file of the NARS.jar) I'm getting "java.lang.OutOfMemoryError: Java heap space. I used VisualVM to look at the heap while running the NARS.jar, and it says that it max uses 50 MB of the heapspace. I've set the initial and max size of heapspace to 512 MB. Does anyone have an ide of what could be wrong? I got 1 GB physical Memory and created a 5 GB pagefile (for test purpose). Thanks in advance. 回答1:

Python 2.7 memory leak with scipy.minimze

末鹿安然 提交于 2019-12-11 04:38:51
问题 During a fit procedure, my RAM memory slowly but steadily (about 2.8 mb every couple of seconds) increases until I get a memory error or I terminate the program. This happens when I try to fit some 80 measurements by fitting a model to them. This fitting is done by using scipy.minimze to minimize Chi_squared. So far I've tried: Playing with the Garbage collector to collect every time Chi_squared calls my model, didn't help. Looking at all variables using global() and then using pympler

Low level android out of memory crashes using Realm

╄→尐↘猪︶ㄣ 提交于 2019-12-11 04:36:46
问题 I've been getting many OOM crashes in my android app (many but not all of them seem to be in Realm code: First: io.realm.exceptions.RealmError: Unrecoverable error. mmap() failed: Out of memory size: 872415232 offset: 0 in /Users/zaki/fromgit/realm/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_SharedRealm.cpp line 92 Second: io.realm.exceptions.RealmError: Unrecoverable error. Too many open files in /Users/zaki/fromgit/realm/realm-java/realm/realm-library/src/main/cpp/io_realm

Out of Memory Error while using many bitmaps

回眸只為那壹抹淺笑 提交于 2019-12-11 04:34:46
问题 I want use many bitmap for my game canvas. I can't Recycle bitmaps, because I have to use bitmaps for the whole section. Do mention some guidelines to optimize the code to handle many bitmap also faster performance for my canvas based Game Application. Currently i am using the following code to get bitmap from drawable resource, BitmapFactory.Options bfOptions=new BitmapFactory.Options(); bfOptions.inSampleSize = 1; bfOptions.inDither=false; //Disable Dithering mode bfOptions.inPurgeable=true