From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id RMl9FW9AE2SFeREAWB0awg (envelope-from ) for ; Thu, 16 Mar 2023 12:14:39 -0400 Received: by simark.ca (Postfix, from userid 112) id 4AD211E223; Thu, 16 Mar 2023 12:14:39 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=lists.lttng.org header.i=@lists.lttng.org header.a=rsa-sha256 header.s=default header.b=prH28Epm; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.lttng.org (lists.lttng.org [167.114.26.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id CCE591E0D3 for ; Thu, 16 Mar 2023 12:14:37 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1678983277; bh=4k7uIiVoE6cwThQLopWynJTigaWudhGWio9DdLeHVfY=; h=To:Date:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=prH28EpmZ8sb7VvC8IMDKQImeZ1yDwXAnuB5HlfROJvXLy82DEXKoK8XCDKvGta6b vAyxAqrfzPmNzgRKrasj9iWa/zs0cluZdl0ERgxM2tiuNpfLIXd3QmVD/5wRTXg6xp WRL79ZflsyRXhTzfzapo7hBx4SuMbTrYoh59GYSSOQcOePbvzRkWbyWw79ggrg1/90 raIJhvW2LDGbTHqmDm2s4mH56c2Uz4HSsJymylQVt5pmAP7/b0lWUevSO0C9/cMJ1Q mgogvsbwyYawcZx2LlkKyNX5Ekj5GPNSkUfnIcKTAbac3dg4AfqISxotMjIMNAYof3 tJE0q4SPLtC1Q== Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4Pcslx0vSyz2C6L; Thu, 16 Mar 2023 12:14:37 -0400 (EDT) Received: from CAN01-YQB-obe.outbound.protection.outlook.com (mail-yqbcan01on2041.outbound.protection.outlook.com [40.107.116.41]) by lists.lttng.org (Postfix) with ESMTPS id 4Pcsls61KYz2CSs for ; Thu, 16 Mar 2023 12:14:29 -0400 (EDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AUo4VGMAEMGF0YAC6nqNGcP4elwWGHlLuNhA6qOAorxzuE0QDZPzc12g3vSwZFqMe1qiELRdpRMZkqIyhQo0opTugGbHVxYJhFbwAZN+FC7s0sEm1i2wy+ZV/2qu4TkYOBDv5EEXS93cPitF8OwRAdF9cwHU/+zj6dxnpNbi8s34c7R91+k3C3KMB+2YQo28YdGIWL5qmQNwSwEokG3UDINVK4gADo7cJzyVbxV9SXRpRmUwcFl+xz+kh+Cq2KlL3P9l4EAbi/b8+pgopES5ztYP7Hvr+Ba3xLYfsYkXIMFHepgJJY9gwEW2sP0qgxR0ZzL0CcswVxPCwBo+nLX87w== 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=kDSIyGcNtKJmGcFwXvWZ50PCzWKIArUoDGjY4Pmdb40=; b=WNEgxzadxISr9ICkGWHgKfwyTWuxjDi6ETKo+/IPGvAXU8quOEmo30OqCoNUdee9bm5KACQo9Vy9R72c8JQ3B293jFZUjF6xiF2eV4Abbreq4uHcuxzvx+WYhwgJ3LVEdA2VuwxhRwQHbaPopkMDK4SoZTTZqJEgiGEkfoLYRHmszVrADXn265tV1zE2S9T5p6R4PVPgsSOEgXILDtTL7OvZbRppZ2qhjFZmyVciarfUwlSuhM+cLCtTK8c2oFHqkymicJs7m6yWtTPIXlPvwDB+1GDmgLF0Z17NwIQx2DfNO+8v9WNo3YMsOARfmbVSEWaPlIH9h081vBTrOBQcbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=efficios.com; dmarc=pass action=none header.from=efficios.com; dkim=pass header.d=efficios.com; arc=none Received: from YT2PR01MB5984.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:4e::11) by YT2PR01MB10585.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:f2::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.33; Thu, 16 Mar 2023 16:14:14 +0000 Received: from YT2PR01MB5984.CANPRD01.PROD.OUTLOOK.COM ([fe80::a5d:d20d:1c9d:58b7]) by YT2PR01MB5984.CANPRD01.PROD.OUTLOOK.COM ([fe80::a5d:d20d:1c9d:58b7%2]) with mapi id 15.20.6178.031; Thu, 16 Mar 2023 16:14:14 +0000 To: "lttng-dev@lists.lttng.org" Thread-Topic: [lttng-dev] Tracing a docker containerized java application from the host Thread-Index: AQHZV5sAB+QoDrSPA0i1xbmgzC1wCK79lHFD Date: Thu, 16 Mar 2023 16:14:14 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-CA, en-GB, fr-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: YT2PR01MB5984:EE_|YT2PR01MB10585:EE_ x-ms-office365-filtering-correlation-id: 899b3771-bfc9-46e9-5d0d-08db26397c2f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PkZuamu0vI5qV+GJkcNht+ElnhHVP33qxAhea9mC+DrRWe3GNhM69W7vvJlYjYBsxiQzuaKC+Ty/AJxbJErWo+hvqmOFAGAmU6ZfOpZUUe7q7qR01ppONUwEpI3OWMcpU0TQZ8wqc1iB6fKFFC+a6VoMzlgcQVTM7BXkmYgrrO2nIzG6iCg31ixW/VdbZdJcN3nK6+DCj9vQY+Kfq0iLINobja3sfgCDYptQwOnXA+pS4RuLwGKnusy5rtodNItIRlv125pZ9fEOD8AZRV4gtPGkxWFZNdY8tya+c4iwu7xWN+sExHI3BwIqAqG1Ep9V7XrJG/1NJKZ8bPaga6iynTbuYbQw/3Yie6UBSK+cQ6F/H5B65qH9EFXEGN5JgvVI7PjVOYJ1hrUSBwRniJTKyC7odUKZE4e8/M6qkVfuxqYv+cft1geK7OwZMJQBDsA5WUFEQSe1Sk7VkxatxKcH3rLdARqus2wnFiRQux3iDZVG2zUIYz0eqwC+34JOnWj9pAHjQ/2dWeGBCE1C8j9mxxxwog+d3oPux8+IDsqZ+EV/gFyc5p1K5QPhAxj3Kn3btYo7jBXX5DuF7re7KOfeLh0KLTKsvzNf6HQuQjBpJX8vxeiykMkY/gKfvoM+YHrNVJQmjhmLhE4wks8frHSylXgRk6IfD3WMvHpK2gxnphamt8Qhzu3/GmfP/+iOfcEMtM83X4dJvImKKsUFwyPDLKeV3jh0eqCByjd5peo50lU= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YT2PR01MB5984.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230025)(376002)(39830400003)(366004)(346002)(396003)(136003)(451199018)(19627405001)(52536014)(41300700001)(5660300002)(8936002)(2906002)(86362001)(38070700005)(166002)(33656002)(38100700002)(122000001)(478600001)(71200400001)(7696005)(91956017)(66556008)(66476007)(66446008)(64756008)(76116006)(8676002)(6916009)(966005)(66946007)(55016003)(66574015)(83380400001)(4326008)(316002)(186003)(9686003)(26005)(6506007)(53546011); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?uDOCL4btFm234rop3coUbHZJzj64/8xuEQVNGxdjZYXMpL0CsOy0HxxCTF?= =?iso-8859-1?Q?AebyBDbOFvXqA/zijCNgX8gd9hifpPBH8XsEYLC1pEVJoKtX10DVCtjfZw?= =?iso-8859-1?Q?KVCs5XP2VriM9IDP2pcZyVFTetOeoh0umBcf8ghdb5XPXcgb8J+If2+AKF?= =?iso-8859-1?Q?V7zaRN0aRvSHr95/Cu7ELZVDaLn2vWkgREb/pDQEb0ZZegkX5nZVGA6VWe?= =?iso-8859-1?Q?VUxzjJV1rr/87tuayYjR4SX92iQH9OBwrqSS5oTDlN3B20CcoT4aGCvGW8?= =?iso-8859-1?Q?7lpT42nCYpxyonECJiJTyA5aZ3xIsCkPdRZZj6uKMmeINk5yGGct908NYZ?= =?iso-8859-1?Q?1q5SXu1UkKw05FB2IqOfgyE+NwZTOtPRgQffoGhw+qFv5F4suptk8gm2vt?= =?iso-8859-1?Q?gKAahGODPs5Zh+aHpFwLt2gCrRD8En/INTbnPHXrcE8rAyYGFtwluDxyje?= =?iso-8859-1?Q?pKUAHVmNnpLzzX7M+7GCYQbTFjOo5YQLdUG4KPeNPLAuI/Z5JGhsvz89CJ?= =?iso-8859-1?Q?BDuoPH7oYp/8fqbCWecz/Hp65KC6nCwSsTJIXBEypS0aqM90u9altyTNf6?= =?iso-8859-1?Q?2gClmBQwu6xq9wLt0aR0Z9HbzimYYupXK+qt1BXfHk0eBwqM8yLt2e93Rt?= =?iso-8859-1?Q?2VFDZdqUZpxsvFXHXs/IefGRT/sA5PWZAwLWyoFHc5oM9sFCBdwjv3XOs0?= =?iso-8859-1?Q?8X6DIsStYCoAKO17eJfq8fRXb+c0qEpQGVEifu39iICCLAPN3EvNbvkbuW?= =?iso-8859-1?Q?yDmC1SJ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OriginatorOrg: efficios.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: YT2PR01MB5984.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 899b3771-bfc9-46e9-5d0d-08db26397c2f X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Mar 2023 16:14:14.1214 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4f278736-4ab6-415c-957e-1f55336bd31e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QiuThtaBPnE1rZWEi+sfla3jf11DyNKg3e2pupq7UEi0tTf8fVjp1oVOfz8NsWTc/z1x2vRk0PIemMU92y2bWw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT2PR01MB10585 Subject: Re: [lttng-dev] Tracing a docker containerized java application from the host X-BeenThere: lttng-dev@lists.lttng.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: LTTng development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: =?utf-8?q?J=C3=A9r=C3=A9mie_Galarneau_via_lttng-dev?= Reply-To: =?iso-8859-1?Q?J=E9r=E9mie_Galarneau?= Content-Type: multipart/mixed; boundary="===============2051222145675919907==" Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" --===============2051222145675919907== Content-Language: en-CA Content-Type: multipart/alternative; boundary="_000_YT2PR01MB598409B4EB4A498DFDF47B5EBCBC9YT2PR01MB5984CANP_" --_000_YT2PR01MB598409B4EB4A498DFDF47B5EBCBC9YT2PR01MB5984CANP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Adel, The java tracing facilities make use of an agent that communicates with the= session deamon through a TCP socket. You must to ensure your java applicat= ion can connect to the session daemon's 'agent-tcp-port'. https://lttng.org/man/8/lttng-sessiond/v2.13/#doc-opt--agent-tcp-port Is that port properly exposed by your container configuration? J=E9r=E9mie -- J=E9r=E9mie Galarneau EfficiOS Inc. https://www.efficios.com ________________________________ From: lttng-dev on behalf of Adel Belkh= iri via lttng-dev Sent: March 15, 2023 20:03 To: lttng-dev@lists.lttng.org Subject: [lttng-dev] Tracing a docker containerized java application from t= he host Hello everyone, I am reaching out to seek assistance in tracing an instrumented Java applic= ation running within a Docker container from the host side. In my setup, the LTTng session daemon, running on the host side, indicates = that application registration has been completed (please refer to the logs)= . However, when running the command "lttng list --jul," no registered appli= cations are displayed. Although the application successfully creates the "L= ttngLogHandler" object and attaches it to the logger, no traces are generat= ed. To allow the application to access the lttng socket file, the host's /var/r= un/lttng directory is shared with the container at launch (using the comman= d "sudo docker run -p 8080:8080 -v /var/run/lttng:/var/run/lttng sample-ima= ge"). I am only interested in collecting userspace Java (--jul) traces. I would greatly appreciate any assistance or guidance that you can provide.= Thank you for your time. Additional details include: Ubuntu 22.04 Kernel: 5.15.0-60-generic LTTng session daemon version: 2.13.2 Docker version 20.10.21, build 20.10.21-0ubuntu1~22.04.2 Regards, Adel Belkhiri --_000_YT2PR01MB598409B4EB4A498DFDF47B5EBCBC9YT2PR01MB5984CANP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Adel,

The java tracing facilities make use of an agent that communicates with the= session deamon through a TCP socket. You must to ensure your java applicat= ion can connect to the session daemon's 'agent-tcp-port'.


Is that port properly exposed by your container configuration?

J=E9r=E9mie

--
J=E9r=E9mie Galarneau

From: lttng-dev <lttng-d= ev-bounces@lists.lttng.org> on behalf of Adel Belkhiri via lttng-dev <= ;lttng-dev@lists.lttng.org>
Sent: March 15, 2023 20:03
To: lttng-dev@lists.lttng.org <lttng-dev@lists.lttng.org>
Subject: [lttng-dev] Tracing a docker containerized java application= from the host
 
Hello everyone,

I am reaching out to seek assistance in tracing an instrumented Java applic= ation running within a Docker container from the host side.

In my setup, the LTTng session daemon, running on the host side, indicates = that application registration has been completed (please refer to the logs)= . However, when running the command "lttng list --jul," no regist= ered applications are displayed. Although the application successfully creates the "LttngLogHandler" objec= t and attaches it to the logger, no traces are generated.

To allow the application to access the lttng socket file, the host's /var/r= un/lttng directory is shared with the container at launch (using the comman= d "sudo docker run -p 8080:8080 -v /var/run/lttng:/var/run/lttng sampl= e-image"). I am only interested in collecting userspace Java (--jul) traces.

I would greatly appreciate any assistance or guidance that you can provide.= Thank you for your time.

Additional details include:

Ubuntu 22.04
Kernel: 5.15.0-60-generic
LTTng session daemon version: 2.13.2
Docker version 20.10.21, build 20.10.21-0ubuntu1~22.04.2
Regards,
Adel Belkhiri 
--_000_YT2PR01MB598409B4EB4A498DFDF47B5EBCBC9YT2PR01MB5984CANP_-- --===============2051222145675919907== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev --===============2051222145675919907==--