[jbosstools-issues] [JBoss JIRA] (JBIDE-12432) Investigate enabling p2 download statistics

Nick Boldt (JIRA) jira-events at lists.jboss.org
Thu Nov 22 15:36:21 EST 2012


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

Nick Boldt commented on JBIDE-12432:
------------------------------------

If I change this:

{code}
-               <var name="vmargs" value=" -DartifactRepoDirectory=${SOURCE_REPO} -DmetadataRepoDirectory=${SOURCE_REPO} -Dp2StatsURI=https://devstudio.jboss.com/usage/${TARGET_PLATFORM}/${
+               <var name="vmargs" value=" -DartifactRepoDirectory=${SOURCE_REPO} -DmetadataRepoDirectory=${SOURCE_REPO} -Dp2StatsURI=http://localhost:8080/usage/${TARGET_PLATFORM}/${TARGET
{code}

And rebuild the site:

{code}cd /home/nboldt/tru/jbosstools-build-sites/aggregate/webtools-site; mvn clean install{code}

Then install everything in the main category of the site in 

{code}file:///home/nboldt/tru/jbosstools-build-sites/aggregate/webtools-site/target/site/{code}

I get this logged to my local httpd server:

{code}
HEAD '/usage/juno/4.0.0.Beta1/org.jboss.ide.eclipse.archives.feature' 
  HDR: 'connection' = 'Keep-Alive'
  HDR: 'cache-control' = 'max-age=0'
  HDR: 'host' = 'localhost:8080'
  HDR: 'user-agent' = 'Jakarta Commons-HttpClient/3.1'
HEAD '/usage/juno/4.0.0.Beta1/org.jboss.ide.eclipse.as.archives.integration.feature' 
  HDR: 'connection' = 'Keep-Alive'
  HDR: 'cache-control' = 'max-age=0'
  HDR: 'host' = 'localhost:8080'
  HDR: 'user-agent' = 'Jakarta Commons-HttpClient/3.1'
HEAD '/usage/juno/4.0.0.Beta1/org.jboss.ide.eclipse.as.feature' 
  HDR: 'connection' = 'Keep-Alive'
  HDR: 'cache-control' = 'max-age=0'
  HDR: 'host' = 'localhost:8080'
  HDR: 'user-agent' = 'Jakarta Commons-HttpClient/3.1'
HEAD '/usage/juno/4.0.0.Beta1/org.jboss.ide.eclipse.as.jmx.integration.feature' 
  HDR: 'connection' = 'Keep-Alive'
  HDR: 'cache-control' = 'max-age=0'
  HDR: 'host' = 'localhost:8080'
  HDR: 'user-agent' = 'Jakarta Commons-HttpClient/3.1'
HEAD '/usage/juno/4.0.0.Beta1/org.jboss.ide.eclipse.as.server.rse.integration.feature' 
  HDR: 'connection' = 'Keep-Alive'
  HDR: 'cache-control' = 'max-age=0'
  HDR: 'host' = 'localhost:8080'
  HDR: 'user-agent' = 'Jakarta Commons-HttpClient/3.1'
HEAD '/usage/juno/4.0.0.Beta1/org.jboss.ide.eclipse.as.serverAdapter.wtp.feature' 
  HDR: 'connection' = 'Keep-Alive'
  HDR: 'cache-control' = 'max-age=0'
  HDR: 'host' = 'localhost:8080'
  HDR: 'user-agent' = 'Jakarta Commons-HttpClient/3.1'
HEAD '/usage/juno/4.0.0.Beta1/org.jboss.tools.jmx.feature' 
  HDR: 'connection' = 'Keep-Alive'
  HDR: 'cache-control' = 'max-age=0'
  HDR: 'host' = 'localhost:8080'
  HDR: 'user-agent' = 'Jakarta Commons-HttpClient/3.1'
HEAD '/usage/juno/4.0.0.Beta1/org.jboss.tools.runtime.core.feature' 
  HDR: 'connection' = 'Keep-Alive'
  HDR: 'cache-control' = 'max-age=0'
  HDR: 'host' = 'localhost:8080'
  HDR: 'user-agent' = 'Jakarta Commons-HttpClient/3.1'
{code}

So the code works. The problem is our server isn't logging the hits, or the httpd log I requested from servicedesk didn't include HEAD requests, only GET requests.
                
> Investigate enabling p2 download statistics
> -------------------------------------------
>
>                 Key: JBIDE-12432
>                 URL: https://issues.jboss.org/browse/JBIDE-12432
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: updatesite
>            Reporter: Max Rydahl Andersen
>            Assignee: Nick Boldt
>             Fix For: 4.1.0.Alpha1
>
>
> Just learned about http://wiki.eclipse.org/Equinox_p2_download_stats today.
> Sounds like OpenShift hosted collector plus some queries to a db could do alot on getting some better updatesite usage info!

--
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