Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCustom MAT plugin not loaded on startup
https://www.eclipse.org/forums/index.php/mv/msg/457990/1016581/#msg_1016581
We recently wrote a MAT plugin with a custom query and report, with the aim of automatically extracting data from large numbers of dumps with a headless MAT using the ParseHeapDump script. We followed the instructions outlined in this thread, which is still an incredibly useful resource nearly 4 years on!
The resulting plugin works almost perfectly. The only problem is that our plugin is not loaded automatically on first startup after it is deployed to $MAT_HOME/plugins. For it to load, I have to spin up the UI and go to Help/About/Installation Details/Plug-ins, where the plugin is listed. After this, the plugin functionality is available, and it is loaded on subsequent restarts as well as when running headlessly.
Unfortunately, this step must be repeated whenever the plugin is re-deployed. The implication is that we cannot deploy new versions of the plugin to an entirely headless MAT.
Is there anything I need to set in the plugin or on the commandline invocation to ensure my custom plugin is loaded on startup?
You might have to use the GUI version to do the console operation, but it seems to remember the started state of the p2.reconciler.drops bundle.
]]>Andrew Johnson2013-03-12T20:34:38-00:00Re: Custom MAT plugin not loaded on startup
https://www.eclipse.org/forums/index.php/mv/msg/457990/1017943/#msg_1017943
http://wiki.eclipse.org/MemoryAnalyzer/Contributor_Reference#Writing_plugins_for_the_Memory_Analyzer
You might have to use the GUI version once to run with the console and start the p2.reconciler.dropins plug-in, but the plug-in seems to still be active when Memory Analyzer is restarted.]]>Andrew Johnson2013-03-12T20:37:35-00:00