100% CPU usage when 20GB of pictures in static

82 views
Skip to first unread message

Marian Siwiak

unread,
Jul 15, 2013, 11:25:25 AM7/15/13
to web...@googlegroups.com
Hello everybody,

I have a problem, I have a huge database of png files, which need to be accessed by users of my system, however, when I place them in 'static' folder, web2py used 100 of my CPU (and it's not 286 architecture...). 
Any advice? I never found a way to create links leading outside application folder, but it would be a solution.

Best regards,
Marian

Richard Vézina

unread,
Jul 15, 2013, 11:36:48 AM7/15/13
to web2py-users
I think in deployment recipe in the book there is instruction on how let nginx or apache server static file directly without web2py intervention have you read it?

I try to found the part I am talking about and paste the link

Richard


--
 
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Richard Vézina

unread,
Jul 15, 2013, 11:37:57 AM7/15/13
to web2py-users

Massimo Di Pierro

unread,
Jul 15, 2013, 11:38:42 AM7/15/13
to web...@googlegroups.com
Are you accessing it from localhost? I suspect it is the browser which is using 100% of the CPU, not the server. Anyway, it is more efficient to use nginx or apache to serve static files, rather then web2py.

Marian Siwiak

unread,
Jul 15, 2013, 12:17:15 PM7/15/13
to web...@googlegroups.com
@Richard - I found it. Thank you. I don't know how could I miss it.
@ Massimo - you're right, it was local development server, but top pointed to web2py as guilty. 
When I was installing web2py (1.99 back then), however, I was unable to set all those VirtualHost issues to have two separately working servers, but maybe I'll have to. 
Best regards,
Marian 


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/s7UtPveDC2I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages