Status
Not open for further replies.

anubhav_har

In the zone
I'm not a smart guy for this field and I need some help from the community. Right now our free image hosting site uses about 30gigs a day of bandwidth and has about 3gigs of images hosted on the server. Yesterday I installed a bandwidth recording function to use mod_rewrite to pipe all of the images through a simple php script which simply goes into the database to update the views details.

This however ended up in disaster when my host pulled it down due to causing a load average of over 60 to 100. Yep, php scripts don't work that well.

I'm left with either (1) getting a powerful dedicated to run these php scripts which I never want to do since it'll cost a fortune or (2) program something that does the same task in another programming language so that it won't cause such high serverloads.

Right now I'm wanting to go with programming a module that will work along side the web server to record all this data. But I'm not a linux programmer and know nothing about it. I'm thinking a module something like a elaboration of mod_bandwidth which works along apache or lighttpd but get it to record bandwidth data for every file not for the whole domain.

Any help will be appreciated! I'm not asking for someone to do it all for me, even the most little tip I can get is worth posting here. Even ask your friends if they can help, any help goes a long way.

Thanks everyone!

Can anybody help.
 

JGuru

Wise Old Owl
You are right PHP doesn't scale well with lot of workload. You can use Java (J2EE) Servlets or JSP for the same. Try it with Java and tell me.
Goodluck
 
Status
Not open for further replies.
Top Bottom