memory-leaks

Explain this memory consumption pattern in Amazon RDS/Mysql?

点点圈 提交于 2020-01-01 04:28:04
问题 Folks, Can someone explain this memory consumption pattern on Amazon RDS running Mysql? In this graph, I upgraded to a db.m2.2xlarge, with 34GB of available memory, at 03:30. You can see the switchover very clearly. As clients start connecting and hitting that instance, the Freeable memory drops steeply to 5GB, where it is now hovering. On my previous upgrade between DB instance sizes, I saw the same pattern, until the freeable memory dropped to just under 1GB and hovered there indefinitely.

std::string operator+() memory leak?

喜欢而已 提交于 2020-01-01 04:17:15
问题 I'm quite worry because I wrote a little application and it seems that there is a memory leak if I believe valgrind (What I actually do): ==9321== 251 bytes in 7 blocks are definitely lost in loss record 1 of 1 ==9321== at 0x402569A: operator new(unsigned int) (vg_replace_malloc.c:255) ==9321== by 0x40D3D05: std::string::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.13) ==9321== by 0x40D4977: std::string::_Rep::_M_clone(std::allocator

Jetty 7: OutOfMemoryError: PermGen space on application redeploy

不问归期 提交于 2020-01-01 03:24:08
问题 First time app starts correctly. Then I delete webapp/*.war file and paste new version of *.war. Jetty start deploying new war but error java.lang.OutOfMemoryError: PermGen space occurs. How can I configure Jetty to fix error / make correct redeploy? This solution doesn't help me. Jetty version: jetty-7.4.3.v20110701 回答1: There is probably no way to configure the problem away. Each JVM has one PermGen memory area that is used for class loading and static data. Whenever your application gets

How to solve Private bytes (Native memory) leak?

自作多情 提交于 2020-01-01 02:44:08
问题 I'm developing a C# application which seems to have a leak. I've used memory profiler and found that my private bytes keep increasing but Bytes in all Heaps do not, which means that probably it's a native memory leak Now I'm stuck, how do I find memory leaks in native code ? 回答1: First, if you have a dump of the leaking process, you can open it in WinDbg and issue the command : !address -summary if RegionUsageHeap is large, then it should be a native memory leak if RegionUsageIsVAD, then it

Life of JavaScript objects & Memory Leaks

余生颓废 提交于 2020-01-01 02:44:08
问题 I have researched quite a bit about this but mostly by piecing other questions together, which still leaves some doubt. In an app that does not refresh the browser page at any time and may live for quite a while (hours) without closing (assuming that refreshing a page or navigating to another would restart the js code), what's the best way to ensure objects are released and that there's no memory leak. These are the specific scenarios I'm concerned about: All of the code below is within a

This Handler class should be static or leaks might occur (com.test.test3.ui.MainActivity.1)

雨燕双飞 提交于 2020-01-01 01:16:16
问题 I am new to android and i try to develop a system but when i finish code the handler show this warning below show the code after I edit, the handler in event ontounch show the warning handler cannot be resolved. I try putting // to ignore the handler at i try run the application and its result in force close. public class MainActivity extends Activity { protected static final int STOP = 100; ImageView iv; private ProgressBar pb; LinearLayout ll; private AnimationDrawable anim; ScrollView sv;

Memory Leak, why are there so many ReaderWriterLock objects in my finalization queue?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 01:13:32
问题 I have a .NET windows service application with a memory leak. Overview: The service connects to another service via TCP, and writes data to a SQL server database. The service normally runs between 100 and 300 MB depending on how much data it has queued up. It generally takes 3 + days before I noticed the service's memory is getting out of hand, and will have a Out Of Memory exception within 2 weeks of running. I think the issue might be related to a massive number of objects that are not

How do I Save the Heap (Dump to a File) in Eclipse?

你。 提交于 2019-12-31 23:08:08
问题 I'm getting this error when I run or debug my GA/AI from MyEclipse: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space eclipse.ini looks like this: -showsplash com.genuitec.myeclipse.product --launcher.XXMaxPermSize 256m -vmargs -Xms128m -Xmx512m -Duser.language=en -XX:PermSize=128M -XX:MaxPermSize=256M MyEclipse is called like this: "C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe" -vm "C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe" -vmargs -Xms1448M -Xmx1448M

How do I Save the Heap (Dump to a File) in Eclipse?

孤街浪徒 提交于 2019-12-31 23:08:01
问题 I'm getting this error when I run or debug my GA/AI from MyEclipse: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space eclipse.ini looks like this: -showsplash com.genuitec.myeclipse.product --launcher.XXMaxPermSize 256m -vmargs -Xms128m -Xmx512m -Duser.language=en -XX:PermSize=128M -XX:MaxPermSize=256M MyEclipse is called like this: "C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe" -vm "C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe" -vmargs -Xms1448M -Xmx1448M

Node.JS memory leak with PM2

倖福魔咒の 提交于 2019-12-31 15:48:54
问题 I was running my server with pm2 start ... and pm2 monit was showing me 3GB memory after 2 hours. So I attached memwatch, now I waited for another 2 hours and again the memory shown by pm2 monit reached 3GB . So, I checked the logs memwatch generated. Showed me: { before: { nodes: 75659, size_bytes: 11141702, size: '10.63 mb' }, after: { nodes: 73226, size_bytes: 10840598, size: '10.34 mb' }, change: { size_bytes: -301104, size: '-294.05 kb', freed_nodes: 5141, allocated_nodes: 2708, And