123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914 |
- <!DOCTYPE html>
- <html>
- <head data-suburl="">
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
-
- <meta name="author" content="diogo" />
- <meta name="description" content="gnu-social - GNU social is a social communication software used in federated social networks. It is widely supported and has a large userbase. It is already used by the Free Software Foundation." />
- <meta name="keywords" content="go, git, self-hosted, gogs">
-
- <meta name="referrer" content="no-referrer" />
- <meta name="_csrf" content="hQET4AxExpVnkGisupStBvqcSxA6MTYwNDc5MjMxNDg5NTA2NTQ4OA==" />
- <meta name="_suburl" content="" />
-
-
-
- <meta property="og:url" content="https://notabug.org/diogo/gnu-social" />
- <meta property="og:type" content="object" />
- <meta property="og:title" content="diogo/gnu-social">
- <meta property="og:description" content="GNU social is a social communication software used in federated social networks. It is widely supported and has a large userbase. It is already used by the Free Software Foundation.">
- <meta property="og:image" content="https://notabug.org/avatars/12290" />
-
- <link rel="shortcut icon" href="/img/favicon.png" />
- <script src="/js/jquery-1.11.3.min.js"></script>
- <script src="/js/libs/jquery.are-you-sure.js"></script>
- <link href="/img/icon-48.ico" rel="icon" type="image/x-icon" />
- <link href="/img/icon-60.png" rel="apple-touch-icon">
- <link href="/img/icon-76.png" rel="apple-touch-icon" sizes="76x76">
- <link href="/img/icon-120.png" rel="apple-touch-icon" sizes="120x120">
- <link href="/img/icon-152.png" rel="apple-touch-icon" sizes="152x152">
- <link href="/img/icon-240.png" rel="apple-touch-icon" sizes="240x240">
- <link rel="stylesheet" href="/assets/font-awesome-4.6.3/css/font-awesome.min.css">
- <link rel="stylesheet" href="/assets/octicons-4.3.0/octicons.min.css">
-
-
-
-
- <link rel="stylesheet" href="/css/semantic-2.2.13.min.css">
- <link rel="stylesheet" href="/css/gogs.css?v=6fc9e85aa88133794d3434ea74aa557a">
- <link rel="stylesheet" href="/css/notabug.css">
-
- <script src="/js/semantic-2.2.13.min.js"></script>
- <script src="/js/gogs.js?v=6fc9e85aa88133794d3434ea74aa557a"></script>
- <title>High CPU usage with php-fpm and GNUSocial - NotABug.org: Free code hosting</title>
- <meta name="theme-color" content="#428bca">
-
- <noscript><style>.nojs-popup:hover > .menu { display: block ; }</style></noscript>
- </head>
- <body>
- <div class="full height">
- <noscript>Please enable JavaScript in your browser!</noscript>
-
- <div id="header-div" class="following bar light">
- <div class="ui container">
- <div class="ui grid">
- <div class="column">
- <div class="ui top secondary menu">
- <a class="item brand" href="/">
- <img class="ui mini image" src="/img/favicon.png">
- </a>
-
- <a class="item" href="/">Home</a>
-
- <a class="item" href="/explore/repos">Explore</a>
-
-
- <a class="notabug-item item" href="/help" rel="noreferrer">Help</a>
- <div class="right menu">
-
- <a class="item" href="/user/sign_up">
- <i class="octicon octicon-person"></i> Register
- </a>
-
- <a class="item" href="/user/login?redirect_to=%2fdiogo%2fgnu-social%2fissues%2f109">
- <i class="octicon octicon-sign-in"></i> Sign In
- </a>
- </div>
-
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div class="repository view issue pull">
- <div class="header-wrapper">
- <div class="ui container">
- <div class="ui vertically padded grid head">
- <div class="column">
- <div class="ui header">
- <div class="ui huge breadcrumb">
- <i class="mega-octicon octicon-repo"></i>
- <a href="/diogo">diogo</a>
- <div class="divider"> / </div>
- <a href="/diogo/gnu-social">gnu-social</a>
-
-
- </div>
-
- <div class="ui right">
- <div class="ui labeled button" tabindex="0">
- <a class="ui basic button" href="/diogo/gnu-social/action/watch?redirect_to=%2fdiogo%2fgnu-social%2fissues%2f109">
- <i class="icon fa-eye-slash"></i>Watch
- </a>
- <a class="ui basic label" href="/diogo/gnu-social/watchers">
- 9
- </a>
- </div>
- <div class="ui labeled button" tabindex="0">
- <a class="ui basic button" href="/diogo/gnu-social/action/star?redirect_to=%2fdiogo%2fgnu-social%2fissues%2f109">
- <i class="icon fa-star-o"></i>Star
- </a>
- <a class="ui basic label" href="/diogo/gnu-social/stars">
- 22
- </a>
- </div>
-
- <div class="ui labeled button" tabindex="0">
- <a class="ui basic button " href="/repo/fork/25974">
- <i class="octicon octicon-repo-forked"></i>Fork
- </a>
- <a class="ui basic label" href="/diogo/gnu-social/forks">
- 21
- </a>
- </div>
-
- </div>
-
- </div>
- </div>
- </div>
- </div>
- <div class="ui tabs container">
- <div class="ui tabular menu navbar">
-
- <a class=" item" href="/diogo/gnu-social">
- <i class="octicon octicon-file-text"></i> Files
- </a>
-
-
- <a class="active item" href="/diogo/gnu-social/issues">
- <i class="octicon octicon-issue-opened"></i> Issues <span class="ui blue small label">73</span>
- </a>
-
-
- <a class=" item" href="/diogo/gnu-social/pulls">
- <i class="octicon octicon-git-pull-request"></i> Pull Requests <span class="ui blue small label">3</span>
- </a>
-
-
- <a class=" item" href="/diogo/gnu-social/wiki">
- <i class="octicon octicon-book"></i> Wiki
- </a>
-
-
- </div>
- </div>
- <div class="ui tabs divider"></div>
- </div>
- <div class="ui container">
- <div class="navbar">
- <div class="ui compact small menu">
- <a class=" item" href="/diogo/gnu-social/labels">Labels</a>
- <a class=" item" href="/diogo/gnu-social/milestones">Milestones</a>
- </div>
- <div class="ui right">
-
- <a class="ui green button" href="/diogo/gnu-social/issues/new">New Issue</a>
-
- </div>
- </div>
- <div class="ui divider"></div>
-
- <div>
- <div class="ui grid">
-
-
- <div class="sixteen wide column title">
- <div class="ui grid">
- <h1 class="twelve wide column">
- <span class="index">#109</span> <span id="issue-title" class="has-emoji">High CPU usage with php-fpm and GNUSocial</span>
- <div id="edit-title-input" class="ui input" style="display: none">
- <input value="High CPU usage with php-fpm and GNUSocial">
- </div>
- </h1>
-
- </div>
-
- <div class="ui red large label"><i class="octicon octicon-issue-closed"></i> Closed</div>
-
-
-
- <span class="time-desc">
-
- opened <span class="time-since" title="Fri, 07 Feb 2020 11:33:40 UTC">9 months ago</span> by <a href="/aab">aab</a>
-
- ·
- 2 comments
- </span>
-
- <div class="ui divider"></div>
- </div>
-
-
- <div class="twelve wide column comment-list">
- <ui class="ui comments">
- <div class="comment">
- <a class="avatar" href="/aab">
- <img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
- </a>
- <div class="content">
- <div class="ui top attached header">
- <span class="text grey"><a href="/aab">aab</a> commented <a href="#issue-64459"><span class="time-since" title="Fri, 07 Feb 2020 11:33:40 UTC">9 months ago</span></a></span>
- <div class="ui right actions">
-
- </div>
- </div>
- <div class="ui attached segment">
- <div class="render-content markdown has-emoji">
-
- <p>I'm seeing a php-fpm high cpu usage in gnusocial.net, which causes a daily block of the server. I've been using different values in /etc/php/7.3/fpm/pool.d/www.conf with no luck; anyways, these are the ones i'm using now:</p>
- <p>[code]
- pm = ondemand
- pm.max_children = 200
- pm.start_servers = 120
- pm.min_spare_servers = 80
- pm.max_spare_servers = 160
- pm.max_requests = 500
- [/code]</p>
- <p>To get more info about the cpu peaks, i've enabled "slowlog" with</p>
- <p>[code]
- slowlog = /var/log/$pool.log.slow
- request_slowlog_timeout = 10 (seconds)
- [/code]</p>
- <p>so any request using more than 10 seconds to complete is logged. Just after enabling it, i get this:</p>
- <p>[code]
- [07-Feb-2020 11:40:25] [pool www] pid 6249
- script_filename = /var/www/gnusocial/public/index.php
- [0x00007f7feea1e9d0] imagecopy() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:148
- [0x00007f7feea1e920] gdResourceToTruecolor() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:70
- [0x00007f7feea1e850] initFromPath() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php:339
- [0x00007f7feea1e7e0] init() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php:66
- [0x00007f7feea1e770] init() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/ImageManager.php:54
- [0x00007f7feea1e700] make() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php:58
- [0x00007f7feea1e690] make() /var/www/gnusocial/lib/media/imagefile.php:65
- [0x00007f7feea1e5b0] __construct() /var/www/gnusocial/lib/media/imagefile.php:160
- [0x00007f7feea1e4f0] fromFileObject() /var/www/gnusocial/classes/File.php:570
- [0x00007f7feea1e410] getThumbnail() /var/www/gnusocial/plugins/SensitiveContent/SensitiveContentPlugin.php:165
- [0x00007f7feea1e270] onStartShowAttachmentRepresentation() /var/www/gnusocial/lib/util/event.php:89
- [0x00007f7feea1e1c0] handle() /var/www/gnusocial/lib/media/attachmentlistitem.php:108
- [0x00007f7feea1e0e0] showRepresentation() /var/www/gnusocial/lib/media/attachmentlistitem.php:102
- [0x00007f7feea1e090] showNoticeAttachment() /var/www/gnusocial/lib/media/attachmentlistitem.php:85
- [0x00007f7feea1e020] show() /var/www/gnusocial/lib/media/attachmentlist.php:99
- [0x00007f7feea1df50] show() /var/www/gnusocial/lib/notices/noticelistitem.php:403
- [0x00007f7feea1ded0] showNoticeAttachments() /var/www/gnusocial/lib/notices/noticelistitem.php:177
- [0x00007f7feea1de70] showNoticeFooter() /var/www/gnusocial/lib/modules/ActivityHandlerModule.php:630
- [0x00007f7feea1de10] showNoticeListItem() /var/www/gnusocial/lib/modules/ActivityHandlerModule.php:616
- [0x00007f7feea1dd60] onStartShowNoticeItem() /var/www/gnusocial/lib/util/event.php:89</p>
- <p>[07-Feb-2020 11:40:28] [pool www] pid 6111
- script_filename = /var/www/gnusocial/public/index.php
- [0x00007f7feea1e930] imagecopy() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:148
- [0x00007f7feea1e880] gdResourceToTruecolor() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:70
- [0x00007f7feea1e7b0] initFromPath() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php:339
- [0x00007f7feea1e740] init() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php:66
- [0x00007f7feea1e6d0] init() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/ImageManager.php:54
- [0x00007f7feea1e660] make() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php:58
- [0x00007f7feea1e5f0] make() /var/www/gnusocial/lib/media/imagefile.php:65
- [0x00007f7feea1e510] __construct() /var/www/gnusocial/lib/media/imagefile.php:160
- [0x00007f7feea1e450] fromFileObject() /var/www/gnusocial/classes/File.php:570
- [0x00007f7feea1e370] getThumbnail() /var/www/gnusocial/plugins/Embed/EmbedPlugin.php:312
- [0x00007f7feea1e270] onStartShowAttachmentRepresentation() /var/www/gnusocial/lib/util/event.php:89
- [0x00007f7feea1e1c0] handle() /var/www/gnusocial/lib/media/attachmentlistitem.php:108
- [0x00007f7feea1e0e0] showRepresentation() /var/www/gnusocial/lib/media/attachmentlistitem.php:102
- [0x00007f7feea1e090] showNoticeAttachment() /var/www/gnusocial/lib/media/attachmentlistitem.php:85
- [0x00007f7feea1e020] show() /var/www/gnusocial/lib/media/attachmentlist.php:99
- [0x00007f7feea1df50] show() /var/www/gnusocial/lib/notices/noticelistitem.php:403
- [0x00007f7feea1ded0] showNoticeAttachments() /var/www/gnusocial/lib/notices/noticelistitem.php:177
- [0x00007f7feea1de70] showNoticeFooter() /var/www/gnusocial/lib/modules/ActivityHandlerModule.php:630
- [0x00007f7feea1de10] showNoticeListItem() /var/www/gnusocial/lib/modules/ActivityHandlerModule.php:616
- [0x00007f7feea1dd60] onStartShowNoticeItem() /var/www/gnusocial/lib/util/event.php:89</p>
- <p>[07-Feb-2020 11:40:28] [pool www] pid 6231
- script_filename = /var/www/gnusocial/public/index.php
- [0x00007f7feea1e930] imagecreatetruecolor() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:138
- [0x00007f7feea1e880] gdResourceToTruecolor() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:70
- [0x00007f7feea1e7b0] initFromPath() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php:339
- [0x00007f7feea1e740] init() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php:66
- [0x00007f7feea1e6d0] init() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/ImageManager.php:54
- [0x00007f7feea1e660] make() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php:58
- [0x00007f7feea1e5f0] make() /var/www/gnusocial/lib/media/imagefile.php:65
- [0x00007f7feea1e510] __construct() /var/www/gnusocial/lib/media/imagefile.php:160
- [0x00007f7feea1e450] fromFileObject() /var/www/gnusocial/classes/File.php:570
- [0x00007f7feea1e370] getThumbnail() /var/www/gnusocial/plugins/Embed/EmbedPlugin.php:312
- [0x00007f7feea1e270] onStartShowAttachmentRepresentation() /var/www/gnusocial/lib/util/event.php:89
- [0x00007f7feea1e1c0] handle() /var/www/gnusocial/lib/media/attachmentlistitem.php:108
- [0x00007f7feea1e0e0] showRepresentation() /var/www/gnusocial/lib/media/attachmentlistitem.php:102
- [0x00007f7feea1e090] showNoticeAttachment() /var/www/gnusocial/lib/media/attachmentlistitem.php:85
- [0x00007f7feea1e020] show() /var/www/gnusocial/lib/media/attachmentlist.php:99
- [0x00007f7feea1df50] show() /var/www/gnusocial/lib/notices/noticelistitem.php:403
- [0x00007f7feea1ded0] showNoticeAttachments() /var/www/gnusocial/lib/notices/noticelistitem.php:177
- [0x00007f7feea1de70] showNoticeFooter() /var/www/gnusocial/lib/modules/ActivityHandlerModule.php:630
- [0x00007f7feea1de10] showNoticeListItem() /var/www/gnusocial/lib/modules/ActivityHandlerModule.php:616
- [0x00007f7feea1dd60] onStartShowNoticeItem() /var/www/gnusocial/lib/util/event.php:89</p>
- <p>[07-Feb-2020 11:40:38] [pool www] pid 6243
- script_filename = /var/www/gnusocial/public/index.php
- [0x00007f7feea1e2b0] mysqli_query() /var/www/gnusocial/extlib/DB/mysqli.php:409
- [0x00007f7feea1e210] simpleQuery() /var/www/gnusocial/extlib/DB/common.php:1333
- [0x00007f7feea1e140] query() /var/www/gnusocial/extlib/DB/DataObject.php:1594
- [0x00007f7feea1e000] _query() /var/www/gnusocial/classes/Memcached_DataObject.php:674
- [0x00007f7feea1df00] _query() /var/www/gnusocial/extlib/DB/DataObject.php:3135
- [0x00007f7feea1de90] query() /var/www/gnusocial/classes/Memcached_DataObject.php:642
- [0x00007f7feea1dd80] cachedQuery() /var/www/gnusocial/plugins/TagCloud/lib/personaltagcloudsection.php:68
- [0x00007f7feea1dcd0] getTags() /var/www/gnusocial/plugins/TagCloud/lib/tagcloudsection.php:52
- [0x00007f7feea1dbf0] showContent() /var/www/gnusocial/lib/ui/section.php:62
- [0x00007f7feea1db70] show() /var/www/gnusocial/plugins/TagCloud/TagCloudPlugin.php:70
- [0x00007f7feea1dad0] onEndShowSections() /var/www/gnusocial/lib/util/event.php:89
- [0x00007f7feea1da20] handle() /var/www/gnusocial/lib/action/action.php:1212
- [0x00007f7feea1d9b0] showAside() /var/www/gnusocial/lib/action/action.php:1004
- [0x00007f7feea1d940] showCore() /var/www/gnusocial/lib/action/action.php:837
- [0x00007f7feea1d8c0] showBody() /var/www/gnusocial/lib/action/action.php:545
- [0x00007f7feea1d850] showPage() /var/www/gnusocial/lib/util/managedaction.php:64
- [0x00007f7feea1d7e0] handle() /var/www/gnusocial/lib/action/action.php:186
- [0x00007f7feea1d720] execute() /var/www/gnusocial/lib/action/action.php:88
- [0x00007f7feea1d660] run() /var/www/gnusocial/public/index.php:338
- [0x00007f7feea1d100] main() /var/www/gnusocial/public/index.php:341
- [/code]</p>
- <p>On one hand, I'm not sure if 10 seconds is enough to complete the requests.</p>
- <p>On the other, the server is a VPS with a quad-core and 16 GB of RAM (never above 3 GB of use); GNUSocial is the only web service installed; i guess it should be more than enough for managing around 300 accounts.</p>
- <p>Is this a bad config of my php-fpm, or is it because of the slowness of the requests?</p>
- <p>Please, let me know if there's anything i can do to further debug the problem.</p>
-
- </div>
- <div class="raw-content hide">I'm seeing a php-fpm high cpu usage in gnusocial.net, which causes a daily block of the server. I've been using different values in /etc/php/7.3/fpm/pool.d/www.conf with no luck; anyways, these are the ones i'm using now:
- [code]
- pm = ondemand
- pm.max_children = 200
- pm.start_servers = 120
- pm.min_spare_servers = 80
- pm.max_spare_servers = 160
- pm.max_requests = 500
- [/code]
- To get more info about the cpu peaks, i've enabled "slowlog" with
- [code]
- slowlog = /var/log/$pool.log.slow
- request_slowlog_timeout = 10 (seconds)
- [/code]
- so any request using more than 10 seconds to complete is logged. Just after enabling it, i get this:
- [code]
- [07-Feb-2020 11:40:25] [pool www] pid 6249
- script_filename = /var/www/gnusocial/public/index.php
- [0x00007f7feea1e9d0] imagecopy() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:148
- [0x00007f7feea1e920] gdResourceToTruecolor() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:70
- [0x00007f7feea1e850] initFromPath() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php:339
- [0x00007f7feea1e7e0] init() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php:66
- [0x00007f7feea1e770] init() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/ImageManager.php:54
- [0x00007f7feea1e700] make() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php:58
- [0x00007f7feea1e690] make() /var/www/gnusocial/lib/media/imagefile.php:65
- [0x00007f7feea1e5b0] __construct() /var/www/gnusocial/lib/media/imagefile.php:160
- [0x00007f7feea1e4f0] fromFileObject() /var/www/gnusocial/classes/File.php:570
- [0x00007f7feea1e410] getThumbnail() /var/www/gnusocial/plugins/SensitiveContent/SensitiveContentPlugin.php:165
- [0x00007f7feea1e270] onStartShowAttachmentRepresentation() /var/www/gnusocial/lib/util/event.php:89
- [0x00007f7feea1e1c0] handle() /var/www/gnusocial/lib/media/attachmentlistitem.php:108
- [0x00007f7feea1e0e0] showRepresentation() /var/www/gnusocial/lib/media/attachmentlistitem.php:102
- [0x00007f7feea1e090] showNoticeAttachment() /var/www/gnusocial/lib/media/attachmentlistitem.php:85
- [0x00007f7feea1e020] show() /var/www/gnusocial/lib/media/attachmentlist.php:99
- [0x00007f7feea1df50] show() /var/www/gnusocial/lib/notices/noticelistitem.php:403
- [0x00007f7feea1ded0] showNoticeAttachments() /var/www/gnusocial/lib/notices/noticelistitem.php:177
- [0x00007f7feea1de70] showNoticeFooter() /var/www/gnusocial/lib/modules/ActivityHandlerModule.php:630
- [0x00007f7feea1de10] showNoticeListItem() /var/www/gnusocial/lib/modules/ActivityHandlerModule.php:616
- [0x00007f7feea1dd60] onStartShowNoticeItem() /var/www/gnusocial/lib/util/event.php:89
- [07-Feb-2020 11:40:28] [pool www] pid 6111
- script_filename = /var/www/gnusocial/public/index.php
- [0x00007f7feea1e930] imagecopy() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:148
- [0x00007f7feea1e880] gdResourceToTruecolor() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:70
- [0x00007f7feea1e7b0] initFromPath() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php:339
- [0x00007f7feea1e740] init() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php:66
- [0x00007f7feea1e6d0] init() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/ImageManager.php:54
- [0x00007f7feea1e660] make() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php:58
- [0x00007f7feea1e5f0] make() /var/www/gnusocial/lib/media/imagefile.php:65
- [0x00007f7feea1e510] __construct() /var/www/gnusocial/lib/media/imagefile.php:160
- [0x00007f7feea1e450] fromFileObject() /var/www/gnusocial/classes/File.php:570
- [0x00007f7feea1e370] getThumbnail() /var/www/gnusocial/plugins/Embed/EmbedPlugin.php:312
- [0x00007f7feea1e270] onStartShowAttachmentRepresentation() /var/www/gnusocial/lib/util/event.php:89
- [0x00007f7feea1e1c0] handle() /var/www/gnusocial/lib/media/attachmentlistitem.php:108
- [0x00007f7feea1e0e0] showRepresentation() /var/www/gnusocial/lib/media/attachmentlistitem.php:102
- [0x00007f7feea1e090] showNoticeAttachment() /var/www/gnusocial/lib/media/attachmentlistitem.php:85
- [0x00007f7feea1e020] show() /var/www/gnusocial/lib/media/attachmentlist.php:99
- [0x00007f7feea1df50] show() /var/www/gnusocial/lib/notices/noticelistitem.php:403
- [0x00007f7feea1ded0] showNoticeAttachments() /var/www/gnusocial/lib/notices/noticelistitem.php:177
- [0x00007f7feea1de70] showNoticeFooter() /var/www/gnusocial/lib/modules/ActivityHandlerModule.php:630
- [0x00007f7feea1de10] showNoticeListItem() /var/www/gnusocial/lib/modules/ActivityHandlerModule.php:616
- [0x00007f7feea1dd60] onStartShowNoticeItem() /var/www/gnusocial/lib/util/event.php:89
- [07-Feb-2020 11:40:28] [pool www] pid 6231
- script_filename = /var/www/gnusocial/public/index.php
- [0x00007f7feea1e930] imagecreatetruecolor() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:138
- [0x00007f7feea1e880] gdResourceToTruecolor() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:70
- [0x00007f7feea1e7b0] initFromPath() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php:339
- [0x00007f7feea1e740] init() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php:66
- [0x00007f7feea1e6d0] init() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/ImageManager.php:54
- [0x00007f7feea1e660] make() /var/www/gnusocial/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php:58
- [0x00007f7feea1e5f0] make() /var/www/gnusocial/lib/media/imagefile.php:65
- [0x00007f7feea1e510] __construct() /var/www/gnusocial/lib/media/imagefile.php:160
- [0x00007f7feea1e450] fromFileObject() /var/www/gnusocial/classes/File.php:570
- [0x00007f7feea1e370] getThumbnail() /var/www/gnusocial/plugins/Embed/EmbedPlugin.php:312
- [0x00007f7feea1e270] onStartShowAttachmentRepresentation() /var/www/gnusocial/lib/util/event.php:89
- [0x00007f7feea1e1c0] handle() /var/www/gnusocial/lib/media/attachmentlistitem.php:108
- [0x00007f7feea1e0e0] showRepresentation() /var/www/gnusocial/lib/media/attachmentlistitem.php:102
- [0x00007f7feea1e090] showNoticeAttachment() /var/www/gnusocial/lib/media/attachmentlistitem.php:85
- [0x00007f7feea1e020] show() /var/www/gnusocial/lib/media/attachmentlist.php:99
- [0x00007f7feea1df50] show() /var/www/gnusocial/lib/notices/noticelistitem.php:403
- [0x00007f7feea1ded0] showNoticeAttachments() /var/www/gnusocial/lib/notices/noticelistitem.php:177
- [0x00007f7feea1de70] showNoticeFooter() /var/www/gnusocial/lib/modules/ActivityHandlerModule.php:630
- [0x00007f7feea1de10] showNoticeListItem() /var/www/gnusocial/lib/modules/ActivityHandlerModule.php:616
- [0x00007f7feea1dd60] onStartShowNoticeItem() /var/www/gnusocial/lib/util/event.php:89
- [07-Feb-2020 11:40:38] [pool www] pid 6243
- script_filename = /var/www/gnusocial/public/index.php
- [0x00007f7feea1e2b0] mysqli_query() /var/www/gnusocial/extlib/DB/mysqli.php:409
- [0x00007f7feea1e210] simpleQuery() /var/www/gnusocial/extlib/DB/common.php:1333
- [0x00007f7feea1e140] query() /var/www/gnusocial/extlib/DB/DataObject.php:1594
- [0x00007f7feea1e000] _query() /var/www/gnusocial/classes/Memcached_DataObject.php:674
- [0x00007f7feea1df00] _query() /var/www/gnusocial/extlib/DB/DataObject.php:3135
- [0x00007f7feea1de90] query() /var/www/gnusocial/classes/Memcached_DataObject.php:642
- [0x00007f7feea1dd80] cachedQuery() /var/www/gnusocial/plugins/TagCloud/lib/personaltagcloudsection.php:68
- [0x00007f7feea1dcd0] getTags() /var/www/gnusocial/plugins/TagCloud/lib/tagcloudsection.php:52
- [0x00007f7feea1dbf0] showContent() /var/www/gnusocial/lib/ui/section.php:62
- [0x00007f7feea1db70] show() /var/www/gnusocial/plugins/TagCloud/TagCloudPlugin.php:70
- [0x00007f7feea1dad0] onEndShowSections() /var/www/gnusocial/lib/util/event.php:89
- [0x00007f7feea1da20] handle() /var/www/gnusocial/lib/action/action.php:1212
- [0x00007f7feea1d9b0] showAside() /var/www/gnusocial/lib/action/action.php:1004
- [0x00007f7feea1d940] showCore() /var/www/gnusocial/lib/action/action.php:837
- [0x00007f7feea1d8c0] showBody() /var/www/gnusocial/lib/action/action.php:545
- [0x00007f7feea1d850] showPage() /var/www/gnusocial/lib/util/managedaction.php:64
- [0x00007f7feea1d7e0] handle() /var/www/gnusocial/lib/action/action.php:186
- [0x00007f7feea1d720] execute() /var/www/gnusocial/lib/action/action.php:88
- [0x00007f7feea1d660] run() /var/www/gnusocial/public/index.php:338
- [0x00007f7feea1d100] main() /var/www/gnusocial/public/index.php:341
- [/code]
- On one hand, I'm not sure if 10 seconds is enough to complete the requests.
- On the other, the server is a VPS with a quad-core and 16 GB of RAM (never above 3 GB of use); GNUSocial is the only web service installed; i guess it should be more than enough for managing around 300 accounts.
- Is this a bad config of my php-fpm, or is it because of the slowness of the requests?
- Please, let me know if there's anything i can do to further debug the problem.
- </div>
- <div class="edit-content-zone hide" data-write="issue-64459-write" data-preview="issue-64459-preview" data-update-url="/diogo/gnu-social/issues/109/content" data-context="/diogo/gnu-social"></div>
- </div>
-
- </div>
- </div>
-
-
-
-
- <div class="comment" id="issuecomment-17711">
- <a class="avatar" href="/aab">
- <img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
- </a>
- <div class="content">
- <div class="ui top attached header">
- <span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-17711"><span class="time-since" title="Sun, 16 Feb 2020 11:37:33 UTC">8 months ago</span></a></span>
- <div class="ui right actions">
-
- <div class="item tag">
-
- Poster
-
- </div>
-
-
- </div>
- </div>
- <div class="ui attached segment">
- <div class="render-content markdown has-emoji">
-
- <p>Ok, news on this. I've detected massive connections from Friendica hosts. Just to try, i made last night a filter in fail2ban for those hosts and... the server is running smoothly again.</p>
- <p>I've restored php config to a (i think) more sane version, similar to the one found in <a href="https://notabug.org/diogo/gnu-social/issues/54" rel="nofollow">#54</a>. PHP's slow log now writes maybe twice and hour, in contrast with several every ten minutes that it was writing yesterday.</p>
- <p>I'm reading now about rate limiting in nginx, as i'd like those hosts to connect again, but i'm afraid they'll keep on being banned until i find the correct answer for this.</p>
- <p>Once again, sorry for the noise; please, feel free to close this bug report, and i'll write a new one about rate limiting when i get it to work.</p>
-
- </div>
- <div class="raw-content hide">Ok, news on this. I've detected massive connections from Friendica hosts. Just to try, i made last night a filter in fail2ban for those hosts and... the server is running smoothly again.
- I've restored php config to a (i think) more sane version, similar to the one found in https://notabug.org/diogo/gnu-social/issues/54. PHP's slow log now writes maybe twice and hour, in contrast with several every ten minutes that it was writing yesterday.
- I'm reading now about rate limiting in nginx, as i'd like those hosts to connect again, but i'm afraid they'll keep on being banned until i find the correct answer for this.
- Once again, sorry for the noise; please, feel free to close this bug report, and i'll write a new one about rate limiting when i get it to work.</div>
- <div class="edit-content-zone hide" data-write="issuecomment-17711-write" data-preview="issuecomment-17711-preview" data-update-url="/diogo/gnu-social/comments/17711" data-context="/diogo/gnu-social"></div>
- </div>
-
- </div>
- </div>
-
-
-
-
-
- <div class="comment" id="issuecomment-17715">
- <a class="avatar" href="/aab">
- <img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
- </a>
- <div class="content">
- <div class="ui top attached header">
- <span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-17715"><span class="time-since" title="Wed, 19 Feb 2020 15:35:09 UTC">8 months ago</span></a></span>
- <div class="ui right actions">
-
- <div class="item tag">
-
- Poster
-
- </div>
-
-
- </div>
- </div>
- <div class="ui attached segment">
- <div class="render-content markdown has-emoji">
-
- <p>After some days experimenting with rate-limiting in nginx, everything is back to normal. If something, this has tought me than php-fpm will try to process EVERYTHING you throw at it :)</p>
- <p>Closing now, as this is not a GS bug.</p>
-
- </div>
- <div class="raw-content hide">After some days experimenting with rate-limiting in nginx, everything is back to normal. If something, this has tought me than php-fpm will try to process EVERYTHING you throw at it :)
- Closing now, as this is not a GS bug.</div>
- <div class="edit-content-zone hide" data-write="issuecomment-17715-write" data-preview="issuecomment-17715-preview" data-update-url="/diogo/gnu-social/comments/17715" data-context="/diogo/gnu-social"></div>
- </div>
-
- </div>
- </div>
-
-
-
-
-
- <div class="event">
- <span class="octicon octicon-circle-slash"></span>
- <a class="ui avatar image" href="/aab">
- <img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
- </a>
- <span class="text grey"><a href="/aab">aab</a> closed <a id="event-17716" href="#event-17716"><span class="time-since" title="Wed, 19 Feb 2020 15:35:09 UTC">8 months ago</span></a></span>
- </div>
-
-
-
-
- <div class="ui warning message">
- <a href="/user/login?redirect_to=/diogo/gnu-social/issues/109">Sign in</a> to join this conversation.
- </div>
-
- </ui>
- </div>
- <div class="four wide column">
- <div class="ui segment metas">
- <div class="ui disabled floating jump select-label dropdown">
- <span class="text">
- <strong>Labels</strong>
- <span class="octicon octicon-gear"></span>
- </span>
- <div class="filter menu" data-action="update" data-update-url="/diogo/gnu-social/issues/109/label">
- <div class="no-select item">Clear labels</div>
-
- <a class=" item" href="#" data-id="1564" data-id-selector="#label_1564"><span class="octicon "></span><span class="label color" style="background-color: #fbca04"></span> bounty</a>
-
- <a class=" item" href="#" data-id="1483" data-id-selector="#label_1483"><span class="octicon "></span><span class="label color" style="background-color: #ee0701"></span> bug</a>
-
- <a class=" item" href="#" data-id="1484" data-id-selector="#label_1484"><span class="octicon "></span><span class="label color" style="background-color: #cccccc"></span> duplicate</a>
-
- <a class=" item" href="#" data-id="1485" data-id-selector="#label_1485"><span class="octicon "></span><span class="label color" style="background-color: #84b6eb"></span> enhancement</a>
-
- <a class=" item" href="#" data-id="1486" data-id-selector="#label_1486"><span class="octicon "></span><span class="label color" style="background-color: #128a0c"></span> help wanted</a>
-
- <a class=" item" href="#" data-id="1487" data-id-selector="#label_1487"><span class="octicon "></span><span class="label color" style="background-color: #e6e6e6"></span> invalid</a>
-
- <a class=" item" href="#" data-id="1488" data-id-selector="#label_1488"><span class="octicon "></span><span class="label color" style="background-color: #cc317c"></span> question</a>
-
- <a class=" item" href="#" data-id="1565" data-id-selector="#label_1565"><span class="octicon "></span><span class="label color" style="background-color: #d4c5f9"></span> RFC</a>
-
- <a class=" item" href="#" data-id="1841" data-id-selector="#label_1841"><span class="octicon "></span><span class="label color" style="background-color: #0052cc"></span> v3</a>
-
- <a class=" item" href="#" data-id="1489" data-id-selector="#label_1489"><span class="octicon "></span><span class="label color" style="background-color: #ffffff"></span> wontfix</a>
-
- </div>
- </div>
- <div class="ui labels list">
- <span class="no-select item ">No Label</span>
-
- <div class="item">
- <a class="ui label hide" id="label_1564" href="/diogo/gnu-social/issues?labels=1564" style="color: #000; background-color: #fbca04">bounty</a>
- </div>
-
- <div class="item">
- <a class="ui label hide" id="label_1483" href="/diogo/gnu-social/issues?labels=1483" style="color: #fff; background-color: #ee0701">bug</a>
- </div>
-
- <div class="item">
- <a class="ui label hide" id="label_1484" href="/diogo/gnu-social/issues?labels=1484" style="color: #000; background-color: #cccccc">duplicate</a>
- </div>
-
- <div class="item">
- <a class="ui label hide" id="label_1485" href="/diogo/gnu-social/issues?labels=1485" style="color: #000; background-color: #84b6eb">enhancement</a>
- </div>
-
- <div class="item">
- <a class="ui label hide" id="label_1486" href="/diogo/gnu-social/issues?labels=1486" style="color: #fff; background-color: #128a0c">help wanted</a>
- </div>
-
- <div class="item">
- <a class="ui label hide" id="label_1487" href="/diogo/gnu-social/issues?labels=1487" style="color: #000; background-color: #e6e6e6">invalid</a>
- </div>
-
- <div class="item">
- <a class="ui label hide" id="label_1488" href="/diogo/gnu-social/issues?labels=1488" style="color: #fff; background-color: #cc317c">question</a>
- </div>
-
- <div class="item">
- <a class="ui label hide" id="label_1565" href="/diogo/gnu-social/issues?labels=1565" style="color: #000; background-color: #d4c5f9">RFC</a>
- </div>
-
- <div class="item">
- <a class="ui label hide" id="label_1841" href="/diogo/gnu-social/issues?labels=1841" style="color: #fff; background-color: #0052cc">v3</a>
- </div>
-
- <div class="item">
- <a class="ui label hide" id="label_1489" href="/diogo/gnu-social/issues?labels=1489" style="color: #000; background-color: #ffffff">wontfix</a>
- </div>
-
- </div>
- <div class="ui divider"></div>
- <div class="ui disabled floating jump select-milestone dropdown">
- <span class="text">
- <strong>Milestone</strong>
- <span class="octicon octicon-gear"></span>
- </span>
- <div class="menu" data-action="update" data-update-url="/diogo/gnu-social/issues/109/milestone">
- <div class="no-select item">Clear milestone</div>
-
-
- </div>
- </div>
- <div class="ui select-milestone list">
- <span class="no-select item ">No Milestone</span>
- <div class="selected">
-
- </div>
- </div>
- <div class="ui divider"></div>
- <input id="assignee_id" name="assignee_id" type="hidden" value="">
- <div class="ui disabled floating jump select-assignee dropdown">
- <span class="text">
- <strong>Assignee</strong>
- <span class="octicon octicon-gear"></span>
- </span>
- <div class="menu" data-action="update" data-update-url="/diogo/gnu-social/issues/109/assignee">
- <div class="no-select item">Clear assignee</div>
-
- </div>
- </div>
- <div class="ui select-assignee list">
- <span class="no-select item hide">No assignee</span>
- <div class="selected">
-
- <a class="item" href="/diogo/gnu-social/issues?assignee=22439"><img class="ui avatar image" src="https://seccdn.libravatar.org/avatar/23633838a5487dc30d0d288c26e04dbf"> biodantas</a>
-
- </div>
- </div>
- <div class="ui divider"></div>
- <div class="ui participants">
- <span class="text"><strong>1 Participants</strong></span>
- <div>
-
- <a href="/aab">
- <img class="ui avatar image poping up" src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e" data-content="aab" data-position="top center" data-variation="small inverted">
- </a>
-
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="hide" id="edit-content-form">
- <div class="ui comment form">
- <div class="ui top attached tabular menu">
- <a class="active write item">Write</a>
- <a class="preview item" data-url="/api/v1/markdown" data-context="/diogo/gnu-social">Preview</a>
- </div>
- <div class="ui bottom attached active write tab segment">
- <textarea tabindex="1" id="content" name="content"></textarea>
- </div>
- <div class="ui bottom attached tab preview segment markdown">
- Loading...
- </div>
- <div class="text right edit buttons">
- <div class="ui basic blue cancel button" tabindex="3">Cancel</div>
- <div class="ui green save button" tabindex="2">Save</div>
- </div>
- </div>
- </div>
- <div class="hide" id="no-content">
- <span class="no-content">There is no content yet.</span>
- </div>
- </div>
-
- </div>
- </div>
- </div>
- <footer>
- <div class="ui container">
- <div class="ui left">
- <a href="/tos">Terms of Service</a>
- •
- <a href="/about">About us</a>
- •
- <a href="/outages">Outages</a>
- •
- <a href="/hp/gogs/issues">Report a problem</a>
- •
- <a href="/assets/librejs/librejs.html" data-jslicense="1">Javascript licenses</a>
- •
- <a href="/fingerprints">SSH Fingerprints</a>
- </div>
- <div class="ui right links">
-
- <div class="ui language bottom floating slide up dropdown link item">
- <i class="world icon"></i>
- <div class="text">English</div>
- <div class="menu">
-
- <a class="item active selected" href="#">English</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=zh-CN">简体中文</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=zh-HK">繁體中文(香港)</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=zh-TW">繁體中文(臺灣)</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=de-DE">Deutsch</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=fr-FR">français</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=nl-NL">Nederlands</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=lv-LV">latviešu</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=ru-RU">русский</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=ja-JP">日本語</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=es-ES">español</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=pt-BR">português do Brasil</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=pl-PL">polski</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=bg-BG">български</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=it-IT">italiano</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=fi-FI">suomi</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=tr-TR">Türkçe</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=cs-CZ">čeština</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=sr-SP">српски</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=sv-SE">svenska</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=ko-KR">한국어</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=gl-ES">galego</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=uk-UA">українська</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=en-GB">English (United Kingdom)</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=hu-HU">Magyar</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=sk-SK">Slovenčina</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=id-ID">Indonesian</a>
-
- <a class="item " href="/diogo/gnu-social/issues/109?lang=fa-IR">Persian</a>
-
- </div>
- </div>
-
- </div>
- </div>
- </footer>
- </body>
- <link rel="stylesheet" href="/plugins/highlight-9.6.0/github.css">
- <script src="/plugins/highlight-9.6.0/highlight.pack.js"></script>
- <link rel="stylesheet" href="/plugins/dropzone-4.2.0/dropzone.css">
- <script src="/plugins/dropzone-4.2.0/dropzone.js"></script>
- <script src="/js/libs/emojify-1.1.0.min.js"></script>
- <script src="/js/libs/clipboard-1.5.9.min.js"></script>
-
- </html>
|