Re: [Dspace-tech] Fwd: Tomcat Crashing Intermittently

2012-10-22 Thread Mark H. Wood
On Sat, Oct 20, 2012 at 03:21:34PM +0200, Hilton Gibson wrote:
 Can you cc the list your monit configurations?

Here's what I have so far.  There is much more I'd like to
investigate, but I'm going slowly and feeling my way.

savage monit.d # cat check-tomcat-7.rc 
check process tomcat-7 with pidfile /var/run/tomcat-7.pid
start program = /etc/init.d/tomcat-7 restart
stop program = /etc/init.d/tomcat-7 stop
# below from 
http://fak3r.com/2010/10/07/howto-monitor-tomcat-with-monit-and-munin-in-debian/
if cpu  60% for 2 cycles then alert
#   if cpu  80% for 5 cycles then restart
#   if totalmem  1500.0 MB for 5 cycles then restart
#   if failed host 127.0.0.1 port 113 then alert
#   if failed host 127.0.0.1 port 8180 then alert
#   if 5 restarts within 5 cycles then timeout
savage monit.d # cat notify.rc 
# notify.rc
# monit alert recipients

set alert mw...@iupui.edu
set alert 3175551...@vtext.com

set alert someone-e...@iupui.edu
savage monit.d # 

I found that, on Gentoo Linux, you really need to use restart rather
than start, because OpenRC will have Tomcat in crashed state and
start won't work.

I have no idea why the commented-out parts above want to monitor the
Ident port (113).

Just the default process monitoring has caught several crashes in the
last few weeks, and restarted Tomcat automatically each time.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Asking whether markets are efficient is like asking whether people are smart.


pgpAKcT4jWYqx.pgp
Description: PGP signature
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Fwd: Tomcat Crashing Intermittently

2012-10-22 Thread Hilton Gibson
Just a note.

When Tomcat crashes, is the pid still there?
Would it not be better to monitor the port?

See below

bibboek@ir1:/etc/monit$ sudo cat monitrc
set daemon  60
set logfile syslog facility log_daemon
set mailserver localhost
set mail-format { from: mo...@ez.sun.ac.za }
set alert root@localhost
set httpd port 2812
 allow X:X

check process sshd with pidfile /var/run/sshd.pid
   start program  /etc/init.d/ssh start
   stop program  /etc/init.d/ssh stop
   if failed port 22 protocol ssh then restart

check host sunscholar with address scholar.sun.ac.za
   start program = /etc/init.d/tomcat6 restart
   stop program  = /etc/init.d/tomcat6 stop
   if failed port 80 proto http then restart
   alert hgib...@sun.ac.za
   alert wk...@sun.ac.za
###

On 22 October 2012 16:10, Mark H. Wood mw...@iupui.edu wrote:

 On Sat, Oct 20, 2012 at 03:21:34PM +0200, Hilton Gibson wrote:
  Can you cc the list your monit configurations?

 Here's what I have so far.  There is much more I'd like to
 investigate, but I'm going slowly and feeling my way.

 savage monit.d # cat check-tomcat-7.rc
 check process tomcat-7 with pidfile /var/run/tomcat-7.pid
 start program = /etc/init.d/tomcat-7 restart
 stop program = /etc/init.d/tomcat-7 stop
 # below from
 http://fak3r.com/2010/10/07/howto-monitor-tomcat-with-monit-and-munin-in-debian/
 if cpu  60% for 2 cycles then alert
 #   if cpu  80% for 5 cycles then restart
 #   if totalmem  1500.0 MB for 5 cycles then restart
 #   if failed host 127.0.0.1 port 113 then alert
 #   if failed host 127.0.0.1 port 8180 then alert
 #   if 5 restarts within 5 cycles then timeout
 savage monit.d # cat notify.rc
 # notify.rc
 # monit alert recipients

 set alert mw...@iupui.edu
 set alert 3175551...@vtext.com

 set alert someone-e...@iupui.edu
 savage monit.d #

 I found that, on Gentoo Linux, you really need to use restart rather
 than start, because OpenRC will have Tomcat in crashed state and
 start won't work.

 I have no idea why the commented-out parts above want to monitor the
 Ident port (113).

 Just the default process monitoring has caught several crashes in the
 last few weeks, and restarted Tomcat automatically each time.

 --
 Mark H. Wood, Lead System Programmer   mw...@iupui.edu
 Asking whether markets are efficient is like asking whether people are
 smart.


 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_sfd2d_oct
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech




-- 
*Hilton Gibson*
Systems Administrator
JS Gericke Library
Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 4758
http://library.sun.ac.za
http://scholar.sun.ac.za
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Metadata Schema

2012-10-22 Thread Carlos E. Mansilla G.
how can i add a new metadata schema??.. i need to add a LOM metadata
schema but i dont know how to find the properly url that i need to
enter in dspace... what i need to search to register new
metadata schema??



thnx..


Carlos Mansilla G.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Fwd: Tomcat Crashing Intermittently

2012-10-22 Thread Mark H. Wood
On Mon, Oct 22, 2012 at 04:23:38PM +0200, Hilton Gibson wrote:
 Just a note.
 
 When Tomcat crashes, is the pid still there?
 Would it not be better to monitor the port?

Good point.  I already had Nagios watching ports from afar, so I've
been concentrating on the simple case where the process actually
disappears.  We've been having crashes (process dies) lately but no
hangs (process remains but is unresponsive) or runaways (process
consumes much CPU but does little apparent work).

Monit is right there on the same host and can do something about a
crashed or hung service, so I'll be adding conditions and responses as
I get a feel for the tool.  I'm intrigued by the possibility of using
the JMX plugin to recognize imminent PermGen exhaustion, take a thread
dump and preemptively restart.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Asking whether markets are efficient is like asking whether people are smart.


pgpInEWMUOoXO.pgp
Description: PGP signature
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] How to let end-users submit to DSpace but hold the record and its attachment till it is fully checked by library staff

2012-10-22 Thread LIBRIS Reference (LIBRIS)
Dear All,

Our DSpace repository (v1.5) currently only allows library staff to make 
submissions.  What do we have to do to allow end-users to submit to DSpace but 
to hold their submissions till it is fully checked by library staff.  Thanks.

Sherman
National Institute of Education (Singapore) http://www.nie.edu.sg

DISCLAIMER : The information contained in this email, including any 
attachments, may contain confidential information. 
This email is intended only for the use of the addressee(s) listed above. 
Unauthorised sight, dissemination or any other 
use of the information contained in this email is strictly prohibited. If you 
have received this email by fault, please 
notify the sender and delete it immediately.
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech