memory-leaks
How to force the JVM to clear all WeakReferences / keys of a WeakHashMap
Is there a way to force the jvm that it should clear all WeakReferences (or all keys of a WeakHashMap) if they aren\'t referenced by regular references anymore?[详细]
2023-04-12 08:30 分类:问答Freeing memory in caller or callee?
A function (Say \"fun()\") allocates memory and return开发者_开发技巧s the pointer to allocated memory.[详细]
2023-04-12 06:24 分类:问答Export large rows to Excel document, in small memory footprint
I am using PHPExcel to create an Excel document, using data from a MySQL database.My script must execute in under 512MB of RAM, and I am running into trouble as my export reaches 200k records:[详细]
2023-04-12 05:04 分类:问答Instrument (XCode4) report ASIHttpRequest leak memory?
I get开发者_JAVA百科 Instrument tools in XCode 4 report memory leaks from ASIHttpRequest... I didn\'t be able to figure out the problem, turned our I commented out all my code to handle the result and[详细]
2023-04-12 04:57 分类:问答OpenGL not deallocating display list memory
I have an OpenGL app that displays a static scene. This scene is comprised of about 150k polygons. Since there are so many polygons, and since it\'s a static scene, I decided to use a display list to[详细]
2023-04-12 04:27 分类:问答Android Admob 4.1.1 has a memory leak (see attached test project). Cause/fix/work around?
I have a test project which demonstrates a memory leak caused by Admob 4.1.1. The basic scenario is I have two activities and I switch back and forth between the main and the sub activity several tim[详细]
2023-04-12 03:17 分类:问答How to correctly close an Entity Manager in doctrine
I was having a memory leak problem in a Doctrine2 script that was aparently caused by a piece of code that was supposed to eliminate memory problems.[详细]
2023-04-12 02:39 分类:问答Valgrind output Understanding
==20420== ==20420== HEAP SUMMARY: ==20420==in use at exit: 0 bytes in 1 blocks ==20420==total heap usage: 1 allocs, 0 frees, 0 bytes allocated[详细]
2023-04-11 23:38 分类:问答Python running out of memory parsing XML using cElementTree.iterparse
A simplified version of my XML parsing function is here: import xml.etree.cElementTree as ET def analyze(xml):[详细]
2023-04-11 20:49 分类:问答Valgrind: understanding output (HEAP SUMMARY is ok, ERROR SUMMARY is confusing)
I read a number of messages on this topic but this is a little different because I have NO heap errors (I cleaned everything up nicely - yay).But, I still see 166 errors in the error summary.[详细]
2023-04-11 18:06 分类:问答