• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

My Blog Post - Java Memory Usage Monitoring Without Profiling Tools

 
Ranch Hand
Posts: 51
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic