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

Peter Dietz commented on DS-599:
--------------------------------

I've changed to using getResponseBodyAsStream, and there is some progress, but 
I still hit OOM Heap Space (256M), I then bumped my memory up to (2560M), and I 
still got OOM.

peterdietz@peterdietz 
~/NetBeansProjects/git-dspace-clone/kb-source[report-community-hierarchy*]$ 
sudo /dspace/bin/dspace stats-util -b
Exception: Java heap space
java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOfRange(Arrays.java:3209)
        at java.lang.String.<init>(String.java:215)
        at com.Ostermiller.util.CSVLexer.yytext(CSVLexer.java:673)
        at com.Ostermiller.util.CSVLexer.getNextToken(CSVLexer.java:865)
        at com.Ostermiller.util.CSVParser.getLine(CSVParser.java:334)
        at com.Ostermiller.util.CSVParser.getAllValues(CSVParser.java:367)
        at com.Ostermiller.util.CSVParser.parse(CSVParser.java:572)
        at 
org.dspace.statistics.SolrLogger.reindexBitstreamHits(SolrLogger.java:1150)
        at 
org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:105)


I'd send in a diff patch, but I'm using this against my local instance, not 
trunk. But here is the relevant code to change:
SolrLogger.java --> reindexBitstreamHits
+            InputStream csvOutput = get.getResponseBodyAsStream();
+            Reader csvReader = new InputStreamReader(csvOutput);
+            String[][] csvParsed = CSVParser.parse(csvReader);

                
> SOLR statistics file download displays all files and not only those in the 
> Bundle Original
> ------------------------------------------------------------------------------------------
>
>                 Key: DS-599
>                 URL: https://jira.duraspace.org/browse/DS-599
>             Project: DSpace
>          Issue Type: Bug
>          Components: Solr
>    Affects Versions: 1.6.0, 1.6.1, 1.6.2
>            Reporter: Claudia Jürgen
>            Assignee: Kevin Van de Velde
>            Priority: Major
>             Fix For: 1.8.0
>
>         Attachments: DS-559--AddBundleNameToSOLR.patch, 
> DS-559--AddBundleNameToSOLR_V0_2.patch, 
> DS-559--AddBundleNameToSOLR_V0_3.patch, 
> DS-559--AddBundleNameToSOLR_V0_4_patch.patch, 
> DS-559--AddBundleNameToSOLR_V0_5_patch.patch, Original_bundle_bugfix.patch
>
>
> The file download statistic for an item displays all the bitstreams 
> regardless of the bundle they belong to.
> So licenses, extracted texts got displayed and counted.  This is a bit 
> confusing for the normal user as their existence is usually hidden from him.
> Furthermore I wonder whether views from the edit item stage should be counted 
> as "regular" views at all.

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

       

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to