Home:ALL Converter>Associate a Native Function calls to Java Method

Associate a Native Function calls to Java Method

Ask Time:2018-05-01T03:39:19         Author:rmenon

Json Formatter

We are running into native memory leak issues with a Java process.

After linking JVM with jemalloc as recommended in numerous resources like (http://www.evanjones.ca/java-native-leak-bug.html), we were able to boil down the root cause to inflateInit2_ and updatewindow calls in the zlib library.

How do we go about associating these calls from Native space to JVM methods? We already tried looking at the stack trace (hoping to get lucky) and also Flame graphs but these did not help much.

Author:rmenon,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/50107119/associate-a-native-function-calls-to-java-method
yy