memory-leaks

Java: non-heap-memory analyzes

风格不统一 提交于 2020-01-09 13:59:08
问题 we have the problem that our non-heap-memory is growing all the time. so we have to restart our jee (java8) - webapp every 3rd day (as you can see in the screenshot here: screenshot from non-heap- and heap-memory) I have already tried to find out what fills up that non-heap. But I couldn't find any tool to create a nonheap-dump. do you have any idea how i could investigate on that to find out what elements are increasingly growing? java-version java version "1.8.0_102" Java(TM) SE Runtime

Java: non-heap-memory analyzes

a 夏天 提交于 2020-01-09 13:59:03
问题 we have the problem that our non-heap-memory is growing all the time. so we have to restart our jee (java8) - webapp every 3rd day (as you can see in the screenshot here: screenshot from non-heap- and heap-memory) I have already tried to find out what fills up that non-heap. But I couldn't find any tool to create a nonheap-dump. do you have any idea how i could investigate on that to find out what elements are increasingly growing? java-version java version "1.8.0_102" Java(TM) SE Runtime

Memory leak in NSString stringWithUTF8String

喜夏-厌秋 提交于 2020-01-09 11:25:26
问题 I am making a call to a database. After my call, I've found leaks in NSString. Anybody have a solution to remove it? NSString *pic = [NSString stringWithUTF8String:(char *)sqlite3_column_text(selectStatement, 5)]; In above code, I found 90% leaks. I just read data from database. 回答1: please explain the question well else others can't identify your exact problem. I think you are you are assigning the value of [NSString stringWithUTF8String:(char *)sqlite3_column_text(selectStatement, 5)]; to

Valgrind reports memory leak when assigning a value to a string

谁说我不能喝 提交于 2020-01-09 10:42:45
问题 Valgrind reports a memory leak when assigning a value to a string. I used the following simple code to test an memory leak reported by Valgrind. /****************************************** * FILE: t3.c * Compiled using : g++ -g t3.c -o t3 * * $ g++ -v * Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/specs * Configured with: ./configure --prefix=/usr --infodir=/share/info --mandir=/share/man * --enable-languages=c,c++ --with-system-zlib --program-suffix=-3.4 --enable-threads=posix *

Find all references to an object in python

心已入冬 提交于 2020-01-09 09:31:28
问题 What is a good way to find all of the references to an object in python? The reason I ask is that it looks like we have a "memory leak". We are uploading image files to the server from a web browser. Each time we do this, the memory usage on the server goes up proportionately to the size of the file that was just uploaded. This memory is never getting released by the python garbage collection, so I'm thinking that there are probably stray references pointing to the image data that are not

AVAudioPlayer memory leak

青春壹個敷衍的年華 提交于 2020-01-09 07:18:32
问题 I'm stuck on some weird memory leak problem related to the AVAudioPlayer and I need help after trying everything that came to mind. Here is the short description of the problem - code appears right after. I initialize my player and start to play the sound track in an endless loop (and endless loop or one time play did not change the problem). Several seconds after the music started, I switch to another sound track, hence I create a new player, initialize it, release the old one (which is

Is it possible to use iframes in IE without memory leaks?

。_饼干妹妹 提交于 2020-01-09 06:27:08
问题 All versions of IE (including 10) appear to hold on to a significant amount of memory allocated by iframes until window.top.unload occurs. This creates quite the challenge for long-lived pages that may create a number of iframes throughout their lifetime. A simplified example of the problem can be found here: http://pastebin.com/FmZ7iMHB That example uses a Wikipedia page for the iframe to magnify the problem, but even a simple page with a single image will leak. In a nutshell, after you

Is it possible to use iframes in IE without memory leaks?

社会主义新天地 提交于 2020-01-09 06:26:07
问题 All versions of IE (including 10) appear to hold on to a significant amount of memory allocated by iframes until window.top.unload occurs. This creates quite the challenge for long-lived pages that may create a number of iframes throughout their lifetime. A simplified example of the problem can be found here: http://pastebin.com/FmZ7iMHB That example uses a Wikipedia page for the iframe to magnify the problem, but even a simple page with a single image will leak. In a nutshell, after you

Kotlin : safe lambdas (no memory leak)?

两盒软妹~` 提交于 2020-01-09 06:19:26
问题 After having read this article about Memory Leaks, I am wondering whether using lambdas in Kotlin Android project is safe. It's true that lambda syntax makes me program with more ease, but what about the Memory Leaks ? As an example of the problematic, I've taken a piece of code from one of my projects, where I build an AlertDialog. This code is inside the MainActivity class of my project. fun deleteItemOnConfirmation(id: Long) : Unit { val item = explorerAdapter.getItemAt(id.toInt()) val

Memory leak when redeploying application in Tomcat

♀尐吖头ヾ 提交于 2020-01-08 15:49:48
问题 When I redeploy my application in tomcat, I get the following issue: The web application [] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@10d16b]) and a value of type [com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty] (value [com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty@1a183d2]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. Also, am using ehcache in my