[jboss-jira] [JBoss JIRA] Commented: (JBCOMMON-92) Optimize Logger usage in JBossObject

David Lloyd (JIRA) jira-events at lists.jboss.org
Tue Sep 1 15:25:23 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBCOMMON-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12484021#action_12484021 ] 

David Lloyd commented on JBCOMMON-92:
-------------------------------------

Last time I checked, just having a "protected Logger log" field on JBossObject costs us nearly a megabyte of RAM at runtime.  It would be far better to ditch the instance field and go with 100% static loggers in my opinion, and other fields on this (and any other widely used) base class should be similarly scrutinized (for example, do we have any evidence that having a cached toString improves performance enough to offset the cost of the cached string plus potentially 80,000+ SoftReference objects?)

> Optimize Logger usage in JBossObject
> ------------------------------------
>
>                 Key: JBCOMMON-92
>                 URL: https://jira.jboss.org/jira/browse/JBCOMMON-92
>             Project: JBoss Common
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: common-core (2.x)
>    Affects Versions: 2.2.15.GA
>            Reporter: Ales Justin
>            Assignee: Ales Justin
>             Fix For:  2.2.16.GA
>
>
> Cache Logger instance in JBossObject; per class.

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

        



More information about the jboss-jira mailing list