You are viewing a plain text version of this content. The canonical link for it is here.
Posted to netcat@netbeans.apache.org by Ernie Rael <er...@raelity.com> on 2020/04/04 17:24:14 UTC

NB-12 JavaFX profiling

Status:

  * openjfx team member betanzos has created a fix,
    https://github.com/openjfx/javafx-maven-plugin/pull/76, waiting to
    get PR approved. And would still need a subsequent release.
  * I'm investigating a NetBeans fix that works with the current, 0.0.4,
    javafx-maven-plugin

If you want to try the profiler on a javafx project, it's simple to 
setup. See below. Note that the eventual solution (nbactions/pom) may 
look somewhat different.

My biggest question is whether or not something can be accepted for 
NB-12. I'm not sure about the timeframes involved and what it takes to 
get an approval.

Is there an issue filed for javafx profiling? I'd like to reference it. 
(any comments about how important this is... ;-) )

-ernie

How to try the profiler (not much of a 12.0 test)

 1. Install a snapshot version of javafx-maven-plugin (hg example, git
    slightly different
      *   hg clone git://github.com/betanzos/javafx-maven-plugin.git
        javafx-maven-plugin-betanzos
      *   cd javafx-maven-plugin-betanzos/
      *   mvn install
 2. Add this to your project's nbactions.xml
             <action>
                 <actionName>profile</actionName>
                 <goals>
                     <goal>clean</goal>
    <goal>javafx:run@ide-profile</goal>
                 </goals>
                 <properties>
    <vm.args>${profiler.args}</vm.args>
                 </properties>
             </action>
 3. Add this to your project's pom.xml
                         <execution>
                             <!-- Configuration for automatic IDE
    profiling -->
                             <id>ide-profile</id>
                             <configuration>
                                 <options>
    <option>${vm.args}</option>
                                 </options>
    <mainClass>YOUR.MAIN.CLASS</mainClass>
                             </configuration>
                         </execution>
 4. In you project's pom.xml adjust the version of javafx-maven-plugin
                 <plugin>
                     <groupId>org.openjfx</groupId>
    <artifactId>javafx-maven-plugin</artifactId>
                     <version>0.0.5-SNAPSHOT</version>
 5. Press the profile button





---------------------------------------------------------------------
To unsubscribe, e-mail: netcat-unsubscribe@netbeans.apache.org
For additional commands, e-mail: netcat-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: NB-12 JavaFX profiling

Posted by Glenn Holmer <ce...@kolabnow.com.INVALID>.
On 4/6/20 2:21 PM, Ernie Rael wrote:
> Any chance of getting an issue filed against 12.0 for profiling? That
> gives me something to reference in the PullRequest.

https://issues.apache.org/jira/browse/NETBEANS-4127

-- 
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."


Re: NB-12 JavaFX profiling

Posted by Ernie Rael <er...@raelity.com>.
On 4/6/2020 11:46 AM, Glenn Holmer wrote:
> On 4/6/20 11:25 AM, Ernie Rael wrote:
>
>> PS I'm putting together a solution that works with the currently 
>> release javafx-maven-plugin, let's hope it's accepted for 12.0.
>
> Excellent, it would be great to have FX projects fully working out of 
> the box for 12.0.
>
Any chance of getting an issue filed against 12.0 for profiling? That 
gives me something to reference in the PullRequest.

-ernie



---------------------------------------------------------------------
To unsubscribe, e-mail: netcat-unsubscribe@netbeans.apache.org
For additional commands, e-mail: netcat-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: NB-12 JavaFX profiling

Posted by Glenn Holmer <ce...@kolabnow.com.INVALID>.
On 4/6/20 11:25 AM, Ernie Rael wrote:
> On 4/6/2020 8:55 AM, Glenn Holmer wrote:
>> On 4/6/20 10:46 AM, Ernie Rael wrote:
>>> It looks like you didn't use
>>> "github.com/betanzos/javafx-maven-plugin.git" (note the 'betanzos') to
>>> build/install the snapshot.
>> cenbe@greyhand:~ > history | grep "git clone"
>>     63  2020-04-06 10:11:52 git clone
>> https://github.com/betanzos/javafx-maven-plugin.git
>>
>> Is it possible that I have more than one 0.0.5-SNAPSHOT jar?
> 
> The error you reported, multiple arguments being treated as a single 
> argument, is definitely the issue that was supposed to be addressed.
> 
> The method splitComplexArgumentString is the fix
> 
>     /f/repos/jfx/javafx-maven-plugin-betanzos/src/main/java/org/openjfx
>     $ grep Complex *
>     JavaFXRunMojo.java: .map(this::splitComplexArgumentString)
>     JavaFXRunMojo.java:    private List<String>
>     splitComplexArgumentString(String argumentString) {

I don't have that code, don't know why.

> PS I'm putting together a solution that works with the currently release 
> javafx-maven-plugin, let's hope it's accepted for 12.0.

Excellent, it would be great to have FX projects fully working out of 
the box for 12.0. Thanks so much for all your work on this.

-- 
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."

---------------------------------------------------------------------
To unsubscribe, e-mail: netcat-unsubscribe@netbeans.apache.org
For additional commands, e-mail: netcat-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: NB-12 JavaFX profiling

Posted by Ernie Rael <er...@raelity.com>.
On 4/6/2020 8:55 AM, Glenn Holmer wrote:
> On 4/6/20 10:46 AM, Ernie Rael wrote:
>> It looks like you didn't use
>> "github.com/betanzos/javafx-maven-plugin.git" (note the 'betanzos') to
>> build/install the snapshot.
> cenbe@greyhand:~ > history | grep "git clone"
>     63  2020-04-06 10:11:52 git clone
> https://github.com/betanzos/javafx-maven-plugin.git
>
> Is it possible that I have more than one 0.0.5-SNAPSHOT jar?

The error you reported, multiple arguments being treated as a single 
argument, is definitely the issue that was supposed to be addressed.

The method splitComplexArgumentString is the fix

    /f/repos/jfx/javafx-maven-plugin-betanzos/src/main/java/org/openjfx
    $ grep Complex *
    JavaFXRunMojo.java: .map(this::splitComplexArgumentString)
    JavaFXRunMojo.java:    private List<String>
    splitComplexArgumentString(String argumentString) {

I have things in non standard locations, and multiple snapshots are 
possible, but without inspecting... (I guess multiple repositories are 
possible) I've only got one repository and it only has one snapshot, and 
doing this

    $ pwd
    /f/j/maven_repository/org/openjfx/javafx-maven-plugin

    $ cmp 0.0.5-SNAPSHOT/javafx-maven-plugin-0.0.5-SNAPSHOT.jar
    /f/repos/jfx/javafx-maven-plugin-betanzos/target/javafx-maven-plugin-0.0.5-SNAPSHOT.jar

    $

shows that these files are the same. I suppose you could modify the 
pom.xml for javafx-maven-plugin to give it some random snapshot version, 
use that in your project's pom.xml, then there would be no doubt.

-ernie

PS I'm putting together a solution that works with the currently release 
javafx-maven-plugin, let's hope it's accepted for 12.0.

>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: netcat-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: netcat-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



---------------------------------------------------------------------
To unsubscribe, e-mail: netcat-unsubscribe@netbeans.apache.org
For additional commands, e-mail: netcat-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: NB-12 JavaFX profiling

Posted by Glenn Holmer <ce...@kolabnow.com.INVALID>.
On 4/6/20 10:46 AM, Ernie Rael wrote:
> It looks like you didn't use
> "github.com/betanzos/javafx-maven-plugin.git" (note the 'betanzos') to
> build/install the snapshot.

cenbe@greyhand:~ > history | grep "git clone"
   63  2020-04-06 10:11:52 git clone
https://github.com/betanzos/javafx-maven-plugin.git

Is it possible that I have more than one 0.0.5-SNAPSHOT jar?

-- 
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."


Re: NB-12 JavaFX profiling

Posted by Ernie Rael <er...@raelity.com>.
On 4/6/2020 8:28 AM, Glenn Holmer wrote:
> On 4/4/20 12:24 PM, Ernie Rael wrote:
>> If you want to try the profiler on a javafx project, it's simple to
>> setup. See below. Note that the eventual solution (nbactions/pom) may
>> look somewhat different.
> so close...
It looks like you didn't use 
"github.com/betanzos/javafx-maven-plugin.git" (note the 'betanzos') to 
build/install the snapshot.
>
> --- javafx-maven-plugin:0.0.5-SNAPSHOT:run (ide-profile) @ fxproftest2 ---
> Unrecognized VM option 'HeapDumpOnOutOfMemoryError
> -XX:HeapDumpPath=/home/cenbe/.cache/netbeans/12.0-beta2/mavencachedirs/1623064711/org-netbeans-modules-profiler
>   -agentpath:/mnt/common/netbeans-dev/netbeans/profiler/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so=/mnt/common/netbeans-dev/netbeans/profiler/lib,5140,10'
> Did you mean '(+/-)HeapDumpOnOutOfMemoryError'? Error: Could not create
> the Java Virtual Machine.
>
> I deleted the contents of ~/.nbprofiler first to force calibration, but
> the above doesn't seem related. Is it to do with what you were talking
> about at one point with the VM args not being parsed properly?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: netcat-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: netcat-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



---------------------------------------------------------------------
To unsubscribe, e-mail: netcat-unsubscribe@netbeans.apache.org
For additional commands, e-mail: netcat-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: NB-12 JavaFX profiling

Posted by Glenn Holmer <ce...@kolabnow.com.INVALID>.
On 4/4/20 12:24 PM, Ernie Rael wrote:
> If you want to try the profiler on a javafx project, it's simple to
> setup. See below. Note that the eventual solution (nbactions/pom) may
> look somewhat different.

so close...

--- javafx-maven-plugin:0.0.5-SNAPSHOT:run (ide-profile) @ fxproftest2 ---
Unrecognized VM option 'HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/home/cenbe/.cache/netbeans/12.0-beta2/mavencachedirs/1623064711/org-netbeans-modules-profiler
 -agentpath:/mnt/common/netbeans-dev/netbeans/profiler/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so=/mnt/common/netbeans-dev/netbeans/profiler/lib,5140,10'
Did you mean '(+/-)HeapDumpOnOutOfMemoryError'? Error: Could not create
the Java Virtual Machine.

I deleted the contents of ~/.nbprofiler first to force calibration, but
the above doesn't seem related. Is it to do with what you were talking
about at one point with the VM args not being parsed properly?

-- 
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."