PHP profiler

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vladimir.d
    Junior Member
    • May 2021
    • 17

    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.
  • vladimir.d
    Junior Member
    • May 2021
    • 17

    #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

    • esforim
      Active Community Member
      • Jan 2020
      • 2204

      #3
      Wow finally some "stress" test information.

      Comment

      • AgentT
        Member
        • Aug 2021
        • 77

        #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

        • yuri
          Member
          • Mar 2014
          • 8443

          #5
          Unless you have large numbers of users working simultaneously, PHP won't take effect on performance. Database will be always a bottleneck.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • AgentT
            Member
            • Aug 2021
            • 77

            #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

            • yuri
              Member
              • Mar 2014
              • 8443

              #7
              Do these queries execute fast when you running them manually?
              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

              Comment

              • AgentT
                Member
                • Aug 2021
                • 77

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

                Comment

                Working...