• 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
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Java Profilers for a Spring Boot application which is using too much memory

 
Bartender
Posts: 1202
20
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, just a quick question: are there any recommended tools?  We are using Java 17.
Looking at a few already, IntelJ Profiler and Java Mission Control.  Others seem to require a license or are older.  
(Thanks in advance)
 
Marshal
Posts: 4953
625
VSCode Eclipse IDE Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your goal to locate the source of excessive memory consumption?

VisualVM has help me find memory leaks (sticky references, resources that never get closed, unremoved thread local storage for pooled threads, etc.).  Depending on what you are trying to find, it may help.
 
Marshal
Posts: 6307
507
IntelliJ IDE Python TypeScript Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am yet to need anything more than VisualVM to find memory leaks. In my case it's usually some kind of object creation in a loop that gets out of hand, and that usually turns up in VisualVM as a collection with a lot of things in it.
 
Peter Rooke
Bartender
Posts: 1202
20
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, looking at an application that is using too much memory.  
Many thanks, I'd taken Visual VM off my list of candidate tools, but will now look into it.
 
Bartender
Posts: 29139
215
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Cooke wrote:I am yet to need anything more than VisualVM to find memory leaks. In my case it's usually some kind of object creation in a loop that gets out of hand, and that usually turns up in VisualVM as a collection with a lot of things in it.



I worked in a shop that was too cheap to buy tools and had to use the stuff that comes in the JDK.

Took me several days to discover that the Oracle JDBC driver I was using had neither FIFO nor LIFO, but LIFI (last-in, FOREVER in). Test runs would take about 2-1/2 days each before critical mass was reached and the system blew. And, unfortunately, the data being traversed would hit that easily in production.

Once I discovered that fact, I found it was actually in Oracle's documentation. Down the stairs in an unused bathroom behind a locked filing cabinet bearing a sign marked "Beware of the leopard". But as a general rule we expect drivers to limit themselves. so I missed the faint note and had to discover it the hard way.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic