You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Jean-Frederic Clere (JIRA)" <ji...@apache.org> on 2006/10/12 21:05:38 UTC

[jira] Created: (HARMONY-1847) [drlvm] -verbose option does nothing

[drlvm] -verbose option does nothing
------------------------------------

                 Key: HARMONY-1847
                 URL: http://issues.apache.org/jira/browse/HARMONY-1847
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: Any just java -version test
            Reporter: Jean-Frederic Clere
            Priority: Minor


java -verbose does not print any information
To debug an application it is very helpfull to know which classes and in which order they are loaded.

Something like what RI gives would be enough.
[Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
[Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
[Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
[Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
[Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar] 

Xtrace:classloader contains the information but it is too verbose.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1847) [drlvm] -verbose option does nothing

Posted by "Salikh Zakirov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1847?page=all ]

Salikh Zakirov updated HARMONY-1847:
------------------------------------

    Attachment: log4cxx-fix.patch

The proper fix to the Log4cxx for autoflushing logging console output is attached as log4cxx-fix.patch.
Instructions on how to apply this patch to DRLVM:

  cd .../build/pre-copied/common/LOG4CXX
  svn update src/systemoutwriter.cpp src/systemerrwriter.cpp src/writerappender.cpp
  patch -p0 < .../log4cxx-fix.patch

'svn update' step is needed as there are conflicting changes in those files.
The patch was submitted to log4cxx-devel mailing list.

> [drlvm] -verbose option does nothing
> ------------------------------------
>
>                 Key: HARMONY-1847
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1847
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Any just java -version test
>            Reporter: Jean-Frederic Clere
>            Priority: Minor
>         Attachments: log4cxx-fix.patch, workaround-fflush-log.patch
>
>
> java -verbose does not print any information
> To debug an application it is very helpfull to know which classes and in which order they are loaded.
> Something like what RI gives would be enough.
> [Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
> [Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar] 
> Xtrace:classloader contains the information but it is too verbose.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1847) [drlvm] -verbose option does nothing

Posted by "Salikh Zakirov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1847?page=comments#action_12442008 ] 
            
Salikh Zakirov commented on HARMONY-1847:
-----------------------------------------

By the way, fixing '-verbose:class' output to provide all desired information is an excellent exercise for a person who wants to get involved with DRLVM development :) It will take some reading (mostly in vm/vmcore/src/class_support/*.cpp), and putting calls like
    INFO2("class", "Class " << name << " loaded");
to produce -verbose:class output.

> [drlvm] -verbose option does nothing
> ------------------------------------
>
>                 Key: HARMONY-1847
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1847
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Any just java -version test
>            Reporter: Jean-Frederic Clere
>            Priority: Minor
>         Attachments: workaround-fflush-log.patch
>
>
> java -verbose does not print any information
> To debug an application it is very helpfull to know which classes and in which order they are loaded.
> Something like what RI gives would be enough.
> [Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
> [Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar] 
> Xtrace:classloader contains the information but it is too verbose.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1847) [drlvm] -verbose option does nothing

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1847?page=comments#action_12447160 ] 
            
Geir Magnusson Jr commented on HARMONY-1847:
--------------------------------------------

Rather than patch locally, can you let us know when there's an update to log4cxx and we can use the fix in there?

> [drlvm] -verbose option does nothing
> ------------------------------------
>
>                 Key: HARMONY-1847
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1847
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Any just java -version test
>            Reporter: Jean-Frederic Clere
>            Priority: Minor
>         Attachments: log4cxx-fix.patch, workaround-fflush-log.patch
>
>
> java -verbose does not print any information
> To debug an application it is very helpfull to know which classes and in which order they are loaded.
> Something like what RI gives would be enough.
> [Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
> [Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar] 
> Xtrace:classloader contains the information but it is too verbose.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1847) [drlvm] -verbose option does nothing

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1847?page=comments#action_12442057 ] 
            
Alexey Varlamov commented on HARMONY-1847:
------------------------------------------

I think the root cause of the first issue lies in flawed shutdown sequence, so the LogManager has no chance to wrap up. Will check this on Monday.

> [drlvm] -verbose option does nothing
> ------------------------------------
>
>                 Key: HARMONY-1847
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1847
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Any just java -version test
>            Reporter: Jean-Frederic Clere
>            Priority: Minor
>         Attachments: workaround-fflush-log.patch
>
>
> java -verbose does not print any information
> To debug an application it is very helpfull to know which classes and in which order they are loaded.
> Something like what RI gives would be enough.
> [Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
> [Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar] 
> Xtrace:classloader contains the information but it is too verbose.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1847) [drlvm] -verbose option does nothing

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1847?page=all ]

Geir Magnusson Jr updated HARMONY-1847:
---------------------------------------

    Patch Info: [Patch Available]

> [drlvm] -verbose option does nothing
> ------------------------------------
>
>                 Key: HARMONY-1847
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1847
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Any just java -version test
>            Reporter: Jean-Frederic Clere
>            Priority: Minor
>         Attachments: log4cxx-fix.patch, workaround-fflush-log.patch
>
>
> java -verbose does not print any information
> To debug an application it is very helpfull to know which classes and in which order they are loaded.
> Something like what RI gives would be enough.
> [Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
> [Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar] 
> Xtrace:classloader contains the information but it is too verbose.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1847) [drlvm] -verbose option does nothing

Posted by "Salikh Zakirov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1847?page=all ]

Salikh Zakirov updated HARMONY-1847:
------------------------------------

    Attachment: workaround-fflush-log.patch

There are two separate issues with -verbose.

First, there is a bug which prevents -verbose to print anything. I suspect this because of missing flush() calls in the logger. The attached workaround-fflush-log.patch provides a dirty workaround, which assumes that logger uses stderr for its output (which is the case by default). With the workaround, the expected output on HelloWord aplication is

  GC init called

  GC v4.1 Wed Oct 11 22:07:28 2006 (debug)
  GC type = 0
  GC will use adaptive algorithm selection
  min heap size 16 mb
  max heap size 256 mb
  GC use small pages

  Hi!

The second problem is that -verbose:class does not report loaded jar files and loaded classes.
('-verbose' is equivalent to '-verbose:gc -verbose:jni -verbose:class').

> [drlvm] -verbose option does nothing
> ------------------------------------
>
>                 Key: HARMONY-1847
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1847
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Any just java -version test
>            Reporter: Jean-Frederic Clere
>            Priority: Minor
>         Attachments: workaround-fflush-log.patch
>
>
> java -verbose does not print any information
> To debug an application it is very helpfull to know which classes and in which order they are loaded.
> Something like what RI gives would be enough.
> [Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
> [Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar] 
> Xtrace:classloader contains the information but it is too verbose.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira