Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

configuration for visualvm to profile web application  RSS feed

 
Jordan Josh
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,


I have installed plugin with eclipse for visual vm ... can any one tell me how to configure it for local web application running on Weblogic server ?

Regards
Jatan
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
VisualVM doesn't need to be configured, but the app server does - you need to enable remote JMX access via RMI. That means setting some system properties and opening a port. VisualVM then just needs to know the IP and port (and maybe a username and password if you set one).
 
Jordan Josh
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

Thank you for your reply . I have started visualvm from jdk / bin directory it shows the weblogic server analysis but my problem is how to get statistics for

Web application running on local weblogic server .. how can I do the configuration for it .

Regards
Jordan
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What statistics specifically are you interested in? VisualVM gathers and displays a number of stats while it is connected to a JVM, but it has no means to collect those while it is not connected. You may have to collect them via custom-written MBeans that are part of the web app - then you can display them once VisualVM connects.
 
Jordan Josh
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf ,


thank you for your reply. I have tried googling "how to connect / configure web application running on weblogic with visualvm " .. i am not finding the solution .. for it also do i need to wrtie custom mbeans ?
I am using eclipse for my application development .

Regards
Jordan
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if VisualVM integrates with Eclipse, but it comes with the JDK, so you have it installed and can run it from the command line (or maybe there are scripts that run it, I don't recall how that works). On Windows there's probably something to double-click to start it.

But before you do that you need to enable JMX via RMI for the server; have you done that? That has nothing to do with VisualVM, and is described in https://docs.oracle.com/javase/8/docs/technotes/guides/management/toc.html, particularly section 2 (be sure to follow all the steps for local and remote access).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!