odoo 9非常慢的原因,数据非常少

时间:2016-08-09 17:18:49

标签: postgresql openerp odoo-8

我在本地服务器上托管odoo,而且8个用户非常慢。该网站比内部内容慢。我没有大图像或外部脚本。这是它的规格。 Core 2 quad 3.2 8GB的Ram 256GB SSD

我已经检查了日志没有错误,我发现系统只有达到线下时才会变慢。 (OpenERP的-server.log)中。

<body>
  <a href="#" data-link="file.txt">download file.txt</a>
  <a href="#" data-link="http://stackoverflow.com">download stackoverflow.com</a>
  <script>

    var request = (path) =>
      fetch(path)
      .then(response => response.blob())
      .then(blob => {
        var type = blob.type.split("/").pop();
        type = type === "plain" ? "txt" : type;
        var d = document.createElement("a");
        d.className = "download";
        d.download = "file-" + new Date().getTime() + "." + type;
        d.href = URL.createObjectURL(blob);
        document.body.appendChild(d);
        d.click();
        d.parentElement.removeChild(d);
      })
      // handle request error
      .catch((err) => {console.log(err); throw err});

    var a = document.querySelectorAll("a[href='#']");
    for (let link of a) {
      link.onclick = (e) => {
        console.log(e)
        e.preventDefault();
        request(e.target.dataset.link)
        .catch((err) => {
          alert(err.message + "\ndownload of " + e.target.dataset.link + " error")
        })
      }
    }
  </script>
</body>

这是我的openerp-server配置。我在windows和linux上都试过了。

2016-08-09 16:29:41,084 5512 INFO EchoLIve werkzeug: 127.0.0.1 - - [09/Aug/2016 16:29:41] "GET /web/content/245-26ead44/web.assets_common.0.css HTTP/1.1" 200 -
2016-08-09 16:29:41,115 5512 INFO EchoLIve werkzeug: 127.0.0.1 - - [09/Aug/2016 16:29:41] "GET /web/content/248-fe36041/web.assets_backend.1.css HTTP/1.1" 200 -
2016-08-09 16:29:41,131 5512 INFO EchoLIve werkzeug: 127.0.0.1 - - [09/Aug/2016 16:29:41] "GET /web/content/247-fe36041/web.assets_backend.0.css HTTP/1.1" 200 -
2016-08-09 16:29:41,194 5512 INFO EchoLIve werkzeug: 127.0.0.1 - - [09/Aug/2016 16:29:41] "GET /web/content/246-26ead44/web.assets_common.js HTTP/1.1" 200 -
2016-08-09 16:29:41,319 5512 INFO EchoLIve werkzeug: 127.0.0.1 - - [09/Aug/2016 16:29:41] "GET /web/content/249-fe36041/web.assets_backend.js HTTP/1.1" 200 -

这里也是postgres配置文件。

[options]
addons_path = C:\Program Files (x86)\Odoo 9.0-20160401\server\openerp\addons,
admin_passwd = admin
bin_path = C:\Program Files (x86)\Odoo 9.0-20160401\thirdparty
csv_internal_sep = ,
data_dir = C:\Users\Dell\AppData\Local\OpenERP S.A.\Odoo
db_host = localhost
db_maxconn = 64
db_name = False
db_password = openpgpwd
db_port = 5432
db_template = template1
db_user = openpg
dbfilter = .*
debug_mode = False
demo = {}
dev_mode = False
email_from = False
geoip_database = /usr/share/GeoIP/GeoLiteCity.dat
import_partial = 
limit_memory_hard = None
limit_memory_soft = None
limit_request = None
limit_time_cpu = None
limit_time_real = None
list_db = True
log_db = False
log_db_level = warning
log_handler = :INFO
log_level = info
logfile = C:\Program Files (x86)\Odoo 9.0-20160401\server\openerp-server.log
logrotate = False
longpolling_port = 8072
max_cron_threads = 2
osv_memory_age_limit = 1.0
osv_memory_count_limit = False
pg_path = C:\Program Files (x86)\Odoo 9.0-20160401\PostgreSQL\bin
pidfile = None
proxy_mode = False
reportgz = False
server_wide_modules = None
smtp_password = False
smtp_port = 25
smtp_server = localhost
smtp_ssl = False
smtp_user = False
syslog = False
test_commit = False
test_enable = False
test_file = False
test_report_directory = False
translate_modules = ['all']
unaccent = False
without_demo = False
workers = None
xmlrpc = True
xmlrpc_interface = 
xmlrpc_port = 8069

0 个答案:

没有答案