Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 20-07-2010
Member
 
Join Date: Mar 2010
Posts: 372
Detect memory leak in java

Hello,
I have a problem with an application. The memory consumption rises gradually. The problem is that the application must turn 24/24. With JConsole, I noticed that what goes up never stop the graph is "Tenured Gen". Apparently the oldest objects. There are a lot of code to detect or Be certain it's coming, especially since the application in question is testing the various API implemented here. So to track down the problem is poverty. I am not able to install JProbe. Someone would see it another way to locate the problem.
Reply With Quote
  #2  
Old 20-07-2010
Member
 
Join Date: Dec 2009
Posts: 192
Re: Detect memory leak in java

Memory leaks that are not 'Data Cancers' are:

- Native memory leaks - eg forgotten dispose () calls or bugs in the JVM,
- Incorrect implementations of finalizer - finalizers are not destruction
- Waiting queues and objects in finalizer Reference queues, and
- Cascading effects with objects of type 'java.lang.Reference'.

All these problems are very rare compared with the 'Cancer Data' type.
Reply With Quote
  #3  
Old 20-07-2010
Member
 
Join Date: Dec 2009
Posts: 292
Re: Detect memory leak in java

- Will make heap snapshots.
- Can one make snapshots of Diff.
- Finds all references to an instance.
- Displays the Reference graph of Reference up to a static root or main instance.
- If solutions can simulate, for a reference can usually over multiple paths can be achieved.
- Should show the heap as if the garbage collection on the flight would work. For we should have to observe the garbage collection yet.

It is also important as a tool Reference Graph can navigate through an intuitive and how it displays the information. A tool that only one level of a Reference Graphs show will not be very helpful. Reference graphs often reach more than 100 levels.
Reply With Quote
  #4  
Old 20-07-2010
Member
 
Join Date: Dec 2009
Posts: 204
Re: Detect memory leak in java

I recommend the Reference Scanner, you can see this on the official site. This tool we wrote because we found that our well-known popular tools do not help much in our daily work. It has all the characteristics that have just described is fast and has a low memory consumption. You can a conventional JVMPI Profiler also use the other approach as our tool and support in finding a trace of memory leaks have something. The best known tools are OptimizeIt and JProbe.
Reply With Quote
  #5  
Old 20-07-2010
Member
 
Join Date: Dec 2009
Posts: 292
Re: Detect memory leak in java

One of the most successful methods is this one:

- Define two points in time to take a heap snapshot.
- Finished a diff from the snapshot to.
- Reference to analyze the graph instances that are left in the diff.
- Simulate one or more solutions.
- Implement a solution.

Choose the second date as heap-neutral as possible in respect of the first date. Return back to a state, no more objects would be expected where as before. Please think of any unsaved changes (Save?), Histories, undo lists, caches, pools, etc..
Reply With Quote
  #6  
Old 27-07-2010
Member
 
Join Date: Mar 2010
Posts: 383
Re: Detect memory leak in java

I think this myth is false. Whenever I was told that the JVM is no longer creates, then it quickly became quite normal out a memory leak. Very often tools are the most common problems JVMPI easy to find all references and the Reference Graph Overview display. Just try out several tools.
Reply With Quote
  #7  
Old 28-07-2010
Member
 
Join Date: Mar 2010
Posts: 200
Re: Detect memory leak in java

If the object is still there even after the garbage collection was called, then it is almost always that the object is fully achieved yet. Festivities reached a static root of or from the main instance itself at least one other object references the object. So take to the virtual machine that the object is still in use. If a program leaks memory, because it referencing the memory not the picks, then we call this problem 'Data Cancer' - Data cancer. The heap grows and grows. In the worst case, throwing the program later an 'Out Of Memory' Exception - it has no more memory to go on.
Reply With Quote
  #8  
Old 11-11-2011
Member
 
Join Date: Nov 2011
Posts: 2
Re: Detect memory leak in java

Quote:
Originally Posted by Isabella View Post
Hello,
I have a problem with an application. The memory consumption rises gradually. The problem is that the application must turn 24/24. With JConsole, I noticed that what goes up never stop the graph is "Tenured Gen". Apparently the oldest objects. There are a lot of code to detect or Be certain it's coming, especially since the application in question is testing the various API implemented here. So to track down the problem is poverty. I am not able to install JProbe. Someone would see it another way to locate the problem.
I am trying to solve this problem " Detect Memory Leak in Java " using java.lang.instrumentation and Javassist library which is used to instrument bytecode but still not getting success on it.....I found one Profiler JLeak but is not giving me perfect solution......

So if u guys having any solutions then please help me....

Regards,
Avesh

Last edited by avesh_kaliya : 11-11-2011 at 07:01 PM.
Reply With Quote
  #9  
Old 14-11-2011
Member
 
Join Date: Nov 2011
Posts: 2
Re: Detect memory leak in java

dfgddfgdfgdfgdgdgdgdgdgd
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Detect memory leak in java"
Thread Thread Starter Forum Replies Last Post
svchost.exe consumes CPU and Memory - Memory Leak? Chad Gross Windows XP Support 1 25-03-2013 12:46 PM
Memory Leak 60 to 30-40 fps in Crysis 2 Krisoijn Motherboard Processor & RAM 5 25-03-2011 10:16 PM
How to compare states of memory in memory leak? Bottlenecked Windows Software 4 24-06-2010 06:35 AM
Firefox memory leak Waffle Technology & Internet 3 20-08-2009 11:33 PM
Memory leak issue with New PC Alchmey Windows Software 2 23-10-2008 08:01 PM


All times are GMT +5.5. The time now is 08:29 PM.