Why is Discourse so slow?

I'm not sure which link in the chain is causing the problem. I just finished setting up Discourse on Vagrant on a Windows computer. Everything seems to be working fine, except that it took 86,000 ms (a minute and a half!) To talk to the browser. Something tells me it's not so slow. Where can I look for problems that may be causing this?

+4
source share
3 answers

This is the most relevant discussion on the forum.

http://meta.discourse.org/t/development-mode-super-slow/2179

Ensure that sufficient resources are allocated on the virtual machine.

You can also try this in development configurations.

#config/environments/development.rb config.cache_classes = true 

It had a big impact on my rendering time. From 8 minutes to 30 seconds. However, still a little slower.

+2
source

I had the same problem in my virtual machine when testing Discourse. You really need to change the configuration setting for WEBrick. Look for your WEBrick configurator, which is usually located in /usr/lib/ruby/1.9.3/webrick/config.rb , yours may be different, it all depends on the particular setting.

Then change this line

 :DoNotReverseLookup => nil, 

to that

 :DoNotReverseLookup => true, 

Restart WEBrick and you should be good to go.

0
source

I believe that there is a forum in the discourse where you can ask such things. http://meta.discourse.org/
And you can always use the problems on the github page. https://github.com/discourse/discourse

-1
source

All Articles