Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

MemoryAnalyzer/Docker

< MemoryAnalyzer
Revision as of 11:15, 16 February 2020 by Andrew johnson.uk.ibm.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Docker and Eclipse Memory Analyzer

It is possible to run Eclipse Memory Analyzer in a Docker container. A useful Docker image is the following [1]

It is also possible to have minimal images to allow Eclipse Memory Analyzer to be tested in various Linux distributions. These Dockerfiles allow testing of snapshot builds.

FROM ubuntu
#If docker build gets the wrong time , might need apt-get -o Acquire::Max-FutureTime=86400 update
RUN apt-get update && apt-get install -y default-jdk wget unzip libwebkit2gtk-4.0 firefox
# Download snapshot build, just for testing
RUN wget "http://www.eclipse.org/downloads/download.php?file=/mat/snapshots/rcp/org.eclipse.mat.ui.rcp.MemoryAnalyzer-linux.gtk.x86_64.zip&mirror_id=1" -O /tmp/org.eclipse.mat.ui.rcp.MemoryAnalyzer-linux.gtk.x86_64.zip
RUN unzip /tmp/org.eclipse.mat.ui.rcp.MemoryAnalyzer-linux.gtk.x86_64.zip -d /opt
ENV DISPLAY host.docker.internal:0.0
CMD ["/opt/mat/MemoryAnalyzer"]

FROM fedora
RUN yum install -y wget unzip java-1.8.0-openjdk.x86_64 webkitgtk4 firefox
# Download snapshot build, just for testing
RUN wget "http://www.eclipse.org/downloads/download.php?file=/mat/snapshots/rcp/org.eclipse.mat.ui.rcp.MemoryAnalyzer-linux.gtk.x86_64.zip&mirror_id=1" -O /tmp/org.eclipse.mat.ui.rcp.MemoryAnalyzer-linux.gtk.x86_64.zip
RUN unzip /tmp/org.eclipse.mat.ui.rcp.MemoryAnalyzer-linux.gtk.x86_64.zip -d /opt
ENV DISPLAY host.docker.internal:0.0
CMD ["/opt/mat/MemoryAnalyzer"]

Back to the top