Hi Will,

In fact thats what I am doing currently. Also, trying to run the load as 
per the production (similar RPS etc based on reports from ngxtop). But 
unfortunately not able to generate the CPU usage spike on development 
(similar to production).

Thanks.

On Wednesday, February 24, 2016 at 7:10:22 PM UTC+5:30, Will Harris wrote:
>
> Hey Web Architect, I guess you never got that DB dump running in 
> development? ;-)
>
> Why don't you run some profiling middleware to see if you can some traces 
> of the production system? Or how about New Relic or some such? That's 
> pretty good at helping to identify problems spots in your stack.
>
> Finally, you will really need to get your production setup running in a 
> development environment if you are ever to have a hope of experimenting 
> with different solutions. You need to understand what user actions are 
> causing the load to spike, and reproduce that on similar infrastructure in 
> a controlled environment where you can instrument your code to see exactly 
> what's going on.
>
> On Wednesday, February 24, 2016 at 5:59:28 AM UTC+1, Web Architect wrote:
>>
>> Hi,
>>
>> We have an ecommerce platform based on Django. We are using uwsgi to run 
>> the app. The issue the CPU usage is hitting the roof (sometimes going 
>> beyond 100%) for some scenarios. I would like to debug the platform on 
>> Production to see where the CPU consumption is happening. We have used 
>> Cache all over the place (including templates) as well - hence, the DB 
>> queries would be quite limited. 
>>
>> I would refrain from using Django-debug toolbar as it slows down the 
>> platform further, increases the CPU usage and also need to turn the DEBUG 
>> on. Is there any other tool or way to debug the platform? Would appreciate 
>> any recommendations/suggestions. 
>>
>> Also, does the Django ORM increase the CPU usage? Does it block the CPU? 
>> Would appreciate if anyone could throw some light on this.
>>
>> Thanks.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c8704db5-24af-4622-b944-2472acd90e53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to