Announcement

Collapse
No announcement yet.

debugging memory usage

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

  • debugging memory usage

    Hi,
    I've been handed a big OOP PHP project built using the Laravel framework that's suffering from memory leaks, PHP is using about 270MB!
    Any pointers on where to start looking? this seems like a daunting task
    thanks
    Reiss

  • #2
    I would look for any mysql connections open or any connections to other servers, like fsocket or whatever. Anything that needs a close function. I also seen if there are a lot of mysql connections maybe they need to be cached instead of opening a new connection each time. That's just off the top of my head
    Have a Script or Snippet you want to share?

    WWW Standards: HTML 4.01,
    HTML 5, CSS2.1, CSS3, XHTML 1.0
    PHP Standards: PHP Standards

    Comment


    • #3
      thanks Scoutt, will take a look.
      Haven't had chance to dig into it deeper yet.

      Comment

      Working...
      X

      Fatal error: Uncaught exception 'Exception' with message 'MySQL server has gone away' in /data/built2go/hf_home/webm/public_html/htmlforums/vb/core/vb/db/query/update.php:120 Stack trace: #0 /data/built2go/hf_home/webm/public_html/htmlforums/vb/core/vb/db/query/update.php(101): vB_dB_Query_Update->doUpdates() #1 /data/built2go/hf_home/webm/public_html/htmlforums/vb/core/vb/db/assertor.php(283): vB_dB_Query_Update->execSQL() #2 /data/built2go/hf_home/webm/public_html/htmlforums/vb/core/vb/db/assertor.php(518): vB_dB_Assertor->assertQuery('session', Array) #3 /data/built2go/hf_home/webm/public_html/htmlforums/vb/core/vb/session.php(520): vB_dB_Assertor->update('session', Array, Array) #4 /data/built2go/hf_home/webm/public_html/htmlforums/vb/core/vb/library/user.php(911): vB_Session->save() #5 /data/built2go/hf_home/webm/public_html/htmlforums/vb/core/vb/mail.php(437): vB_Library_User->updateEmailFloodTime() #6 /data/built2go/hf_home/webm/public_html/htmlforums/vb/core/vb/mail.php(131): vB_Mail->send() #7 /data/built2go/hf_h in /data/built2go/hf_home/webm/public_html/htmlforums/vb/core/vb/db/query/update.php on line 120