You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Guillaume Deshors (JIRA)" <ji...@apache.org> on 2012/06/22 17:14:42 UTC

[jira] [Created] (PIVOT-860) CPU Usage at 100% when displaying an Expander

Guillaume Deshors created PIVOT-860:
---------------------------------------

             Summary: CPU Usage at 100% when displaying an Expander
                 Key: PIVOT-860
                 URL: https://issues.apache.org/jira/browse/PIVOT-860
             Project: Pivot
          Issue Type: Bug
    Affects Versions: 2.0.2
         Environment: Windows XP, reproduced on Java 6 (various versions) and Java 7
            Reporter: Guillaume Deshors
            Priority: Minor


When displaying an Expander component, the CPU usage immediately goes up and stays at 100% as long as the component is displayed (even if the window is background, reduced or whatever).
To be precise, I really had 50% because I have a dual core : one of the core was 100%.

Reproduced on 3 different computers, all Windows XP, with Java 6 and 7.
Reproduced in applet and in standalone application shape.

Steps to reproduce : 
1/ go to http://pivot.apache.org/tutorials/sample-application.html
 -> CPU is normal, say 5%
2/ click on "navigation" to see the expander
 -> CPU is at 100%, at least one of the cores.

Alternative : just go to http://pivot.apache.org/tutorials/expanders.html and expect the same.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-860) CPU Usage at 100% when displaying an Expander

Posted by "Roger Whitcomb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424161#comment-13424161 ] 

Roger Whitcomb commented on PIVOT-860:
--------------------------------------

Revised previous fix because it caused duplicate listener to be added.

trunk:
Sending        wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraExpanderSkin.java
Transmitting file data .
Committed revision 1366538.

2.0.x:
Sending        wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraExpanderSkin.java
Transmitting file data .
Committed revision 1366540.

                
> CPU Usage at 100% when displaying an Expander
> ---------------------------------------------
>
>                 Key: PIVOT-860
>                 URL: https://issues.apache.org/jira/browse/PIVOT-860
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP, reproduced on Java 6 (various versions) and Java 7
>            Reporter: Guillaume Deshors
>            Assignee: Roger Whitcomb
>              Labels: performance
>             Fix For: 2.0.3
>
>         Attachments: pivot_kitchensink_expanders_profile_test_0.png, pivot_kitchensink_expanders_profile_test_1.png, pivot_kitchensink_expanders_profile_test_2.png
>
>
> When displaying an Expander component, the CPU usage immediately goes up and stays at 100% as long as the component is displayed (even if the window is background, reduced or whatever).
> To be precise, I really had 50% because I have a dual core : one of the core was 100%.
> Reproduced on 3 different computers, all Windows XP, with Java 6 and 7.
> Reproduced in applet and in standalone application shape.
> Steps to reproduce : 
> 1/ go to http://pivot.apache.org/tutorials/sample-application.html
>  -> CPU is normal, say 5%
> 2/ click on "navigation" to see the expander
>  -> CPU is at 100%, at least one of the cores.
> Alternative : just go to http://pivot.apache.org/tutorials/expanders.html and expect the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-860) CPU Usage at 100% when displaying an Expander

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-860:
---------------------------------

    Priority: Major  (was: Minor)
    
> CPU Usage at 100% when displaying an Expander
> ---------------------------------------------
>
>                 Key: PIVOT-860
>                 URL: https://issues.apache.org/jira/browse/PIVOT-860
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP, reproduced on Java 6 (various versions) and Java 7
>            Reporter: Guillaume Deshors
>            Assignee: Sandro Martini
>              Labels: performance
>             Fix For: 2.0.3
>
>         Attachments: pivot_kitchensink_expanders_profile_test_0.png, pivot_kitchensink_expanders_profile_test_1.png, pivot_kitchensink_expanders_profile_test_2.png
>
>
> When displaying an Expander component, the CPU usage immediately goes up and stays at 100% as long as the component is displayed (even if the window is background, reduced or whatever).
> To be precise, I really had 50% because I have a dual core : one of the core was 100%.
> Reproduced on 3 different computers, all Windows XP, with Java 6 and 7.
> Reproduced in applet and in standalone application shape.
> Steps to reproduce : 
> 1/ go to http://pivot.apache.org/tutorials/sample-application.html
>  -> CPU is normal, say 5%
> 2/ click on "navigation" to see the expander
>  -> CPU is at 100%, at least one of the cores.
> Alternative : just go to http://pivot.apache.org/tutorials/expanders.html and expect the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-860) CPU Usage at 100% when displaying an Expander

Posted by "Roger Whitcomb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424120#comment-13424120 ] 

Roger Whitcomb commented on PIVOT-860:
--------------------------------------

Merged to 2.0.x branch also:
Sending        wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraExpanderSkin.java
Transmitting file data .
Committed revision 1366523.
                
> CPU Usage at 100% when displaying an Expander
> ---------------------------------------------
>
>                 Key: PIVOT-860
>                 URL: https://issues.apache.org/jira/browse/PIVOT-860
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP, reproduced on Java 6 (various versions) and Java 7
>            Reporter: Guillaume Deshors
>            Assignee: Roger Whitcomb
>              Labels: performance
>             Fix For: 2.0.3
>
>         Attachments: pivot_kitchensink_expanders_profile_test_0.png, pivot_kitchensink_expanders_profile_test_1.png, pivot_kitchensink_expanders_profile_test_2.png
>
>
> When displaying an Expander component, the CPU usage immediately goes up and stays at 100% as long as the component is displayed (even if the window is background, reduced or whatever).
> To be precise, I really had 50% because I have a dual core : one of the core was 100%.
> Reproduced on 3 different computers, all Windows XP, with Java 6 and 7.
> Reproduced in applet and in standalone application shape.
> Steps to reproduce : 
> 1/ go to http://pivot.apache.org/tutorials/sample-application.html
>  -> CPU is normal, say 5%
> 2/ click on "navigation" to see the expander
>  -> CPU is at 100%, at least one of the cores.
> Alternative : just go to http://pivot.apache.org/tutorials/expanders.html and expect the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-860) CPU Usage at 100% when displaying an Expander

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400513#comment-13400513 ] 

Sandro Martini commented on PIVOT-860:
--------------------------------------

This is really strange, but I'm sorry to say that you have reason, it's true (even when Expanders are simply displayed and the user is doing nothing in the application) ... we have to look at it better, if possible with a Profiler in the Standalone (Java Standard Application) use case, to avoid browser-related side effects.
Note that probably this is not related to 2.0.2 changes but could happen even with previous versions.

Let's update.

Thanks for now,
Sandro

                
> CPU Usage at 100% when displaying an Expander
> ---------------------------------------------
>
>                 Key: PIVOT-860
>                 URL: https://issues.apache.org/jira/browse/PIVOT-860
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP, reproduced on Java 6 (various versions) and Java 7
>            Reporter: Guillaume Deshors
>            Assignee: Sandro Martini
>            Priority: Minor
>              Labels: performance
>             Fix For: 2.0.3
>
>
> When displaying an Expander component, the CPU usage immediately goes up and stays at 100% as long as the component is displayed (even if the window is background, reduced or whatever).
> To be precise, I really had 50% because I have a dual core : one of the core was 100%.
> Reproduced on 3 different computers, all Windows XP, with Java 6 and 7.
> Reproduced in applet and in standalone application shape.
> Steps to reproduce : 
> 1/ go to http://pivot.apache.org/tutorials/sample-application.html
>  -> CPU is normal, say 5%
> 2/ click on "navigation" to see the expander
>  -> CPU is at 100%, at least one of the cores.
> Alternative : just go to http://pivot.apache.org/tutorials/expanders.html and expect the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PIVOT-860) CPU Usage at 100% when displaying an Expander

Posted by "Roger Whitcomb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Whitcomb resolved PIVOT-860.
----------------------------------

    Resolution: Fixed

Sending        wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraExpanderSkin.java
Transmitting file data .
Committed revision 1366521.
                
> CPU Usage at 100% when displaying an Expander
> ---------------------------------------------
>
>                 Key: PIVOT-860
>                 URL: https://issues.apache.org/jira/browse/PIVOT-860
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP, reproduced on Java 6 (various versions) and Java 7
>            Reporter: Guillaume Deshors
>            Assignee: Roger Whitcomb
>              Labels: performance
>             Fix For: 2.0.3
>
>         Attachments: pivot_kitchensink_expanders_profile_test_0.png, pivot_kitchensink_expanders_profile_test_1.png, pivot_kitchensink_expanders_profile_test_2.png
>
>
> When displaying an Expander component, the CPU usage immediately goes up and stays at 100% as long as the component is displayed (even if the window is background, reduced or whatever).
> To be precise, I really had 50% because I have a dual core : one of the core was 100%.
> Reproduced on 3 different computers, all Windows XP, with Java 6 and 7.
> Reproduced in applet and in standalone application shape.
> Steps to reproduce : 
> 1/ go to http://pivot.apache.org/tutorials/sample-application.html
>  -> CPU is normal, say 5%
> 2/ click on "navigation" to see the expander
>  -> CPU is at 100%, at least one of the cores.
> Alternative : just go to http://pivot.apache.org/tutorials/expanders.html and expect the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-860) CPU Usage at 100% when displaying an Expander

Posted by "Roger Whitcomb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424100#comment-13424100 ] 

Roger Whitcomb commented on PIVOT-860:
--------------------------------------

So, the infinite loop is in the TerraExpanderSkin.paint method where it sets the title bar color, which sets the Label "color" style, which causes a repaint, which goes around and around.

I'm working on a fix, so assigning the issue to myself.
                
> CPU Usage at 100% when displaying an Expander
> ---------------------------------------------
>
>                 Key: PIVOT-860
>                 URL: https://issues.apache.org/jira/browse/PIVOT-860
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP, reproduced on Java 6 (various versions) and Java 7
>            Reporter: Guillaume Deshors
>            Assignee: Sandro Martini
>              Labels: performance
>             Fix For: 2.0.3
>
>         Attachments: pivot_kitchensink_expanders_profile_test_0.png, pivot_kitchensink_expanders_profile_test_1.png, pivot_kitchensink_expanders_profile_test_2.png
>
>
> When displaying an Expander component, the CPU usage immediately goes up and stays at 100% as long as the component is displayed (even if the window is background, reduced or whatever).
> To be precise, I really had 50% because I have a dual core : one of the core was 100%.
> Reproduced on 3 different computers, all Windows XP, with Java 6 and 7.
> Reproduced in applet and in standalone application shape.
> Steps to reproduce : 
> 1/ go to http://pivot.apache.org/tutorials/sample-application.html
>  -> CPU is normal, say 5%
> 2/ click on "navigation" to see the expander
>  -> CPU is at 100%, at least one of the cores.
> Alternative : just go to http://pivot.apache.org/tutorials/expanders.html and expect the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (PIVOT-860) CPU Usage at 100% when displaying an Expander

Posted by "Roger Whitcomb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Whitcomb reassigned PIVOT-860:
------------------------------------

    Assignee: Roger Whitcomb  (was: Sandro Martini)
    
> CPU Usage at 100% when displaying an Expander
> ---------------------------------------------
>
>                 Key: PIVOT-860
>                 URL: https://issues.apache.org/jira/browse/PIVOT-860
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP, reproduced on Java 6 (various versions) and Java 7
>            Reporter: Guillaume Deshors
>            Assignee: Roger Whitcomb
>              Labels: performance
>             Fix For: 2.0.3
>
>         Attachments: pivot_kitchensink_expanders_profile_test_0.png, pivot_kitchensink_expanders_profile_test_1.png, pivot_kitchensink_expanders_profile_test_2.png
>
>
> When displaying an Expander component, the CPU usage immediately goes up and stays at 100% as long as the component is displayed (even if the window is background, reduced or whatever).
> To be precise, I really had 50% because I have a dual core : one of the core was 100%.
> Reproduced on 3 different computers, all Windows XP, with Java 6 and 7.
> Reproduced in applet and in standalone application shape.
> Steps to reproduce : 
> 1/ go to http://pivot.apache.org/tutorials/sample-application.html
>  -> CPU is normal, say 5%
> 2/ click on "navigation" to see the expander
>  -> CPU is at 100%, at least one of the cores.
> Alternative : just go to http://pivot.apache.org/tutorials/expanders.html and expect the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (PIVOT-860) CPU Usage at 100% when displaying an Expander

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini reassigned PIVOT-860:
------------------------------------

    Assignee: Sandro Martini
    
> CPU Usage at 100% when displaying an Expander
> ---------------------------------------------
>
>                 Key: PIVOT-860
>                 URL: https://issues.apache.org/jira/browse/PIVOT-860
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP, reproduced on Java 6 (various versions) and Java 7
>            Reporter: Guillaume Deshors
>            Assignee: Sandro Martini
>            Priority: Minor
>              Labels: performance
>             Fix For: 2.0.3
>
>
> When displaying an Expander component, the CPU usage immediately goes up and stays at 100% as long as the component is displayed (even if the window is background, reduced or whatever).
> To be precise, I really had 50% because I have a dual core : one of the core was 100%.
> Reproduced on 3 different computers, all Windows XP, with Java 6 and 7.
> Reproduced in applet and in standalone application shape.
> Steps to reproduce : 
> 1/ go to http://pivot.apache.org/tutorials/sample-application.html
>  -> CPU is normal, say 5%
> 2/ click on "navigation" to see the expander
>  -> CPU is at 100%, at least one of the cores.
> Alternative : just go to http://pivot.apache.org/tutorials/expanders.html and expect the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-860) CPU Usage at 100% when displaying an Expander

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-860:
---------------------------------

    Fix Version/s: 2.0.3
    
> CPU Usage at 100% when displaying an Expander
> ---------------------------------------------
>
>                 Key: PIVOT-860
>                 URL: https://issues.apache.org/jira/browse/PIVOT-860
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP, reproduced on Java 6 (various versions) and Java 7
>            Reporter: Guillaume Deshors
>            Assignee: Sandro Martini
>            Priority: Minor
>              Labels: performance
>             Fix For: 2.0.3
>
>
> When displaying an Expander component, the CPU usage immediately goes up and stays at 100% as long as the component is displayed (even if the window is background, reduced or whatever).
> To be precise, I really had 50% because I have a dual core : one of the core was 100%.
> Reproduced on 3 different computers, all Windows XP, with Java 6 and 7.
> Reproduced in applet and in standalone application shape.
> Steps to reproduce : 
> 1/ go to http://pivot.apache.org/tutorials/sample-application.html
>  -> CPU is normal, say 5%
> 2/ click on "navigation" to see the expander
>  -> CPU is at 100%, at least one of the cores.
> Alternative : just go to http://pivot.apache.org/tutorials/expanders.html and expect the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-860) CPU Usage at 100% when displaying an Expander

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-860:
---------------------------------

    Attachment: pivot_kitchensink_expanders_profile_test_2.png

Show older object instances in memory, after opening for some minute the Navigation rollup (containing more Expanders) displayed.
Probably this is the memory leak seen before when Expanders are displayed.

                
> CPU Usage at 100% when displaying an Expander
> ---------------------------------------------
>
>                 Key: PIVOT-860
>                 URL: https://issues.apache.org/jira/browse/PIVOT-860
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP, reproduced on Java 6 (various versions) and Java 7
>            Reporter: Guillaume Deshors
>            Assignee: Sandro Martini
>            Priority: Minor
>              Labels: performance
>             Fix For: 2.0.3
>
>         Attachments: pivot_kitchensink_expanders_profile_test_0.png, pivot_kitchensink_expanders_profile_test_1.png, pivot_kitchensink_expanders_profile_test_2.png
>
>
> When displaying an Expander component, the CPU usage immediately goes up and stays at 100% as long as the component is displayed (even if the window is background, reduced or whatever).
> To be precise, I really had 50% because I have a dual core : one of the core was 100%.
> Reproduced on 3 different computers, all Windows XP, with Java 6 and 7.
> Reproduced in applet and in standalone application shape.
> Steps to reproduce : 
> 1/ go to http://pivot.apache.org/tutorials/sample-application.html
>  -> CPU is normal, say 5%
> 2/ click on "navigation" to see the expander
>  -> CPU is at 100%, at least one of the cores.
> Alternative : just go to http://pivot.apache.org/tutorials/expanders.html and expect the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-860) CPU Usage at 100% when displaying an Expander

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-860:
---------------------------------

    Attachment: pivot_kitchensink_expanders_profile_test_1.png

Show top methods used during Navigation (containing more Expanders) displayed. 
Could be some infinite loop to cause this.

                
> CPU Usage at 100% when displaying an Expander
> ---------------------------------------------
>
>                 Key: PIVOT-860
>                 URL: https://issues.apache.org/jira/browse/PIVOT-860
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP, reproduced on Java 6 (various versions) and Java 7
>            Reporter: Guillaume Deshors
>            Assignee: Sandro Martini
>            Priority: Minor
>              Labels: performance
>             Fix For: 2.0.3
>
>         Attachments: pivot_kitchensink_expanders_profile_test_0.png, pivot_kitchensink_expanders_profile_test_1.png
>
>
> When displaying an Expander component, the CPU usage immediately goes up and stays at 100% as long as the component is displayed (even if the window is background, reduced or whatever).
> To be precise, I really had 50% because I have a dual core : one of the core was 100%.
> Reproduced on 3 different computers, all Windows XP, with Java 6 and 7.
> Reproduced in applet and in standalone application shape.
> Steps to reproduce : 
> 1/ go to http://pivot.apache.org/tutorials/sample-application.html
>  -> CPU is normal, say 5%
> 2/ click on "navigation" to see the expander
>  -> CPU is at 100%, at least one of the cores.
> Alternative : just go to http://pivot.apache.org/tutorials/expanders.html and expect the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-860) CPU Usage at 100% when displaying an Expander

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-860:
---------------------------------

    Attachment: pivot_kitchensink_expanders_profile_test_0.png

First test, simply attach JVisualVM, and see what happens.
It seems that Expanders are doing something that's causing too much GC overhead, and even some memory leak.
For sure something that needs to be fixed.
                
> CPU Usage at 100% when displaying an Expander
> ---------------------------------------------
>
>                 Key: PIVOT-860
>                 URL: https://issues.apache.org/jira/browse/PIVOT-860
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP, reproduced on Java 6 (various versions) and Java 7
>            Reporter: Guillaume Deshors
>            Assignee: Sandro Martini
>            Priority: Minor
>              Labels: performance
>             Fix For: 2.0.3
>
>         Attachments: pivot_kitchensink_expanders_profile_test_0.png
>
>
> When displaying an Expander component, the CPU usage immediately goes up and stays at 100% as long as the component is displayed (even if the window is background, reduced or whatever).
> To be precise, I really had 50% because I have a dual core : one of the core was 100%.
> Reproduced on 3 different computers, all Windows XP, with Java 6 and 7.
> Reproduced in applet and in standalone application shape.
> Steps to reproduce : 
> 1/ go to http://pivot.apache.org/tutorials/sample-application.html
>  -> CPU is normal, say 5%
> 2/ click on "navigation" to see the expander
>  -> CPU is at 100%, at least one of the cores.
> Alternative : just go to http://pivot.apache.org/tutorials/expanders.html and expect the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira