I played with Eclipse's TPTP (http://www.eclipse.org/tptp/) a bit more than a year ago. The UI was nowhere near intuitive and getting the agent to work on Linux was a real challenge -- there was documentation, but it was somewhere between wrong to begin with and outdated. After a few trips to the newsgroups I managed to get useful results, though; albeit with some major performance impacts during measurements. All in all no fun, but successful in the end. And maybe things got better -- who knows.
Worth a shot if you want a proper profiler telling you what gets called/created/removed how often. If you want just the higher-level information you might be better off trying to get VisualVM to work for you --compared to TPTP it's not as powerful but pretty nice. And don't forget the OS tools: a "top" or equivalent can tell you a lot, and I still want to learn dtrace for the real serious tasks since that seems a very rich source of information. HTH, Peter On Wed, Oct 22, 2008 at 1:53 AM, MassH <[EMAIL PROTECTED]> wrote: > > I've been spending lots of time with NetBeans profiler, but I'm unable > to get passed various runtime errors. > > I've done Internet searches and found a dozen open source profilers > that seem to be abandoned. JProbe looks great, but it's $700, which is > completely out of my budget (I'd happily pay $100-$150 for a really > nice profiler, but $700 is just too much for a tool on a personal > project). > > Can I add Java code to query the JVM for memory usage and CPU usage > info and use logs of that data to optimize? Specifcally, is it > possible to query: > - Amount of memory currently used by JVM? > - Amount of memory used by a given HashMap (including keys + values)? > - CPU cycle-type metrics? Of course, system clock is great, but > sometimes, a more direct measure is preferred > > Also, when I use Java JConsole.exe, heap memory is split into Eden > Space, Survivor Space, and Tenured/Old Space. I've read the docs, and > don't quite understand the distinction between Eden/Survivor space. > Could someone attempt to explain this? > > Alternatively, is there another platform with better performance > characteristics and optimization tools than Java? I can migrate to a > different dev toolset if need be. > > > -- What happened to Schroedinger's cat? My invisible saddled white dragon ate it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---
