I have tried to create a memory dump using with below code
**/usr/lib/jvm/j2sdk1.5-sun/bin/jmap -heap 10699**
but i got below mentioned er
To be proactive, I'll assume you're running ubuntu. In that case, type the following:
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
If you're not running ubuntu, I'll recommend that you run jmap as the same user as ran your target process