You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Volth (JIRA)" <ji...@apache.org> on 2015/10/28 17:49:27 UTC

[jira] [Updated] (ACCUMULO-4041) Java reflection eats too much CPU

     [ https://issues.apache.org/jira/browse/ACCUMULO-4041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Volth updated ACCUMULO-4041:
----------------------------
    Description: 
This is called so many times that it eats too much CPU, even more than the snappy compressor: http://i.imgur.com/vqX4pFi.png
Perhaps the annotation data should be copied into regular variables which can be accessed without reflection.

- org.apache.accumulo.core.client.impl.Tables.getZooCache()
  - org.apache.accumulo.server.client.HdfsZooInstance.getZooKeepersSessionTimeOut()
    - org.apache.accumulo.core.conf.AccumuloConfiguration.getTimeInMillis()
      - org.apache.accumulo.core.conf.SiteConfiguration.get()
        - org.apache.accumulo.core.conf.Property.isSensitive()
          - org.apache.accumulo.core.conf.Property.hasAnnotation()
            - java.lang.Class.getField()	

  was:
This is called so many times that it eats too much CPU:
Perhaps the annotation data should be copied into regular variables which can be accessed without reflection.

- org.apache.accumulo.core.client.impl.Tables.getZooCache()
  - org.apache.accumulo.server.client.HdfsZooInstance.getZooKeepersSessionTimeOut()
    - org.apache.accumulo.core.conf.AccumuloConfiguration.getTimeInMillis()
      - org.apache.accumulo.core.conf.SiteConfiguration.get()
        - org.apache.accumulo.core.conf.Property.isSensitive()
          - org.apache.accumulo.core.conf.Property.hasAnnotation()
            - java.lang.Class.getField()	


> Java reflection eats too much CPU
> ---------------------------------
>
>                 Key: ACCUMULO-4041
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4041
>             Project: Accumulo
>          Issue Type: Bug
>          Components: tserver
>    Affects Versions: 1.7.0
>         Environment: Ubuntu 15.10, jdk1.8.0_60
>            Reporter: Volth
>
> This is called so many times that it eats too much CPU, even more than the snappy compressor: http://i.imgur.com/vqX4pFi.png
> Perhaps the annotation data should be copied into regular variables which can be accessed without reflection.
> - org.apache.accumulo.core.client.impl.Tables.getZooCache()
>   - org.apache.accumulo.server.client.HdfsZooInstance.getZooKeepersSessionTimeOut()
>     - org.apache.accumulo.core.conf.AccumuloConfiguration.getTimeInMillis()
>       - org.apache.accumulo.core.conf.SiteConfiguration.get()
>         - org.apache.accumulo.core.conf.Property.isSensitive()
>           - org.apache.accumulo.core.conf.Property.hasAnnotation()
>             - java.lang.Class.getField()	



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)