Current location: Hot Scripts Forums » Programming Languages » PHP » CPU Overusage Issue


CPU Overusage Issue

Reply
  #1 (permalink)  
Old 03-15-05, 02:55 AM
Amulet Amulet is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Southern NJ
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Angry CPU Overusage Issue

I emailed my web host after recently being kicked off their shared server and told I was using 1.5 of their 2 CPU's and that I'd have to sign up for the host's dedicated servers if I wanted to stay with them. They hadn't contacted me at any time to tell me there was a problem, and despite asking them, they didn't tell me when this problem began occuring, so that I might figure out what was causing it. I'm using a couple of PHP scripts (one uses MySQL additionally) on my site, and the rest of the PHP I use are simple include() and global define() calls, to minimize the files I'd need to edit and simplify my site.

First, can these simple includes and globals cause this? I'm thinking not, but I'm fairly new to PHP.

If it was caused by a script, I was hoping someone here might be able to tell me if they had problems with CPU usage from the same script, or heard of such. The scripts I used are as follows:

* PHPNews (http://newsphp.sourceforge.net/) (which also uses MySQL, and I didn't have a problem with PHPNews with a previous host)
* CJ Random Quote
* PHP "Last Modified" script as follows:
Code:
<?php echo "Last modified " . date( "F d, Y.", getlastmod() ); ?>
Can any of these have caused the problem? I have to find a new host, and I want to make sure I won't have this problem again. Thank you.
__________________
Jennifer (aka Amulet)
http://www.SassyDevil.com/
Reply With Quote
  #2 (permalink)  
Old 03-15-05, 07:41 AM
bizzar528's Avatar
bizzar528 bizzar528 is offline
Community Liaison
 
Join Date: Sep 2004
Location: Pennsylvania, US
Posts: 1,550
Thanks: 2
Thanked 16 Times in 15 Posts
nope, sounds like an overloaded (crappy?) host. Who were you hosting with??

Have you tried http://www.hostgator.com? those guys have some decent deals and I never had a problem running any of my scripts on their shared hosting. Very good support and a forum.
__________________
Yep, it's a signature...
Reply With Quote
  #3 (permalink)  
Old 03-15-05, 09:39 AM
kjmatthews kjmatthews is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: Boston, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
Take a look at Dreamhost as well. They are currently offering triple their usual specs, meaning you have a slightly ridiculous amount of storage space and bandwidth to play with. I have been extremely pleased with them.
Reply With Quote
  #4 (permalink)  
Old 03-16-05, 02:10 AM
Amulet Amulet is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Southern NJ
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
I forgot another program I was running, because I wasn't actually using it: Typo3 content management system. Like the other programs, I'd had this installed for months. I'd intended to learn it, but never got around to it. The host was DWHS.com.

Unfortunately, I can't use HostGator, because I require a host that allows adult content. While mine isn't a porn site, I don't want to be censored in what I can say or show on my site. I know Dreamhost didn't allow adult content previously, but I'm not seeing anything in their TOS or Acceptible Use Policy now, so I'll ask them. Thanks! I've also got a couple other potential hosts in mind.
__________________
Jennifer (aka Amulet)
http://www.SassyDevil.com/

Last edited by Amulet; 03-16-05 at 02:14 AM. Reason: Misspelling and added a note
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl Programmer sought for small issue usallsys Job Offers & Assistance 0 03-04-05 07:09 AM
very strange functions issue jolac PHP 3 05-13-04 01:54 AM
hsphere mysql issue Sales-Trends PHP 0 03-17-04 09:03 AM
php or apache issue? lokey PHP 7 03-08-04 11:55 PM
JavaScript concurrency issue dugfresh JavaScript 0 12-09-03 01:12 PM


All times are GMT -5. The time now is 05:35 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.