This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

configuration for visualvm to profile web application

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic