Finally memory leak issue while performing ajax requests seems to be resolved.