I am looking into how to use JConsole to detect memory leaks. I see that in Memory Pool in my MBeans I can define UsageThreashold for my Tenured Generation. So if my application exceeds this threashold the heap memory becomes red in the Memory tab. Question: How does this help? I mean how am I supposed to use this setting
Tag: memory-leaks
What is the reason for OutOfMemoryError: Java heap space in the following case?
The following code sample is inside a for loop that runs about 2 million times. stack trace: Please let me know if more information is required. Thank you. Thanks everyone for the answers. I will accept BalusC’s answer since he answered first. Unfortunately I cant upvote any other answers due to not enough reputation 🙁 Just a side note to
How to find root of memory leaks?
My app is basicly and image editor. There is a welcome page which opens main activity with an intent. If orientation changes when main activity is working the memory consumption simply doubles up and remains that way. If i close the main activity turn back to welcome activity and start main activity again same problem does not occur. I think
Eclipse Memory Analyzer – Leak Suspects Report doesn’t point to MY classes – why?
I’m trying to determine whether or not I have a memory leak in my webapp. I’m using VisualVM and JMeter to load test and watch the heap. I saved a heap dump to file and downloaded Eclipse Memory Analyzer yesterday…after much frustration with VisualVM, I thought Eclipse would pinpoint the leak, if any, better than VisualVM. I opened the heap
OutOfMemory Exception – how does VisualVM help locate the memory leak with heapdump file?
I’ve been testing my webapp locally on my pc and monitoring it with VisualVM. I recently also started using JMeter, as it was suggested that I should do some load testing since I suspected that I have a slow memory leak somewhere. Today my webapp finally threw the OutOfMemory exception. I had the HeapDumpOnOutOfMemoryError and HeapDumpPath params set in case