clearing memory in zap

757 views
Skip to first unread message

vishal tambe

unread,
Nov 12, 2021, 4:18:04 AM11/12/21
to OWASP ZAP User Group
How to clear zap memory? 
after completion of active scan i am storing a file in my database and now i want to clear the old data from zap,
i am using following api's 
GET http://zap/JSON/spider/action/removeScan/?scanId=0 \  
i doont have any persistant session .after doing this data sites still shows in my zap UI and when i directly start active scan it starts scanning instead of showing url's not found error,
What are the steps should i follow to clear memory plz help 

Simon Bennetts

unread,
Nov 12, 2021, 5:19:33 AM11/12/21
to OWASP ZAP User Group
The easiest options are to either start a new ZAP session or to restart the ZAP process.
Its worth noting that ZAP is not currently designed as a long running service.

Cheers,

Simon

vishal tambe

unread,
Nov 12, 2021, 6:28:29 AM11/12/21
to OWASP ZAP User Group
Thanks for the quick reply Simon,
I have hosted zap on the server and it will be difficult to create a new session for every scan, what steps should I take to clear the memory of old scans after finishing every scan?  I have tried these API  calls for cleaning up but sites still show up in zap UI:
Reply all
Reply to author
Forward
0 new messages