Derby
  1. Derby
  2. DERBY-5240

Log Operating system information to derby.log on boot

    Details

    • Issue & fix info:
      High Value Fix, Newcomer

      Description

      Most critical information from sysinfo is now available in the Derby boot message in derby.log, except for the operating system information.
      e.g.

      OS name: Windows XP
      OS architecture: x86
      OS version: 5.1 build 2600 Service Pack 3

      It would be useful to log the operating system info as well in the derby.log on boot.

      I'll close out DERBY-1272 after filing this issue as this is the last piece of info that needs to be added to the error log.

        Issue Links

          Activity

          Kathey Marsden created issue -
          Kathey Marsden made changes -
          Field Original Value New Value
          Affects Version/s 10.8.1.2 [ 12316362 ]
          Component/s Services [ 11415 ]
          Kathey Marsden made changes -
          Link This issue is related to DERBY-1272 [ DERBY-1272 ]
          Hide
          Kim Haase added a comment -

          This is good information to put in the log. Once the work is completed, I (or someone else) can file a documentation issue to update the derby.log output shown in the documentation.

          Show
          Kim Haase added a comment - This is good information to put in the log. Once the work is completed, I (or someone else) can file a documentation issue to update the derby.log output shown in the documentation.
          Hide
          Mamta A. Satoor added a comment -

          After Derby sytem boots up, we currently put information about Java runtime system in derby.log as shown below
          ----------------------------------------------------------------
          Mon Jun 25 12:43:21 PDT 2012:
          Booting Derby version The Apache Software Foundation - Apache Derby - 10.10.0.0 alpha - (1): instance a816c00e-0138-252a-a0d2-0000001b9de8
          on database directory C:\p4clients\svnmain\client7\trunk\systest\out142\db1111 with class loader sun.misc.Launcher$AppClassLoader@71f571f5
          Loaded from file:/C:/p4clients/svnmain/client7/trunk/classes/
          java.vendor=IBM Corporation
          java.runtime.version=jvmwa6460sr9-20101124_69295
          java.fullversion=JRE 1.6.0 IBM J9 2.4 Windows 7 amd64-64 jvmwa6460sr9-20101124_69295 (JIT enabled, AOT enabled)
          J9VM - 20101124_069295
          JIT - r9_20101028_17488ifx2
          GC - 20101027_AA
          user.dir=C:\p4clients\svnmain\client7\trunk\systest\out142
          derby.system.home=null
          Database Class Loader started - derby.database.classpath=''

          What will be a good place to put the operating system information could be right before we print the "user.dir" info. For the operating system, we can include values of following 3 properties
          OS name, OS architecture and OS version.

          So, the updated derby.log will look as follows
          ----------------------------------------------------------------
          Mon Jun 25 12:43:21 PDT 2012:
          Booting Derby version The Apache Software Foundation - Apache Derby - 10.10.0.0 alpha - (1): instance a816c00e-0138-252a-a0d2-0000001b9de8
          on database directory C:\p4clients\svnmain\client7\trunk\systest\out142\db1111 with class loader sun.misc.Launcher$AppClassLoader@71f571f5
          Loaded from file:/C:/p4clients/svnmain/client7/trunk/classes/
          java.vendor=IBM Corporation
          java.runtime.version=jvmwa6460sr9-20101124_69295
          java.fullversion=JRE 1.6.0 IBM J9 2.4 Windows 7 amd64-64 jvmwa6460sr9-20101124_69295 (JIT enabled, AOT enabled)
          J9VM - 20101124_069295
          JIT - r9_20101028_17488ifx2
          GC - 20101027_AA
          OS name: XXX
          OS architecture: YYY
          OS version: ZZZ
          user.dir=C:\p4clients\svnmain\client7\trunk\systest\out142
          derby.system.home=null
          Database Class Loader started - derby.database.classpath=''

          Please let me know if this format and informaiton looks good.

          Show
          Mamta A. Satoor added a comment - After Derby sytem boots up, we currently put information about Java runtime system in derby.log as shown below ---------------------------------------------------------------- Mon Jun 25 12:43:21 PDT 2012: Booting Derby version The Apache Software Foundation - Apache Derby - 10.10.0.0 alpha - (1): instance a816c00e-0138-252a-a0d2-0000001b9de8 on database directory C:\p4clients\svnmain\client7\trunk\systest\out142\db1111 with class loader sun.misc.Launcher$AppClassLoader@71f571f5 Loaded from file:/C:/p4clients/svnmain/client7/trunk/classes/ java.vendor=IBM Corporation java.runtime.version=jvmwa6460sr9-20101124_69295 java.fullversion=JRE 1.6.0 IBM J9 2.4 Windows 7 amd64-64 jvmwa6460sr9-20101124_69295 (JIT enabled, AOT enabled) J9VM - 20101124_069295 JIT - r9_20101028_17488ifx2 GC - 20101027_AA user.dir=C:\p4clients\svnmain\client7\trunk\systest\out142 derby.system.home=null Database Class Loader started - derby.database.classpath='' What will be a good place to put the operating system information could be right before we print the "user.dir" info. For the operating system, we can include values of following 3 properties OS name, OS architecture and OS version. So, the updated derby.log will look as follows ---------------------------------------------------------------- Mon Jun 25 12:43:21 PDT 2012: Booting Derby version The Apache Software Foundation - Apache Derby - 10.10.0.0 alpha - (1): instance a816c00e-0138-252a-a0d2-0000001b9de8 on database directory C:\p4clients\svnmain\client7\trunk\systest\out142\db1111 with class loader sun.misc.Launcher$AppClassLoader@71f571f5 Loaded from file:/C:/p4clients/svnmain/client7/trunk/classes/ java.vendor=IBM Corporation java.runtime.version=jvmwa6460sr9-20101124_69295 java.fullversion=JRE 1.6.0 IBM J9 2.4 Windows 7 amd64-64 jvmwa6460sr9-20101124_69295 (JIT enabled, AOT enabled) J9VM - 20101124_069295 JIT - r9_20101028_17488ifx2 GC - 20101027_AA OS name: XXX OS architecture: YYY OS version: ZZZ user.dir=C:\p4clients\svnmain\client7\trunk\systest\out142 derby.system.home=null Database Class Loader started - derby.database.classpath='' Please let me know if this format and informaiton looks good.
          Hide
          Dag H. Wanvik added a comment -

          Placement looks good. Format, why not use the Java property format? E.g.

          os.name=<Operating system name>
          os.arch=<Operating system architecture>
          os.version=<Operating system version>

          cf. http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/System.html#getProperties()

          Show
          Dag H. Wanvik added a comment - Placement looks good. Format, why not use the Java property format? E.g. os.name=<Operating system name> os.arch=<Operating system architecture> os.version=<Operating system version> cf. http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/System.html#getProperties( )
          Mamta A. Satoor made changes -
          Assignee Mamta A. Satoor [ mamtas ]
          Mamta A. Satoor made changes -
          Fix Version/s 10.10.0.0 [ 12321550 ]
          Mamta A. Satoor made changes -
          Fix Version/s 10.9.1.1 [ 12321551 ]
          Mamta A. Satoor made changes -
          Fix Version/s 10.8.2.3 [ 12318540 ]
          Mamta A. Satoor made changes -
          Fix Version/s 10.7.1.4 [ 12315902 ]
          Mamta A. Satoor made changes -
          Fix Version/s 10.6.2.3 [ 12315434 ]
          Mamta A. Satoor made changes -
          Fix Version/s 10.5.3.2 [ 12315436 ]
          Hide
          Mamta A. Satoor added a comment -

          I have backported this jira upto 10.5. Further backporting should be ok if anybody is interested in doing so,

          Show
          Mamta A. Satoor added a comment - I have backported this jira upto 10.5. Further backporting should be ok if anybody is interested in doing so,
          Mamta A. Satoor made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Kim Haase made changes -
          Link This issue relates to DERBY-5925 [ DERBY-5925 ]
          Kathey Marsden made changes -
          Fix Version/s 10.8.3.0 [ 12323456 ]
          Fix Version/s 10.8.2.3 [ 12318540 ]
          Kathey Marsden made changes -
          Fix Version/s 10.9.2.0 [ 12323562 ]
          Fix Version/s 10.9.1.1 [ 12321551 ]
          Gavin made changes -
          Workflow jira [ 12613970 ] Default workflow, editable Closed status [ 12801790 ]
          Hide
          Knut Anders Hatlen added a comment -

          [bulk update] Close all resolved issues that haven't been updated for more than one year.

          Show
          Knut Anders Hatlen added a comment - [bulk update] Close all resolved issues that haven't been updated for more than one year.
          Knut Anders Hatlen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          477d 17h 16m 1 Mamta A. Satoor 07/Sep/12 17:17
          Resolved Resolved Closed Closed
          725d 16h 14m 1 Knut Anders Hatlen 03/Sep/14 09:31

            People

            • Assignee:
              Mamta A. Satoor
              Reporter:
              Kathey Marsden
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development