ibingame 1 Posted February 28, 2014 Report Share Posted February 28, 2014 Hey Guys,Need some help on the ubot threading methodology. I am trying to drive Page Views on Google analytics of my client. Earlier when I was on the standard edition, I was running the below code without the threads 60 exe's on my amazon EC2 server m2.2xlarge. Now I am running the same code within threads to drive more and more page views. Is my code correct? ui text box("Enter Number of Runs", #LoopCounter)ui stat monitor("Total Page Views", #Page Views)set(#Page Views, 0, "Global")loop(100) { thread { in new browser { loop(#LoopCounter) { clear cookies set user agent("Chrome") navigate("www.clientswebsite.com", "Wait") wait for browser event("Everything Loaded", "") wait(10) click(<index="click on something">, "Left Click", "No") wait(10) increment(#Page Views) click($element offset(<class="filter_text_links">, 7), "Left Click", "No") wait for browser event("Everything Loaded", "") increment(#Page Views) wait(10) loop(18) { click(<onclick="pagingEventGA('NEXTBTN_TOPRHS')">, "Left Click", "No") wait for browser event("Everything Loaded", "") increment(#Page Views) wait(10) clear cookies } } } }} Now this code is driving me nuts cause my CPU usage is going 100% with only 25 exe's where as I need to deliver around 7.5 million page views. What am I doing wrong? Please help....as this is super urgent. Quote Link to post Share on other sites
bestmacros 60 Posted February 28, 2014 Report Share Posted February 28, 2014 loop(#LoopCounter) { thread { in new browser { clear cookies set user agent("Chrome") navigate("www.clientswebsite.com", "Wait") 1 Quote Link to post Share on other sites
a2mateit 395 Posted March 2, 2014 Report Share Posted March 2, 2014 loop(#LoopCounter) { thread { in new browser { clear cookies set user agent("Chrome") navigate("www.clientswebsite.com", "Wait") What he said. Also, are you freeing up your memory in any way, shape, or form? Even with a TON of ram it's always a good idea to try and run some kind of memory cleaner hand in hand with ubot. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.