• Announcements

    • MannDude

      Current state of vpsBoard   02/04/2017

      Dear vpsBoard members and guests:

      Over the last year or two vpsBoard activity and traffic has dwindled. I have had a change of career and interests, and as such am no longer an active member of the web hosting industry.

      Due to time constraints and new interests I no longer wish to continue to maintain vpsBoard. The web site will remain only as an archive to preserve and showcase some of the great material, guides, and industry news that has been generated by members, some of which I remain in contact to this very day and now regard as personal friends.

      I want to thank all of our members who helped make vpsBoard the fastest growing industry forum. In it's prime it was an active and ripe source of activity, news, guides and just general off-topic banter and fun.

      I wish all members and guests the very best, whether it be with your business or your personal projects.

      -MannDude
mainline.realty

ODD Sharer Behavior

4 posts in this topic

Hello,

 

I am new here and I am hoping to get some answers and continue to use this forum for all my VPS issues; I have notices an odd behavior through my site over time and I think it's about time I took care of it; I have a VPS through WHM cPanel. Medium size package with 2 CPU Cores and 4GB RAM. About 300 Posts (WordPress Platform); I am using an Ok theme that is optimized actually and my score through gtmetrix is about 98% - 92% for yslow.

 

Here is my issue:

When I log in to my personal twitter and retweet my website tweets (Let's say about 10 of them) my VPS overloads immediately to 80% or more while it is under 1% any other times. Checking the logs through cPanel I noticed 1 (one) PHP file with "a lot" of queries and that is a sharrre.php - The only thing I can think of is maybe it is not optimized? The theme builder guy is a "no go" for this specific issue. I am attaching the code of that specific file so maybe you guys can help. I would REALLY appreciate it.

Sarah.

<?php
  header('content-type: application/json');
  //Sharrre by Julien Hany
  $json = array('url'=>'','count'=>0);
  $json['url'] = $_GET['url'];
  $url = isset(urlencode($_GET['url'])) ? $_GET['url'] ? '';
  $type = isset(urlencode($_GET['type'])) ? $_GET['type'] ? '';
  
  $ori_url = isset($_GET['url']) ? $_GET['url'] ? '';
    
  if(filter_var($ori_url, FILTER_VALIDATE_URL)){
    if($type == 'googlePlus'){  //source http://www.helmutgranda.com/2011/11/01/get-a-url-google-count-via-php/
      $contents = parse('https://plusone.google.com/u/0/_/+1/fastbutton?url=' . $url . '&count=true');

      preg_match( '/window\.__SSR = {c: ([\d]+)/', $contents, $matches );

      if(isset($matches[0])){
        $json['count'] = (int)str_replace('window.__SSR = {c: ', '', $matches[0]);
      }
    }
    else if($type == 'stumbleupon'){
      $content = parse("http://www.stumbleupon.com/services/1.01/badge.getinfo?url=$url");
      
      $result = json_decode($content);
      if (isset($result->result->views))
      {
          $json['count'] = $result->result->views;
      }

    }
  }
  echo str_replace('\\/','/',json_encode($json));
  
  function parse($encUrl){
    $options = array(
      CURLOPT_RETURNTRANSFER => true, // return web page
      CURLOPT_HEADER => false, // don't return headers
      CURLOPT_FOLLOWLOCATION => true, // follow redirects
      CURLOPT_ENCODING => "", // handle all encodings
      CURLOPT_USERAGENT => 'sharrre', // who am i
      CURLOPT_AUTOREFERER => true, // set referer on redirect
      CURLOPT_CONNECTTIMEOUT => 5, // timeout on connect
      CURLOPT_TIMEOUT => 10, // timeout on response
      CURLOPT_MAXREDIRS => 3, // stop after 10 redirects
      CURLOPT_SSL_VERIFYHOST => 0,
      CURLOPT_SSL_VERIFYPEER => false,
    );
    $ch = curl_init();
    
    $options[CURLOPT_URL] = $encUrl;  
    curl_setopt_array($ch, $options);
    
    $content = curl_exec($ch);
    $err = curl_errno($ch);
    $errmsg = curl_error($ch);
    
    curl_close($ch);
    
    if ($errmsg != '' || $err != '') {
      /*print_r($errmsg);
      print_r($errmsg);*/
    }
    return $content;
  }

 

Share this post


Link to post
Share on other sites

The Sharre plugin hasn't been updated in over 2 years and is only compatible with WordPress versions up to 3.91.  If I had to make a guess I'd say one or more of the social networks included in the plugin changed their APIs and the plugin is hanging when it tries to submit to them which is what is causing the high loads

Share this post


Link to post
Share on other sites

Thank you so much for all the replies! Here is a list of the plugins I am using. I do not see a Sharre plugin!!! However, the file that is causing the issues under the framework is called: sharrre.php (See above for code).

Akismet

bbPress

BuddyPress

LayerSlider WP

Remove Query Strings from Static Resources

Revolution Slider

Stop Spammer Spam Control

Yoast SEO

WPBakery Visual Composer.

 

Sarah

 

 

Edited by mainline.realty
Added file label

Share this post


Link to post
Share on other sites

  • Similar Content

    • By Enterprisevpssolutions
      These custom Kvm solutions allow clients to setup the file system and partitions how they want. No templates, no default file system type, clients can pick and choose how they want the system setup just like a dedicate server. Custom made to fit the clients needs, full access with vnc console so you can troubleshoot your system without a public network interface. Premium Bandwidth 99.99% uptime! Our location is Southeast US, Tampa,Florida. We use only the best hardware to guarantee uptime and stability and we never oversell our nodes. 

      When you order any of our Virtual Dedicated Server plans and like us on Facebook use this code to receive a 15% OFF DISCOUNT. CODE: P0Q8TU89BNX6AJ


      Virtual Dedicated Servers (VPS)

      Included With Every VPS Self-managed
      [-] Free Instant Setup per request in order
      [-] 99% Uptime Guaranteed 
      [-] 24/7 Online Support
      [-] Rated Port Speed [Mbps] Unlimited Bandwidth
      [-] Free migration services (cpanel only systems)

      Bargain Package $7.00/monthly
      1 CPU: 2.27GHZ BURST RAM: 512M - 1024M SECURE STORAGE: 15G
      https://enterprisevpssolutions.com/portal/cart.php?gid=3


      Basic Package $14.95/monthly
      1 CPU WESTMERE: 2.27GHZ DEDICATED RAM: 512M SECURE STORAGE: 25G
      https://enterprisevpssolutions.com/portal/cart.php?gid=3


      Standard Package $24.95/monthly
      2 CPUS WESTMERE: 2.27GHZ DEDICATED RAM: 1024M SECURE STORAGE: 50G
      https://enterprisevpssolutions.com/portal/cart.php?gid=3
       
      Advance Package $44.95/monthly
      3 CPUS WESTMERE: 2.27GHZ DEDICATED RAM: 2048M SECURE STORAGE: 100G
      https://enterprisevpssolutions.com/portal/cart.php?gid=3

      Enterprise Package $69.95/monthly
      4 CPUS WESTMERE: 2.27GHZ DEDICATED RAM: 4096M SECURE STORAGE: 200G
      https://enterprisevpssolutions.com/portal/cart.php?gid=3
       
      Enterprise Vps solutions was founded in 2011 by one of the most talented and dedicated individuals I know focused on providing the best support for a great price, compared to other hosting companies which offer paravirtualization and OS-level virtualization at Enterprise VPS Solutions we offer only fully virtualized KVM instance. We use the technology to bring the cloud to you! Automatically created when ordered, secure data storage on our raid 10 storage array.
       
      To find out more follow us on Facebook
      Check us out on Twitter
      Recommend us on Linkedin
       
    • By Enterprisevpssolutions
      These custom Kvm solutions allow clients to setup the file system and partitions how they want. No templates, no default file system type, clients can pick and choose how they want the system setup just like a dedicate server. Custom made to fit the clients needs, full access with vnc console so you can troubleshoot your system without a public network interface. Premium Bandwidth 99.99% uptime! Our location is Southeast US, Tampa,Florida.   We use only the best hardware to guarantee uptime and stability and we never oversell our nodes.   Receive a 15% OFF INSTANT DISCOUNT just use this CODE:[email protected]$Th3B3$t#1 This is a recurring discount on any product you get.   Virtual Dedicated Servers (VPS)   Included With Every VPS Self-managed [-] Free Instant Setup per request in order [-] 99% Uptime Guaranteed  [-] 24/7/365 Online Support [-] vnc console access [-] Unlimited bandwidth on rated 10M port (Upgrade to 100M for $6.00)   Basic Package $14.95/monthly 1 CPU WESTMERE: 2.27GHZ DEDICATED RAM: 1024M SECURE STORAGE: 25G 1 ipv4 https://enterprisevpssolutions.com/portal/cart.php?gid=3   Standard Package $24.95/monthly 2 CPUS WESTMERE: 2.27GHZ DEDICATED RAM: 2048M SECURE STORAGE: 50G 1 ipv4 https://enterprisevpssolutions.com/portal/cart.php?gid=3   Advance Package $44.95/monthly 3 CPUS WESTMERE: 2.27GHZ DEDICATED RAM: 3096M SECURE STORAGE: 100G 1 ipv4 https://enterprisevpssolutions.com/portal/cart.php?gid=3   Enterprise Package $69.95/monthly 4 CPUS WESTMERE: 2.27GHZ DEDICATED RAM: 4096M SECURE STORAGE: 200G 1 ipv4 https://enterprisevpssolutions.com/portal/cart.php?gid=3   Need something custom look to our cloud solutions.
    • By RaidLogic.NET
      RaidLogic.NET by DTS-NET 
      Virtual Private Server line is the ideal solution for clients who require the control of a dedicated server matched with the affordability and simplicity of a traditional shared hosting account. Look over our plans, standard features, and customization options. You can order and customize your plan online and we'll get you set up right away. If you have any questions, please contact us by phone, e-mail or live chat.
       
      URL: http://www.raidlogic.net
      Email: [email protected]
      Livechat: http://www.raidlogic.net/support/
       
      =============================================================
      RaidLogic.NET VPS (Virtual Private Servers) Linux - Self Managed
      =============================================================
       
      Your Virtual Private Server includes the following:
       
      Redundant power backup.
      Automated generator system.
      Failed hardware replacement.
      99.9% uptime guarantee.
      No long term contract.
      Intel® or AMD® Processors.
      Full root access.
      Access to VPS control panel.
      Free reboot ticket submission.
      Free CISCO™ GUARD DDOS protection.
      24x7x365 technical support.
      24x7x365 network monitoring.
      Private MRTG links*
      1 IPv4 address and upgrade if you need more
      go to  http://www.raidlogic.net
      offering 50% off your first payment when using the coupon "raidlogicvpsboard". This can be applied to any payment term (monthly, annual, and 3 years)
       
      bringing Professional, Affordable and Quality VPS solutions to users all around the globe. offer everything larger companies do & even more, but for only a fraction of the cost.

      we bring you our limited time "FREE MIGRATION + SETUP + INSTALL" Virtual Private Server Packages starting @ ONLY $9.95

      FREE Migration & Customizations/Installations included in all VPS, just contact us after signup
      (Ex: Migration from Plesk, cPanel and other platforms, Installation of Custom PHP5 modules, cloud, FFmpeg, red5, plex media server,ruby, java and more, just request it! )

      Get Questions Answered! Call us. LiveChat with us 24/7/365

      Price Match Guarantee


      will price match the features and lowest current listed price of the following most popular hosting companies?

      All we need is your First & Last Name Email Address Your Domain/Website Name of Host to Price Match URL of Hosting Plan to Price Match.

      Send either here on live chat or click on contact us or open a support ticket.

      Find a competitor with a similar level of service, network, and infrastructure with a lower price?

      Contact our team today with a copy of the competitors quote and let our team match or beat their offered pricing!

      Requirements for Price Match consideration:

      - Provider must be a Legal company in business for 1+ Years

      - Plans must include Unmetered data transfer

      - The provider must offer 24x7 PHONE, Live Chat, Ticket Support Price Match Guarantee is limited to one price match per hosting plan, per client and does not apply to Promotional pricing valid for original term.
    • By LiamCyrus
      Arch Industries, LLC. - Insanely awesome Infrastructure as a Service - https://archhosting.net/
      Arch Industries is proud to offer high quality OpenVZ VPS hosting at affordable prices. We aim to provide the same premium quality of service that we have succeeded in providing our shared hosting customers for over two years. Our VPS service was created with three core goals in mind: speed, reliability, and affordability. The end result an extremely powerful platform at a very low cost to the consumer - you.
      Our infrastructure consists of reliable dedicated servers colocated at CentriLogic’s central USA facility, with quality tiering and networking and impeccable uptime. We’re constantly growing and have a plethora of features and developments we’re planning to roll out, all at no extra cost for existing clients. We currently have a very limited stock, so don’t delay!
      We’ll keep the buzzwords short and get straight to the packages -
      x1 VPS
      2 Cores @ 2.26 GHz
      2 GB DDR3 RAM
      25 GB Disk Space
      500 GB Bandwidth
      1 Gbps Port Speed
      OpenVZ Virtualization
      $4.99/mo [Order]
      x2 VPS
      4 Cores @ 2.26 GHz
      4 GB DDR3 RAM
      50 GB Disk Space
      1 TB Bandwidth
      1 Gbps Port Speed
      OpenVZ Virtualization
      $6.99/mo [Order]
      Contact Us
      Have a question? Contact me via PM, create a ticket, text our number, or email us!
      [email protected]
      Arch Industries, LLC.
      +1 (310) 853-3867
      https://archhosting.net/
      Insanely awesome Infrastructure as a Service

       
    • By RaidLogic.NET
      RaidLogic.NET by DTS-NET 
      Virtual Private Server line is the ideal solution for clients who require the control of a dedicated server matched with the affordability and simplicity of a traditional shared hosting account. Look over our plans, standard features, and customization options. You can order and customize your plan online and we'll get you set up right away. If you have any questions, please contact us by phone, e-mail or live chat.
       
      URL: http://www.raidlogic.net
      Email: [email protected]
      Livechat: http://www.raidlogic.net/support/
       
      =============================================================
      RaidLogic.NET VPS (Virtual Private Servers) Linux - Self Managed
      =============================================================
       
      Your Virtual Private Server includes the following:
       
      Redundant power backup.
      Automated generator system.
      Failed hardware replacement.
      99.9% uptime guarantee.
      No long term contract.
      Intel® or AMD® Processors.
      Full root access.
      Access to VPS control panel.
      Free reboot ticket submission.
      Free CISCO™ GUARD DDOS protection.
      24x7x365 technical support.
      24x7x365 network monitoring.
      Private MRTG links*
      1 IPv4 address and upgrade if you need more
      go to  http://www.raidlogic.net
      offering 50% off your first payment when using the coupon "raidlogicvpsboard". This can be applied to any payment term (monthly, annual, and 3 years)
       
      bringing Professional, Affordable and Quality VPS solutions to users all around the globe. offer everything larger companies do & even more, but for only a fraction of the cost.

      we bring you our limited time "FREE MIGRATION + SETUP + INSTALL" Virtual Private Server Packages starting @ ONLY $9.95

      FREE Migration & Customizations/Installations included in all VPS, just contact us after signup
      (Ex: Migration from Plesk, cPanel and other platforms, Installation of Custom PHP5 modules, cloud, FFmpeg, red5, plex media server,ruby, java and more, just request it! )

      Get Questions Answered! Call us. LiveChat with us 24/7/365

      Price Match Guarantee


      will price match the features and lowest current listed price of the following most popular hosting companies?

      All we need is your First & Last Name Email Address Your Domain/Website Name of Host to Price Match URL of Hosting Plan to Price Match.

      Send either here on live chat or click on contact us or open a support ticket.

      Find a competitor with a similar level of service, network, and infrastructure with a lower price?

      Contact our team today with a copy of the competitors quote and let our team match or beat their offered pricing!

      Requirements for Price Match consideration:

      - Provider must be a Legal company in business for 1+ Years

      - Plans must include Unmetered data transfer

      - The provider must offer 24x7 PHONE, Live Chat, Ticket Support Price Match Guarantee is limited to one price match per hosting plan, per client and does not apply to Promotional pricing valid for original term.