hei, ape
I used wget to simulate 60k users online. (just CONNECT and CHECK) as
following:
onuser.sh:
========
sesssid=`wget -q -O - "http://0.push.mangoq.com/2/?[{\"cmd\": \"CONNECT\",
\"chl\": 1, \"params\": {\"uin\": \"$1\"}}]" 2>/dev/null |awk -F
'sessid":"|"}},{"time"' '{print $2}'`
sleep 3
wget -q -O - "http://0.push.mangoq.com/2/?[{\"cmd\": \"CHECK\", \"chl\": 1,
\"sessid\": \"$sesssid\"}] " 2>&1 >>status/check$sesssid.log &
while true;
do wget -q -O - "http://0.push.mangoq.com/2/?[{\"cmd\": \"CHECK\", \"chl\":
1, \"sessid\": \"$sesssid\"}] " 2>&1 >>status/check$sesssid.log &
sleep 18;
done
test.sh
=====
m=0
for ((i=0;i<101;i++))
do
for ((j=1 ;j<200;j++))
do m=$((i*200+j));
sh ./oneuser.sh $m &
done
sleep 10;
done
I used 3 machines to excute test.sh to simulate 60k users. After certain
hours normarly go. I can't connect to http://0.push.mangoq.com/
I attached the aped process. seems events_poll() don't return on new user
connect.
Any idea?
(30120 is the zombied aped process id)
[r...@localhost ~]# lsof -p 30120 | wc -l
5937
[r...@localhost ~]# lsof -p 30120 | tail
aped 30120 daemon *382u IPv4 109333864 TCP
0.push.mangoq.com:http->192.168.8.42:47748 (ESTABLISHED)
aped 30120 daemon *385u IPv4 109333914 TCP
0.push.mangoq.com:http->192.168.8.42:47751 (ESTABLISHED)
aped 30120 daemon *396u IPv4 109334482 TCP
0.push.mangoq.com:http->192.168.8.42:47766 (ESTABLISHED)
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/