[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 08-09-2005, 04:16 PM   #1 (permalink)
Senior Member
 
kjmz's Avatar
 
Join Date: May 2005
Location: .ca
Posts: 1,280
224.35 NP$ (Donate)

kjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of light


Question Jayuz.com - Proxy Server

Hi,

My site is Jayuz.com. I've been with three hosts and I've been suspended three times. The last one specified that my sites was taking up too much of the CPU Resource. So I just bought a VPS today I've been seeing that CPU Resource gets to 100% a fair amount of the time. Is there anyway I can make this go down because I don't want to get suspended from this host too even though it is a VPS.
Could the code be messed up or is there just to many visitors to my site because I get from 1000-2000 visits per day? I don't really feel like buying a dedicated server either.

Please help me.
kjmz is offline  
Old 08-09-2005, 04:22 PM   #2 (permalink)
Account Closed
 
axilant's Avatar
 
Join Date: May 2004
Location: /etc/passwd
Posts: 2,194
0.00 NP$ (Donate)

axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold


Maybe use some gzip compression?
axilant is offline  
Old 08-09-2005, 04:24 PM   #3 (permalink)
Senior Member
 
majinbuu1023's Avatar
 
Join Date: Jan 2005
Location: New Zealand
Posts: 3,759
85.67 NP$ (Donate)

majinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to behold


Quote:
Originally Posted by kjmz
Hi,

My site is Jayuz.com. I've been with three hosts and I've been suspended three times. The last one specified that my sites was taking up too much of the CPU Resource. So I just bought a VPS today I've been seeing that CPU Resource gets to 100% a fair amount of the time. Is there anyway I can make this go down because I don't want to get suspended from this host too even though it is a VPS.
Could the code be messed up or is there just to many visitors to my site because I get from 1000-2000 visits per day? I don't really feel like buying a dedicated server either.

Please help me.
possibly because the cgi script is 249kb?
majinbuu1023 is offline  
Old 08-09-2005, 04:27 PM   #4 (permalink)
Senior Member
 
kjmz's Avatar
 
Join Date: May 2005
Location: .ca
Posts: 1,280
224.35 NP$ (Donate)

kjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of light


Quote:
Originally Posted by axilant
Maybe use some gzip compression?
How would I use gzip compression? I'm really interested in this because I need anything that can help.

Quote:
Originally Posted by majinbuu1023
possibly because the cgi script is 249kb?
I can't edit it though because I don't know how to and if I do I'm pretty sure it won't work.
kjmz is offline  
Old 08-09-2005, 04:30 PM   #5 (permalink)
Account Closed
 
axilant's Avatar
 
Join Date: May 2004
Location: /etc/passwd
Posts: 2,194
0.00 NP$ (Donate)

axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold


There is a better script for this ^^

search for snoopy on google.com :S
axilant is offline  
Old 08-09-2005, 04:33 PM   #6 (permalink)
Senior Member
 
kjmz's Avatar
 
Join Date: May 2005
Location: .ca
Posts: 1,280
224.35 NP$ (Donate)

kjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of light


Wait a second can I delete all of these lines (with the # in the front):

#!/usr/local/bin/perl
#
# CGIProxy 2.0.1

Quote:
Originally Posted by axilant
There is a better script for this ^^

search for snoopy on google.com :S
I really want to keep this one though. In the end if there is no way of getting around it I will get a new one.
kjmz is offline  
Old 08-09-2005, 04:52 PM   #7 (permalink)
Account Closed
 
axilant's Avatar
 
Join Date: May 2004
Location: /etc/passwd
Posts: 2,194
0.00 NP$ (Donate)

axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold


Quote:
Originally Posted by kjmz
Wait a second can I delete all of these lines (with the # in the front):

#!/usr/local/bin/perl
#
# CGIProxy 2.0.1



I really want to keep this one though. In the end if there is no way of getting around it I will get a new one.
You can. but whatever you do, DONT delete #!/usr/local/bin/perl
axilant is offline  
Old 08-09-2005, 10:05 PM   #8 (permalink)
Senior Member
 
kjmz's Avatar
 
Join Date: May 2005
Location: .ca
Posts: 1,280
224.35 NP$ (Donate)

kjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of light


Well I tried to delete as much as I could. The file is now only 198KB but it's still taking a lot of the CPU's Resources up. Right now it's at a 100% load, I really need to find a way to fix this. Does anybody else have any suggestions and could gzip compression apply to this?

Any answers would be great!
kjmz is offline  
Old 08-09-2005, 10:06 PM   #9 (permalink)
Account Closed
 
axilant's Avatar
 
Join Date: May 2004
Location: /etc/passwd
Posts: 2,194
0.00 NP$ (Donate)

axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold


Quote:
Originally Posted by kjmz
Well I tried to delete as much as I could. The file is now only 198KB but it's still taking a lot of the CPU's Resources up. Right now it's at a 100% load, I really need to find a way to fix this. Does anybody else have any suggestions and could gzip compression apply to this?

Any answers would be great!
Gzip compression, i only know how to do that in php... if you want i can fix you up with a php setup for a few bucks...
axilant is offline  
Old 08-09-2005, 10:11 PM   #10 (permalink)
Senior Member
 
kjmz's Avatar
 
Join Date: May 2005
Location: .ca
Posts: 1,280
224.35 NP$ (Donate)

kjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of light


Quote:
Originally Posted by axilant
Gzip compression, i only know how to do that in php... if you want i can fix you up with a php setup for a few bucks...
That sounds good but I need to stay with CGIProxy because that's how people are getting to my site. Many of the proxy sites I'm listed on check my site everyday and they see it's CGIProxy and it's still active. I almost lost my spot on the proxy sites because of my recent downtime.

Anything else that would help me out. I really don't see how a 198KB CGI Script can do this to a processor. I could see flash games doing it but not a CGI Script, it really doesn't make a lot of sense to me.

I think I'm losing visitors because of this now, I need help fast!
kjmz is offline  
Old 08-09-2005, 11:59 PM   #11 (permalink)
Account Closed
 
vip-ip's Avatar
 
Join Date: Jan 2005
Location: root@localhost
Posts: 4,045
32.70 NP$ (Donate)

vip-ip is an unknown quantity at this point


I think it's fair your hosters banned you; even now, it took around 30 seconds to load your page on VPS!
vip-ip is offline  
Old 08-10-2005, 01:01 AM   #12 (permalink)
Senior Member
 
kjmz's Avatar
 
Join Date: May 2005
Location: .ca
Posts: 1,280
224.35 NP$ (Donate)

kjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of light


Quote:
Originally Posted by vip-ip
I think it's fair your hosters banned you; even now, it took around 30 seconds to load your page on VPS!
Okay, first of all I'm not asking if it's fair, I'm asking what can I do to fix it. Second of all it doesn't take 30 seconds. For me it takes an average of around 2 seconds. Do you have dial-up?

I just did a speed test with websiteoptimization.com, check the screenshot I attached to here. 14.4K modems take 13.42 seconds, so I really don't know what you have
Attached Images
File Type: jpg speedtest.JPG (86.8 KB, 4 views)

Last edited by kjmz; 08-10-2005 at 01:05 AM.
kjmz is offline  
Old 08-10-2005, 01:36 AM   #13 (permalink)
Account Closed
 
vip-ip's Avatar
 
Join Date: Jan 2005
Location: root@localhost
Posts: 4,045
32.70 NP$ (Donate)

vip-ip is an unknown quantity at this point


Hmm, now it seems fine, but I swear it took awhile for it to load. Seems like a peek load of server at the moment I visited it. I have cable, 4mbps line.

I don't have any ideas on how to reduce server load other than changing your scripts
vip-ip is offline  
Old 08-10-2005, 01:43 AM   #14 (permalink)
Senior Member
 
kjmz's Avatar
 
Join Date: May 2005
Location: .ca
Posts: 1,280
224.35 NP$ (Donate)

kjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of light


Quote:
Originally Posted by vip-ip
Hmm, now it seems fine, but I swear it took awhile for it to load. Seems like a peek load of server at the moment I visited it. I have cable, 4mbps line.

I don't have any ideas on how to reduce server load other than changing your scripts
Well if I did switch to another proxy program do you think it would be much better? I don't really want to but in the end I might be forced to.
kjmz is offline  
Old 08-10-2005, 01:58 AM   #15 (permalink)
Account Closed
 
vip-ip's Avatar
 
Join Date: Jan 2005
Location: root@localhost
Posts: 4,045
32.70 NP$ (Donate)

vip-ip is an unknown quantity at this point


Quote:
Originally Posted by kjmz
Well if I did switch to another proxy program do you think it would be much better? I don't really want to but in the end I might be forced to.
Is it worth it? Is google generating much profit? After all, is this really worth your time? If answer to any of these are no - don't bother
vip-ip is offline  
Old 08-10-2005, 09:19 AM   #16 (permalink)
Senior Member
 
kjmz's Avatar
 
Join Date: May 2005
Location: .ca
Posts: 1,280
224.35 NP$ (Donate)

kjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of lightkjmz is a glorious beacon of light


Well I do make a fair amount through Adsense with this site. That's the only problem and that's why I don't want it to go down again.

Still looking for ideas on how to stop it from using so many resources from the system.
kjmz is offline  
Closed Thread


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

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
### No Bandwidth Bills ever again from just £59.99 ### blackicehosting Web Hosting Offers 0 07-22-2005 09:16 PM
soooo many yahoo's redhippo Domain Name Discussion 5 07-12-2005 11:26 PM
Dedicated Servers from just £45 $90 + [UK] 1 TB Data Transfer P4 3.0GHZ Only £119 blackicehosting Web Hosting Offers 0 07-12-2005 06:24 PM
Unmetered Summer Savings + 10% Discount blackicehosting Web Hosting Offers 0 07-02-2005 11:20 AM
Moving vBulletin to a new server. [Tutorial] CreativeLogic Webmaster Tutorials 6 02-24-2005 01:07 PM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 07:42 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85