JVM and LD_PRELOAD
843829Jun 23 2009 — edited Jun 24 2009Hi all!
I need to monitor some system calls like open, write, read, etc that java sends to operating system (unix) while executing some Foo class.
I've created my own .so library to redefine those glibc fuctions and set LD_PRELOAD=<PATH-TO-MY-LIB>.
If it is important, this is how I run my program:
LD_PRELOAD="<path-to-my-lib>" my_prog java Foo
But actually there is NO redefining system calls.
I'd been googling and found out that JVM uses LD_PRELOAD for its special purposes, so I have no ways to use my own .so library.
Any ideas how to solve this problem?
Edited by: Nelly_Zeltser on Jun 23, 2009 9:40 AM