memory-leaks

Export instruments trace data via command-line for leaks

為{幸葍}努か 提交于 2020-01-04 13:13:26
问题 I am using the following script to run leaks instruments from the command-line. instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Resources/templates/Leaks.tracetemplate <app path> after executing the command, i get instrumentscli0.trace file. How can i get readable data about leaks from that file. Is there any way to export the results to a text file via any command. In automation template we can specify an output folder using the switch -e UIARESULTSPATH

Export instruments trace data via command-line for leaks

谁说我不能喝 提交于 2020-01-04 13:12:43
问题 I am using the following script to run leaks instruments from the command-line. instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Resources/templates/Leaks.tracetemplate <app path> after executing the command, i get instrumentscli0.trace file. How can i get readable data about leaks from that file. Is there any way to export the results to a text file via any command. In automation template we can specify an output folder using the switch -e UIARESULTSPATH

What is the reason that Policy.getPolicy() is considered as it will retain a static reference to the context and can cause memory leak

我是研究僧i 提交于 2020-01-04 11:53:32
问题 I just read some source code is from org.apache.cxf.common.logging.JDKBugHacks and also in http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java. In order to make my question clear not too broad. :) I just ask one piece of code in them. // Calling getPolicy retains a static reference to the context // class loader. try { // Policy.getPolicy(); Class<?> policyClass = Class .forName("javax.security.auth.Policy"); Method method = policyClass

What is the reason that Policy.getPolicy() is considered as it will retain a static reference to the context and can cause memory leak

孤街醉人 提交于 2020-01-04 11:52:12
问题 I just read some source code is from org.apache.cxf.common.logging.JDKBugHacks and also in http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java. In order to make my question clear not too broad. :) I just ask one piece of code in them. // Calling getPolicy retains a static reference to the context // class loader. try { // Policy.getPolicy(); Class<?> policyClass = Class .forName("javax.security.auth.Policy"); Method method = policyClass

Java Memory issue using Apache.POI to read write Excel

夙愿已清 提交于 2020-01-04 06:44:09
问题 I am trying to read excel file...make some changes...save to new file. I have created small form with button...On pressing button.. It will load Excel file and load all data to Array list of class I have created. It will loop through Array list and change few properties in objects. It will save data to new Excel file. Finally, it will clear Array list and show message box of completion. Now the problem is memory issue. When form is loaded, I can see in windows task manager...javaw is using

Automatic web-page refresh memory leak using XMLHttpRequest

可紊 提交于 2020-01-04 06:29:11
问题 Greetings, I've been working on a web-interface for some hardware that uses an 8-bit microcontroller. The web page uses HTML, javascript, JSON and XHR (XMLHttpRequest) for its communications. What I'm trying to do is create a page that updates every 250mS with new values from the controller using setInterval so that the web page gets updated 'real-time' to make it feel more like an application to the user. I've gotten it to work for the most part, but found that there's a memory leak

Reason for ENOMEM failure to create threads?

北战南征 提交于 2020-01-04 06:09:10
问题 I have an application that is using pthread_create() and pthread_detach() in the main thread and later pthread_exit() in the child thread. After around 54 pthread_create() calls that have each been paired with a subsequent pthread_detach() and then pthread_exit() the pthread_create() fails. It is ENOMEM failure "Out of memory". What might cause pthread_exit() to not be freeing up the memory of the old threads and causing my application to leak memory and eventually run out? This is running on

Reason for ENOMEM failure to create threads?

核能气质少年 提交于 2020-01-04 06:08:07
问题 I have an application that is using pthread_create() and pthread_detach() in the main thread and later pthread_exit() in the child thread. After around 54 pthread_create() calls that have each been paired with a subsequent pthread_detach() and then pthread_exit() the pthread_create() fails. It is ENOMEM failure "Out of memory". What might cause pthread_exit() to not be freeing up the memory of the old threads and causing my application to leak memory and eventually run out? This is running on

How can the total memory usage of MS edge keep growing after Dom Object are removed?

流过昼夜 提交于 2020-01-04 05:16:06
问题 I have a memory "leak" problem in Microsoft Edge browser. When I run a memory profiling session and take several snapshots, I see the memory between snapshot being freed. but the total memory consumption keep growing (see image). The memory difference between snapshots are an iframe being add and then removed from the DOM. How is this possible ? 回答1: I have been using the Edge memory profiler to try to test memory leaks with an iFrame as well. We found that the Edge profiler itself leaks

browser memory increasing constantly with javascript ajax calls

☆樱花仙子☆ 提交于 2020-01-04 02:12:08
问题 I have a strange behaviour. I am using a rather heavy page (4000 nodes) meant to display a dispatch system for delivery operations. Every 30 sec. I am refreshing with jquery, the list of operations (3000 nodes over 4000). It works perfectly well, but... each time, the memory of both firefox and chrome is increasing by 3 to 6ko. Of course, after a while, the browser crashes... Does anybody have any kind of idea why? Is it a memory leak? Does javascript fail to somewhere? I checked, and after