Service Monitor


Our company currently runs the Apache Tomcat application server. This server occasionally runs out of memory and requires a restart.


-A linux shell script that will continuously monitor the log file for the tomcat application server.

-If the text OutOfMemory is written to the log file the application server should be shut down.

-The stop and start scripts are already written as init.d start/stop commands.

-After shutting down the application server and waiting 1 minute, the script should check to see if any threads are still running, if they are, the script should kill these threads.

-After all threads have stopped, the script should start the application server again.

-The log file will not be cleared on a restart, so the script should monitor the output file for the OutOfMemory screen to be written to it (perhaps a 'tail -f' ?). The script should obviously not continuously restart just because of an earlier OutOfMemory error for which the sytem already restarted. When the server is restarted, the startup of the server is also logged in the file--so it is possible that the script could simply look for an OutOfMemory string occurring after the startup string.

Habilidades: Linux

Veja mais: start freelance service monitor, linux service monitor restart nagios, linux monitor restart application shell, script check outofmemory log file, perl script monitor log file continuously, linux shell scripts, in linux shell script, tomcat, threads, script kill restart application, kill linux, linux shell restart, running error, apache memory, apache linux kill script, company service, sytem, log tail, memory file, linux script log, tomcat log service, script restart server, linux file monitor script, service log, check output

Acerca do Empregador:
( 1 comentário ) Santa Monica, United States

ID do Projeto: #168680

Concedido a:


Hello, have experience in this sort of scripts. WIll do it fast and without prepaid. Thanks, Sergey

$30 USD em 1 dia
(7 Comentários)

9 freelancers estão ofertando em média $43 para esse trabalho


Hi, Please see PM.

$50 USD em 1 dia
(58 Comentários)

Please read my PM

$30 USD em 1 dia
(9 Comentários)

Will be done!

$30 USD in 0 dias
(1 Comentário)

I can do this, please check PM for details.

$80 USD em 1 dia
(2 Comentários)

Hello, This is a script that I can prepare for you. I will PM you with samples of work and testimonials.

$75 USD em 1 dia
(0 Comentários)

Please look your PMB.

$30 USD in 0 dias
(0 Comentários)

I will write a perl script to do this. Shell is ok, but this one will also email you with a short report on the occurance of a restart. Will need ssh access to your server.

$35 USD em 1 dia
(0 Comentários)

I can do this for u.

$30 USD em 1 dia
(0 Comentários)