VPS hosting and script memory

Status
Not open for further replies.

taha116

Member
Messages
505
Reaction score
0
Points
16
Hi quick question since i may move to vps in the futrue, not decided weather i will use x10 or not though. Does vps mean i will get tht ammount of ram for script memory as i have noted that x10 has a 32 mb limit per script.

If i took a plan with 128 mb ram then is that my scripts memory limit as well?
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
I think the limits on the scripts are set by the parser (ie, PHP) configuration, which you have control over on a VPS.
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
I think the limits on the scripts are set by the parser (ie, PHP) configuration, which you have control over on a VPS.

That's correct on the PHP memory limit. That can be set inside of PHP's configuration file. To the OP: All that RAM on the VPS is for is to simply give you some room to run things. Yeah, you can run large scripts, but you're stuck with what RAM you have to run the OS, and all the software on there.
 

taha116

Member
Messages
505
Reaction score
0
Points
16
so what would you suggest to be sufficent ram to run a VPS with fair speed that has a linux OS and still say... have 128mb limit per-script?

If you also have links to knowladgebase articles anywere dont hesitate to share them. Thank you. Already looked up VPS on wikipedia and had some knowladge already.
 
Last edited:

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
so what would you suggest to be sufficent ram to run a VPS with fair speed that has a linux OS and still say... have 128mb limit per-script?

If you also have links to knowladgebase articles anywere dont hesitate to share them. Thank you. Already looked up VPS on wikipedia and had some knowladge already.

If you want to run anything that is going to use up a full 128MB, you want to get something larger than a 128MB VPS as with that small amount of RAM, you'd wind up having to save to the swap which goes against your disk space usage and is also much slower.
 
Last edited:

taha116

Member
Messages
505
Reaction score
0
Points
16
Yeah, so how much larger would you suggest to be able to manage my server at a fair speed.
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
Well it all depends. x10 does allow for burstable RAM which is a temporary boost should you need it, so unless this script is running all the time I'd say go with the 128MB package. If not, double the RAM and see how it runs. Other than that, why is that a script that is 128MB big (or am I reading this wong)? :biggrin: I love running big things here but that does seem to be a bit excessive unless it's a game or something else.
 
Last edited:

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
The other thing to consider is there are no GUI's or any other applications that eat up memory like a normal computer. 128mb sounds low, but it's pretty big since nothing is really running except the OS and server stuff.

I just checked my laptop and I'm using 750 mb / 1gb ram. I was going to say "look, I'm only using a little more than 128mb myself" but I think I'm a bad example :biggrin:
 

taha116

Member
Messages
505
Reaction score
0
Points
16
Lol so a 256MB plan would be awesome for a VPS if my scripts taking up to 128MB

BTW it is a game remember, It takes enough to work on x10, but there are alot of modification almost completed for it and that might cause problems here. thats why im asking
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
You wont be able to run a large community on a 128 mb VPS. Apache, mySQL + all other things that need to run usually takes around 50 - 100 mb, leaving around 28 - 78 mb RAM for PHP scripts. If your site is large, you better go with a VPS with 256 or 512 mb ram. Unless you use something like nginx as webserver, just that it's a bit slow with php :/
 

taha116

Member
Messages
505
Reaction score
0
Points
16
The game usues mostly php, very little flash, some javascript and is being redisigned and almost completed with ajax built into the game. Right now its fine but thats only cause its being developed still. I havent uploaded the ajaxed version yet as their is a bug that needs to be solved first. Thanks for the information guys.
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
I think you'll be fine on the 128mb since php probably won't make your usage jump up crazy high for long times and since javascript is client-side.
 

taha116

Member
Messages
505
Reaction score
0
Points
16
So that means using ajax would increase resource usage on my part right?
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
So that means using ajax would increase resource usage on my part right?

Depends. If the script requests/sends things to the server too often, then yeh, I guess. But I never used ajax, so idk. I would guess if it made 1 request per second would be like 1 page hit per second.
 

taha116

Member
Messages
505
Reaction score
0
Points
16
Well considering the design and layout of the game ajax would be used almost excessivley, so that means yes a VPS seems inevitable for me eventually
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
I don't know if you're really using a VPS in a way that you couldn't accomplish using paid hosting with much less hassle and price.
 
Status
Not open for further replies.
Top