Jump to content
Wiki Home
EPrints Home
Bazaar
Files
Main menu
Main menu
move to sidebar
hide
Navigation
Front Page
EPrints 3 Manual
EPrints Training Course
EPrints Glossary
Installing EPrints
How-to Configure EPrints
EPrints 3.2+ API
EPrints 3 Reference
EPrints Plugins
Wiki
All categories
Recent changes
Main Page
Help
EPrints Documentation
Search
Search
Appearance
Log in
Request account
Personal tools
Log in
Request account
Pages for logged out editors
learn more
Contributions
Talk
Editing
Kieker
(section)
Page
Discussion
British English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Installation== ===Kieker=== We used Kieker v1.9 during our tests. You may get it from: http://kieker-monitoring.net/download/ Note that Kieker requires Java (but this can easily be installed under Ubuntu). ===Required modules=== If you're using Ubuntu, you can install the modules as follow: sudo apt-get install libclass-accessor-perl libnet-stomp-perl libdevel-caller-ignorenamespaces-perl libsub-install-perl libparams-util-perl libdata-optlist-perl libsub-exporter-perl libsub-prototype-perl libsub-wrappackages-perl If you'd rather install them via CPAN, the above packages' name are: * Class::Accessor * Net::Stomp * Devel::Caller::IgnoreNamespaces * Sub::Install * Params::Util * Data::OptList * Sub::Exporter * Sub::Prototype * Sub::WrapPackages You must also install memcached, if not already present on your server: sudo apt-get install memcached libcache-memcached-fast-perl ===EPrints/Kieker extensions=== You need to copy a few modules from https://github.com/eprints/epkieker to finalise the installation of Kieker, to run with EPrints. If EPrints is install under its default path /opt/eprints3 (otherwise adjust the paths): cp -rf perl_lib/Kieker* /opt/eprints3/perl_lib cp perl_lib/EPrints/Apache/KiekerHandler.pm /opt/eprints3/perl_lib/EPrints/Apache cp -rf bin/kieker /opt/eprints3/archives/<id>/bin/ And you're done. ===Configuration=== There are only a few options you need to edit to configure Kieker, which are in /opt/eprints3/perl_lib/EPrints/Apache/KiekerHandler.pm. Any time you make a configuration change, you must restart Apache. ====Monitored URI==== This option allows you to restrict the URI which will capture profiling data. For instance, if you have a problem with searching, you may want to set this to "/cgi/search". To do the same with the browse views, use "/view/". Some examples: my $MONIT_URI = "/"; # monitors "/" ie. /index.html my $MONIT_URI = /cgi/search"; # monitors the search my $MONIT_URI = "/view/year/"; # monitors the browse view "by year" my $MONIT_URI = "/cgi/users/home"; # monitors the user (logged-in) area ====Monitored IP==== It can be dangerous to allow monitoring for any clients using your repository (if using Kieker on a production server). This will slow down the system for everyone, as well as generating lots of useless data. This option is there to restrict which IP address enables monitoring. At the moment it can only be a single IP address, you cannot specify network blocks. If you want to monitor EPrints then this should probably be set to your IP (v4) address. Example: my $MONIT_URI = "124.3.45.7"; ====Monitored Packages==== Remember I told you that, with PERL, Kieker wraps any modules? Well this last option allows you to specify which modules will be wrapped hence which modules will be monitored. Anything outside of the selected scope will not be monitored and will not generate any data. Some common examples: my $MONIT_PACKAGES = "EPrints EPrints::*"; # any EPrints call my $MONIT_PACKAGES = "EPrints::Database EPrints::Database::*"; # anything relating to EPrints' Database layer my $MONIT_PACKAGES = "EPrints::Plugin::Screen::Items;" # the "Manage deposits" page my $MONIT_PACKAGES = "EPrints::MetaField::* EPrints::XML;" # EPrints' metafield layer, in relation to the XML module ===Enabling/Disabling Kieker=== Typically EPrints tells Apache that it handles *any* web requests for a given virtual host (the URL of your repository). The line responsible for this delegation is inside /opt/eprints3/cfg/apache/<id>.conf: PerlTransHandler +EPrints::Apache::Rewrite We just need to set this to the Kieker handler to enable Kieker: PerlTransHandler +EPrints::Apache::KiekerPerlHandler Restart Apache and you are done. To disable Kieker, do the opposite.
Summary:
Please note that all contributions to EPrints Documentation may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
EPrints Documentation:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)