Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-3038

add lightweight option for GSH

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.5.38
    • None
    • None

    Description

      The profile has only Grouper base and util imports, not built in commands. If a file is passed to GrouperShell, that will be used in profile.

      This saves about 1.5 seconds

      Pass this to GrouperShell

      -lightWeightProfile

      PS C:\git\grouper_prod\grouper> Measure-Command

      { java -cp 'target\classes;target\dependency\*' edu.internet2.middleware.grouper.app.gsh.GrouperShell simple.gsh }

      2020-11-25 14:43:00,746: [main] WARN GrouperVersion.grouperVersion(123) - - Can't find version of grouper jar, using 2.5.0
      2020-11-25 14:43:00,750: [main] WARN GrouperStartup.printConfigOnce(239) - - Grouper starting up: version: 2.5.0, build date: null, env: <no label configured>
      2020-11-25 14:43:04,220: [main] WARN GrouperDdlEngine.updateDdlIfNeededWithStaticSql(752) - - Grouper ddl object type 'Grouper' has dbVersion: 35 (2.5.38) and java version: 35 (2.5.38)
      2020-11-25 14:43:04,220: [main] WARN GrouperDdlEngine.updateDdlIfNeededWithStaticSql(752) - - Grouper ddl object type 'Subject' has dbVersion: 1 (1.4.0) and java version: 1 (1.4.0)

      Days : 0
      Hours : 0
      Minutes : 0
      Seconds : 9
      Milliseconds : 887
      Ticks : 98870873
      TotalDays : 0.000114433880787037
      TotalHours : 0.00274641313888889
      TotalMinutes : 0.164784788333333
      TotalSeconds : 9.8870873
      TotalMilliseconds : 9887.0873

      PS C:\git\grouper_prod\grouper> Measure-Command

      { java -cp 'target\classes;target\dependency\*' edu.internet2.middleware.grouper.app.gsh.GrouperShell -lightWeightProfile simple.gsh }

      2020-11-25 14:43:18,195: [main] WARN GrouperVersion.grouperVersion(123) - - Can't find version of grouper jar, using 2.5.0
      2020-11-25 14:43:18,199: [main] WARN GrouperStartup.printConfigOnce(239) - - Grouper starting up: version: 2.5.0, build date: null, env: <no label configured>
      2020-11-25 14:43:21,661: [main] WARN GrouperDdlEngine.updateDdlIfNeededWithStaticSql(752) - - Grouper ddl object type 'Grouper' has dbVersion: 35 (2.5.38) and java version: 35 (2.5.38)
      2020-11-25 14:43:21,662: [main] WARN GrouperDdlEngine.updateDdlIfNeededWithStaticSql(752) - - Grouper ddl object type 'Subject' has dbVersion: 1 (1.4.0) and java version: 1 (1.4.0)

      Days : 0
      Hours : 0
      Minutes : 0
      Seconds : 8
      Milliseconds : 440
      Ticks : 84405352
      TotalDays : 9.76913796296296E-05
      TotalHours : 0.00234459311111111
      TotalMinutes : 0.140675586666667
      TotalSeconds : 8.4405352
      TotalMilliseconds : 8440.5352

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist