Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
tMomConnection --- tPosgresqlConection --- tMomInput --- tRunJob --- tMomOutput --- tMomCommit
tExtractJsonField --- tPostgresqlOutput --- tPostgresqlCommit --- tBufferOutput
In TOS 7.0 Big Data, I noticed that Eclipse in Code view was warning on tLogRow (table formatted output, use log4j) about a possible resource leak.
java.util.Formatter formatter = new java.util.Formatter(new StringBuilder());
resource leak: formatter is never closed.
It only complains in Mode=Table. Basic and Vertical seem to be ok.
Hello,
Could you please give us some trouble screenshots about your issue?
Best regards
Sabrina
If I'm reading this right, with every loop past this code, a new string formatter is being allocated. There are several posts in the forums warning about resource leaks in Formatter.
java.util.Formatter
Possible solutions:
https://www.java-forums.org/new-java/82232-fomatter-print.html
https://stackoverflow.com/questions/37748357/how-to-close-java-formatter-in-finally-or-not