Conceptual Algorithms
Recorded at:
- Sections
- Process & Practices
- Architecture & Design
- Development
- Topics
- Testing
- github
- RubyFringe
- Ruby
- Methodologies
- Software Testing
- Source Code
- Source Control
- Dynamic Languages
- Quality
- Patterns
- Patterns and Practices
- git
- Debugging
- Software Troubleshooting
- Delivering Quality
- Software Craftsmanship
- Agile
Entertaining talk
by
Markus Kohler
Analyzing memory leaks is easy in Java (Eclipse Memory Analyzer).
Analyzing memory usage is much more difficult, but still can be done with MAT. Check my blogs posts
Re: Entertaining talk
by
Werner Schuster
There are a bunch of leaks - although recently a fix for many of them was found:
www.infoq.com/news/2009/01/ruby-patches-fix-leaks
(turns out it was naughty GCC + the conservative Ruby GC).
For the nice kind of memory leak (the self-inflicted one in user code) Ruby doesn't need outside tools since it can look at the objects in the heap and iterate over the reachable ones. Eg here's a simple homegrown profiler using ObjectSpace:
scottstuff.net/blog/articles/2006/08/17/memory-...
Obviously - you'll still need some of the algorithms for analyzing the object graph and figuring out what might be a memory leak or not, and tools like MAT have these of course.
Wau!!!
by
Jure Srsen
I would listen to audio versions of this in a regular podcast :)
Jure Sršen
Re: Entertaining talk
by
Markus Kohler
I never heard of such a bug in the JVM GC within the last 9 years.
You typically need an external tool, because if you don't have enough memory anymore you cannot use additional memory within the same process.
Re: Entertaining talk
by
William Louth
William




Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think