I’m using the mail gem to parse a set of emails. Unfortunately one of the emails causes the parse to hit 100% CPU and never returns.
I have been using ruby-prof and the benchmarking tools to look at the mail gem in general but my question is how do I profile and figure out what is going wrong without the script ever returning.
Unfortunately I don’t know how to reproduce this error and the message that I have is confidential so I cannot share it. From what I can see there is nothing special about it however and it’s only 4mb large when 30mb emails can parse fine.
Thanks!
You must use any debbuger, and debug step by step and see where is the line of code that is critical. For example for php apps I use Zend Studio for debuging.
Alban