문제

    Is there any Java Static Code Analyzer that can detect code that could possibly cause a memory leak ? I understand that JVM profilers are used for this purpose, but that does not helps us to put the checkpoint during development itself.

   Educating developers about best practice is on one side, but how do i put an automated process as a checkpoint here ?

Any thoughts or recommendations are welcome.

도움이 되었습니까?

해결책

From my researcher point of view, the closest thing I can think of is COSTA: http://costa.ls.fi.upm.es/

This is a tool that, using static analysis, computes the amount of memory used by programs/methods. Maybe the developers (feel free to ask, they are nice people) can tell you if COSTA is a good choice for your needs (or maybe they know something better).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top