Announcement

Collapse
No announcement yet.

PHP profiler

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP profiler

    Could someone suggest a PHP profiler working well with EspoCRM?

    maybe XHProf?
    PHP7/PHP8 support. Contribute to longxinH/xhprof development by creating an account on GitHub.
    Last edited by vladimir.d; 08-04-2021, 07:30 PM.

  • #2
    Well, I've made some research and installed XHProf on EspoCRM host.
    It draws some useful diagrams so it's now possible to see where is a bottleneck.
    uploading couple of pictures for the reference.

    Probably I'll go further and try `liveprof`profiler to monitor CRM performance.

    Comment


    • #3
      Wow finally some "stress" test information.

      Comment


      • #4
        vladimir.d Does the XHProf work with ESPO v7? If yes, how did you set it up? Do you install it with composer or how do you go about doing it?

        Comment


        • #5
          Unless you have large numbers of users working simultaneously, PHP won't take effect on performance. Database will be always a bottleneck.

          Comment


          • #6
            yuri Yes we are having issues with the database itself. Especially the job table. Simple queries which uses indexes takes 5-10 seconds to be executed. Seems like some query is locking the table which blocks all the other queries. Sometimes even the lock table query takes long to be executed.

            Any pointers on how to find the actual problem and fix the slowness? I am on MySQL 8, PHP 8, ESPO v7.1.9.

            Comment


            • #7
              Do these queries execute fast when you running them manually?

              Comment


              • #8
                Yes. And they seem to use the right indexes too.

                Comment

                Working...
                X