I write a java program which calls some jni APIs in a native libary. The native libary is also written by me. The jdk version is jdk1.7_0_75. From the result of "top" command, I find the memory used by the program keeps going up. I have used "pmap -d" to check the memory mapping and I found a entry in the result of "pmap -d" is quite suspicious. Here is the entry:
00002b3373f63000 162388 rw--- 00002b3373f63000 000:00000 [ anon ]
The value of the second column keeps going up and always goes up by 4k each time I execute the "pmap -d" command. So how should I pinpoint the reason for this memory leak problem? Is it caused by the native code?