buda-base / lds-pdi

http://purl.bdrc.io BDRC Linked Data Server
Apache License 2.0
2 stars 0 forks source link

using spotbugs #35

Closed eroux closed 6 years ago

eroux commented 6 years ago

We should use tools like spotbugs, these tools detect memory leaks quite efficiently. Maybe checkstyle could be useful too (for a slightly different purpose)

MarcAgate commented 6 years ago

I have used spotbugs who didn't reveal anything special but minor points about declaring as "protected or final" some members of various classes. Then I ran jVisualVM and YourKit (which is amazing). As far as I can tell from that, this is what I observed, hitting as much as I could my local version, even requesting 1000 results for etexts : -memory usage remains stable over time -all input and output streams are properly closed -all object of lds-pdi are referenced and accessible by GC except for a couple of QueryTemplate json objects (I have to validate the idea that these unreachable objects are actually in JCS cache)

All this with respect to commit b551973

eroux commented 6 years ago

looks good, thanks a lot!