garbage-collection

Monotouch - UITableview Cell null reference exception

亡梦爱人 提交于 2020-01-06 08:56:28
问题 I'm building an app that contains an UITableview. I got tableview to work perfectly now I want to make the cells more specific to my needs. The tableviewcell contains a picture a title, subititle and a releasedate. I thought this was simple to do but i cannot get it to work. I try to follow the example (and the sample) out of wrox Professional iPhone programming monotouch ( pages: 120 and 121) but I cannot get it to work in my case. I tried following this link and this link too, but to no

how does flash handle garbage collection when it comes to adding movieclips directly to another

家住魔仙堡 提交于 2020-01-06 04:46:09
问题 Just curious, If i nest a movieclip inside of another movieclip, and the nested movieclip is attached to a custom class. And that custom class has a Event.ENTER_FRAME listener. when I destroy the container movieclip, will flash get rid of the event listeners inside of nested movieclip's custom class ? May seem like a silly question but flash has a tendency of not killing listeners along with the movieclip itself once it is removed from the stage(this is if your apply the movieclip via

Does the object which is the entry point of a Java program get garbage collected?

丶灬走出姿态 提交于 2020-01-06 04:10:06
问题 If I have a class Sample and I have an instance method, instanceMethod in it. The class has a main method where I create an object of Sample itself and call it's instanceMethod without using a reference variable. like this: new Sample().instanceMethod(); inside the main. Since this object has NO reference, will the garbage collector collect it ? 回答1: In Java 1 , I don't believe the object can be collected while instanceMethod() is being executed. In the main method's stack frame there is a

Garbage collector in Ruby 2.2 provokes unexpected CoW

那年仲夏 提交于 2020-01-06 03:10:08
问题 How do I prevent the GC from provoking copy-on-write, when I fork my process ? I have recently been analyzing the garbage collector's behavior in Ruby, due to some memory issues that I encountered in my program (I run out of memory on my 60core 0.5Tb machine even for fairly small tasks). For me this really limits the usefulness of ruby for running programs on multicore servers. I would like to present my experiments and results here. The issue arises when the garbage collector runs during

Slow topology - Uneven load on Executers in a Storm worker

梦想与她 提交于 2020-01-06 02:33:09
问题 Structure to the problem : 4 node cluster Bolt 2 - parallelism factor is 8, so 2 executers per worker. I have notice lag overtime in the storm topology due to high latency in one of the executers. If you'll notice in the pic, only 1 executer is having slightly more load and significantly high latency. Spout is working great! Any pointer to the possible issues appreciated. Noting unusual observer in worker/supervisor logs. The worker JVM has high has huge memory so that is not a issue. PS: cpu

GCViewer pattern analysis

馋奶兔 提交于 2020-01-05 12:17:22
问题 Is there any tutorial on GCViewer pattern? I am having an issue where GC logs chart is formed like so but can't figure out if it's a Memory Leak issue or it's just merely need more memory. Can anyone please help me out? From the log, it showed error " ERROR - java.lang.OutOfMemoryError: GC overhead limit exceeded" Thanks. 回答1: In order to figure out whether there is memory leak, having a GC chart is not enough. Basically there are two strategies: Memory Leak Detector : One very good tool is

Memory Leak in Grails with MongoDB

二次信任 提交于 2020-01-05 12:11:25
问题 I've found a strange issue when saving or updating several objects in Grails with MongoDB. Currently I'm using Grails 2.2.3 and MongoDB plugin 1.3.0. The problem seems to be that the instances of MiUsuario are never GC neither when I manually call the GC. In our main application we don't make batch updates, but when doing load tests (with JMeter and monitoring JVM with Java VisualVM) this problem causes memory filling and Tomcat stops responding. I've created a small new application to show

How does V8 manage its heap?

可紊 提交于 2020-01-05 10:09:52
问题 I know when V8's Garbage Collection is working, it will trace from GC's root so that unreachable objects will be marked and then be swept. My question is how GC traverses traverse those objects? There must be a data structure to store all objects reachable or unreachable. Bitmap? Linked table? BTW, does JVM do the same? 回答1: AllenShow, Google's V8 Heap is organized into a couple of different spaces. There's a great post, "A tour of V8: Garbage Collection" which explains how the V8 heap is

Do local variables inside of a loop get garbage collected?

邮差的信 提交于 2020-01-05 08:14:50
问题 I'm wondering if it is more efficient to place any vars referenced within a loop, outside of the loop - or can they get garbage collected like vars inside of a function? var obj = {key:'val'}; for(var i=0; i<10; i++){ console.log(obj); } or for(var i=0; i<10; i++){ var obj = {key:'val'}; console.log(obj); } I tried to run some memory test in my browser's profiler but still couldn't tell which method was better. 回答1: var is function scoped, not blocked scoped, so it does not matter whether

Do local variables inside of a loop get garbage collected?

倖福魔咒の 提交于 2020-01-05 08:13:37
问题 I'm wondering if it is more efficient to place any vars referenced within a loop, outside of the loop - or can they get garbage collected like vars inside of a function? var obj = {key:'val'}; for(var i=0; i<10; i++){ console.log(obj); } or for(var i=0; i<10; i++){ var obj = {key:'val'}; console.log(obj); } I tried to run some memory test in my browser's profiler but still couldn't tell which method was better. 回答1: var is function scoped, not blocked scoped, so it does not matter whether