V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ttgo
V2EX  ›  问与答

owncloud 引起 postgresql cpu100%

  •  
  •   ttgo · 2017-12-22 14:29:05 +08:00 · 1192 次点击
    这是一个创建于 2563 天前的主题,其中的信息可能已经有所发展或是发生改变。

    使用的好好的 owncloud 突然不能登录了,并且服务器其他东西也变得狂慢。

    在服务器上看了一下,每一个 owncloud 有关的 postgres 进程都几乎 cpu 100%。

    我不太懂数据库。。当初是按着 owncloud 的说明一步一步配的。

    在日志里看,只要有连接访问 owncloud,就会有大量大量大量下面这样的 log:

    Dec 22 15:13:07 xxx postgres[15124]: DETAIL:  parameters: $1 = '72431', $2 = '1'
    Dec 22 15:13:07 xxx postgres[15124]: LOG:  execute <unnamed>: SELECT "path" FROM "oc_filecache" WHERE "fileid" = $1 AND "storage" = $2
    Dec 22 15:13:07 xxx postgres[15124]: DETAIL:  parameters: $1 = '72431', $2 = '1'
    Dec 22 15:13:07 xxx postgres[15124]: LOG:  duration: 0.019 ms
    Dec 22 15:13:07 xxx postgres[15124]: LOG:  duration: 0.037 ms  parse <unnamed>: SELECT "path" FROM "oc_filecache" WHERE "fileid" = $1 AND "storage" = $2
    Dec 22 15:13:07 xxx postgres[15124]: LOG:  duration: 0.076 ms  bind <unnamed>: SELECT "path" FROM "oc_filecache" WHERE "fileid" = $1 AND "storage" = $2
    Dec 22 15:13:07 xxx postgres[15124]: DETAIL:  parameters: $1 = '72431', $2 = '1'
    Dec 22 15:13:07 xxx postgres[15124]: LOG:  execute <unnamed>: SELECT "path" FROM "oc_filecache" WHERE "fileid" = $1 AND "storage" = $2
    Dec 22 15:13:07 xxx postgres[15124]: DETAIL:  parameters: $1 = '72431', $2 = '1'
    Dec 22 15:13:07 xxx postgres[15124]: LOG:  duration: 0.031 ms
    Dec 22 15:13:07 xxx postgres[15124]: LOG:  duration: 0.038 ms  parse <unnamed>: SELECT "path" FROM "oc_filecache" WHERE "fileid" = $1 AND "storage" = $2
    Dec 22 15:13:07 xxx postgres[15124]: LOG:  duration: 0.074 ms  bind <unnamed>: SELECT "path" FROM "oc_filecache" WHERE "fileid" = $1 AND "storage" = $2
    Dec 22 15:13:07 xxx postgres[15124]: DETAIL:  parameters: $1 = '72431', $2 = '1'
    Dec 22 15:13:07 xxx postgres[15124]: LOG:  execute <unnamed>: SELECT "path" FROM "oc_filecache" WHERE "fileid" = $1 AND "storage" = $2
    Dec 22 15:13:07 xxx postgres[15124]: DETAIL:  parameters: $1 = '72431', $2 = '1'
    Dec 22 15:13:07 xxx postgres[15124]: LOG:  duration: 0.019 ms
    Dec 22 15:13:07 xxx postgres[15124]: LOG:  duration: 0.038 ms  parse <unnamed>: SELECT "path" FROM "oc_filecache" WHERE "fileid" = $1 AND "storage" = $2
    Dec 22 15:13:07 xxx postgres[15124]: LOG:  duration: 0.076 ms  bind <unnamed>: SELECT "path" FROM "oc_filecache" WHERE "fileid" = $1 AND "storage" = $2
    

    请问有人能看出点思路么?大概啥出问题了啊?

    ttgo
        1
    ttgo  
    OP
       2017-12-22 14:30:25 +08:00
    擦,为啥刚发的贴就是 1 天前??
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2789 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 07:47 · PVG 15:47 · LAX 23:47 · JFK 02:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.