[SalesForce] Dev console Stuck due to flooding of logs

I was running a batch and by mistake, I set LIMIT in the query as 1 instead of 1000 now it is flooding with debug logs and I not responding. I have deleted all pending scheduled jobs. SO my question is how should I kill running chain and how should I recover dev console?

Best Answer

Clearing your Scheduled Jobs won't fix the problem; Batchable appears in Apex Jobs. You will have to abort the job from that page (or use the AsyncApexJob table to cancel the job), or wait until it completes. The Developer Console, being JavaScript based, doesn't handle a large number of logs very well (~1000, or more than about 2 logs per second). Your best choice to recover the console is to close that window, then abort the job, then reopen it. You work is usually saved, so there's little risk in closing the Developer Console. Your browser may insist on "killing" the page because it is slow or unresponsive; if you get that message, go ahead and do so. You'll find it challenging to use Salesforce properly until you do, as the Developer Console and the tab/page that opened it usually share the same "thread" (meaning the Developer Console will make Salesforce unresponsive, too!).