Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JVM and LD_PRELOAD

843829Jun 23 2009 — edited Jun 24 2009
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2009
Added on Jun 23 2009
3 comments
1,504 views