• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Performance Tuning Java

 
Ranch Hand
Posts: 509
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I recently used JProfiler on  a slow website and it turned out that Hibernate classes were hogging a most of the resources/memory.
There are whole books on dealing with just Hibernate issues.
Does your book address the issues of 3rd party libraries in general on performance and how to minimize the impact?

thanks,
Paul
 
author
Posts: 58
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Easy - don't use Hibernate.

In all seriousness, Hibernate is somewhat notorious as a resource hog.

But be careful when using profilers - they should only be used once you've determined that the application code (& libraries) are the source of slowness.

Now, in your case, they might be but a profiler would probably still point to them as being the problem even if what was really causing the issue was GC, or the database being slow.

The book gives some good heuristics for when it's a good idea to use profilers (& when it's not) - Spoiler: Profilers are much less useful than most developers believe, and they can seriously mislead you if you're not careful & take the time to understand how they work & their shortcomings.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic