jbossjonas.sh
Home
/
evaluation /
otherapps /
RUBiS-Benchmark /
bench /
jbossjonas.sh
#!/bin/tcsh
setenv EJBDIR /users/cecchet/RUBiS/EJB_Session_facade
# Go back to RUBiS root directory
cd ..
# Browse only JOnAS
cp ./workload/browse_only_transitions_7.txt ./workload/transitions.txt
foreach i ( rubis.properties_20 rubis.properties_40 rubis.properties_60 rubis.properties_80 rubis.properties_100 rubis.properties_120 rubis.properties_140 rubis.properties_160 rubis.properties_180 rubis.properties_200 rubis.properties_220 rubis.properties_240 rubis.properties_260 rubis.properties_280 rubis.properties_300 rubis.properties_320 rubis.properties_340 rubis.properties_360 rubis.properties_380 rubis.properties_400 rubis.properties_420 rubis.properties_440 rubis.properties_460 rubis.properties_480 rubis.properties_500)
cp bench/$i Client/rubis.properties
rsh sci21 -n -l root ${EJBDIR}/tomcat_stop.sh
rsh sci20 ${EJBDIR}/jonas_stop.sh
sleep 4
rsh sci22 ${EJBDIR}/update_ids.sh
rsh sci21 -n -l root ${EJBDIR}/tomcat_jonas_start.sh &
rsh sci20 "cd ${EJBDIR} ; jonas_start.sh" &
sleep 4
bench/flush_cache 490000
rsh sci8 RUBiS/bench/flush_cache 490000 # remote client
rsh sci20 RUBiS/bench/flush_cache 880000 # ejb server
rsh sci21 RUBiS/bench/flush_cache 880000 # servlet server
rsh sci23 RUBiS/bench/flush_cache 880000 # web server
rsh sci22 RUBiS/bench/flush_cache 880000 # database
make emulator
end
rsh sci20 ${EJBDIR}/jonas_stop.sh
sleep 4
# Browse only JBoss
cp ./workload/browse_only_transitions_7.txt ./workload/transitions.txt
foreach i ( rubis.properties_20 rubis.properties_40 rubis.properties_60 rubis.properties_80 rubis.properties_100 rubis.properties_120 rubis.properties_140 rubis.properties_160 rubis.properties_180 rubis.properties_200 rubis.properties_220 rubis.properties_240 rubis.properties_260 rubis.properties_280 rubis.properties_300 rubis.properties_320 rubis.properties_340 rubis.properties_360 rubis.properties_380 rubis.properties_400 rubis.properties_420 rubis.properties_440 rubis.properties_460 rubis.properties_480 rubis.properties_500)
cp bench/$i Client/rubis.properties
rsh sci21 -n -l root ${EJBDIR}/tomcat_stop.sh
rsh sci20 ${EJBDIR}/jboss_stop.sh
sleep 4
rsh sci22 ${EJBDIR}/update_ids.sh
rsh sci21 -n -l root ${EJBDIR}/tomcat_jboss_start.sh &
rsh sci20 "cd ${EJBDIR} ; jboss_start.sh" &
sleep 10
bench/flush_cache 490000
rsh sci20 RUBiS/bench/flush_cache 880000 # ejb server
rsh sci21 RUBiS/bench/flush_cache 880000 # servlet server
rsh sci23 RUBiS/bench/flush_cache 880000 # web server
rsh sci22 RUBiS/bench/flush_cache 880000 # database
rsh sci8 RUBiS/bench/flush_cache 490000 # remote client
make emulator
end
rsh sci20 ${EJBDIR}/jboss_stop.sh
sleep 4
# Default JOnAS
cp ./workload/default_transitions_7.txt ./workload/transitions.txt
foreach i ( rubis.properties_20 rubis.properties_40 rubis.properties_60 rubis.properties_80 rubis.properties_100 rubis.properties_120 rubis.properties_140 rubis.properties_160 rubis.properties_180 rubis.properties_200 rubis.properties_220 rubis.properties_240 rubis.properties_260 rubis.properties_280 rubis.properties_300 rubis.properties_320 rubis.properties_340 rubis.properties_360 rubis.properties_380 rubis.properties_400 rubis.properties_420 rubis.properties_440 rubis.properties_460 rubis.properties_480 rubis.properties_500)
cp bench/$i Client/rubis.properties
rsh sci21 -n -l root ${EJBDIR}/tomcat_stop.sh
rsh sci20 ${EJBDIR}/jonas_stop.sh
sleep 4
rsh sci22 ${EJBDIR}/update_ids.sh
rsh sci21 -n -l root ${EJBDIR}/tomcat_jonas_start.sh &
rsh sci20 "cd ${EJBDIR} ; jonas_start.sh" &
sleep 4
bench/flush_cache 490000
rsh sci8 RUBiS/bench/flush_cache 490000 # remote client
rsh sci20 RUBiS/bench/flush_cache 880000 # ejb server
rsh sci21 RUBiS/bench/flush_cache 880000 # servlet server
rsh sci23 RUBiS/bench/flush_cache 880000 # web server
rsh sci22 RUBiS/bench/flush_cache 880000 # database
make emulator
end
rsh sci20 ${EJBDIR}/jonas_stop.sh
sleep 4
# Default JBoss
cp ./workload/default_transitions_7.txt ./workload/transitions.txt
foreach i ( rubis.properties_20 rubis.properties_40 rubis.properties_60 rubis.properties_80 rubis.properties_100 rubis.properties_120 rubis.properties_140 rubis.properties_160 rubis.properties_180 rubis.properties_200 rubis.properties_220 rubis.properties_240 rubis.properties_260 rubis.properties_280 rubis.properties_300 rubis.properties_320 rubis.properties_340 rubis.properties_360 rubis.properties_380 rubis.properties_400 rubis.properties_420 rubis.properties_440 rubis.properties_460 rubis.properties_480 rubis.properties_500)
cp bench/$i Client/rubis.properties
rsh sci21 -n -l root ${EJBDIR}/tomcat_stop.sh
rsh sci20 ${EJBDIR}/jboss_stop.sh
sleep 4
rsh sci22 ${EJBDIR}/update_ids.sh
rsh sci21 -n -l root ${EJBDIR}/tomcat_jboss_start.sh &
rsh sci20 "cd ${EJBDIR} ; jboss_start.sh" &
sleep 10
bench/flush_cache 490000
rsh sci20 RUBiS/bench/flush_cache 880000 # ejb server
rsh sci21 RUBiS/bench/flush_cache 880000 # servlet server
rsh sci23 RUBiS/bench/flush_cache 880000 # web server
rsh sci22 RUBiS/bench/flush_cache 880000 # database
rsh sci8 RUBiS/bench/flush_cache 490000 # remote client
make emulator
end