[ 
https://jira.duraspace.org/browse/DS-552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28264#comment-28264
 ] 

Andrea Schweer commented on DS-552:
-----------------------------------

Mark, thanks for making this available on github.

I cherry-picked your commit (and changed it slightly to make it work on DSpace 
1.8.2). When I run this (DSpace 1.8.2, PostgreSQL 8.4), I get an internal 
server error with a "Bad value for type int" message. It looks to me like 
PostgreSQL is trying to squish the sum of bytes into an int but it doesn't fit 
(ca 46 GB, so totalBytes is 49582086693). I changed it locally to use 
ceil(sum(size_bytes)/1024) rather than sum(size_bytes) to get an approximation 
of KB instead, which circumvents the problem for me. An alternative might be to 
explicitly cast the sum to bigint (sum(size_bytes)::bigint), which works on my 
machine too. But I don't know what Oracle would make of that.
                
> Servlet to deliver repository size statistics
> ---------------------------------------------
>
>                 Key: DS-552
>                 URL: https://jira.duraspace.org/browse/DS-552
>             Project: DSpace
>          Issue Type: New Feature
>          Components: DSpace API
>            Reporter: Mark H. Wood
>            Assignee: Mark H. Wood
>         Attachments: stats.patch
>
>
> A tiny servlet to return counts of bitstreams, items, collections, and 
> communities, and the amount of storage occupied.  The attached patch also 
> maps it into both JSPUI and XMLUI at /content-statistics.
> The returned "page" is an XML document.  For now, see the package.html 
> changes in the patch.  I'll update the end-user documentation presently.
> We use an earlier version of this with 1.5.1 as input to our library 
> "dashboard", which gathers statistics on various services for quick reference.

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

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to