Weirdest issue

35 views
Skip to first unread message

Joshua Malinsky

unread,
Mar 23, 2016, 5:29:20 PM3/23/16
to CasperJS
Hi folks

I'm at my wits end trying to figure out why anything "casperjs" hangs / does nothing but cause a never-ending process to take 99% CPU until killed, but only when it's called via PHP/exec in a script initiated from supervisord, not CLI.

More details here:

 - grasping for any tips on troubleshooting.  Thanks.

Ryan Null (BIGjuevos)

unread,
Mar 25, 2016, 11:34:57 AM3/25/16
to CasperJS
Joshua,

Sorry to read that you are having so many issues.

Can you dump what your environment variables look like for both you command line and PHP environment?

Further, for PHP process management, you'll be better served by using: http://php.net/manual/en/function.proc-open.php and the related proc_* functions for process managemenr instead of exec.

bruce

unread,
Mar 25, 2016, 5:28:46 PM3/25/16
to casp...@googlegroups.com
is this windows/linux, which versions...

what's the process/top commands showing for resource consumption.

I routinely from linux/py fire of
  casperjs foo.js  data1  data2...

and have them run...


do you have timeout/compete times in the process.. since it works from the CLI, I assume you do..



--
CasperJS homepage & documentation: http://casperjs.org/
CasperJS @github: https://github.com/n1k0/casperjs
 
You received this message because you are subscribed to the Google Groups "casperjs" group.
Visit this group at http://groups.google.com/group/casperjs?hl=en.
---
You received this message because you are subscribed to the Google Groups "CasperJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to casperjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages