Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-4321

[Containerless CLI][Windows] Java randomly remains in memory after analysis is complete making next analysis to fail

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • None

      Description of problem:

      Java randomly remains in memory after analysis is complete making next analysis to fail

      Version-Release number of selected component (if applicable):

      7.2.0-33 

      How reproducible:

      Sometimes 

      Steps to Reproduce:
      1. Run several analysis for Java app one by one, next when previos ends.
      2. Wait until one of them will fail

      Actual results:

      Analysis will fail with error

      time="2024-11-28T17:52:37Z" level=error msg="unable to init the providers" error="invalid header line \"#\"" provider=java
      

      Expected results:

      Java shouldn't remain in memory when analysis is complete 

      Additional info:

      C:\Users\Admin\kantra-cli-tests>C:\Users\Admin\windows-mta-cli.exe analyze --overwrite --input C:\Users\Admin\kantra-cli-tests\data/applications\kafka-clients-sb-sample.jar --output C:\Users\Admin\kantra-cli-tests\reports --target quarkus
      time="2024-11-28T17:50:08Z" level=info msg="\n --run-local set. running analysis in containerless mode"
      time="2024-11-28T17:50:09Z" level=info msg="running source analysis"
      time="2024-11-28T17:50:09Z" level=info msg="creating provider config"
      time="2024-11-28T17:50:09Z" level=info msg="setting provider from provider config" provider=java
      time="2024-11-28T17:50:09Z" level=info msg="setting provider from provider config" provider=builtin
      time="2024-11-28T17:50:09Z" level=info msg="parsing rules for analysis" rules="C:\\Users\\Admin\\.kantra\\rulesets"
      time="2024-11-28T17:50:10Z" level=info msg="starting provider" provider=builtin
      time="2024-11-28T17:50:10Z" level=info msg="starting provider" provider=java
      time="2024-11-28T17:52:37Z" level=error msg="unable to init the providers" error="invalid header line \"#\"" provider=java
      

      At the point look for java process in memory and kill them. Next analysis will be successful.

      C:\Users\Admin\kantra-cli-tests>C:\Users\Admin\windows-mta-cli.exe analyze --overwrite --input C:\Users\Admin\kantra-cli-tests\data/applications\kafka-clients-sb-sample.jar --output C:\Users\Admin\kantra-cli-tests\reports --target quarkus
      time="2024-12-02T12:22:28Z" level=info msg="\n --run-local set. running analysis in containerless mode"
      time="2024-12-02T12:22:29Z" level=info msg="running source analysis"
      time="2024-12-02T12:22:29Z" level=info msg="creating provider config"
      time="2024-12-02T12:22:29Z" level=info msg="setting provider from provider config" provider=java
      time="2024-12-02T12:22:29Z" level=info msg="setting provider from provider config" provider=builtin
      time="2024-12-02T12:22:29Z" level=info msg="parsing rules for analysis" rules="C:\\Users\\Admin\\.kantra\\rulesets"
      time="2024-12-02T12:22:30Z" level=info msg="starting provider" provider=builtin
      time="2024-12-02T12:22:30Z" level=info msg="starting provider" provider=java
      time="2024-12-02T12:22:57Z" level=info msg="running depencency analysis"
      time="2024-12-02T12:22:57Z" level=info msg="evaluating rules for violations. see analysis.log for more info"
      time="2024-12-02T12:25:21Z" level=info msg="writing analysis results to output" output="C:\\Users\\Admin\\kantra-cli-tests\\reports"
      time="2024-12-02T12:25:21Z" level=info msg="generating static report"
      time="2024-12-02T12:25:23Z" level=info msg="Static report created. Access it at this URL:" URL="file:///C:/Users/Admin/kantra-cli-tests/reports/static-report/index.html"
      

              emcmulla@redhat.com Emily McMullan
              ibragins@redhat.com Igor Braginsky
              Igor Braginsky Igor Braginsky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: