memory

Android Studio Simple 'TV' App With Single WebView crashes after long time (profiler shows negative allocated memory?)

拈花ヽ惹草 提交于 2020-06-26 14:52:47
问题 So I have a super simple app with just a WebView that connects to our host page and acts as a 'TV'. After checking for memory leaks, I run this app on my Amazon Fire Stick for an extended period of time, but regardless after around 8-9 hours it crashes without exception on the console. How did I check for memory leaks: LeakCanary did not detect any leaks. Watching the memory profiler over time I see that the total memory used always consistently averages 400MB, even at the 8 hour mark.

ARM single-copy atomicity

我的梦境 提交于 2020-06-26 04:11:25
问题 I am currently wading through the ARM architecture manual for the ARMv7 core. In chapter A3.5.3 about atomicity of memory accesses, it states: If a single-copy atomic load overlaps a single-copy atomic store and for any of the overlapping bytes the load returns the data written by the write inserted into the Coherence order of that byte by the single-copy atomic store then the load must return data from a point in the Coherence order no earlier than the writes inserted into the Coherence

gnu linker section of non-contiguous memory region

蹲街弑〆低调 提交于 2020-06-24 08:35:27
问题 I'm trying to write a linker script to write one section content into two non-contiguous memory regions. I have found an old thread in this mail list about this: "ld linker script and non-contiguous memory region" http://sourceware.org/ml/binutils/2012-01/msg00188.html I know a feature from the C28x Compiler for this problem is spliting the sections across multiple memory segments: (with an or function) SECTIONS { .text: { *(.text) } >> FLASH1| FLASH3 } described here: http://processors.wiki

How to clear permgen memory space

爱⌒轻易说出口 提交于 2020-06-23 14:19:08
问题 I am using MAT to analyze memory. Size: 14.4 MB Classes: 7k Objects: 350.9k Class Loader: 116 I've got the above report using MAT memory analyzer. But I can't find any way to clear those classes, objects. Is there any way to remove all those object and clean permgen memory. Can we clean permgen memory or I have to increase xms, xmx and launcher.XXMaxPermSize size in eclipse.ini file and make sure all object are nullify after use. 回答1: As far as I know there is no function that clears permgen.

Yii2 Allowed memory size exhausted

萝らか妹 提交于 2020-06-23 07:57:28
问题 I'm uploading file to my Yii2 project. The file it self is ~100kB, contains ~45 000 short lines that are processed by controller and added line-by-line to the database. How could I trace exactly when the error occurs or what it is that's eating up the memory? The limit set in php.ini is currently 512MB. And what does LogTarget have to do with it anyway? Afaik i'm not logging anything during this upload and update process. Can this thing happen, when something else is using server's memory? A

Calculating memory size based on address bit-length and memory cell contents

扶醉桌前 提交于 2020-06-23 06:42:27
问题 I am trying to calculate the maximum memory size knowing the bit length of an address and the size of the memory cell. It is my understanding that if the address is n bits then there are 2^n memory locations. But then to calculate the actual memory size of the machine, you would need to multiply the number of addresses by the size of the memory cell. Is that correct? To put it another way, Step 1: calculate the length of the address in bits (n bits) Step 2: calculate the number of memory

haskell running out of memory with finite lists

可紊 提交于 2020-06-15 07:09:09
问题 I run out of memory trying to run moderate inputs such as this: variation_models 15 25 also running higher numbers for ncars seems to make a huge difference in speed and memory usage. The slowdown is expected (there are more things to compare), but the exponential increase of memory usage doesn't make sense to me import Control.Monad orderedq f [] = True orderedq f (x:[]) = True orderedq f (x:y:zs) = f x y && orderedq f (y:zs) num_orderedq = orderedq (<=) adds_up_to n xs = n == sum xs both

haskell running out of memory with finite lists

流过昼夜 提交于 2020-06-15 07:09:06
问题 I run out of memory trying to run moderate inputs such as this: variation_models 15 25 also running higher numbers for ncars seems to make a huge difference in speed and memory usage. The slowdown is expected (there are more things to compare), but the exponential increase of memory usage doesn't make sense to me import Control.Monad orderedq f [] = True orderedq f (x:[]) = True orderedq f (x:y:zs) = f x y && orderedq f (y:zs) num_orderedq = orderedq (<=) adds_up_to n xs = n == sum xs both

Pandas manipulating a DataFrame inplace vs not inplace (inplace=True vs False) [duplicate]

穿精又带淫゛_ 提交于 2020-06-14 07:45:12
问题 This question already has answers here : Understanding inplace=True (10 answers) Closed yesterday . I'm wondering if there's a significant reduction in memory usage when we choose to manipulate a dataframe in-place (compared to not in-place ). I've done a bit of searching on Stack Overflow and came across this post where the answer states that if an operation is not done in-place, a copy of the dataframe is returned (I guess that's a bit obvious when there's an optional parameter called

How is it decided that how much physical memory is to be allocated to java heap?

对着背影说爱祢 提交于 2020-06-13 00:47:06
问题 I have machine with 16G RAM. I run a java application with arguments -Xms9G -Xmx9G . When I run top command I see that my java process is taking 13.8g VIRT , but only 4.6g of RES . PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5019 root 20 0 13.8g 4.7g 18m S 0.7 30.7 3:28.39 java On running pmap command, I see that only ~3.9g of heap is present as RES , rest 5.7g is in virtual . Address Kbytes RSS Dirty Mode Mapping 0000000580000000 9452384 4074228 4074228 rw--- [ anon ] Upon