Greetings!
Platform: Windows (8.1)
Version: Official 1.9 from site.
I wrote some script. 1st argument - addres of web-site, other arguments - options for receiving info from this site.
I have alot of web-sites, for each user set some settings(settings is a script arguments), for each site I call phantomJS with my script & arguments definded for this site. As call phantomJS, I mean that;
1. Create process with arguments
2. Wait until process destroyed, and return exit code for site N
n... repeat thet again for site N in cycle.
In each start & each end, I got some PC resources jumps, in start app allocate many resources, in exit it return resources to system. I searching some soulion to resolve that resource usage problem...
Possible to use PhantomJS in that mode:
1. Launch one instance of PhantomJS
2. for each site call script, send some command to app StdInput with it, if in StdOutput(if avaliable) prev script return good return
3. Close instance of PhantomJS
?
Anybody knows some ideas, solutions, sugestions?
Thanks.