From dev-return-21976-archive-asf-public=cust-asf.ponee.io@netbeans.apache.org Tue Jun 8 01:35:36 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 4028118064E for ; Tue, 8 Jun 2021 03:35:36 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id 65A703F884 for ; Tue, 8 Jun 2021 01:35:35 +0000 (UTC) Received: (qmail 11448 invoked by uid 500); 8 Jun 2021 01:35:34 -0000 Mailing-List: contact dev-help@netbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@netbeans.apache.org Delivered-To: mailing list dev@netbeans.apache.org Received: (qmail 11436 invoked by uid 99); 8 Jun 2021 01:35:34 -0000 Received: from spamproc1-he-fi.apache.org (HELO spamproc1-he-fi.apache.org) (95.217.134.168) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2021 01:35:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamproc1-he-fi.apache.org (ASF Mail Server at spamproc1-he-fi.apache.org) with ESMTP id C76CBC048D for ; Tue, 8 Jun 2021 01:35:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-fi.apache.org X-Spam-Flag: NO X-Spam-Score: 0.251 X-Spam-Level: X-Spam-Status: No, score=0.251 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=0.2, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamproc1-he-fi.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([116.203.227.195]) by localhost (spamproc1-he-fi.apache.org [95.217.134.168]) (amavisd-new, port 10024) with ESMTP id GQwr9Y8NkF7N for ; Tue, 8 Jun 2021 01:35:32 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::636; helo=mail-ej1-x636.google.com; envelope-from=arcturusbootes2@gmail.com; receiver= Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id B9C877FFA4 for ; Tue, 8 Jun 2021 01:35:32 +0000 (UTC) Received: by mail-ej1-x636.google.com with SMTP id ci15so29758368ejc.10 for ; Mon, 07 Jun 2021 18:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=6rbamo+6JgpfKojwYP7S8O6Y670LzH0d/Uhx/iv4lek=; b=sKnDXpFC5glh3t8PVQShKhFn+LeYbHWw3M0WK4hR+G2YLuTPqom45JW0lqOegiyF+y hVjO2rGoybkpEFIQrSknEnH0Tp+mns6li388tIJqgCi7B659ttt5rR5nj8JLTHMzOKgI vNxecRlvcs6V+F+yL7GD7YevOM5FI5fxc8Kvk67XO3CHsLKaYDE6OG/EIUy8Nid3hWBr Iqx39mDaD8jnlBXgx3PX6yguwzjDLczhHGzf7TPSA4v7LWGgvOnJLutDlJ3bTDMvDTfH 1bDhVZssjjClIqmqndBsYgAXqIUpD164i0PXb0dC0SKl1Zh8OWlTaHzlc8moVQwAmk/K 8LZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=6rbamo+6JgpfKojwYP7S8O6Y670LzH0d/Uhx/iv4lek=; b=k657j1RiOqKzt8GNqoXd6XQ+KwTlFYMx7JvPvCYeTtgyv76ialbw098cn6tBX+c7iM gAFxe23AlDuA+ep3nhKT5bkC73ajvBAwMGn4mDPLjudz1GM6f51pX1osju+Al3qD4N5v XGtuGfY3sm7cuBk1HyksItZTWfVPF961DabTKvyEFgoLttlBO6UK/xlQuHZYMTQ4k25Y qE3PA+XtdnU/FSexktn23hZuO4nbHb2WXBJ31gaRmr1mZyVmlHNQ//Z/s2QzQKRHCgu0 UTo/rMbB26TTS+AEy5WVWESl2MeUClyQrgxIcmgBEJhsvyFS/N709Zv3MhfPW5vtjen+ BvJg== X-Gm-Message-State: AOAM532YLdWzupLhWK49ydTrlBtG+CQjdYh5xcqXZHRrZ7rV5cg9WwT8 24640lr133sAdSShLwiHLNCPplpjWIl5DHq3fJxfLXl3 X-Google-Smtp-Source: ABdhPJx9rwyH4+McRV33uzxFWRcHE/3Pfq81rjLH5f3+Ha0p4m29c5jopw15fxoiUdO9QQ6cXhxwNzNj45zNXFXtTvY= X-Received: by 2002:a17:906:c211:: with SMTP id d17mr20874612ejz.247.1623116132113; Mon, 07 Jun 2021 18:35:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arcturus Bootes Date: Tue, 8 Jun 2021 11:34:55 +1000 Message-ID: Subject: Re: Add javaagent to a NetBeans Platform application To: dev@netbeans.apache.org Content-Type: multipart/alternative; boundary="0000000000007bdec505c4372c7a" --0000000000007bdec505c4372c7a Content-Type: text/plain; charset="UTF-8" Hi! Thank you for the reply. I know the file your talking about and I did try adding the options to it and I sadly get the same error as if I was passing them as command line arguments. Unknown option... Any advice is greatly appreciated as I am really keen to see what stats I can get out of the app. Thanks. On Tue, 8 Jun 2021 at 01:03, djamel torche wrote: > Hi there, > With netbeans (and Netbeans platform applications) is event easier:) > Just add your options in etc/netbeans.conf (in > netbeans_default_options="..."). > With Netbeans platform application, that file will be created in build > after your first ant/maven build, I don't remember well but be sure that > when you clean the project this file remains there! (I think not). > > Kind regards > > On Mon, 7 Jun 2021 at 15:40, Arcturus Bootes > wrote: > > > Hi All, > > > > I have a NetBeans platform application and I'd like to do some APM > > (Application Performance Monitoring) using an Elastic cluster I've got > set > > up. The Elastic APM doco says you need to add the -javaagent flag to > their > > jar like below. > > > > java -javaagent:/path/to/elastic-apm-agent-.jar \ > > -Delastic.apm.service_name=my-application \ -Delastic.apm.server_urls= > > http://localhost:8200 \ -Delastic.apm.secret_token= \ > > -Delastic.apm.environment=production \ > > -Delastic.apm.application_packages=org.example \ -jar my-application.jar > > > > The problem is that a NetBeans platform application does not compile down > > to a single jar like a standalone Java app. For my application I created > a > > distribution zip, unzipped it and from the bin folder tried to run my app > > and pass these arguments but I get the following error: > > > > Unknown option -javaagent:./elastic-apm-agent-1.24.0.jar > > > > I've also tried adding these options to the run.args.extra in the > > project.properties file and that fails as well. > > > > Is there a way I can pass the javaagent to my NetBeans platform > > application? > > > > Thank you. > > > --0000000000007bdec505c4372c7a--