Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mat-dev] Next release of Memory Analyzer for Eclipse 2022-06 - help wanted
  • From: Kevin Grigorenko <kevin.grigorenko@xxxxxxxxxx>
  • Date: Mon, 25 Apr 2022 17:54:19 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=us.ibm.com; dmarc=pass action=none header.from=us.ibm.com; dkim=pass header.d=us.ibm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7Esw69nEMYAh615Rfflp0ly+9+CrJjmz2Whc4wrpTRs=; b=HoDDO/opagSqJJXsZe071Crg8nYCVkMUrJNi64jx+O+SlDmVZ1ZsjmyKn1nfTSZHWG9/6WSF97YAkmBuCSyEt8XKljwQzowEDj3WXiNlqf+uV8IWjlNJaJwjWdQdBF01lxQUKzhj5XQ3AWFpMQ6/9hBjjNkyp7+sert1Lz20JOkdVnOfGhYq4abKRreved8KOKlrXY0AJSN7Youi1xKAayRGdyQSKE+v+S1wpvrS6vKOqHonCAT+l/O8pKP3uulTKzWB/UvoF/PgO/RnkgUiwCLF+DyMhTZ2+/b/ebgF0jKb3SnHA0mL9t8+/Ss4PWdevAwxaCt0NFXB5gwUzSDgYA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K+cbtb5ogDAKQKz4TZXCc7XVfX2oMEwCYBiJUNwdV5WKwWKBTXBWEsp9QWFWFElClHwtbGPY/VvU8JlI/F6l+suZaG+Oynd5bPgMX/Xfg0bJrT+TiMOAc8fx1oGQUAVeTJr4kYetaKiw4CkAPBpYWFLJLLSrdvOfcetCAwCzfTL5a9f4S1s5IPbHZ5GHa/rTFXtJztYXy2XJ22c6T120u1JV8wKCgPX0Gp+ILmTYoEVT5ZL4iVuIF172CVZh9sIJClJNY/FTFT/pg7IQW50g30nvBezNInr5aCB7bv4PjUF0VNS/psShCsXe3odLhfCuXUMfeTwbu8jQlz3b4XF2SQ==
  • Delivered-to: mat-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/mat-dev/>
  • List-help: <mailto:mat-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/mat-dev>, <mailto:mat-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/mat-dev>, <mailto:mat-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdhYx+tJVM5ueXU4Rr6kZSb6gDV24QAA0cHv
  • Thread-topic: [mat-dev] Next release of Memory Analyzer for Eclipse 2022-06 - help wanted

I don't see why we should disallow running MAT as root by default. I have run MAT as root in some cases out of convenience (e.g. Docker containers). Yes, there is additional security exposure, but users are aware of that when running as root. If a user wants to limit running as root for the security risk, they can add -protect root.

 

I'm not sure, but it seems to me bug 578945 is a misunderstanding of Eclipse. The bug repoter wrote:

 

> it's a bug if I run something as one user and then try to run it as another and it fails mysteriously. I think a better design is needed, especially on multi-user systems. It shouldn't be that one run by one user ruins it for everyone else.

 

I believe one should not run with the same -data and -Dosgi.configuration.area directories using different users. For example, for our shared MAT installation used by IBM Support (which happens to be Windows Citrix but the same concept applies to Linux), we use a batch script that sets per-user directories. Snippet (this is for J9 Java thus the -Xshareclasses option):


@echo off

SETLOCAL ENABLEDELAYEDEXPANSION
set "programdir=%cd%"

set "workdir=%APPDATA%"

"%programdir%\eclipsec.exe" -data "!workdir!\MAT\data" -consoleLog -vmargs -Xms1g -Xmx32g "-Dosgi.configuration.area=!workdir!\MAT\osgi" "-Djava.io.tmpdir=!workdir!\MAT\tmp" "-Xshareclasses:name=mat,cacheDir=!workdir!\MAT\sharedclasses" --add-exports=java.base/jdk.internal.module=ALL-UNNAMED

 

-- 

Kevin Grigorenko

IBM App Platform SWAT

 

 

From: mat-dev <mat-dev-bounces@xxxxxxxxxxx> on behalf of Andrew Johnson <andrew_johnson@xxxxxxxxxx>
Date: Monday, April 25, 2022 at 12:14 PM
To: Memory Analyzer Dev list <mat-dev@xxxxxxxxxxx>
Subject: [EXTERNAL] Re: [mat-dev] Next release of Memory Analyzer for Eclipse 2022-06 - help wanted

I have fixed the CI build problem with Bug 579734: Update MAT version to 1.13.0 https://bugs.eclipse.org/bugs/show_bug.cgi?id=579734 The problem was having multiple product files in the same directory with different version numbers. Thank you,

ZjQcmQRYFpfptBannerStart

This Message Is From an External Sender

This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd

I have fixed the CI build problem with Bug 579734: Update MAT version to 1.13.0

https://bugs.eclipse.org/bugs/show_bug.cgi?id=579734

The problem was having multiple product files in the same directory with different version numbers. Thank you, Jason, for looking into it – details of the fix are in the bug.

For Bug 578945 Running as root corrupts configuration directory https://bugs.eclipse.org/bugs/show_bug.cgi?id=578945 should we set an option to stop MAT running as root? Does anyone run MAT as root? If so, why? One possible reason is to acquire heap dumps from any process on the system but perhaps it would be better to see if the acquire dumps using jps/jmap/jcmd or a helper VM could run as root instead. It seems a bit risky to run a large, long running application such as MAT as root.

Andrew Johnson

IBM

 

IBM United Kingdom Limited

Registered in England and Wales with number 741598.

Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


Back to the top