Support » Plugin: Translate WordPress with GTranslate » System Resource Consumption is Too High

  • In nginx + php-fpm environment, this plugin causes significantly high system resource consumption problem.

    It seems this plugin translates a requested page to multi-languages in background automatically. This makes it possible to display multi-langue page without reloading the page. But if user does not change language very often, this background works just cause unnecessary system overhead.

    For example, if site admin added 15 languages in language list, and if a user visit 10 pages in a short time, it let 150 php-fpm worker processors work for some time period. 150!!

    You need to
    1. install ‘Query monitor’ plugin and check overvall performance.
    2. activate/deactive this plugin and check differences in performance.
    3. configure php-fpm to run on ‘ondemand’ mode with short(3sec) worker-timeout, and execute ‘top’ in terminal to check changes in the number of php-fpm worker processors.

    This plugin is useful only for demo websites unless you try this plugin with another web server environment.

    • This topic was modified 1 year, 9 months ago by whooper.
    • This topic was modified 1 year, 9 months ago by whooper.
    • This topic was modified 1 year, 9 months ago by whooper.
    • This topic was modified 1 year, 9 months ago by whooper.
    • This topic was modified 1 year, 9 months ago by whooper.
    • This topic was modified 1 year, 9 months ago by whooper.
    • This topic was modified 1 year, 9 months ago by Jan Dembowski. Reason: Removed reference to other plugin and needless personal attack on author
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    It seems that you are doing something wrong. First you have not mentioned if you are using the free version or the paid version. I would recommend you to check your nginx access logs to see the actual requests before making such conclusions.

    In case of the free version, the plugin only injects some additional HTML, CSS and JS code into your response for the language selector and nothing more. So it is done inside one php-fpm process and no more processes are spawned. It is absolutely not a resource intense task.

    If you are using the paid version in sub-domain URL structure mode in the worst scenario it will be one php-fpm process per request like in free version. In the best case scenario when you access a translated page it will be 0. It will happen if we already have a cached version of your original page on our side. Sometimes the translated page loads faster than your original website. All parsing, text processing etc is done on our side unlike other plugins out there and it has no impact on your performance at all.

    If you are using the paid version in sub-directory URL structure mode in the worst case it will be 2 php-fpm processes, one for the visitor request and another one for the server side request we make to get the original page content for translation. Best scenario will be 1 php-fpm process per request. Again this is not a resource intense task, it is just a network connection.

    If you use php-fpm in ondemand mode it will not kill the spawned process until it is idle for the timeout period, in your case it must be idle for 3 seconds before it kills it. If it is idle (you do not have any records in your nginx access logs) and you still see hanging php-fpm processes, then it must be something else, I suspect that it is not ondemand mode.

    Your conclusion that this plugin is useful for demo websites only and it is because of nginx + php-fpm configuration has no background.

    Thanks! 🙂

    • This reply was modified 1 year, 9 months ago by edo888.
    • This reply was modified 1 year, 9 months ago by edo888.
    Thread Starter whooper

    (@coovil)

    Your long reply in three words.

    “IF Paid Version”

    Plugin Author edo888

    (@edo888)

    Long answer short: Translations happen on demand, no background tasks as you describe.

    Compared to all other plugins around, no CPU intense tasks ever happen on your server.

    Thanks!

    Plugin Author edo888

    (@edo888)

    @jdembowski I do not want to be called sarcastic.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @jdembowski I do not want to be called sarcastic.

    Um. OKAY? You do know we have a Slack channel and rather than pinging me personally use that going forward.

    *Looks*

    @coovil I’ve removed reference to another plugin in your review. Don’t do that. This isn’t your blog post and limit your conversation here to just this plugin. I’ve also removed your needless personal attack. Please don’t do that again.

    It’s that reason your account is flagged temporarily. That just means that your post will need to be approved and @ notifications from you will not work. Also please do not use the review section for support.

    If you need support then please raise a support topic.

    https://wordpress.org/support/plugin/gtranslate/#new-post

    If you need to contact the moderators about this then you can do so via the Slack #forums channel.

    To use that channel you need a Slack account. You can obtain one via these instructions.

    https://make.wordpress.org/chat/

    If you do use Slack do not direct message me or any other moderator. Use the #forums channel and any moderator there can assist you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘System Resource Consumption is Too High’ is closed to new replies.