Current time: 11-13-2019, 12:37 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mobitest-agents hangs every night
01-09-2014, 10:18 PM
Post: #1
Mobitest-agents hangs every night
Hi,

I have a private instance of webpagetest setup with 2 iphones using mobitest-agents (https://code.google.com/p/mobitest-agent...checkout).
Jobs are sent to the devices (via a php script) every 15 minutes, and they report back to the webpagetest private instance. So far so good. The problem is that after about 12 hours, mostly during the night, they usually stop reporting, and the mobitest-agents just displays a white screen (the app hangs). The following tests just ends up in a very long queue, and I have to restart the apps on the test devices. I know that the sites that are tested is usually rebooted every night.

Anyone that have had the same problem, and managed to solve it?

Any input would be great Smile

Andy
Find all posts by this user
Quote this message in a reply
01-10-2014, 07:00 AM
Post: #2
RE: Mobitest-agents hangs every night
The way I deal with it requires a jailbreak but has kept the devices as super-reliable:

- cron job on the wpt server calls getTesters.php every 5 minutes and checks how long it has been since each phone last checked in
- for any phone that hasn't checked in in over 5 minutes the script ssh's into the phone and runs a restart.sh script
- the restart.sh script does a killall for all running instances of the mobitest agent and re-starts it

The jailbreak requirement is a pain but the script has made it so that the only time the phones need manual TLC is when an alert box for an OS update needs to be dismissed.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-10-2014, 06:20 PM
Post: #3
RE: Mobitest-agents hangs every night
Thanks a lot Patrick!

Ive been really frustrated with this, but this is a solution I can live with. Right now Im restarting the apps every morning.
Find all posts by this user
Quote this message in a reply
01-12-2014, 08:10 PM
Post: #4
RE: Mobitest-agents hangs every night
(01-10-2014 07:00 AM)pmeenan Wrote:  The jailbreak requirement is a pain but the script has made it so that the only time the phones need manual TLC is when an alert box for an OS update needs to be dismissed.

What's the stability of the node agent talking to iOS Safari like?

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
01-15-2014, 05:18 AM
Post: #5
RE: Mobitest-agents hangs every night
Not sure yet, I haven't had a chance to move my deployments over. We have some dev systems running it and they go offline periodically but I don't know if that's from iOS, the dev tools proxy or from the Node agent itself.

The Node.js agent still requires a jailbreak to clear the cache (and possibly a few other things) but there is no persistent agent that runs on the phone so presumably it should be a lot better.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)