How to install VisualVM plugin VisualGC - When Plugin Network Install blocked - visualvm

I'm using VisualVM to monitor a number of JAVA applications, I would like to install some of the plugins that are available within this app.. Unfortunately the 'Available Plugins' option does not work for myself, as I believe I may be blocked by the corporate proxy.
Any ideas how and where I can download an offline plugin, so that I can see this in 'VisualVM'.
Thanks,
Shaun.

Plugins for offline VisualVM installations can be manually downloaded from the Plugins Centers page. Download the plugins as .nbm files. To install them in VisualVM do the following:
In VisualVM main menu choose Tools | Plugins, Plugins dialog is opened
Switch to Downloaded tab, click the Add Plugins... button, select downloaded plugin .nbm file(s) and click the Open button
Click the Install button, review and accept plugin license and wait for the plugin to be installed

Go to Tools > Plugins > Settings.
Edit URL to https://visualvm.github.io/uc/release139/updates.xml.gz.
Now plugins will be available & you can install online.

1、Plugins Center:https://visualvm.github.io/pluginscenters.html
2、 Tools | Plugins

On a production machine with no public internet connection, I was able to successfully install Luis-Miguel Alventosa's VisualVM-MBeans plugin by following this article dated November 19, 2012 and titled  "Installing VisualVM plug-ins into the shared directory"; http://veithen.github.io/2012/11/19/installing-visualvm-plugins-into-shared-directory.html; last accessed Jan 25, 2018.
"[The] article describes how to install VisualVM plug-ins into [a] shared installation directory instead of the user’s home directory. This is useful if the VisualVM installation is used by multiple users on the same system or if you want to create a custom VisualVM distribution with a set of pre-installed plug-ins. Actually the 'Force install into shared directories' option in the plug-in installation dialog (see the 'Settings' tab) should enable that, but the option doesn’t seem to work in VisualVM 1.3.4."
 
The following procedure can be used as a workaround:
Let VVM_HOME be the folder where VisualVM is installed.
On Windows Server 2012, a good choice might be C:\Users\Public\Public Desktop\VisualVM
Let PUBLIC be a machine with a public internet connection.
Let PRIVATE be a machine that lacks a public internet connection.​
On PUBLIC
Install VisualVM.
At least once, start VisualVM and exit.
Remove (or backup) the user's VisualVM per-user configuration folder.
On Windows Server 2012, %APPDATA%\VisualVM\x.y.z.
On Linux, ${HOME}/.visualvm/x.y.z folder.
Launch VisualVM and install the relevant plug-ins. They will be placed into the user's VisualVM per-user configuration folder (the one deleted in the previous step).
On PRIVATE
Install VisualVM.
Create a new directory called custom (you may of course choose a different name if you want) under the VisualVM installation directory (i.e. at the same level as the platform and visualvm directories).
​Copy the following folder structures from ${HOME}/.visualvm/x.y.z to the custom directory e.g. %PROGRAMDATA%\VisualVM​\x.y.z (so that the resulting folder structure matches the one in platform and visualvm):
​​​config/Modules
modules
update_tracking
Edit the VVM_HOME/etc/visualvm.conf file enable a custom cluster folder: on Windows Server 2012, the line readsvisualvm_extraclusters=C:/ProgramData/VisualVM/1.4​
Remove the user's VisualVM per-user configuration.
If you start VisualVM now, the plug-ins you have copied to the custom folder should be available immediately.

All sorted now...
If you goto the Plugin download site and download the required plugin, this by default is a ZIP file. Rename the ZIP to a NBM file and then you can manually install the plugin via the download tab.

Related

Java VisualVM MBeans plugin

I am running JDK 1.8.0_66 JVisualVM utility and want to use MBeans browser to Monitor my Coherence applications.
According to the Oracle tutorial I have to install the MBeans plugin first. So I went to Tools-Plugins-Available Plugins and there were no any available plugins. I checked my JDK installation for *.nbm files and found nothing.
What do I need to do to install MBeans plugin for JVisualVM? Thank you in advance.
When accessing https://visualvm.java.net I get redirected to http://www.oracle.com/splash/java.net/maintenance/index.html which states that the page has been closed.
Thus I think you have to download and install the plugins manually.
Go to https://visualvm.github.io/pluginscenters.html
Choose the link to "Java VisualVM" according to your JDK version
Download the tool manually
Select "Tools" -> "Plugins" -> "Downloaded" tab to install the downloaded file
Worked for me.
It appears the visualvm site has moved to github.io, so the links are broken. I just updated mine to the correct one on found on
https://visualvm.github.io/pluginscenters.html
In VisualVM go to Tools -> Plugins -> Settings, Edit Java VisualVM Plugins Center, and change the URL to the correct URL for your VisualVM, ex:
https://visualvm.github.io/archive/uc/8u40/updates.xml.gz
After this I was able to update & install plugins using the UI again.
You need to be connected to internet and you should have access to https://visualvm.java.net

IntelliJ Run Configuration Broken by an Incompatible Plugin I Can't Uninstall?

I had been developing an application on a trial version of IntelliJ 2016 Ultimate. Since the trial version ran out, I resumed work using the Community Edition. However, trying to launch my application yielded the following error:
Unknown run configuration type #com.intellij.j2ee.web.tomcat.TomcatRunConfigurationFactory
"No problem" I thought, just an incompatible plugin that was installed with Ultimate that I don't really need anyway. I opened the Plugins section of the Preferences menu, but I can't find the plugin in question. Below is a partial screenshot of the plugin list where I would expect to see the plugin listed in the error message.
The configuration can also not be edited from the Run/Debug Configurations menu, but lists the Run Configuration error as: "Broken configuration due to unavailable plugin or invalid configuration data."
Am I really unable to uninstall the Ultimate plugin preventing my run configuration from working from the Community Edition? What can I do to fix this if so?
It's have been a long time since this question was launched but it might be useful for new searches.
I got the same error with Dart and Flutter.
Just go to Menu >> File >> Settings. Then type plugins on the search box. Check if your plugins need to be updated (in my case Dart and Flutter). I the screenshot I had clicked in the "update" green button. So it turns into "Restart IDE" text. It should fix the problem once you restart the IDE.
To the best of my knowledge the community edition of IDEA will not load and run plugins that are not compatible with it. Moreover, by default, the community edition uses a different configuration directory than the Ultimate edition. So unless you modified the config directory to use, the community version should not be picking up the Ultimate Edition's plugins. Based on the error you show, I think the issue is you simply need to delete that Run configuration. The error is saying that that Run configuration wants to use a Plugin (The Tomcat Plugin) that is not available (i.e. not installed).
If you still want to confirm what plugins are installed, you can manually uninstall a plugin by removing it from the plugins directory. Note that some plugins are simply a standalone JAR, in the plugins directory, others are sub-directories within the plugins directory. Just delete the JAR or sub-directory.
That plugins directory is the idea config directory. See Directories used by the IDE to store settings, caches, plugins and logs for information on its location. On windows for example, by default it will be:
Ultimate: C:\Users\UserName\.IntelliJIdea2016\config\plugins
Community: C:\Users\UserName\..IdeaIC2016\config\plugins
UPDATE
I forgot to mention... bundled plugins are in ${idea-install-directory}/plugins. So for the ultimate edition, the Tomcat plugin is in ${idea-install-directory}/plugins/Tomcat. That is why, as you mentioned in your comment below, you are not seeing that plugin in the user installed plugin directory I mentioned above.
updating flutter and android studio worked in my
case
Simple upgrade Dart plugin..
Go to Settings/Plugins/Browse Repositories and search dart (Language) and upgrade
this will work.
I had a similar worded issue "Run Configuration Error: Broken configuration due to unavailable plugin or invalid configuration data."
In the bottom right part of the Rider IDE, you will see a popup that says
"Plugin supporting feature (Run Configuration[UNITY_ATTACH_AND_PLAY]) is currently disabled."
Click enable plugins, and restart when Rider asks you to do so.
If this does not work, remember that one possible reason is the issues with macOS indexing (my Macbook started to malfunction after its battery hit 0). A way to check is to try and search a file from the top right corner(). If you can not find existing files, this means macOS messed up with indexing.
To solve it, click Apple icon on top left side and go to System Preferences -> Spotlight -> Privacy Tab -> Add all folders to the "won't index" box -> Remove everything you have added so they get reindexed.
https://www.techradar.com/how-to/software/operating-systems/how-to-fix-a-mac-s-broken-find-function-1298964
Lastly, go to Rider and hit File -> Invalidate Caches and Restart.

Where do I find IntelliJ settings files to import - from existing version I cannot boot (text only mode)

I am setting up a laptop because my Ubuntu desktop has ended up in a state. The desktop starts in text-only mode - that is, no windowing environment.
I am starting up IntelliJ and prompted to import settings from another version of IntelliJ if I have them.
What I don't see is where that file (or what file) is stored on disk on my Ubuntu environment, and not sure if I can pick it up from the file system, move it across the network and import it into my new install of IntelliJ.
Thanks in advance
Settings are in s a hidden folder under your user home directory. The exact location depends on your OS and version. For further details, see: Directories used by the IDE to store settings, caches, plugins and logs.

installing plugin in eclipse-cpp-helios-SR2-linux-gtk-x86_64

Can someone tell me how to install a map reduce (hadoop) plugin in eclipse-cpp-helios-SR2-linux ? Thanx in advance
hi
you can try this approach. Use any latest version of eclipse and than install CDT in it. This will allow you to write c/c++ application.
for your hadoop just go to you hadoop installation directory,here in contrib folder you will find eclipse plug-in in this folder you will get the jar file, just copy this file in to eclipse plug-in directory and restart the eclipse.
Now check for map-reduce perspective in window->open perspective and select build configuration according to your system
I don't know about the hadoop plug-in site if you find a site which provide hadoop plug-in than
There are two way to do it.
1:As you read over the net copy the plug-in and paste it into Eclipse plug-in folder and restart the eclipse. This is not the best way to install plug-in.
2: The proper way to install plug-in in eclipse is following :
Go to Help menu in Eclipse main window press Install new software.
Here in tab work with just put the address of website from where you want to install the plug-in.
Write any name for plug-in than look in the text box. it will provide you proper name of the plug-in and "next " tab at the bottom will be activated.
Press the next tab,It will install your plug-in .
At the end of installation just restart the eclipse to take the new setting effect.

exporting installed plugins from eclipse to another

How to export installed plugins from eclipse?
I want to use some of my installed plugins in another eclipse machine.
I don't want to download those again.
Regards
Start fresh and install plugins from an old install
The idea here is that you want to keep your old install intact, download a new indigo package (http://download.eclipse.org/) and just adds the existing plugins to your install. With Indigo this is now made super easy!
Step 1: Download and unzip your Indigo install: http://download.eclipse.org
Step 2: Import your plug-ins from your previous install by doing File > Import > Install > From existing install, pick your old install, select the plug-ins and there you go! You can chose to go piece meal, or chose to pick several entries, in any event dependency analysis will be performed to check the validity of the install.
Step 3: Click next a couple times and patiently wait for the bytes to download to your machine. Then restart and enjoy!
from http://lenettoyeur-on-eclipse.blogspot.com/2011/06/from-helios-to-indigo-is-easy.html
You can export the list of the features and plugins by going to File->Export->Install.
I’m bringing a really old thread to life here, but there’s a much more comfortable way to export your Eclipse plug-ins and use your setup on another machine now.
On http://profiles.yatta.de you can download the Yatta Launcher for Eclipse, which allows you to export your Eclipse & workspace setup (including your plug-in setup).
Export and installation are pretty straight forward:
Download the Launcher from http://profiles.yatta.de and start it
The tool will automatically discover your Eclipse installations. Find the one you want to export in the list (they are all named after your workspaces).
Click the Upload & Share button (the blue one) on the right of the entry you want to export.
(You won’t actually “share” your Eclipse or workspace with anyone. You’ll just upload a setup file with your metadata that only you have access to yourself. You could share this later, but you can also just keep it as a backup).
This solution does not only allow you to reuse your eclipse plug-in setup, but also your configured Git & task repositories and many other setup-specific settings.
Along with update sites, p2 can treat existing Eclipse installations as a source for the plugins to be installed.
If you access the Eclipse folder in another machine (which has the plugins installed) via shared folder in the network , then in your new Eclipse, open Preferences->Install/Update->Available Software Sites->Add->Local-> browse to the Eclipse->p2->org.eclipse.equinox.p2.engine->profileRegistry and select the profile.
Now in the target Eclipse you can install those plugins as if you are installing from an update site.
P2 (the bundle provisioning system) provides functionalities for shared bundle pooling, see
http://wiki.eclipse.org/Equinox/p2/Getting_Started#Bundle_pooling
It seems that feature is on its way: http://bugs.eclipse.org/282419
I don't know how to export a installed plugin,
but this answer helps for reinstalling an eclipse plugin from another eclipse installation. (How Do You Reinstall Installed Eclipse Plugins?)
Also See
Installing Eclipse (3.4+) plugins in a directory other than ECLIPSE_HOME/plugins
How To Add Perspectives In Eclipse?
You can simply copy the plug in folder from the other machine --(may be on a pendrive or cd )-- whatever suits you.
Then go to your ecplise,
File > Import... > Plug-in Development --> Plug-ins and Fragments Click "Next"
[Import From] -- Directory. Browse your plugins folder
Just Hit "Next"
From the left box, select individual or you may want to add all of it. Just hit
"AddAll ->"
And Just Hit "Next"
and there on just sit back let it do all the import work.
Dropping the right jars from your plugins directory to the target installation plugins directory should do the trick.