Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlloyd committed Apr 7, 2016
2 parents ca4f9dd + 955d7c1 commit d37dd0c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ The script does not use JMeter's Distributed Mode so you do not need to adjust t
`AMI_ID="[A linix based AMI, eg. ami-f95ef58a]"`
Recommended AMI provided. Both Java and JMeter are installed by the script dynamically and are not required.

`INSTANCE_TYPE="t2.micro"`
`INSTANCE_TYPE="m3.medium"`
`micro` type instances do work and are good for developing but they are not recommended for important test runs. Performance can be slow and you risk affecting test results.
Note. Older generation instance types require a different type of AMI (paravirtual vs. hmv).

`USER="ubuntu"`
Expand Down
7 changes: 5 additions & 2 deletions jmeter-ec2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -832,15 +832,18 @@ function runcleanup() {
-P $REMOTE_PORT \
$USER@${hosts[$i]}:$REMOTE_HOME/$project-*.jtl \
$project_home/
# Append the hostname
sed "s/$/,"${hosts[$i]}"/" $project_home/$project-$DATETIME-$i.jtl >> $project_home/$project-$DATETIME-$i-appended.jtl
rm $project_home/$project-$DATETIME-$i.jtl
echo "$project_home/$project-$DATETIME-$i.jtl complete"
done
echo

# process the files into one jtl results file
echo -n "processing results..."
for (( i=0; i<$instance_count; i++ )) ; do
cat $project_home/$project-$DATETIME-$i.jtl >> $project_home/$project-$DATETIME-grouped.jtl
rm $project_home/$project-$DATETIME-$i.jtl # removes the individual results files (from each host) - might be useful to some people to keep these files?
cat $project_home/$project-$DATETIME-$i-appended.jtl >> $project_home/$project-$DATETIME-grouped.jtl
rm $project_home/$project-$DATETIME-$i-appended.jtl # removes the individual results files (from each host) - might be useful to some people to keep these files?
done

# Sort File
Expand Down
2 changes: 1 addition & 1 deletion jmeter.properties
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ jmeter.save.saveservice.output_format=csv
#jmeter.save.saveservice.bytes=true
#jmeter.save.saveservice.url=false
#jmeter.save.saveservice.filename=false
jmeter.save.saveservice.hostname=true
jmeter.save.saveservice.hostname=false
jmeter.save.saveservice.thread_counts=true
#jmeter.save.saveservice.sample_count=false
#jmeter.save.saveservice.idle_time=false
Expand Down

0 comments on commit d37dd0c

Please sign in to comment.