Define "high resource usage"

stijnn

New Member
Messages
4
Reaction score
0
Points
0
Hey, I just got my first suspension, for 'high resource usage'... This really surprised me because my site is, well, pretty simple (at least thats what i think).

I wont go into a whole lot of details here (because the site is not done and I dont want to release any sourcefiles) but the site has the following functionality:
- allows users to input messages, which are stored in a mysql database.
- checks if user input matches the captcha-image

I also use a bit of AJAX to give some feedback to the user ("Captcha test failed!").

As you can see, its pretty basic. (oh the site can also display some stuff using AJAX in combination with PHP).
The most interesting bit is that the site is currently password-protected (made my own password protection with PHP :p), so the only people who have access to it are me and 1 or 2 friends. So the site usage is pretty low...

Thanks in advance for any responses :)
 

stijnn

New Member
Messages
4
Reaction score
0
Points
0
Thank you for the link :), sorry for not seeing that =/.

Hm, I dont understand how I could break those limits... my site is pretty simple (as I said in the first post). Could you maybe give me an idea as to what may cause this? I'm pretty new to making a website so maybe the "rand()" PHP function maybe be more resource-demanding than I would think... Or maybe a MySQL query is very resource-demanding? Or maybe AJAX?

By the way, I suggest you guys change something with the ads, they are driving me nuts! I cant manage to click anything and it keeps following my mouse! I had to change to IE to get the forums working properly (normally using latest version of firefox).
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
By the way, I suggest you guys change something with the ads, they are driving me nuts! I cant manage to click anything and it keeps following my mouse! I had to change to IE to get the forums working properly (normally using latest version of firefox).

Which ads are you talking about? When I'm logged into the forums the network-side ad filter isn't hitting up anything for the forums. Your website also shows nothing as being filtered.
 

stijnn

New Member
Messages
4
Reaction score
0
Points
0
Which ads are you talking about? When I'm logged into the forums the network-side ad filter isn't hitting up anything for the forums. Your website also shows nothing as being filtered.
The ads on the top of the forum page... (ads for websites hosting, it's in Swedish... odd.)

Maybe you dont get them because you're a premium user or something?

But we're going off-topic :p.
I wanted to know how big the resource-usage of PHP (for ex. rand() ), mysql-queries and AJAX is... because for some reason i went over the resource-limit with my small website.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
Ajax can be a huge load, depending on what you are doing with it. Your original description indicates something akin to live messaging, which implies frequent page updates. All it takes is a couple-three users making several requests per second each, and you've suddenly turned your "simple site" into a high-traffic application. Take a good look at what your page is doing -- are multiple areas of the page being updated by Ajax requests? How often are you updating each area? Keep in mind that every Ajax request is a gen-you-wine, honest-to-goodness page hit all by itself, and may involve multiple database hits, and re-evaluate what actually needs to happen. Oh -- and if you actually are doing live messaging, even among a small number of users, you are running an application that is specifically prohibited on x10Hosting servers.
 

stijnn

New Member
Messages
4
Reaction score
0
Points
0
Ajax can be a huge load, depending on what you are doing with it. Your original description indicates something akin to live messaging, which implies frequent page updates. All it takes is a couple-three users making several requests per second each, and you've suddenly turned your "simple site" into a high-traffic application. Take a good look at what your page is doing -- are multiple areas of the page being updated by Ajax requests? How often are you updating each area? Keep in mind that every Ajax request is a gen-you-wine, honest-to-goodness page hit all by itself, and may involve multiple database hits, and re-evaluate what actually needs to happen. Oh -- and if you actually are doing live messaging, even among a small number of users, you are running an application that is specifically prohibited on x10Hosting servers.
Ah, I guess I'll have to take a look at Ajax then...

If by live messaging you mean some kind of chat system, then no, I am not breaking the rules.
 
Top