so here it goes:
- Code: Select all
filbert:~# cat DIMES/run.sh
#!/bin/bash
if [ -e "/tmp/DIMES" ]
then
exit 0
fi
touch /tmp/DIMES
cd /root/DIMES
export JAVA_HOME=/root/jdk1.5.0
make run
sleep 30
while [ -n "`ps wax|grep java`" ]
do
sleep 30
done
rm /tmp/DIMES
exit 0
"make run" calls "bash ./agent" (so you could also call agent.sh directly, don't know why I didn't

), there is maybe an easier way than this script, but I never touched it again after it worked

Of course you have to change paths of java and DIMES to your needs
as far as cpu-consumption, it's at < 0.2 system load on a 1,6GHz Duron, I didn't care for memory as this machine has enough unused of it (there are 512MB in it), One performance boost would be to switch automagically to messages tab somehow, because the graph creates the load (although it's just painted in memory), not dimes itself directly.