Michael:

If you don't have the source, what you could do, in the time being, is go into 
your tomcat directory <tomcat>/webapps/jspui/
Then you can modify 
collection-home.jsp
community-home.jsp
display-item.jsp

I would backup each file first and then go into each JSP and remove lines 
similar to what I have listed below (which are somewhere near the bottom of 
each listing):
          <div align="center">
                   <form method="get" action="<%= request.getContextPath() 
%>/displaystats">
                       <input type="hidden" name="handle" value="<%= 
collection.getHandle() %>"/>
                       <input type="submit" name="submit_simple" 
value="<fmt:message key="jsp.collection-home.display-statistics"/>" />
                   </form>
          </div>

You don't need to restart tomcat.  This will take effect immediately, and you 
can see if this helps.  If not, you can simply replace the jsp files back to 
what they were before with the copies you made.

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924


-----Original Message-----
From: Michael White [mailto:michael.wh...@stir.ac.uk] 
Sent: Monday, November 28, 2011 10:09 AM
To: George S Kozak; DSpace-tech@lists.sourceforge.net
Subject: RE: Turning off SOLR stats

Thanks George,

> so what I did to (sort of) shut them down is simply remove the button 
> from the Community, Collection and Item pages

OK - I had hoped that I could get rid of these via Configuration, but I'm 
guessing not :-( 

One problem I have is that one of our sys admins recently deleted the DSpace 
source code from my server (he thought he was helping to clear disk space, not 
realising that I have substantially customised our DSpace source code! Oh, and 
he deleted it from both DEV and PRODUCTION - don't ask!), so, until I have time 
to reconstruct my customised code I am a little handicapped in what I can do - 
I guess I could just update these JSPs in the expanded WAR file though (Yuck!) 
. . .

Cheers,

Mike

Michael White
Research Management System (RMS) Project Information Services S8, Library 
University of Stirling Stirling SCOTLAND
FK9 4LA
Email: michael.wh...@stir.ac.uk
Tel: +44 (0) 1786 466877
Fax: +44 (0) 1786 466880
http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php


-----Original Message-----
From: George S Kozak [mailto:g...@cornell.edu]
Sent: 28 November 2011 14:53
To: Michael White; DSpace-tech@lists.sourceforge.net
Subject: RE: Turning off SOLR stats

Michael:

Our Solr Stats at Cornell University, also, began to give us troubles, so what 
I did to (sort of) shut them down is simply remove the button from the 
Community, Collection and Item pages.  That way, the Solr stats run in the 
background  but since no one is requesting any reports, the CPU usage is normal 
and we no longer have any problems.  I am not sure if this will be of help to 
you or whether you are using the XMLUI or JSPUI, but I found it fairly easy in 
the JSPUI to remove the buttons requesting statistics and can give you the 
exact lines to remove, if you want.

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924

-----Original Message-----
From: Michael White [mailto:michael.wh...@stir.ac.uk]
Sent: Monday, November 28, 2011 7:38 AM
To: DSpace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Turning off SOLR stats

Hi,

Our SOLR stats have been flaky for a while but have now reached the point where 
they are bringing our server down, so I want to turn them off completely (until 
I can find time to work on it and get them working properly), but this doesn't 
seem as simple as I hoped it would be!

It was a long time ago that I set this up, so can't remember how I turned them 
on (and can't find anything specific in the documentation). I've tried a couple 
of things in dspace.cfg (e.g. commenting out "solr.log.server"), but, although 
this seems to have stopped the errors, I still see "LoggerUsageEventListener" 
lines in the logs, and the "View Statistics" button is still there (using 
JSPUI).

Anyone have any pointers how to completely disable the SOLR stats (so that 
DSpace isn't trying to log events, and, perhaps more importantly, so that the 
"View Statistics" button disappears)?

Cheers,

Mike

Michael White
Research Management System (RMS) Project Information Services S8, Library 
University of Stirling Stirling SCOTLAND
FK9 4LA
Email: michael.wh...@stir.ac.uk
Tel: +44 (0) 1786 466877
Fax: +44 (0) 1786 466880
http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php



--
The Sunday Times Scottish University of the Year 2009/2010 The University of 
Stirling is a charity registered in Scotland,  number SC 011159.


------------------------------------------------------------------------------
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. IT 
sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech



--
The Sunday Times Scottish University of the Year 2009/2010 The University of 
Stirling is a charity registered in Scotland,  number SC 011159.


------------------------------------------------------------------------------
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. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to