out-of-memory

WriteableBitmap or PNG writer memory leak?

元气小坏坏 提交于 2019-12-11 11:15:00
问题 I am building a small Windows Phone 8 app (a Christian-Orthodox calendar) which has a background agent which should update the live tile. The app will require access to the contacts in the phone so I opted out of internet access so backend tile generation is, at least now out of question. I personally would not trust an app that has access to my contacts AND to internet. Recently my scheduled agent (which generates three PNGs) started OutOfMemoryException-ing on me. Consistently. I've used

GDI+ DashStyle throws OutOfMemoryException in .NET

心已入冬 提交于 2019-12-11 10:41:51
问题 I'm using DashStyle.Dash while rendering my hierarchy of objects. My application uses Graphics.Transform extensively and I find that at some scale values (including a scale of 100%) and some angles of rotation, Graphics.DrawLine throws OutOfMemoryException when using a pen with DashStyle.Dash . Using Google I found that this is a well-known problem. Microsoft tells us that this is not a blocking issue. So far, I have not found a workaround for this problem. What are my options? 回答1: I just

Tomcat 8.5 Wildfly 15 Java 8 OutOfMemoryError and very slow startup

前提是你 提交于 2019-12-11 10:24:40
问题 After enabling @Autowrid , Maven project with Spring 4, in approximately: 800 ManegedBeans Spring, 900 Services, 1000 @Component and 1000 @Repository , the startup application trhow an OutOfMemoryError . I increased the parameters -Xms1024m -Xmx4g in Tomcat and Wildfly, in the application I added the default-lazy-init = "false" parameter in applicationContext.xml and at a great cost the application is starting. I would like to know if there is any advantage in removing @Autowired private

Tomcat permGen space out of memory exception. Tomcat hangs and stops responding

為{幸葍}努か 提交于 2019-12-11 09:05:16
问题 I am using Spring, Struts, and Tomcat 7. After every few days I wake up to find out that the server has chocked Recently I checked all Hibernate sessions and made sure they are closed To keep the question short, this is where Tomcat hangs: java.lang.NullPointerException at com.x.x.a.PageActions.getUserPage(Unknown Source) at com.x.x.a.PageActions$$FastClassByCGLIB$$ac0e4af0.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework

numpy.std on memmapped ndarray fails with MemoryError

蹲街弑〆低调 提交于 2019-12-11 08:35:32
问题 I have a huge (30GB) ndarray memory-mapped: arr = numpy.memmap(afile, dtype=numpy.float32, mode="w+", shape=(n, n,)) After filling it in with some values (which goes very fine - max memory usage is below 1GB) I want to calculate standard deviation: print('stdev: {0:4.4f}\n'.format(numpy.std(arr))) This line fails miserably with MemoryError . I am not sure why this fails. I would be grateful for tips how to calculate these in a memory-efficient way? Environment: venv + Python3.6.2 + NumPy 1.13

Core Data with iCloud causing low memory warnings and crashes, memory usage constantly grows

时光怂恿深爱的人放手 提交于 2019-12-11 08:24:42
问题 I'm working on a small hobby app and am running into a weird memory issue that only occurs when I use Core Data with iCloud. If I switch the app to use a local store, the memory usage over time is just fine (usually 17-18Mb). When I use the app with iCloud, the app continually uses more and more memory (adding about 4-5Mb every second) until it crashes. I've done some profiling with Instruments but can't figure out a reason as to why this is happening. Does anyone have any ideas as to how to

OutofMemoryError when creatingBitmp

ぃ、小莉子 提交于 2019-12-11 08:18:47
问题 When Creating bitmap for canvas in onSizeChanged() I am getting OutOfMemoryError I am creating Bitmap like this Bitmap b = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565); I am getting OutOfMemoryError exception when zooming canvas. How I can handle this exception? 来源: https://stackoverflow.com/questions/24303759/outofmemoryerror-when-creatingbitmp

Talend 10 GB input and lookup out of memory error

别说谁变了你拦得住时间么 提交于 2019-12-11 07:55:55
问题 I'm new to Talend and trying to migrate a simple process from existing ETL into Talend ETL. The process itself is Input file-->tMap (few string manipulation and lookup)-->write output Lookup file has 3 columns (long, 1 char string, 2 char string). Long value is the key. Size of input and lookup file (each around 10GB). Server spec is 16 core (2.9GHz) 64GB RAM 8GB swap running linux. I executed the job with Xmx/Xms values of 30g,45g,50g but each time failed with either GC overhead limit

Javascript Sorting. Allocation fail process out of memory error

吃可爱长大的小学妹 提交于 2019-12-11 07:52:53
问题 I am getting an error of "FATAL ERROR: CALL_AND_RETRY_0 Allocation failed - process out of memory" on my Javascript code. How could I run this code? I see no flaws in the code, because I was doing exactly the same thing as in Python and it works in Python, but here in Javascript I am getting memory errors. Below is my code. var sample_arr = [-1, 5, 7, 4, 0, 1, -5] function My_Partition(container, first_index, last_index) { var x = container[last_index]; var i = first_index - 1; for (var elem

How do I increase maximum download size in an MVC application?

≡放荡痞女 提交于 2019-12-11 07:33:08
问题 I am frankly stumped. This is beyond my experience. I have a C# MVC program that generates a zip file in a MemoryStream for downloading. The action method is called by a button click to JavaScript. The only problem is that in some cases the potential file size can easily exceed one Gig and from my reading, that is a common problem. I've tried upping the Maximum Allowed Content Length to 3000000000 in Request Filtering on IIS (IIS8). I've tried adding requestLimits maxAllowedContentLength to