out-of-memory

malloc behaviour on an embedded system

半腔热情 提交于 2020-01-09 19:39:43
问题 I'm currently working on an embedded project (STM32F103RB, CooCox CoIDE v.1.7.6 with arm-none-eabi-gcc 4.8 2013q4) and I'm trying to understand how malloc() behaves on plain C when the RAM is full. My STM32 has 20kB = 0x5000Bytes of RAM, 0x200 are used for the stack. #include <stdlib.h> #include "stm32f10x.h" struct list_el { char weight[1024]; }; typedef struct list_el item; int main(void) { item * curr; // allocate until RAM is full do { curr = (item *)malloc(sizeof(item)); } while (curr !=

OutOfMemoryException when send big file 500MB using FileStream ASPNET

只愿长相守 提交于 2020-01-09 03:19:49
问题 I'm using Filestream for read big file (> 500 MB) and I get the OutOfMemoryException. I use Asp.net , .net 3.5, win2003, iis 6.0 I want this in my app: Read DATA from Oracle Uncompress file using FileStream and BZip2 Read file uncompressed and send it to asp.net page for download. When I read file from disk, Fails !!! and get OutOfMemory... . My Code is: using (var fs3 = new FileStream(filePath2, FileMode.Open, FileAccess.Read)) { byte[] b2 = ReadFully(fs3, 1024); } // http://www.yoda

Out of Memory Exception - Google Map GroundOverLay

北城余情 提交于 2020-01-07 06:38:07
问题 I'm trying to draw a picture on the google map. I'm using the latest version of google play services and checked a lot for this issue and couldn't find an answer. Here's some code: BitmapDescriptor image = BitmapDescriptorFactory.fromResource(R.drawable.drawing_bg); LatLngBounds drawingBounds = new LatLngBounds( new LatLng(29.93530, 30.88324), new LatLng(29.93609, 30.88329)) .including(new LatLng(29.93580, 30.88286)) .including(new LatLng(29.93563, 30.88374)) .including( new LatLng(29.93593,

Out of Memory Exception - Google Map GroundOverLay

旧巷老猫 提交于 2020-01-07 06:38:03
问题 I'm trying to draw a picture on the google map. I'm using the latest version of google play services and checked a lot for this issue and couldn't find an answer. Here's some code: BitmapDescriptor image = BitmapDescriptorFactory.fromResource(R.drawable.drawing_bg); LatLngBounds drawingBounds = new LatLngBounds( new LatLng(29.93530, 30.88324), new LatLng(29.93609, 30.88329)) .including(new LatLng(29.93580, 30.88286)) .including(new LatLng(29.93563, 30.88374)) .including( new LatLng(29.93593,

System.OutOfMemoryException while downloading a lot of attachments with MailKit

时光毁灭记忆、已成空白 提交于 2020-01-07 05:41:11
问题 I'm downloading attachments from few e-mail accounts. I have for example 300 attachments on each account (they are mirrors). When I want download attachments only from one account, I get error in my program log: ... 09.04.2017 16:10:07: Download attachment nr 108 from task Movie.avi 09.04.2017 16:10:59: Download attachment nr 109 from task Movie.avi 09.04.2017 16:11:26: Download attachment nr 110 from task Movie.avi 09.04.2017 16:12:07: Download attachment nr 111 from task Movie.avi 09.04

deserialize system.outofmemoryexception on a networkstream

时光毁灭记忆、已成空白 提交于 2020-01-07 05:09:14
问题 I've got a serializeable class called Cereal with several public fields shown here <Serializable> Public Class Cereal Public id As Integer Public cardType As Type Public attacker As String Public defender As String Public placedOn As String Public attack As Boolean Public placed As Boolean Public played As Boolean Public text As String Public Sub New() End Sub End Class My client computer is sending a new Cereal to the host by serializing it shown here 'sends data to host stream (c1) Private

Memory Error Python Processing Large File Line by Line

老子叫甜甜 提交于 2020-01-06 20:12:31
问题 I am trying to concatenate model output files, the model run was broken up in 5 and each output corresponds to one of those partial run, due to the way the software outputs to file it start relabelling from 0 on each of the file outputs. I wrote some code to: 1) concatenate all the output files together 2) edit the merged file to re-label all timesteps, starting at 0 and increasing by an increment at each one. The aim is that I can load this single file into my visualization software in one

Perl encounters “out of memory” in openvms system

☆樱花仙子☆ 提交于 2020-01-06 06:53:15
问题 I am using a 32 bit perl in my openvms system.(So perl can access up till 2gb of virtual address space ). I am hitting "out of memory!" in a large perl script. I zeroed in on the location of variable causing this . However after my tests with devel:size it turns out the array is using only 13 Mb memory and the hash is using much less than that. My question is about memory profiling this perl script in VMS. is there a good way of doing memory profile on VMS? I used size to get size of array

Arraylist issue - Out of memory error

纵饮孤独 提交于 2020-01-06 06:10:49
问题 I am adding a parsed value to an ArrayList. I am getting a lot of parsed values in webservice. Because of this, I am getting an out of memory error. How do I avoid this? 回答1: increase heap memory by -Xms64m -Xmx256m 回答2: You are holding to many values in memory, find a way to store some of the data outside of memory so you can keep processing values without having to raise the amount of memory you use. 来源: https://stackoverflow.com/questions/5066155/arraylist-issue-out-of-memory-error

Arraylist issue - Out of memory error

空扰寡人 提交于 2020-01-06 06:10:39
问题 I am adding a parsed value to an ArrayList. I am getting a lot of parsed values in webservice. Because of this, I am getting an out of memory error. How do I avoid this? 回答1: increase heap memory by -Xms64m -Xmx256m 回答2: You are holding to many values in memory, find a way to store some of the data outside of memory so you can keep processing values without having to raise the amount of memory you use. 来源: https://stackoverflow.com/questions/5066155/arraylist-issue-out-of-memory-error