[jbosstools-issues] [JBoss JIRA] (JBIDE-13993) usage should report x86_64 among linux systems correctly (currently only reports x686)

Andre Dietisheim (JIRA) jira-events at lists.jboss.org
Thu Apr 11 13:58:55 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-13993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766577#comment-12766577 ] 

Andre Dietisheim commented on JBIDE-13993:
------------------------------------------

usage is currently only reporting x686 system since it uses a linux user-agent which hard-codes x686:

{code:title=org.jboss.tools.usage.googleanalytics.eclipse.EclipseUserAgent}
private static final String USERAGENT_LINUX = "{0}/{1} (X11; U; Linux i686; {3})"; //$NON-NLS-1$
{code}

The usage plugin should inspect
{code}
is64bit = (System.getProperty("os.arch").indexOf("64") != -1);
{code}

This will report the architecture of the JVM only. Since one can run a 32bit JVM on a 64bit system this wont be completely accurate though (http://stackoverflow.com/questions/1856565/how-do-you-determine-32-or-64-bit-architecture-of-windows-using-java).
                
> usage should report x86_64 among linux systems correctly (currently only reports x686)
> --------------------------------------------------------------------------------------
>
>                 Key: JBIDE-13993
>                 URL: https://issues.jboss.org/browse/JBIDE-13993
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: usage
>    Affects Versions: 4.1.0.Alpha1
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>             Fix For: 4.1.x
>
>         Attachments: linux-os-versions.png
>
>
> usage reporting reports all linux systems as x686 uniformously. It should detect and report 
> * x686
> * x86_64
> !linux-os-versions.png!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list