• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

My Blog Post - Java Memory Usage Monitoring Without Profiling Tools

 
Tarun Trehan
Ranch Hand
Posts: 51
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I blog at allzhere . Being in a department that does not allow installing tools related to profiling and other monitoring features; following is a link about a concept i leveraged at work to monitor web applications memory usage :

Java Memory Usage Monitoring Without Profiling Tools
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In such situations I generally strive to enable remote JMX on the JVM, so that tools such as VisualVM can be used to connect to to and take a look at what's going on inside of the JVM (and get heap and thread dumps if necessary) The enabling consists merely of setting properties at JVM startup time, so nothing needs to be installed; that should make it palatable to most sys admins.
 
Tarun Trehan
Ranch Hand
Posts: 51
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf.

I haven't explored this option; but sounds simple enough to implement.
Though, i may not be able to implement this in near future;but will post my experience.
 
Jayesh A Lalwani
Rancher
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem with JMX console is that the port needs to be opened, and that can be problematic. Also, you can change things using JMX, and I believe also inspect your HTTP sessions. If for some reasons, your developers have to be isolated from client data, Sys admins will not give you access because it is too versatile to give in developer hands. For us, the happy medium has been that when there are performance problems, the support team gives us thread/heap dumps, and we analyze it using the tools that we have. You don't need to install anything on the production machines

Obviously having JConsole is very nice, and I've been trying to educate our support people in JConsole, so they see the value in it, and install it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic