1. Reduce the tomcat execution pool to 3
2. Start 100 sessions call the test code to call sendmail:
$ sh runclient.sh clsendmail.p 100
# runclient.sh
#!/bin/sh
test=$1
nClients=$2
echo "CLIENT prog =>" $pfile
echo "NUM CLIENTS =>" $nClients
count=0
while :
do
count=`expr $count + 1`
$PROEXE -p $test -b >x_$count.out &
if [ $count -gt $nClients ]; then
break
fi
echo "count == $count"
done
Test code:
clsendmail.p
DEFINE STREAM msg.
OUTPUT STREAM msg THROUGH /usr/sbin/sendmail '<email>' NO-ECHO.
PUT STREAM msg unformatted
'Subject: pasmail Test' skip.
OUTPUT STREAM msg CLOSE.
QUIT.