• Resolved Asynaptic

    (@synaptic)


    Hi, I’m running nginx 1.6 (with fastcgi) on hhvm 3.2 instead of php-fpm

    I have W3 total cache installed but it is deactivated, I’ve checked the usual stuff:

    check correct IP and tick box in advance settings
    attempt to disable opcode optimizers (recommended) ticked
    attempt to circumvent browser cache ticked
    and using autoscan not manual (tried both actually)

    https://www.ads-software.com/plugins/p3-profiler/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Kurt Payne

    (@kurtpayne)

    Hi Asynaptic,

    Under P3 -> Help -> Is my site using an opcode optimizer?

    What does this say?

    Thread Starter Asynaptic

    (@synaptic)

    Hi Kurt, thanks for your quick response.

    It says: “Your site is using APC. This has not been known to cause problems with P3.”

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    It looks like HHVM is not supported. P3 uses register_tick_function for profiling and there is no support for this in HHVM.

    https://docs.hhvm.com/manual/en/function.register-tick-function.php

    Thread Starter Asynaptic

    (@synaptic)

    perhaps that’s the price for pushing the envelope.

    Is there any way to code around this and allow P3 to support HHVM with a different method or function?

    Thanks again Kurt for checking on this, much appreciated

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    Sadly, there’s no other way to write P3 without register_tick_function. That is the only way to get a callback between each user function call in php without using an extension.

    Thread Starter Asynaptic

    (@synaptic)

    aw darn it :/

    thank you Kurt, I’m going to mark this as resolved

    have yourself a great day and thank you so much for writing and supporting this plugin (even if I can’t use it in this project)

    I am having the same issue..
    Here is what I have

    Your site is using XCache. Although XCache reports that no opcode optimization won’t be implemented until version 2.0, this has been known to cause problems with P3.
    Your site is using the IonCube loader. This has not been known to cause problems with P3.

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    Hi marvelidea,

    XCache has been known to cause problems. Stacking opcode caches/optimizers with ioncube has been known to cause problems. You can should consult your host for how to temporarily disable these extensions. When you’re done with P3, you should re-enable them.

    Thread Starter Asynaptic

    (@synaptic)

    Kurt, would using upstream to send the request to PHP-FPM as fallback work in this case?

    Please see this:
    https://rtcamp.com/easyengine/docs/hhvm-ee-2-x-x/

    scroll down to section “Use HHVM and adding PHP5-FPM as fallback:”

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    @ Asynaptic that doesn’t augment HHVM with native PHP functionality. It allows nginx to use PHP-FPM when HHVM crashes. I don’t think that will do what you’re looking for.

    You could always switch to PHP-FPM, profile with P3, then switch back to HHVM.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘No visits recorded’ is closed to new replies.