Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post I Need To Optimize CPU Usage Of Posted_img_thumbnail.php 
 
Hello, my host provider told me that they will block my account if I don't optimize the CPU usage of the script image_thumbnail.php

They told me that this script used ~ a 16 % of the CPU:

Spoiler: [ Show ]




What can I do? I've deleted the thumbnails in the posts which appear in the portal, but I don't know what can I do.


Thanks!!
 




____________
www.LphantES.com
 
zankywSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: I Need To Optimize CPU Usage Of Posted_img_thumbnail.php 
 
I would like to know your opinion about the changes that I've tried:

  • Deleted the thumbnails in the posts which appear in the portal. Before there were 14 images, now if the user wants to see the image, he can visit the link to the image

  • "Thumbnails quality  in Album (1 - 100)": Before was 85, now it is configured to 65.

  • "Thumbnails quality in topics": Before was 80, now, it is configured to 65.

  • I've Disabled some "resizing" options:
    - Resize images in signatures
    - Resize attached images

  • Thumbnails cache enabled in posting

  • Finally, the number of rows and columns of thumbnails showed in Albums and Personal Galleries (before it was 5 rows and 4 columns, now I've changed it to 4 rows and 3 columns).




Should I change thumbnails size? I'm thinking on configure a smaller size of thumbnails. Is that a good idea?



Are all this changes enough? Can anybody suggest anything else? Thanks
 




____________
www.LphantES.com
 
zankywSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Respuesta: I Need To Optimize CPU Usage Of Posted_img_thumbn 
 
I think those changes in the quality doesn't take any effects in the way of reducing the amount of memory that the php file needs.

disabling resizing features will be good for optimizating the performance.

Cache will also be good

Decreasing the number of rows and columns only will take effect if the viewer gets boring on viewing so many pages, so he/she will see less pictures, but every time the php program is called no changes in the amount of memory needed will take...
 




____________
Icy Phoenix Latest 2.0 (working pending)
Style: Aphrodite and MG_Themes
Site: Spanish Stephen King fan forum
Mods: Medal System Mod. BBAntispam 1.2. Several own BBcodes.
 
XusquiSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: I Need To Optimize CPU Usage Of Posted_img_thumbnail.php 
 
I wasn't speaking about the memory... the question was related to the CPU usage.

Anyway, thx for your answer!
 




____________
www.LphantES.com
 
zankywSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: I Need To Optimize CPU Usage Of Posted_img_thumbnail.php 
 
If the problem is just related to images in post, what you can do is try disabling the thumbnails.

Regarding FAP, I'm going to release a new version of FAP which is really fast with thumbs (you can try the album on my site to check! ).

What you did is good though... let me know if your host is now ok with these settings.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: I Need To Optimize CPU Usage Of Posted_img_thumbnail.php 
 
I've disabled all the features which was using the script image_thumbnail.php (signatures, posts, and closed temporary the album).

Now all is well with these settings, but if I use another time more resources than the limit, the host will close my account.



I will open the album the next week... I'll configure the Album to show fewer images (2 rows and 2 columns), and I'll ask the host provider about the CPU usage periodically.

Bye!
 




____________
www.LphantES.com
 
zankywSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: I Need To Optimize CPU Usage Of Posted_img_thumbnail.php 
 
I'll modify the image_thumbnail.php because it seems that too many users are having problems with it.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: I Need To Optimize CPU Usage Of Posted_img_thumbnail.php 
 
Thanks!

Keep me informed (if you want ), because I tried to open the Album again and I'm near to the limit again
 




____________
www.LphantES.com
 
zankywSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: I Need To Optimize CPU Usage Of Posted_img_thumbnail.php 
 
zankyw wrote: [View Post]
Thanks!

Keep me informed (if you want ), because I tried to open the Album again and I'm near to the limit again

Never modified that file yet... but I'll do it soon.

Be patient a little bit.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron