Jump to content
UBot Underground

UBot Threading Doubt


Recommended Posts

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.

Link to post
Share on other sites

loop(#LoopCounter) {
    thread {
        in new browser {
                clear cookies
                set user agent("Chrome")
                navigate("www.clientswebsite.com""Wait")

  • Like 1
Link to post
Share on other sites

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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...