[PHP] Re: Site bloated by images
MARG wrote: Hi, I have this site on http://www.dte.ua.pt/portulano/ The problem with it is that it tak ages for the images to appear. I have several other sites in the same server and this one is the only which has this kind of trouble. I've already pushed up memory_limit in php.ini, but no good :( Any help would be apreciated. Warm Regards, MARG The site itself takes ages to appear. lol. Source code please! How is the site genereated? where are the images stored? -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Site bloated by images/method question added
I've already pushed up memory_limit in php.ini, but no good :( Any help would be apreciated. Warm Regards, MARG The site itself takes ages to appear. lol. Source code please! How is the site genereated? where are the images stored? Browser Activity on that page (quoted were long delayed): http://www.dte.ua.pt/portulano/file.php?file=/1/AboutPort1.jpg http://www.dte.ua.pt/portulano/file.php?file=/1/Icons/AnaSmall.jpg http://www.dte.ua.pt/portulano/file.php?file=/1/Icons/PortulanoFavWhite.jpg none of the files were that big. I've never seen calling an image file like that. What are the benefits? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Site bloated by images
Hello, on 02/16/2006 12:36 PM MARG said the following: Hi, I have this site on http://www.dte.ua.pt/portulano/ The problem with it is that it tak ages for the images to appear. I have several other sites in the same server and this one is the only which has this kind of trouble. I've already pushed up memory_limit in php.ini, but no good :( Your server is being flooded with excessive connections that seem to exhaust your server memory. Consider serving the images with a multithreaded HTTP server dedicated to static content like images and CSS, like thttp. Here you may find more details on what you can do to solve that problem: http://www.meta-language.net/metabase-faq.html#excessive-connections -- Regards, Manuel Lemos Metastorage - Data object relational mapping layer generator http://www.metastorage.net/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Site bloated by images/method question added
Lists wrote: I've already pushed up memory_limit in php.ini, but no good :( Any help would be apreciated. Warm Regards, MARG The site itself takes ages to appear. lol. Source code please! How is the site genereated? where are the images stored? Browser Activity on that page (quoted were long delayed): http://www.dte.ua.pt/portulano/file.php?file=/1/AboutPort1.jpg http://www.dte.ua.pt/portulano/file.php?file=/1/Icons/AnaSmall.jpg http://www.dte.ua.pt/portulano/file.php?file=/1/Icons/PortulanoFavWhite.jpg none of the files were that big. I've never seen calling an image file like that. What are the benefits? two possible reasons: 1. to hide the true location of a file and/or force viewing according to certain rules (much easier to perform the logic to determine whether a file should be returned to the requester when you have a programming language to write it in) 2. to be able to generate/change images on the fly (e.g. shown a thumbnail of an image) two things that might be going wrong: 1. file.php is opening the session (the defautl session handler does session locking so that all requests to file.php will be handled in series rather than in parrallel) 2. file.php is generating images and not caching the results (if you did cache the results the page would only, in theory, be slow to load the images on the first view of the page - subsequent requests would be returned the cached copy of the generated image. of course there are many more things that could be going wrong - the OP would have to show some code (i.e. whatever is in file.php ;-) in order for us to determine the problem though. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php