memory-leaks

Messenger to Remote Service Causing Memory Leak

萝らか妹 提交于 2019-12-30 05:29:08
问题 I have an application that communicates with a Service in a remote process using the Messenger interface. Here is the basic architecture of how things are set up: The application generates several "Operation" objects that require access to the service. Each "Operation" contains a Handler wrapped in a Messenger used to receive the response data back from the Service When the operation executes, it wraps its Messenger into an Intent and calls startService() to pass the message to the remote

Debugging a memory leak that doesn't show on heap profiling

99封情书 提交于 2019-12-30 03:38:12
问题 I'm working on a Haskell daemon that receives and processes JSON requests. While the operations of the daemon are complex, the main structure is intentionally kept simple: Its internal state is just an IORef with a data structure and all threads perform atomic operations on this IORef . Then there are a few threads that upon a trigger take the value a do something with it. The problem is that the daemon is leaking memory and I can't find out why. It's certainly related to the requests: when

How to resolve a memory leak in GWT?

落爺英雄遲暮 提交于 2019-12-30 02:31:54
问题 What's the best way to resolve a GWT memory leak due to the fact that GWT is compiled in javascript and code is written in JAVA ? 回答1: I can recommend 2 things: Read this article Nullify all references when you done with them. Good luck! 回答2: In GWT development mode you can use a Java profiler such as VisualVM or JProfiler (disclaimer: JProfiler is developed by my company) to analyze the heap. The GWT development mode should show the same leak as well, except for the less likely case that the

Building iPhone Code using xcodebuild and running LLVM/Clang Static Analyzer

て烟熏妆下的殇ゞ 提交于 2019-12-30 02:25:48
问题 I followed the steps in Finding memory leaks with the LLVM/Clang Static Analyzer but I was unable to run static analyzer on my project. When I try to run xcodebuild on my project (1. Open Terminal, 2. Go to Project Directly, 3. > xcodebuild), I get this error: === BUILDING NATIVE TARGET XProject OF PROJECT XProject WITH THE DEFAULT CONFIGURATION (Release) === Checking Dependencies... CodeSign error: no certificate found in keychain for code signing identity 'iPhone Developer' \** BUILD FAILED

Memory leak in Three.js

ⅰ亾dé卋堺 提交于 2019-12-30 02:13:53
问题 We are trying to create a single page app in which user can switch between multiple Three.js apps. However we are noticing constant increase in memory usage by the tab. Their is no memory leakage in our app and seems Three.js variables are not getting cleared from RAM. Steps to recreate Visit http://threejs.org/examples/ and open Task manager in Google Chrome to notice memory usage by the concerned tab. Keep switching between examples and you will notice constant increase in memory usage and

What's a space leak?

我怕爱的太早我们不能终老 提交于 2019-12-30 02:09:26
问题 I found the haskell wiki page on space leaks, which claims to list examples of real-world leaks, which it doesn't. It doesn't really say what a space leak is; it just links to the page for memory leaks. What's a space leak? 回答1: As noted in @Rasko's answer, a space leak refers to a situation where a program or specific computation uses more (usually much more) memory than is necessary for the computation and/or expected by the programmer. Haskell programs tend to be particularly susceptible

How does a JVM process allocate its memory?

a 夏天 提交于 2019-12-30 01:08:12
问题 I have a little gap in understanding how a JVM process allocates its own memory. As far as I know RSS = Heap size + MetaSpace + OffHeap size where OffHeap consists of thread stacks, direct buffers, mapped files (libraries and jars) and JVM code itself; At the moment I’m trying to analyze my Java application (Spring Boot + Infinispan) which RSS is 779M (it runs in a docker container, so pid 1 is ok): [ root@daf5a5ae9bb7:/data ]$ ps -o rss,vsz,sz 1 RSS VSZ SZ 798324 6242160 1560540 According to

jQuery/Sizzle checkContext memory leak

夙愿已清 提交于 2019-12-30 00:44:27
问题 While debugging my app with 'Profiles' in DevTools I found "Detached DOM tree's" accumulating. These detached nodes have retaining tree consisting mostly of checkContext functions (coming from sizzle inside jQuery - v1.10.1). I'm not sure how to proceed with this. What does this result mean? 回答1: This is actually a bug, there's no reason that Sizzle needs to hang onto the context node, it's only doing it because it's not cleaning up after setting a temporary variable. I filed an issue for it,

Javascript memory and leak problems

本小妞迷上赌 提交于 2019-12-29 17:44:10
问题 My site is pretty standard ecom site, it isn't a JS backed standalone app or anything, it's just a site which uses JS for standard stuff, as well as some jquery plugins to do a few things. I'm trying to do some JS memory evaluation on my site. I've done this by looking at the Chrome Task Manager and through Heap Snapshots. Initailly my site on first load sits between 35MB (i.e 35,000K) and 40MB on the task manager. This is the largest of any tab, if I have several tabs of other websites open

Sandbox for memory

旧街凉风 提交于 2019-12-29 08:42:30
问题 Java supposed not to have memory leaks but it's still possible. When my program has memory leak I can fix it (I hope). But when some third party packages have it what can I do? Practically nothing except don't using this package. Is there another solution? I like idea of sandbox. You are allowed to do whatever you want within some area and you "physical" don't have ability to bother other outside of your box. Is there way to create such sandbox for memory usage in Java? Imagine = create