0
votes
1answer
65 views

How to set multiple paths with update-alternatives

For example, the following command install java to /usr/bin/java update-alternatives --install /usr/bin/java java /opt/java7/bin/java 1 && update-alternatives --set java /opt/java7/bin/java ...
-1
votes
2answers
662 views

linux script - find java process and restart it if it is more than 80% Mem High

I want to put in crontab a shell script that will monitor the java process and if it's the memory is more than 80% then I want to restart it. can any one help? Thanks!! Elad.
1
vote
0answers
351 views

Running Hudson builds with a higher nice level

I want to run build jobs in Jenkins with minimal cpu usage. I've tried this: Created the directory "jenkinsJdk".Jenkins is configured to use this dir as JDK "testJdk". A sample job uses "testJdk" ...
0
votes
3answers
460 views

Howto check open ports of a specific tomcat java instance

For the moment I've managed to do it with: root@server:~# for i in $(netstat -lp | grep java | awk '{print $7}' | awk -F '/' '{print $1}' | sort | uniq); do ap=$(ps p $i | grep -v PID | grep activemq ...
2
votes
7answers
2k views

Running script in background without sticking to shell

i want to run a shell script remotely via ssh and the ssh shell should end when the script ends. The script itself runs another script whose output is piped to a log file. Example: I run the script ...