I am using Sonar Scanner API to scan the project programmatically, but after for large projects it gets stuck and server stops responding, how can I provide max heap size programmatically? I know using command like we can provide to scanner but not sure how to provide through code.
I think more details are needed before we can help you. First, exactly how (what command?) do you perform analysis. Also, you say that the server stops responding. What errors to you see in the logs?