Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [epp-dev] MAT in Java-based packages

Marcel,

I think this could work.

There are p2 instructions to add stuff to the eclipse.ini file. 

p2.inf:
#instructions.configure=\
#  addJvmArg(jvmArg:...);
#instructions.unconfigure=\
#  removeJvmArg(jvmArg:...);

Thus, whenever someone installs the aeri-memory-extension, they would be added automatically. 

Hypothesis: this should also work during product build. 

Now, you have to decide how to deliver it. It sounds like there should be an aeri extension which includes mat. It could be included in the committers package and/or people can install it when they like it.

-Gunnar

-- 
Gunnar Wagenknecht
gunnar@xxxxxxxxxxxxxxx, http://guw.io/






On 29 Sep 2016, at 17:17, Marcel Bruch <marcel.bruch@xxxxxxxxxxxxxx> wrote:

Dear package-maintainers – and Gunnar in particular,



I got some feedback from MAT how we could run a “memory leak suspects" analysis in a headless mode - which is what I think is needed in most cases to spot the problems.

There are still two questions open on which I’d like to get your opinion on:


1.
If we’d like to analyze OOM exceptions, we need to instruct the VM to dump the heap whenever they occur. We could do so by (i) adding the  -XX:+HeapDumpOnOutOfMemoryError to eclipse.ini (I know it only works for Oracle VM but 99% of our users use it) or (ii) ask the user on AERI activation whether he want’s to enable heap dumps (if the option is not already set).


2.
Availability of MAT. There are two ways how we could run MAT. If it would be part of the EPP package, we could just start a new process which generates the report (see [1] for more details). If it’s not part of the IDE, we’d need to download it once and save it in the workspace folder.



The most convenient way for me would be to add the flag to eclipse.ini for the committers package and to add the MAT features to it as well.

Gunnar, whats your opinion on that?


Would other package maintainers be interested in sending OOME analyses results for errors that occur in their products? If so, who?

If there are others interested as well, we certainly need to allow users to enable/disable that feature easily and we can’t take the shortcut outlined above (i.e. automatically create heap dumps etc.).



Cheers,
Marcel






On 29 Sep 2016, at 09:56, Marcel Bruch <marcel.bruch@xxxxxxxxxxxxxx> wrote:

Thanks Kaloyan.

I asked in the MAT forum for details [1].


[1] https://www.eclipse.org/forums/index.php/m/1744561/?





On 12 Sep 2016, at 09:22, Kaloyan Raev <kaloyan.r@xxxxxxxx> wrote:

Hi,

On 09/05/2016 11:23 AM, Marcel Bruch wrote:
Just to say it clearly: I don’t know if MAT can be used reasonably well for this use case and I’ve no concrete plan when I’ll work on this item. I’ll follow up when there is something to show.


I remember that at SAP we used (and maybe it is still used) MAT to automatically analyze OOM crashes for a Java Server. MAT run headless and generated a report (text and charts) that was included in a mail alert. It should be able to run in a similar way for the Eclipse IDE too.

--
Kaloyan Raev | Zend Studio Team Lead
Rogue Wave Software, Inc.
Accelerating Great Code
M +359 887 648 663
www.roguewave.com / kaloyan.raev@xxxxxxxxxxxxx
_______________________________________________
epp-dev mailing list
epp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/epp-dev

--
Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-179-131-7721
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


--
Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-179-131-7721
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940

_______________________________________________
epp-dev mailing list
epp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/epp-dev


Back to the top