Uploaded image for project: '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

          Hide
          knutanders Knut Anders Hatlen added a comment -

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

          Show
          knutanders Knut Anders Hatlen added a comment - [bulk update] Close all resolved issues that haven't been updated for more than one year.
          Hide
          mamtas 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
          mamtas 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,
          Hide
          dagw 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
          dagw 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( )
          Hide
          mamtas 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
          mamtas 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
          chaase3 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
          chaase3 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.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development